Skip to main content

Attestory banner with a tilted red-orange spreadsheet cell on a citron background

Attestory

CI PyPI version License: Apache-2.0 Python 3.11+

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 hardcoded 412000; the required formula check failed.

View a sample receipt · Try the Excel audit

Everything runs locally. Attestory catches formula regressions, formula deletions, calculation errors, and rule violations. It stores content-addressed snapshots beside the workbook and produces a signed, self-contained receipt. Submitted workbooks are never uploaded or modified by an audit.

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.

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.

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 and stale recalculated values
  • Numeric assertions and single-cell 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 or worksheet range 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

Repository

  • Report bugs or request Excel coverage through GitHub Issues.
  • Propose changes through Pull Requests.
  • Current CI runs on Python 3.11 and 3.12.

Attestory is open source and processes artifacts locally. Audit history, snapshots, and signing keys must be secured as sensitive project evidence.

Metadata

Release files for attestory 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for attestory 0.3.2
File Size Uploaded Provenance Actions
attestory-0.3.2.tar.gz 570.0 kB With provenance Details for attestory-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for attestory 0.3.2
File Interpreter ABI Platform Actions
attestory-0.3.2-py3-none-any.whl Python 3 none any Details for attestory-0.3.2-py3-none-any.whl

Total release size: 634.1 kB

Release files / attestory-0.3.2.tar.gz

Download URL attestory-0.3.2.tar.gz
Size 570.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8d22c7dd62afcff24d39a0821439eb14f0a8a63b6a1c659c41f958bd9676a5a0
BLAKE2b-256 checksum
How to use checksums
93c82d776e412ad2669b65c5ade2c70023687fda85331693655cf82664657975
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / attestory-0.3.2-py3-none-any.whl

Download URL attestory-0.3.2-py3-none-any.whl
Size 64.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
18f5b4e87708880343046dfcaf480fb39df066e9f5494b8e7da093b022931eeb
BLAKE2b-256 checksum
How to use checksums
a582810a6704a2a3849056ee048b96e30666df20c797e3227a51b8bbe944c4bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for attestory 0.3.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for attestory-0.3.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page