Skip to content

Technology 04

Deterministic Financial Computation

Financial figures produced by controlled SQL, formulas and statistical methods, never by a language model.

Overview

Financial Figures Come from Records and Controlled Calculations.

The analytical foundation uses controlled SQL, financial formulas, statistical methods and deterministic calculations. Calculations are versioned, support reconciliation, and can be reproduced from the same data at any time.

Language models are not the authoritative source of financial values. The model decides which analysis to run and explains the result; the calculation engine produces the number.

Architecture

How It Is Designed.

1 · Agent requests

tool_call.jsontyped
{
  "agent": "financial_analysis",
  "tool": "variance.decompose",
  "args": {
    "metric": "cogs",
    "entity": "plant_02",
    "period": "2026-11",
    "baseline": "standard_cost",
    "components": ["price", "usage", "mix"]
  },
  "dataset": "2026-11-30#a41f"
}

2 · Engine computes

ppv.v3.sqlversioned
-- variance.decompose → price component (ppv.v3)
SELECT
  r.sku,
  SUM((r.unit_price - s.std_price) * r.qty) AS price_var,
  SUM(r.qty)                                 AS qty
FROM receipts r
JOIN std_costs s ON s.sku = r.sku
                AND s.version = 'FY26.Q4'
WHERE r.entity = 'plant_02'
  AND r.period = '2026-11'
GROUP BY r.sku
ORDER BY price_var DESC

3 · Result returned

result.jsonreproducible
{
  "component": "price",
  "value": 412180.44,
  "currency": "USD",
  "calc_id": "ppv.v3",
  "rows_in": 342,
  "reconciled": true,
  "gl_delta": 0.00,
  "result_hash": "sha256:9c1e…7b02"
}
The language model chooses which analysis to run and explains the result. It never authors the number.

Components

Key Components.

Typed Tool Calls

Agents request analysis through defined, typed calculation tools.

Versioned Calculations

Each calculation carries a version so results can be reproduced.

Reconciliation

Results are reconciled to the general ledger before they are reported.

Reproducible Results

Results are hashed against the data version that produced them.

Division of Responsibility

Who Does What.

AI agents decide and explain. The engine calculates. People approve.

Division of responsibilities between AI agents, the calculation engine and human reviewers
ResponsibilityAI AgentsEngineReviewer
Decide which analysis answers the questionYes··
Select relevant datasets and periodsYes··
Produce every financial figure·Yes·
Run SQL, formulas and statistical methods·Yes·
Reconcile results to the general ledger·Yes·
Explain verified results in plain languageYes··
Flag gaps, contradictions and uncertaintyYesYes·
Approve findings and decide on action··Yes

Review the Architecture with Our Team.

Rillot is glad to walk finance and data leaders through the design in depth, including data handling and governance.