Formula & balance-check mutation test
Before exporting figures, the test harness injects a deliberate 1-unit imbalance into a copy of the workbook and confirms the check sheet turns red, proving the audit checks are live rather than cosmetic zeros.
Eliminating transcription errors between Excel workbooks, feasibility dossiers and board papers.
01 · Core thesis
Whenever an analyst retypes a figure from a spreadsheet into a cabinet memorandum or presentation deck, two incompatible versions of the project are born.
Eliminating numerical drift across financial models, feasibility studies, concession schedules and lender briefings requires a deterministic publishing pipeline in which every printed number, table and chart renders directly from the recalculated, cryptographically hashed model output. Engineering economics from NIST shows that defect discovery and correction consume about Sourced sw-5 · 2002 Identifying and correcting software defects accounts for approximately 80% of software development costs, according to the National Institute of Standards and Technology. National Institute of Standards and Technology (NIST), The Economic Impacts of Inadequate Infrastructure for Software Testing (Planning Report 02-3) (2002-06) Open public record ↗ of software development expenditure and cost the US economy Sourced sw-6 · 2002 Inadequate software testing infrastructure cost the United States economy an estimated $59.5 billion annually, of which $22.2 billion could be saved through feasible testing improvements, according to NIST. National Institute of Standards and Technology (NIST), The Economic Impacts of Inadequate Infrastructure for Software Testing (Planning Report 02-3) (2002-06) Open public record ↗ annually when verification pipelines are manual. Binding published prose and exhibits to hash-locked outputs using Sourced std-sha256 · 2015 Secure Hash Standard: specifies the SHA-256 algorithm used to compute the digest of each record National Institute of Standards and Technology, FIPS PUB 180-4, 2015 Open public record ↗ and Sourced std-rfc6962 · 2013 IETF RFC 6962 specifies publicly auditable, append-only logs using binary Merkle Hash Trees hashed with SHA-256 so any verifier can check inclusion and append-only consistency, according to the IETF. Internet Engineering Task Force (IETF), RFC 6962: Certificate Transparency (2013-06) Open public record ↗ turns financial modelling and programme dossiers into one indivisible artefact.
Share of software development expenditure spent finding and fixing defects without automated verification.
NIST estimated annual economic cost of inadequate testing infrastructure in the United States.
NIST FIPS 180-4 digest bit lengths sealing recalculated model snapshots against silent alteration.
Build-gate invariant: every table row and key metric is bound to a named model key or fact record.
80% of build spend
Manual hunting and patching of defects consumes roughly 80% of engineering build costs; automated build-time verification catches mismatches in seconds.
Source: National Institute of Standards and Technology (2002) Open record ↗
SHA-256 FIPS 180-4
Every recalculated workbook and exported value-manifest carries a 256-bit cryptographic digest so auditors confirm the PDF matches the exact workbook version.
Source: NIST FIPS PUB 180-4 (2015) Open record ↗
RFC 6962 Merkle tree log
Publicly auditable append-only hash trees allow any reviewer to verify that a published revision belongs to an unaltered build history.
Source: IETF RFC 6962 (2013) Open record ↗
Every lender and senior civil servant has experienced the same damaging moment during a credit-committee review: the executive summary states an internal rate of return of 14.2%, page 47 prints 13.8%, the accompanying slide deck shows a different capital schedule, and the attached spreadsheet opens with stale cached cells from two Thursdays earlier. Even if the underlying project is sound, one unverified contradiction casts doubt over the entire team competence.
That failure is not caused by carelessness; it is caused by an obsolete workflow that treats the financial model and the written dossier as separate files edited by hand. In Tie Wang engagements, no human ever types a calculated number into a report, schedule or chart.
02 · The mechanism
Recalculate cleanly, export a typed value manifest, compile charts and tables by key, and fail the build on any orphan figure.
A model-driven document pipeline enforces one single source of truth from raw assumptions to print-ready PDF and web edition. Stage 1 builds the live-formula workbook cleanly with zero hard-coded overrides inside calculation sheets, then runs a full headless recalculation engine (such as LibreOffice Calc) to prove every formula evaluates cleanly with zero reference, division or balance-sheet errors.
Stage 2 extracts every named output cell, scenario table and sensitivity vector into a versioned JSON value manifest stamped with a Sourced hash-4 · 2013 IETF RFC 6962 mandates SHA-256 from FIPS 180-4 as the Merkle tree hash function for verifying audit paths and signed tree heads, according to the IETF. Internet Engineering Task Force (IETF), RFC 6962: Certificate Transparency (2013-06) Open public record ↗ digest of the source workbook and an independent check-sheet assertion proving that checks genuinely fail when an intentional balance error is injected. Stage 3 binds document templates, prose tokens and SVG chart generators directly to those manifest keys. When a tariff assumption or interest rate changes in the workbook, every affected sentence, table column, waterfall chart and sensitivity fan updates together in one rebuild.
Stage 4 executes an automated numeric-traceability gate over the compiled HTML and PDF text. Every visible numeral is extracted and checked against two registries: the recalculated model manifest and the cited public-record fact base. Any unledgered or stale numeral from an earlier draft fails the build automatically. Stage 5 emits the print dossier, web edition and cryptographic manifest receipt together so an independent auditor can verify exact provenance in minutes.
Linear five-stage build chain from live-formula Excel workbook through headless recalculation, hashed JSON value manifest, template compilation and automated stale-value audit gate.
Every calculated line uses live formulas; checks are unit-tested to verify they actually trigger on error.
Cached desktop values are never trusted; a deterministic headless recalculation produces the official numbers.
One JSON manifest binds workbook hash, version tag and scenario values for every downstream surface.
PDF, board deck and web page compile from the same manifest; any orphan numeral aborts release.
| Pipeline stage | Controlled input | Generated output | Automatic fail condition |
|---|---|---|---|
| 01 · Live workbook | Audited assumption sheet | Formula-locked .xlsx | Hard-coded override in calc block |
| 02 · Headless recalc | Formula-locked .xlsx | Recalculated workbook | Formula reference, divide-by-zero or check-sheet error |
| 03 · Value manifest | Named output ranges | Hashed values.json | Missing key or hash mismatch |
| 04 · Bound render | values.json + templates | PDF dossier, deck, HTML | Undefined template token |
| 05 · Claims audit gate | Rendered output text | Traceability certificate | Any unledgered or stale numeral |
Illustrative Source: Tie Wang institutional document pipeline (designed against FIPS 180-4 and RFC 6962)
Modern transactions rarely produce a single document. One concession appraisal generates a 120-page feasibility study, a 25-page cabinet memorandum, a 20-slide investment committee deck, draft legal schedules and a web data room. Under manual production, a last-minute 50-basis-point interest-rate adjustment gets updated in the workbook and executive summary, missed in Appendix C, and left untouched in two chart PNGs exported the night before.
A second silent failure occurs in spreadsheet caching: automated libraries reading an Excel file without recalculating it extract stale cached values from the last time a human pressed save. Mandating headless recalculation inside the build pipeline eliminates stale-cache illusions permanently.
Finally, prose drift happens when narrative sentences state "returns exceed 16% across all scenarios" even after a revised downside run drops to 14.4%. Generating scenario-dependent narrative sentences from conditional template rules tied to the manifest guarantees that adjectives and numbers always agree.
03 · Verification architecture
Nothing reaches a ministry or lender desk until all four scripts exit with zero errors.
Before exporting figures, the test harness injects a deliberate 1-unit imbalance into a copy of the workbook and confirms the check sheet turns red, proving the audit checks are live rather than cosmetic zeros.
Feasibility PDF, board memorandum, presentation deck and data-room CSVs all read the exact same SHA-256-sealed manifest file. Updating one assumption rebuilds every surface simultaneously in under two minutes.
An automated HTML and PDF text scanner parses every rendered numeral and checks it against the active value manifest and cited fact base. Any number left over from an earlier revision fails the build.
Every published dossier prints its model version identifier, recalculation date and truncated SHA-256 digest in the colophon so lenders and audit courts can match the printed PDF byte-for-byte to the escrowed workbook.
04 · Evidence & boundaries
Software-engineering defect economics applies directly to multi-volume infrastructure dossiers.
Finding a numerical discrepancy late is orders of magnitude more expensive than preventing it at build time. The National Institute of Standards and Technology established that defect identification and repair absorb roughly Sourced sw-5 · 2002 Identifying and correcting software defects accounts for approximately 80% of software development costs, according to the National Institute of Standards and Technology. National Institute of Standards and Technology (NIST), The Economic Impacts of Inadequate Infrastructure for Software Testing (Planning Report 02-3) (2002-06) Open public record ↗ of software development cost, imposing Sourced sw-6 · 2002 Inadequate software testing infrastructure cost the United States economy an estimated $59.5 billion annually, of which $22.2 billion could be saved through feasible testing improvements, according to NIST. National Institute of Standards and Technology (NIST), The Economic Impacts of Inadequate Infrastructure for Software Testing (Planning Report 02-3) (2002-06) Open public record ↗ in annual economic loss where verification infrastructure is inadequate. Transaction advisory teams suffer the same penalty during credit-committee diligence: every manual revision round triggers days of cross-checking across hundreds of pages and still misses stray footnotes.
Applying standard cryptographic primitives from Sourced hash-1 · 2015 NIST Federal Information Processing Standard 180-4 specifies seven secure hash algorithms (SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256) producing digests from 160 to 512 bits, according to NIST. National Institute of Standards and Technology (NIST), Secure Hash Standard (SHS), FIPS PUB 180-4 (2015-08) Open public record ↗ and append-only audit structures from Sourced std-rfc6962 · 2013 IETF RFC 6962 specifies publicly auditable, append-only logs using binary Merkle Hash Trees hashed with SHA-256 so any verifier can check inclusion and append-only consistency, according to the IETF. Internet Engineering Task Force (IETF), RFC 6962: Certificate Transparency (2013-06) Open public record ↗ solves the problem cheaply. A Python extraction and claims-audit script runs in seconds and scales identically across a 12-page brief or a 500-page environmental and financial dossier. Assess the maturity of an existing project data room using the Evidence maturity grader or inspect truth labels on every figure.
Comparison between model-driven automated dossier compilation and manual copy-paste document workflows across revision turnaround, cross-document consistency and audit traceability.
Model-driven compilation: Every chart, table and prose KPI pulls from one recalculated JSON manifest gated by automated claims checks.
Manual copy-paste workflow: Analysts manually retype updated spreadsheet outputs into Word, PowerPoint and chart files after each model run.
| Publishing quality metric (illustrative) | Model-driven build | Manual workflow | Enforcing check |
|---|---|---|---|
| Cross-surface numerical match | 100% | 62% | Single SHA-256 JSON value manifest |
| Audit traceability to model key | 100% | 25% | Named cell keys printed in audit ledger |
| Stale-number survival rate | 0% | 38% | Automated claims_audit numeric gate |
| Same-day sensitivity re-issue | 95% | 20% | Headless recalc + deterministic render |
Illustrative Source: Tie Wang document-engineering workflow benchmarks (illustrative operational ranges)
05 · What to do on Monday
Filter actions by role to enforce single-source compilation across every transaction document.
Moving a transaction team off manual copy-paste takes discipline rather than expensive enterprise software. Adopt these five rules on Monday.
Next steps by institutional audience
Demand that every cabinet dossier and concession schedule binds transparently to an auditable, recalculated workbook.
Inspect modelling discipline →Eliminate weeks of manual number-checking during due diligence by requiring hashed value manifests.
Open maturity grader →Automate monthly performance and reconciliation reporting directly from sealed database exports.
Inspect evidence ledger →Ensure investor decks, feasibility reports and ministerial briefs always speak with one consistent set of numbers.
Read truth-labels brief →Full 6,000-word paper detailing auditor-heat traceability, automated claims verification and model governance.
Read white paper → Working instrument · Live modelInteractive diagnostic grading figure provenance, model check integrity and document traceability.
Launch instrument →