A previous release had provenance metadata, but this release does not. View details.
Attestory
Catch broken Excel formulas after an AI edit. A forecast can still show $412,000 after its revenue formula has been replaced with a typed number. Attestory compares the workbook with its baseline and shows the changed cell in a local audit receipt.
FAIL —
Revenue!B4
=SUM(B2:B3)was replaced with hardcoded412000; the required formula check failed.
View a sample receipt · Try the Excel audit
The CLI, Python API and Cowork plugin run locally. Attestory catches formula regressions, formula deletions, calculation errors, and rule violations. It stores versioned snapshots of each workbook's cells and formulas beside the workbook, records a signed audit manifest, and writes a self-contained HTML receipt. An audit never modifies the submitted workbook. The optional ChatGPT Action is the exception to local processing: it sends both workbooks to the backend you configure.
Snapshots are fingerprints for comparison, not copies: Attestory can't restore
an earlier version of a workbook. The signing key lives in the workspace's
.attestory/signing/ folder, so a valid signature shows the record hasn't
changed since it was signed by something with access to that folder; it isn't
independent proof of who signed it.
Outcomes
| Outcome | Meaning |
|---|---|
| PASS | An existing baseline was checked; every required check completed and passed. |
| FAIL | A required formula, numeric, cross-file, or cell check failed. |
| INCOMPLETE | Required evidence was unavailable, such as a missing baseline, formula cache, or external input. |
Each audit is compared with the latest baseline, not simply the previous
audit. Only a PASS advances the baseline; the first audit that doesn't fail
becomes the initial baseline. Committing a failed workbook again therefore still
fails. When a person accepts a reviewed change, they can make it the baseline
with attestory approve <file.xlsx> (--force is required for a FAIL).
A formula cache can be unavailable when openpyxl or LibreOffice has not supplied
a calculated value. Use attestory commit <file.xlsx> --recalculate when
LibreOffice is installed. Required incomplete checks block PASS.
Check a workbook in your browser
No installation: open the browser checker, drop the workbook as it was before the edit and the edited copy, and read the result in plain words. The check runs inside the page itself, so nothing is downloaded and the files aren't uploaded. It covers the default checks (formulas replaced or deleted, new Excel errors) and lists what it didn't check.
Try the Excel audit
Python 3.11 or newer:
python -m pip install attestory
attestory demo --dir ./attestory-demo
The demo creates a baseline, replaces the Revenue!B4 formula with the value
412000, and runs the audit. FAIL is the expected result: the required
formula was replaced even though the displayed total stays the same. Open
attestory-demo/.attestory/reports/Q4_Forecast_v2_receipt.html to inspect the
receipt.
Manual Excel walkthrough for contributors
Install the checkout in editable mode, then create a workspace:
python -m pip install -e .
mkdir attestory-excel-demo
cd attestory-excel-demo
Generate a workbook with an approved formula:
python - <<'PY'
import openpyxl
workbook = openpyxl.Workbook()
sheet = workbook.active
sheet.title = "Revenue"
sheet["B2"] = 200000
sheet["B3"] = 212000
sheet["B4"] = "=SUM(B2:B3)"
workbook.save("Q4_Forecast.xlsx")
PY
Capture the baseline:
attestory commit Q4_Forecast.xlsx -m "Approved formula baseline"
Replace the formula with a hardcoded number to simulate an AI or spreadsheet edit:
python - <<'PY'
import openpyxl
path = "Q4_Forecast.xlsx"
workbook = openpyxl.load_workbook(path)
workbook["Revenue"]["B4"] = 412000
workbook.save(path)
PY
Run the audit and inspect the result:
attestory commit Q4_Forecast.xlsx -m "Edited forecast"
attestory diff Q4_Forecast.xlsx
attestory report Q4_Forecast.xlsx
The second commit should produce FAIL and identify Revenue!B4 as a
formula-to-hardcode override. The initial baseline can be INCOMPLETE when
formula values or other required evidence are unavailable.
Workflow
flowchart LR
A["Submitted workbook"] --> B["Temporary snapshot"]
B --> C["Deterministic Excel extraction"]
C --> D["Baseline diff + required rules"]
D --> E{"Required checks"}
E -->|All complete| F["PASS / FAIL"]
E -->|Evidence unavailable| G["INCOMPLETE"]
F --> H["Signed manifest + HTML receipt"]
G --> H
Supported Excel checks
- Formula edits and formula-to-hardcode overrides
- Formula deletion and missing formula cells
- Workbook formula errors such as
#REF!,#DIV/0!,#SPILL!, and#CALC! - Missing formula caches
- Numeric assertions and single-cell, workbook-scoped named ranges
- Snapshot diffs, row/cell changes, and external-reference review
- Versioned, signed manifests and offline verification
For coverage boundaries and rule semantics, see Excel verification coverage.
Support and limitations
| Area | Supported | Boundary |
|---|---|---|
| Workbook format | .xlsx |
Macro execution is not supported. |
| Formula values | Formula structure, cached values, and LibreOffice recalculation | Missing caches can make required checks INCOMPLETE; external workbook results are not recalculated. |
| Named ranges | A single-cell, workbook-scoped name | Names scoped to one sheet, ambiguous, dynamic, or unsupported ranges are incomplete/unsupported. |
| External references | Detection and receipt reporting | Attestory does not resolve or verify external workbook contents. |
| Other formats | PowerPoint, HTML, and CSV snapshots/diffs | Feature coverage differs from Excel; SmartArt and unstructured presentation content remain limited. |
| Local access | Workspace files, history, and receipts | Cloud synchronization and OneDrive/SharePoint conflict behavior are deployment-specific. |
Learn more
- Excel verification coverage
- Local storage details
- Python API, hooks, server, and integrations
- ChatGPT Excel edit-and-verify prototype
- Cowork and ChatGPT parity validation
- Claude Cowork plugin
- Rule configuration
- Rules example
- Labeled regression corpus
- Contributing
- Apache-2.0 license
Repository
- Report bugs or request Excel coverage through GitHub Issues.
- Propose changes through Pull Requests.
- CI runs Ruff and the tests on Python 3.11–3.13 (Linux), plus macOS and Windows on Python 3.12.
Attestory is open source; except for the optional ChatGPT Action, it processes artifacts locally. Audit history, snapshots, and signing keys must be secured as sensitive project evidence.
Metadata
Release files for attestory 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Loss of provenance
These files do not have provenance metadata, despite files in a prior release including this data.
We recommend further investigation before installing these files. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| attestory-0.4.0.tar.gz | 681.1 kB | Without provenance | Details for attestory-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| attestory-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for attestory-0.4.0-py3-none-any.whl |
Total release size: 783.8 kB
Release files / attestory-0.4.0.tar.gz
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | attestory-0.4.0.tar.gz |
|---|---|
| Size | 681.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2453e7ebd89fae31752fc7c529c89a313f1f60b5453bdd2ad702c7575d91d59c
|
|
BLAKE2b-256 checksum How to use checksums |
d6de9493d84cb91b55c232ab7570549dc78cd9e0f2b086230dacc81a3cb8c902
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / attestory-0.4.0-py3-none-any.whl
Loss of provenance
This file belongs to a release without provenance metadata, despite a prior release including this data.
We recommend further investigation before installing this file. View details.
| Download URL | attestory-0.4.0-py3-none-any.whl |
|---|---|
| Size | 102.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f680ef1426a6c6b24b9eaf8f5742c7e0d9cba362e9032d8e8d54f68c5eb19f46
|
|
BLAKE2b-256 checksum How to use checksums |
ee231b8eac1a737799aaba448ef2853205fef8ecc00081172dba7fbfe4f129b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for attestory 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Loss of provenance
A previous release of these files had provenance metadata, but this release does not.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Release comparison
- Removed 0.3.2 2 files With provenance
- Added 0.4.0 2 files Without provenance
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.