Case study · reporting-gap attestation
The Enron reporting gap
what was reported, versus what the rows support.
Enron's FY2000 annual report is the case the whole thesis is haunted by: numbers that were internally consistent on paper and disconnected from reality. Fin-Telligence runs the same verified pipeline over it, computing the reported figure and the underlying figure in one guarded query, so the distance between them is a grounded, hash-chained, tamper-evident result, not an assertion.
See the gap for yourself
One switch, two views of the same company: the story Enron told investors, and what the underlying rows actually support. Flip it.
How this differs from previous solutions
The individual patterns here (AST parsing, read-only database flags, regex output checks, and cryptographic hash logs) are standard computer-science primitives. Combining them into a zero-tolerance ground-or-refuse pipeline with cryptographic attestation is an uncommon design choice next to standard financial AI tools.
| Feature | Standard financial AI / text-to-SQL | Fin-Telligence architecture |
|---|---|---|
| SQL safety | System prompts (“only write SELECT”) or generic DB permissions | Pre-execution AST parsing (guard.js) enforcing SELECT-only, CTE allow-lists, and forced LIMIT bounds |
| Numeric accuracy | LLM-as-a-judge or prompt engineering to format DB rows | Deterministic post-prose verification (grounding.js) that matches every number back to SQL row outputs |
| Failure mode | Best-guess response with potential rounding or hallucination errors | Explicit refusal. If a single number in the prose can't be mapped to the raw data, the response is destroyed |
| Audit logging | Standard cloud event logs (CloudWatch / Datadog, SOC 2 trails) | Cryptographic hash-chaining (audit.js) where altering a past prompt, query, or output breaks chain verification |
What makes it distinct
- Zero-tolerance output verification. Guardrail frameworks like NeMo or Guardrails AI
evaluate semantic safety or prompt injection. Fin-Telligence treats numbers like foreign keys:
if the narrative claims
$100,789mand that exact figure (or its unit transform) isn't in the returned dataset, the pipeline aborts. - Trade-surveillance attestation. Most AI audit logs track who sent a prompt, for billing or security. Attaching a cryptographic hash-chain to regulatory queries (MiFID II / MAR trade-abuse findings) stops internal operators from backdating or quietly altering a surveillance flag.
Every figure carries its provenance
The figures compute in SQL and pin to a deterministic seed, so re-running
reproduces the same result hash exactly — an auditor can recompute and compare.
Edit a recorded attestation after the fact and verify() reports the precise
entry that changed.
Run it yourself
# no credential needed — canonical queries over real 10-K anchors node bin/fintel.js enron seed node bin/fintel.js enron revenue # gross vs net revenue, attested node bin/fintel.js enron debt # reported vs true debt incl. SPEs node bin/fintel.js enron audit # verify the hash chain
What is real, and what is synthetic
0001024401-01-500010 (public domain).