Ledger
Set up
Menu

How it works

A narrow financial pipeline with inspectable boundaries.

Ledger accepts billing evidence, translates it into a provider-neutral contract, calculates cost from a declared basis, reconciles the result, and only then publishes immutable Cost Pools.

  1. 01
    Evidence

    Accept immutable billing files with checksums, source metadata, and organization ownership.

  2. 02
    Normalize

    Convert provider rows into a readable FOCUS-aligned financial core without losing origin.

  3. 03
    Calculate

    Materialize exact service and resource costs from a declared authority and cost basis.

  4. 04
    Reconcile

    Prove source, normalized, calculated, and published totals agree before release.

  5. 05
    Explain

    Expose formulas, versions, evidence links, corrections, and assumptions with every result.

01

Submit and verify

Billing evidence becomes immutable before interpretation.

The uploaded object records its exact byte size, media type, SHA-256 digest, organization, format, and idempotency identity. Finalization verifies the stored bytes before conversion starts.

Input
FOCUS or supported provider export
Artifact
Import object and stage history
Failure
Stable object or format diagnostic
02

Convert

Provider rows enter a shared contract.

A versioned adapter maps the source into Ledger Normalized Charges. Standard FOCUS fields retain their meanings; provider-specific calculation facts remain evidence or namespaced extensions.

Input
Verified source object
Artifact
Manifest, JSONL records, capability report
Gate
Source and normalized totals reconcile
03

Ingest

Readable records become queryable financial facts.

Schema, enum, timestamp, currency, precision, and evidence relationships are validated. Atomic, dataset-aware ingestion keeps partial data away from calculation.

Input
Normalized Charge dataset
Artifact
Materialized charges and origins
Gate
Complete reconciliation by basis and currency
04

Calculate and reconcile

Cost is materialized under an explicit authority contract.

The calculator declares whether it adopts provider-computed values or computes Ledger-owned results. SQL aggregation groups exact amounts without mixing currencies or cost bases.

Input
Ready normalized dataset
Artifact
Calculation run and service costs
Gate
Matched authoritative total
05

Publish and explain

Only a reconciled run becomes current.

Publication creates immutable Cost Pools and evidence links, then atomically moves the logical billing period's current pointer. Historical publications remain available.

Input
Reconciled calculation run
Artifact
Cost Pools and explanations
Consumer
Explorer now; attribution next

Cost authority

Provider-adopted and Ledger-computed are not interchangeable labels.

A calculation contract declares its reporting basis, accepted origins, method, version, capability requirements, and reconciliation target. Explanations repeat those facts so a total never becomes generic after publication.

Provider adopted

Use a supplied EffectiveCost

Appropriate when a conforming provider value already expresses the supported amortization semantics.

Authoritative mismatch: publication fails
Ledger computed

Apply a documented method

Appropriate when Ledger must distribute commitment cost, preserve unused commitment, or calculate a supported derived value.

Method and assumptions: persisted

Two reconciliation boundaries

A successful parser is not a successful financial import.

Ledger proves that conversion preserved the source totals and that calculation preserved the authoritative normalized total before any Cost Pool is published.

Source evidence25.000000000000000000
Matched
Normalized Charges25.000000000000000000
Matched
Published Cost Pools25.000000000000000000

Failure is part of the product

Reject bad evidence. Retry bad infrastructure.

Data-contract failure

Invalid money, schema, timestamps, evidence, or unsupported semantics reject the import with a stable diagnostic.

Transient failure

Database contention, queue interruption, or runtime infrastructure failures remain retryable and do not relabel evidence as invalid.

Reconciliation failure

The mismatch is persisted with basis, currency, expected value, actual value, and difference. Publication remains blocked.

Inspect the controls behind the calculation.

Explore financial correctness