Fin·Telligence
Overview  ·  Enron  ·  SOC 2 panel

Synthetic demo · real TR.* codes · verified & attested

LSEG fundamentals
company financials you can audit, field by field.

LSEG (London Stock Exchange Group, formerly Refinitiv) company fundamentals, addressed by real TR.* field codes over real RICs. Fin-Telligence reconciles a reported figure to the line items that compose it and hash-chains the result, with provenance down to the exact LSEG field. It pairs with the open-source lseg-mcp: that server gets the field mapping right, Fin-Telligence makes the number auditable.

Two servers, one auditable answer

lseg-mcp — resolves & drafts

The open-source field expert.

Resolves a concept (“gross profit”) to the correct modern TR.* field, validates it against LSEG's COA/FCC mapping matrix, and drafts the runnable lseg-data call. It never returns market data — it only gets the retrieval right.

Fin-Telligence — verifies & attests

The audit layer.

Runs the landed snapshot through guard → canonical reconciliation → hash-chained audit. The queries are canonical (no model narrates a number), so the guarantee here is a reconciliation control that ties figures out and a tamper-evident chain — a variance raises an EXCEPTION, and an edit to a past attestation breaks the chain. The join point is ingestion, not runtime.

The reconciliation

Two reconciliations, one attested chain

IBM.N · FY2023 · an integrity check and a data check.

Revenue TR.Revenue $61,860m
Cost of revenue TR.CostOfRevenueTotal $27,946m
Computed gross (Revenue − Cost) derived $33,914m
Reported gross TR.GrossProfit $33,914m
Integrity check. On LSEG's standardized (COA) model, Gross Profit is defined as Revenue − Cost of Revenue, so this identity holds by construction on clean vendor data — a PASS here means the pipeline is intact. Alter any component after landing and the control raises an EXCEPTION with the precise variance, and the hash chain catches the edit.
Data check. The reconciliation that tests LSEG's numbers is standardized (COA) vs as-reported: LSEG normalises every issuer to a common chart of accounts, and where that reclassifies a line item across the gross-profit boundary the two bases diverge. A tie means LSEG agrees with the filing; a variance is a real classification difference to investigate before citing a figure — not a data error, and surfaced, not hidden.

Provenance to the field code

Every value cites where it came from.

Data is stored long-format — one row per (organization, field, period, basis) — carrying the TR.* code, the retrieval date, and the source feed. Fundamentals are entity-level, so they key on the stable Org PermID, not on the mutable RIC. A figure resolves to its blessed LSEG field the one agreed way, so “where did this number come from?” has an exact, verifiable answer.
Grain org (PermID) × field × period × basis
Organizations IBM · Apple · Vodafone (RIC alias → Org PermID)

Validated against LSEG's own dictionary

Every field code was checked live through lseg-mcp's validate_lseg_formula against LSEG's COA/FCC mapping matrix. All nine returned OK.

LSEG fieldConceptMaps to (COA)Status
TR.RevenueRevenueIncome Statement · SREVOK
TR.CostOfRevenueTotalCost of Revenue, TotalIncome Statement · SCOROK
TR.GrossProfitGross ProfitIncome Statement · SGRPOK
TR.OperatingIncomeOperating IncomeIncome Statement · SOPIOK
TR.NetIncomeAfterTaxesNet Income After TaxesIncome Statement · TIATOK
TR.TotalDebtOutstandingTotal DebtBalance Sheet · STLDOK
TR.TotalAssetsReportedTotal Assets, ReportedBalance Sheet · ATOTOK
TR.PriceCloseClosing price (daily)Pricing (extended dict)OK
TR.CompanyMarketCapMarket capitalisationReference (extended dict)OK

Validated 2026-09-24 via lseg-mcp. Note: TR.GrossProfit is available for Industrial issuers, not Bank / Insurance / Utility — so the gross-profit identity applies to industrials (the seeded RICs are).

How this differs from standard financial AI

Most commercial text-to-SQL and financial-AI platforms prioritise helpfulness and flexibility, handing the user a best-guess answer. Fin-Telligence prioritises non-repudiation and hard refusal — the individual patterns are standard computer-science primitives, but combining them into a zero-tolerance ground-or-refuse pipeline with cryptographic attestation is the uncommon choice.
FeatureStandard financial AI / text-to-SQLFin-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
Field mapping The model guesses a field name from the prompt lseg-mcp resolves the concept to the correct TR.* code and validates it against the COA/FCC matrix before ingest
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 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

Every figure carries its provenance

question→ guard→ read-only SQL→ reconcile→ lineage + hash→ signed audit chain
scenario lseg_gross_profit_reconciliation   IBM.N   FY2023
figures identity_gross_usd = reported_gross_usd = 33,914,000,000
audit entry #1   a5f0c1d2e3b47788…   chain INTACT
compliance reconciliation · processing-integrity · reproducible

The figures compute in SQL over a read-only snapshot, 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.

Bitemporal: as-of reads survive a restatement

A figure has two independent time axes: the fiscal period it is about, and the knowledge date it became known on. A restatement lands as a new row, never an overwrite, so you can ask for the vintage that was known on any past date, and every vintage reproduces its own hash.

As known on 2022-06-01

IBM.N · FY2021 · original vintage

Revenue − Cost of Revenue$27,350,000,000
Reported gross (TR.GrossProfit)$27,350,000,000
Variance$0 · PASS

Latest (restated)

IBM.N · FY2021 · newest vintage

Revenue − Cost of Revenue$27,700,000,000
Reported gross (TR.GrossProfit)$27,700,000,000
Variance$0 · PASS
Same period, two knowledge dates, two figures. The restatement moved FY2021 gross profit from $27.35b to $27.70b, and the ledger keeps both. lseg reconcile IBM.N FY2021 --as-of 2022-06-01 returns the original; drop the flag and you get the latest. Because each is a distinct row, re-running an as-of query reproduces its exact hash and the audit chain stays intact across the restatement, the case that quietly breaks naive provenance systems.

Prices at their own grain

A price is a time series, not a per-period fundamental. So TR.PriceClose lives in its own prices table, one row per quote × trading day, keyed by the quote PermID, and is fetched with get_history, not get_data. The ingest seam enforces the split both ways: it refuses to land a pricing field as a fundamental, and a fundamental as a price.

series IBM.N · TR.PriceClose · daily close (USD)
2024-03-26 160.50
2024-03-27 162.10
2024-03-28 163.55
grain quote (PermID) × trading day   get_history

node bin/fintel.js lseg prices IBM.N --from 2024-03-26 --to 2024-03-28. Values are synthetic; the quote PermID is a labelled placeholder until validated via lseg-mcp.

Licensing & retention governance

The warehouse persists vendor data, which is only lawful within the terms of an LSEG agreement. So every source is tagged once with its usage class, a cache retention TTL, and its redistribution terms, and the C1.1 control fails on an untagged source, a missing TTL, or a stale row. These tags encode a policy, they do not grant a right.

source LSEG synthetic snapshot (no entitlement)
usage non-display  ·  cache TTL 90d  ·  internal-only (no redistribution)
C1.1 as-of 2026-09-28   sources tagged 1/1   0 past TTL   PASS
The control enforces, it does not decorate. Read as of a date inside the licensed window it passes; let the cache age past its TTL and the same control turns EXCEPTION with the exact count of stale rows, which is precisely what a retention control is for. Before a live key, the sign-off checklist (db/lseg-licensing.md) confirms usage class, TTL, redistribution, and entitlement against the signed agreement.

From synthetic to live in one credential

The values here are synthetic, authored so the identities hold exactly. The ingest seam (src/lseg-ingest.js) is a session interface: FakeLsegSession runs the whole path with no entitlement (this demo), and RealLsegSession fetches real fundamentals through lseg-data. Set LSEG_APP_KEY (an entitled LSEG Data Platform / Workspace app key), pip install lseg-data, and fintel lseg ingest --live attests genuine LSEG data. Nothing downstream changes — the guard, reconciliation, and audit chain are identical.

Live mode: gated behind a credential

Everything above is synthetic: real RICs and TR.* codes, authored values, wired only to this project's own MCP and engine. There is no live vendor connection on this page. Live mode is gated behind an entitled LSEG credential: supply a key and a deployed engine URL below and the same guard → reconcile → attest pipeline runs against genuine LSEG data. Without both, this stays synthetic.
this page → engine 🔑 LSEG_APP_KEY → lseg-data → LSEG Workspace → warehouse → verify + attest → auditable answer

The key lives on the engine, not on this page, that is the whole point of keeping a credential server-side. The fields below store your engine URL and key in this browser only and gate the live path: until you provide a key, the page stays in synthetic mode. Live fetch also needs the engine backend deployed (fintel serve), which is pending (M7).

synthetic mode
Stored only in this browser (localStorage), nothing leaves the page until you set an engine URL, and then only that engine is contacted. The live fetch runs on the engine (fintel serve with LSEG_APP_KEY + lseg-data against a Workspace session). Don't paste a production key on a shared machine.

Run it yourself

# synthetic — no LSEG entitlement needed
node bin/fintel.js lseg seed
node bin/fintel.js lseg fundamentals IBM.N FY2023   # attested snapshot, each concept → its TR.* field
node bin/fintel.js lseg reconcile IBM.N FY2023      # gross profit = revenue − cost of revenue
node bin/fintel.js lseg ingest IBM.N --period FY2024   # land data via the ingest seam (fake session)
node bin/fintel.js lseg audit                        # verify the LSEG audit chain

# real LSEG data — needs an entitlement
export LSEG_APP_KEY=<your-app-key> # and: pip install lseg-data, Workspace running
node bin/fintel.js lseg ingest IBM.N --period FY2023 --live

What is real, and what is synthetic

Real: the instrument RICs (IBM.N, AAPL.O, VOD.L) and the TR.* field codes — validated against LSEG's mapping matrix through lseg-mcp. Synthetic: every value in the fundamentals table, authored so the accounting identities hold exactly and labelled synthetic. For a tool about traceable figures, fabricated data labelled as fabricated is fine; fabricated data presented as real is the exact failure this project exists to prevent. Nothing here is investment advice or a claim about any company's actual results.
Field codes validated via GreenGrassBlueOcean/lseg_mcp; values synthetic (see db/lseg-anchor.md).