FrankenAccounting

Open sourceFor people and AI agentsIn development

Books that prove themselves.

FrankenAccounting is double-entry bookkeeping rebuilt from the journal up, in memory-safe Rust. No balance row can drift, because there are none: every balance is a fold you can recompute. Every entry carries two clocks and its evidence. Corrections are lineage, never edits. Anyone can check the books offline, with a verifier that trusts nothing but its own code.

Try to post

The kernel says

Pick a proposal. The real oracle, compiled to WebAssembly, decides it in this tab.

0 posted 0 refused

Σ debits = Σ credits

fa-reference · WebAssembly

Why it exists

Every idea existed. Nothing composed them.

Double entry is 530 years old and has not had a structural upgrade. Each hard problem since has been solved on its own, in a paper, a court case, a standard or a database. ERPs keep balances in mutable tables. Small-business tools edit entries in place. Fintech ledgers stop at transfers. Audit tools start with “export the GL to CSV”. No shipping system has put these ideas together. FrankenAccounting does, in one Rust codebase.

Read the TL;DR

Hover an idea to see what it gives the books

From the registries
The ideas and their years, with where each shows up below. FrankenAccounting’s own additions are the composition itself: one commit pipeline, one graph, one verb registry and one proof format for all of them.

01The journal

There are no balance rows.

The journal is the database. An entry is an immutable set of balanced legs, written once through one commit path that enforces the balance law, the period law and segregation of duties. Registers, trial balances and statements are folds over the journal. They are never the source of truth, and fa verify registers recomputes them to prove they agree.

Folio, the only writer

Refusals that teach.

Write any entry and post it. The oracle runs the kernel’s checks: balance in every unit, leaf accounts only, each account’s unit policy, the period’s state, your capability, and one content per idempotency key. A refusal names the law it enforces and what to do instead. Nothing half-posts.

The refusal catalog

Edit the entry, then post it. Try to break it.

fa-referencefa-moneyInteractive

What the kernel returns

{ }

This session’s attempts

    Amounts are parsed by fa-money’s own Amount::parse: 1250.005 USD is refused with ExceedsScale rather than rounded, so the caller has to name a rounding law. The refusal’s text is the catalog row for its code, with the proposal’s values filled in. Every leg here sits in one legal entity; balancing per entity is a further check (FA-INV-01 per-entity).

    Registers are folds

    Balances are recomputed, not stored.

    Most ledgers keep a balance table beside the journal and trust the two to agree. Edit a stored balance on the left and see what notices. FrankenAccounting has no balance to edit. Each register is a fold over the journal at a coordinate, and verifying it means folding again and comparing.

    Registers in the plan

    Nudge a stored balance, then verify. Drag the date to refold.

    fa-referenceInteractive

    A stored balance table

    Each row is a number someone, or something, can change.

    Refold the journal and compare

    A fold of the journal

    The fold on the right comes from the oracle’s stock_known over the journal at the chosen effective date, as known now. In the product, fa verify registers and fa verify book refold every register from the journal and compare digests.

    Palimpsest

    Corrections are lineage, never edits.

    There is no edit verb: none of the 89 verbs in the registry changes a posted entry. A mistake stays in the journal. The correction is a new entry that points at it: an exact reversal, then the right entry. fa replace posts the pair atomically. The books can be read as originally posted or as currently stated, and both readings are first-class.

    Supersession in the plan

    Correct a miscoded laptop purchase, step by step

    fa-referenceInteractive

    Entry #7 booked a 1,250.00 laptop to Expenses. It belongs in Equipment.

    The oracle enforces the shapes: a reversal must be the exact side-swap of its target, each target is reversed once, and a Replacement posted alone is refused because it may only post paired with its Reversal in one batch. Here the right entry posts as an Original after the reversal. fa replace <vid> --reason … posts the Reversal and Replacement together, with SUPERSEDES lineage.

    02Time

    Two clocks on every entry.

    Every entry has an effective date, when it counts, and a recorded sequence, when the books learned it. Close, reopen and lock are journaled events, enforced when an entry commits. None of them is a flag. So the books can answer two questions most ledgers cannot: what was true on a day, and what was known about it on another.

    Bitemporal by construction

    What was known, and when.

    Effective time runs across: the day an amount counts. Knowledge time runs down: the order the books learned it. Each row is the whole ledger as it stood after one more entry. A backdated invoice or a late reversal changes the past from the row it was recorded on, and every row above it stays exactly as it was. Drag anywhere to ask what the books said about a day, at a moment.

    As known at, in the README

    Drag across the grid: pick a moment of knowledge and a day of effect

    fa-referenceInteractive

    as known at the rowas known nowrecorded on

    The books said…
    Known now…
    Changed since by…

    Every cell is the oracle’s stock_known(day, known_after(k)): the account’s balance through that effective day, folded from the first k entries in recorded order. The recorded dates are this story’s; in the product, recorded sequence is assigned at commit and instants resolve through retained time evidence. fa tb --as-known-at, fa explain balance --as-known-at and GQL’s AS KNOWN AT read the same two axes.

    Period law

    Close is a state machine, not a checkbox.

    A period moves Future → Open → SoftClosed → Closed → Locked, and back only by a reopen with its own op and approvals. What each state admits is a matrix of entry class by state, Appendix C of the plan. The oracle transcribes it by hand, independently of the 80-row registry it is checked against. Pick a state, a transition or a cell, and the oracle decides it live.

    The period law in the plan

    Click a state, a transition, or any cell of the matrix

    fa-referenceregistries/Interactive

    The oracle decides

    Choose a state, a transition, or a cell. Each choice walks a fresh book to that state and asks the oracle.

    • admitted
    • admitted with an op
    • refused
    Cells come from the matrix op: decide_disposition(class, state) for the standard disposition, and oracle_transition for the edges. Ops and approvals on the edges are period_states.toml. A click runs a plain post (or a transition) through the oracle on a book whose periods sit in each state, holding the cell’s op and approvals. Where the period law admits an entry and another law still refuses it, the figure says which. Some classes post only through their own verb: fa reclass, fa close, fa case post, or a migration run.

    Restatements

    Reported stays reported. Restated is new.

    January was closed and locked, and its statements went out. Six weeks later an invoice turns out to be 21,000.00 that should have been 12,000.00. Try the moves most ledgers allow. The oracle refuses each one that would quietly rewrite what was reported, and accepts the correction that leaves the report readable. Both readings stay one query away.

    Restatement cases in the README

    Try to fix a locked January. Then read the books both ways.

    fa-referenceInteractive

    12 March. A customer disputes invoice #2: it was 12,000.00, booked as 21,000.00. January is Locked.

    A material error: restate January itself CLI today

    # Open a case over the period, journal its determination, then dual control
    fa case open --kind Restatement --periods FY2026-P01 --narrative <memo-oid>
    fa case determine 1 --on 2026-03-12 --authority <minutes-oid>
    fa case rehearse · approve · post · disclose · close
    # Two Human approvers who share no session lineage; then both readings:
    fa tb --period FY2026-P01 --as-originally-reported
    fa tb --period FY2026-P01

    The browser’s oracle has no case object, so it refuses a Restatement outside one; in the product, too, a case-bound entry posts only through fa case post. That path runs in the CLI today. The dashed column above is the arithmetic of the case’s two legs, not a posting.

    Each move replays the whole book through the oracle and posts one more entry or transition. The readings are the grid op: revenue and receivables through 31 Jan as known at the Lock (AS ORIGINALLY REPORTED pins a period’s first statement issuance, else its first Lock, never its first Close), and as known now. In the CLI, the March entry names the period it corrects with --prior-period-error FY2026-P01, so the engagement’s rollover count sees it.

    03Exactness

    No float ever touches an amount.

    Amounts are 128-bit integers at the unit’s registered scale. Every rounding, allocation and conversion names one of 44 registered laws, and fa-money refuses to round without one. Posting rules compile only if they provably balance. Nothing has a tolerance, and nothing is balanced automatically.

    Allocation laws

    Every leftover cent has an address.

    Split 100.00 three ways and one cent is left over. Many systems round each line and let the total drift, or quietly add the difference to the last line. fa-money has six registered allocation laws. Each one conserves the total to the last minor unit, and each says where every leftover unit went. Change the total, the weights or the caps: every row below is fa-money’s answer, computed in this tab.

    The allocation law registry

    Edit the total and the targets. Watch where the leftover goes.

    fa-moneyInteractive
    TargetWeightValueCap

    The usual shortcut: round each line on its own

    unallocatedinventedconserved

    The six laws are fa-money’s largest_remainder, pro_rata_residual_to_named, waterfall, tiered, equal_split_residual_first and by_units_then_value. The per-line grid is each of the nine rounding laws applied to every share independently, which is the transcript pro_rata_residual_to_named keeps before it adds the signed residual to the named target; the page adds that residual to show the final row. Caps and totals are parsed by fa-money’s Amount::parse, which refuses digits beyond the unit’s scale. The float row is the browser’s own arithmetic, shown for contrast only.

    Rounding laws

    Nine ways to round. You name one.

    Convert 1,234.57 EUR to yen and the answer falls between two whole yen. Which yen you book is a policy, not an accident of the hardware. fa-money converts at an exact rational rate under a metered arithmetic budget, and refuses to round unless the caller names one of the nine registered laws. The independent oracle recomputes every row with its own arithmetic, and the page shows whether they agree.

    The rounding law registry

    Pick a conversion, or type your own amount and rate.

    fa-moneyfa-referenceInteractive
    Each row is Amount::convert in fa-money, using exact rational rates under a metered arithmetic budget. The oracle column is fa_reference::fx::round_convert, written separately for testing. The oracle checks magnitudes only, so it is blank for a negative amount. The exact quotient and its position between the two candidates are computed in the page with BigInt integers. The float row is the browser’s own arithmetic, shown for contrast only.

    Canon, the rule language

    Posting rules that must balance to compile.

    A Canon rule turns one recorded business event into legs. The compiler type-checks units and resolves every rounding law against the registry. It then proves, unit by unit, that the debit and credit expressions are equal as exact linear forms. If it cannot prove the rule balanced, the rule does not compile, and no residual leg is ever invented. This is the README’s sale_with_tax rule, compiled and run by fa-canon in this tab. Edit it.

    Canon in the plan

    Edit the rule or the sale. Try to make it lie.

    fa-canonfa-moneyInteractive

    The recorded event: a Sale

    What fa-canon returns

    fa_canon::compile parses, type-checks and proves the rule. fa_canon::evaluate derives the legs from a sealed Sale event with this tab’s amount. The authority block caps each output cell, independently of the caller’s capabilities. The IR digest is the rule’s content address: the same source always compiles to the same digest, and fa rule propose journals the rule under it. In the product, fa rule check, fa rule eval and fa rule derive run this same compiler and evaluator.

    04Proof

    Check the books on an air-gapped laptop.

    Every entry goes into a Merkle accumulator in commit order. The book signs checkpoints of it, and an evidence bundle carries inclusion proofs. fa-verify checks all of it with its own BLAKE3 and nothing else.

    The accumulator

    Every entry, committed to one root.

    The Notary appends each committed entry to a Merkle accumulator in commit order: the Certificate Transparency tree shape, with BLAKE3 and FrankenAccounting’s own domain separation. One 32-byte root commits to the whole journal, and the book signs checkpoints of it. An inclusion proof shows that one entry is under a root with a handful of hashes. A consistency proof shows that a later root only appended to an earlier one. Rewrite one old entry and every root above it changes.

    The Notary in the plan

    Append entries and publish a checkpoint. Then try to rewrite history.

    fa-verify::treeInteractive

    Inclusion proof · select an entry in the tree

    Published checkpoints · each checked against today’s log

      1. Entry leaf
      2. Path to the root
      3. Proof hashes
      4. Changed since the checkpoint
      Every hash comes from fa-verify’s own tree module (leaf_hash, root_of, inclusion and RFC 6962 consistency proofs, consistent) compiled to WebAssembly. Here a leaf hashes one line of text; in a book it hashes the canonical envelope of a committed entry, and a published checkpoint carries the book’s Ed25519 signature, which this figure leaves out. Checkpoints cosigned by an external witness quorum are target work (fa-qtfd).

      fa-verify, in this tab

      A verifier that trusts nothing but its own code.

      fa-verify is a standalone binary with no dependencies beyond Rust’s standard library: its own BLAKE3, SHA-512 and Ed25519 in 133,904 lines of Rust, its unit tests included. Below, the unchanged binary compiled to WebAssembly checks a real evidence bundle built from the State of Oklahoma’s published general ledger. The files stay in this tab: nothing is uploaded and no server is asked.

      Reproduce it from the README

      Run the real verifier. Then flip one bit and run it again.

      fa-verifyInteractive

      report.fab273,822 bytes

      The report bundle: 194 canonical records and 12 native inputs, enough to recompute the report

      SHA-256 e26022acf9779eb0…

      checkpoint.bin288 bytes

      The book’s signed checkpoint: a tree head over the journal accumulator

      SHA-256 aaf4337a8ad680ec…

      report.receipt219 bytes

      The signed production receipt that binds this bundle to its producer

      SHA-256 65c60603a9c0aa2e…

      $ fa-verify report /data/report.fab --key c1b4180137fe…23c13c --checkpoint /data/checkpoint.bin --receipt /data/report.receipt --expect 538f44d7cf22…567044 --json

      Verdict

      Not run yet

      Select a check to see what it recomputed.

      Tamper with one input

      Source
      State of Oklahoma, Office of Management and Enterprise Services: 1,055 published FY2024 Q4 rows for agency 66000 (S. E. OKLA. ST. UNIV.), imported as 1,051 monetary legs in 27 entries. The report selects FY2024-P12, department 1000001. Catalog · CC BY
      Accounting
      Monthly chartfield activity aggregates with no opening stock; this is not a reconstruction of original transaction-level journals or an audited financial statement.
      Key
      Caller-trusted public key of a fresh local test book; no external identity authentication.
      Build
      These binaries predate the later FWC/CAMT fixes. This example verifies the f3f1 engine's real source-bound report; it does not assert a full-tree or hosted-job pass. Hosted workflow conclusion, kept as recorded: “failure: one object test failed; artifact build and stock workloads succeeded”.
      The three files are the gzip files in examples/public_ledger/university_source_bound, decompressed here and checked against the manifest’s SHA-256 before use. The arguments are the example’s documented command. The verifier stops at the first failing check and exits 8. Its own run is a few tens of milliseconds; the grid replays its checks in order so they can be read.

      Same inputs, same bytes

      Run it twice. Get the same books.

      A certified report in FrankenAccounting can be re-executed with fa replay, which reproduces its rows byte for byte. The labeled scenario books that calibrate the forensic procedures follow the same rule: a scenario, a seed and a scale fix every entry, party and planted anomaly, and one BLAKE3 corpus digest covers all of it. Each side below starts a fresh copy of the engine. Same inputs give the same 64 hex digits, and a native build of the generator prints the same digits again. Change one input and the digest changes.

      Replay in the README

      Generate the same book on two engines. Then change one input.

      fa-genInteractive

      Engine A · a fresh instance

      Engine B · another fresh instance

      1. An entry, by date, its height the log of its amount
      2. An entry behind a planted anomaly
      3. A digest digit that differs from the other engine

      The same corpus from the repository’s test generator, natively

      fa-gen book --scenario ponzi --seed 7 --scale 1 --json

      Both sides run fa-gen’s generate inside fa-web.wasm; each run instantiates the module from scratch, so nothing is shared between them but the inputs. The digest covers the chart, parties, entries, legs, dates and the planted-fact labels. fa-gen’s tests assert that each scenario at seed 7 is identical run to run and that seed 8 differs. The native digests are recorded from a release build of fa-gen on macOS arm64 for all seven scenarios at seeds 7 and 8 and every scale, 56 in all; each equals the one this tab computes.

      05Forensics

      A finding is never an accusation.

      Lantern runs forensic procedures over the same journal the books are kept in, with no export to a spreadsheet first. Each procedure is a deterministic computation that cites its entries and carries a typed evidence class: a reproducible observation for a professional to weigh, never a verdict. A forensic accountant preparing for trial, an inspector general reviewing a grantee and an auditor testing journal entries get the same answer from the same coordinate, and each can replay it.

      Planted-truth casebook

      Plant a fraud. See what fires.

      fa-gen writes a synthetic book from a seed with known schemes planted in it, and labels exactly which entries carry them. Pick a scheme and a seed. Your browser generates the book and runs thirteen Lantern procedures over it, using the reference implementations the production procedures are tested against. Every flag names the procedure that raised it and the entries it cites. The answer key stays closed until you open it.

      The calibration record

      Choose a scheme and a seed, then hover the entries

      fa-genfa-referenceInteractive

      Generating…

      Tap a column to read its entry.

      On fa-gen’s corpora every planted fact is flagged and nothing else fires; the calibration record measures that over seeds 1 to 30 of every scheme. It holds by the generator’s construction: its background avoids every planted pattern, so this shows recall on planted patterns, not a false-positive rate on real books, as lantern_calibration.toml itself says. Benford’s test claims no conformity score below 500 eligible legs, and these books are smaller. In the product, fa jet and fa benford run whole families, fa procedure run <id> runs one at a recorded coordinate, fa finding record keeps the run as an immutable numbered workpaper that humans review, export and replay, and fa triage and fa next put open findings in an agent’s queue.

      Four tracing laws

      One bank statement, four lawful answers.

      Stolen money goes into an account with other money, and then money goes out. How much of what is left belongs to the victim? The law has several answers, each a presumption about which dollars left first. Edit the account’s history and the oracle traces the claimant’s deposit under all four registered laws at once. Each answer is exact and cites its authority, so the experts on each side can argue about which law applies, not about the arithmetic.

      The tracing laws

      Edit the movements, move the claim date, pick whose deposit is traced

      fa-referencefa-moneyInteractive

        Same-day order

        Traced by fa-reference’s Lantern tracing oracle, the independent check on the production trace.* procedures; amounts go through fa-money’s parser. Lines show each law’s traceable amount as of every movement, recomputed by the oracle at each date. Which law governs is a legal question for the court, not the software. In the product, fa trace libr --account 1000 --source <entry vid> --effective-through 2026-06-30 runs one law, the trace.network_* procedures follow money across accounts, and fa production open and fa exhibit mark number what is produced to the other side.

        Every procedure

        71 procedures, every one registered.

        Each Lantern procedure is a row in registries/procedures.toml: its version, the kind of claim it makes, its evidence class, its cost and whether it has been calibrated. Twelve are measured against fa-gen’s labelled corpora, and the other 59 say “uncalibrated” in so many words. Eighteen of them run on this page.

        The procedure registry

        Filter the registry, then hover a procedure

        registries/From the registries

        Graph patterns16

        Journal-entry tests13

        Fund tracing9

        Reconciliation5

        Number tests4

        Digit tests3

        Duplicates3

        Aging2

        Distributions2

        Lookback2

        Solvency2

        Completeness1

        Confirmations1

        Cutoff1

        Damages1

        Events1

        Expenses1

        Parties1

        Payroll1

        Ponzi1

        Reversals1

        Calibrated on fa-gen corporaUncalibratedInvariant claimRuns on this page

        Calibrated means measured over seeds 1 to 30 of all seven fa-gen scenarios (210 synthetic books) at registered defaults, with precision and recall as 95% Wilson intervals in exact integers. Those rates describe the patterns fa-gen plants, not any real book. A statistical claim is a score or a threshold test. An invariant claim is an exact reconciliation, such as an attested balance refolded from the journal. Neither says why a pattern is there: that is the examiner’s work.

        06The world

        Hundreds of subsidiaries. One close.

        Legal entities, currencies, ownership and intercompany pairs are part of the ledger’s graph, not a spreadsheet beside it. The exact laws that post one invoice also translate a subsidiary and work out who owns what on any date. The same books then serve the controller who closes them, the auditor and the examiner who check them, and the investigator who takes them apart.

        Groups, currencies, ownership

        Who owns what, on any date.

        A group is a graph: legal entities, dated OWNS edges with exact fractions, and books kept in their own functional currencies. Slide the date and the oracle recomputes effective ownership through every path. Post into a three-entity book and each entity has to balance by itself. Translate a foreign subsidiary and the cumulative translation adjustment comes out exact to the cent, at whatever closing rate you choose.

        Consolidation in the plan

        Slide the date, pick a subsidiary, drag its closing rate

        fa-referenceInteractive

        Effective ownership from Franken Group Inc.

        Products along each path, summed over every path, as exact fractions by the oracle’s naive_effective_ownership_as_of. The outside share is the part held outside the group: the non-controlling interest.

        One book, three legal entities

        Runs today

        Franken Group Inc. and its two U.S. subsidiaries share one book in USD. Every leg names its entity, and each entity must balance on its own. March, folded by entity:

        Post into this book

        Each button sends one more entry through the oracle after March’s six.

        Translate a subsidiary

        Reference oracleCross-book workflow · fa-76hy
        Rates and balances are illustrative. Today a book has one functional currency: every legal entity in it shares the book’s base unit, and creating one that does not is refused (FA-REF-003), so a euro subsidiary keeps its own book. fa consolidate consolidates one multi-entity book today, with eliminations and the non-controlling interest. Translating separate books and consolidating them with a CTA is target work (fa-76hy); the translation here is the oracle’s current-rate reference (ASC 830-30, IAS 21.39), which the product will be tested against.

        Who it is for

        One ledger, every seat at the table.

        The people who keep the books, the people who check them and the people who take them apart all work from the same journal. What differs is the capability. Each of the 10 profiles has a ceiling of operations, issued and revoked in the journal itself; external profiles never post, and the Agent profile never approves.

        Who it is for, in the README

        Pick a seat: what it can do, the verbs it uses, the question it can now answer

        registries/From the registries
        Persona · profilereadpostpost softclosedpost closedapprovereconcileclosereopenrestatemigrateschema changerule changeissue capabilitywitnessverifyproduceholderaseprivilegedreceivershippartial viewmaintainops
        Group controllerController20
        External auditorAuditor · external5
        Bank examinerRegulator · external4
        Government auditorRegulator · external4
        Forensic accountantInvestigator · external6
        Capital-projects accountantPreparer8
        AI agentAgent6

        Closes a multinational group across entities, currencies and calendars

        Group controller

        “Is every period closed, rehearsed and explained, and what did the books say on close day?”
        • A close run rehearsed with fa close dry-run --certify before anything posts, then executed under segregation of duties
        • One multi-entity book consolidated with fa consolidate: eliminations from OWNS edges and account roles, plus the non-controlling interest
        • FX revaluation under named rounding laws, and restatements as approved cases with an as-reported versus as-restated diff

        Multi-entity books and fa consolidateCross-book translation and CTA (fa-76hy)

        Profile

        Controller

        Accounting controller: period close and reopen, restatement cases, chart/rule governance, and capability issuance under SoD.

        CLI verbs

        • fa closew
        • fa periodw
        • fa consolidate
        • fa fxw
        • fa casew
        • fa tbw
        • fa explainw

        MCP clusters · tools

        • fa.close6
        • fa.time4
        • fa.fx3
        • fa.read7

        On this page

        Ownership and translationPeriod statesRestatement

        Profiles, operations, verbs and MCP clusters are read from registries/capability_caveats.toml and registries/verbs.toml when the page is built, and the build fails if a persona names one that does not exist. A red mark over an operation means the Agent profile can never hold it. A profile is a ceiling: each grant is narrower, scoped and journaled.

        Real public records

        Tested on real records, not toy books.

        Bankruptcy exhibits, a state general-ledger publication, government spending releases and a university department’s ledger have run through the native engine end to end, with pinned sources, exact controls and independent verification. Each tile says what ran and what it does not establish.

        Real-data runs in the README

        What ran on real data, and what each result does not claim

        READMEfa-reference

        Ran natively These are published records: bankruptcy exhibits, a state general-ledger publication, government spending releases. They are aggregates and extracts, not anyone’s original double-entry ledger. The books built from them use declared analysis accounts, are signed with test keys, and establish no audit opinion and no fraud finding.

        Glantz, Square One, Magnify filings

        3,793dated observations

        BLMIS bankruptcy exhibits

        Account 1ZA192, folded by the oracle in this page

        13 account tables from three original filings: 2,298 entries and 4,596 balanced legs, every source line cited to its page. The native net-investment procedure reproduces the exhibit’s printed closing principal for account 1ZA192, −⁠$9,947,031.

        Notthe firm’s general ledger, or a legal determination about any transfer

        State of Oklahoma publication

        373,357rows profiled

        Oklahoma OMES general ledger, FY2024 Q4

        1. 373,357rows in the publication, all profiled
        2. 1,317rows of three complete agencies replayed
        3. 1,303exact monetary legs in 48 entries

        Every monthly, cumulative and gross account cell reconciled; ADS exports with independently verified proofs; a one-cent tamper refused.

        Nottransaction-level journals: the publication is monthly activity with no opening balances

        House CAO office population

        3,855original transactions

        U.S. House disbursements, Apr–Jun 2026

        1. 3,855original transactions
        2. 352journals
        3. 7,710legs
        4. 174publisher controls, all reconciled

        All 174 category, program and office controls reconciled before any write; 118 native calls; a balanced one-cent alteration refused against the publisher’s controls.

        Notbank balances, historical approvals or audited statements

        UK government release

        2,860postings agreed

        HMRC spending, March 2025

        FrankenAccounting2,860 postings
        Beancount2,860 postings
        hledger2,860 postings

        135 account and currency cells agree on gross debits, gross credits, net balances and posting counts.

        1,430 source rows became 127 entries and 2,860 legs, keeping all 42 expense areas and 160 suppliers. 601 independent verification checks passed; the external tools ran on untouched exports.

        Nota complete ledger: spending extracts with a declared Equity offset

        UK government release

        13,099original records

        DWP spending, January 2025

        1. 13,099original records
        2. 1,091migration entries
        3. 25,930monetary legs

        The source-bound run bound all 25,930 import rows before staging, then passed 29 checks in 168 native calls. The source controls account for all 283 negative and 134 zero-value rows.

        Notoriginal double-entry books, or evidence of wrongdoing

        Oklahoma public-ledger fixture

        91verifier checks

        A university department’s report

        A real signed checkpoint, report bundle and receipt in 85,694 compressed bytes. Its decompressed files pass every verifier check with neither the native book nor a private key. The verifier chapter runs them in this page.

        Nota full-tree or hosted-job pass, or an audited financial statement

        Counts are from the README and the retained execution records it links, at the commit this page was built from. The BLMIS waterfall posts the exhibit’s four printed footer totals as summary entries and folds them in this page; the native run replays all 75 dated rows of that account. Hosted CI jobs that covered some of these workloads did not pass as a whole; their separate fixture failures are recorded beside the results.

        07Agents

        Agents propose. People approve.

        AI agents are first-class operators. They get typed intents, dry-run plans, refusals with exact fixes and drafts to work in. An Agent capability cannot write trunk, approve, close, reopen or restate, so nothing an agent proposes reaches the books until a person who is not the agent promotes it.

        An agent session

        The agent drafts. A person promotes.

        A controller issues agent-7 a token for read, post and verify. The agent surveys the book, rehearses an accrual, and finds trunk closed to it. It works in a draft, which refuses the part it may not do, then waits. A controller promotes the draft; a second person approves the closed-period fix. Every refusal on the way names its law and its fix.

        MCP launch authority in the README

        Press play, or step through it

        READMEfa-referenceInteractive
        ./books/acme · robot mode (--json)ready
          agent-7Agent token
          Draft fix-03not trunk
          Peopletwo humans
          Trunkthe journal
            The commands and flags come from registries/verbs.toml, and the refusal text is the catalog row for each code. The answers are abridged. Answers marked oracle are computed in this tab by fa-reference over the page’s small book, the one chapter 01 uses: the rehearsals, the capability and approval refusals, and both postings. The trunk refusals FA-REF-013 come from the kernel’s Agent rule in fa-policy, which the oracle does not model, so they are shown as documented.

            Capability profiles

            Ten profiles, twenty-two operations, one ceiling each.

            Every principal acts under a capability whose operations sit inside its profile’s ceiling. The Agent ceiling is 6 operations, and 10 operations are agent_forbidden: no Agent capability can hold them, whoever issues it. External profiles (auditor, regulator, investigator, receiver, production, witness) are scoped, logged and expire. Pick a profile and try what it can do.

            capability_caveats.toml

            Pick a profile, then read down its column of verdicts

            registries/fa-referenceInteractive
            Profile · opreadpostpost_softclosedpost_closedapprovereconcileclosereopenrestatemigrateschema_changerule_changeissue_capabilitywitnessverifyproduceholderaseprivilegedreceivershippartial_viewmaintainops
            6
            8
            9
            20
            5
            4
            6
            18
            3
            3
            • Within the profile’s ceiling
            • An agent_forbidden operation
            • Never in an Agent capability
            The matrix is the registry’s [[profile]] ceilings over its [[op]] vocabulary, in tag order. A verdict for an operation outside the ceiling is the catalog’s FA-REF-011 with that operation filled in. The three posting rows run through fa-reference with the profile’s ceiling as its operations: the period law, the operation each period state needs, and the approvals an Adjusting entry in a Closed period needs. The Agent’s trunk refusal, FA-REF-013, comes from the kernel’s Agent rule.

            One registry, three surfaces

            The CLI, the MCP server and the library say the same thing.

            An agent can embed the fa library, drive the fa CLI in robot mode, or call fa-mcp. All three come from one verb registry, so a tool’s name, flags, refusals and exit codes cannot drift apart. Each stdout line is one JSON envelope, and its next_actions names what to run next. MCP sessions start with six clusters and load the rest on demand, so 135 tools do not crowd an agent’s context.

            The agent surface in the README

            Search the surface, or hover a cluster

            registries/From the registries
            Registry1 fileregistries/verbs.toml: CLI help, robot docs and MCP schemas are generated from it
            CLI verbs8961 can write; every one speaks --json
            MCP tools135in 34 clusters; 6 load at launch, the rest with --cluster
            Libraryfathe same Book API both surfaces call
            • Loaded at launch
            • On demand (--cluster)

            One line of robot mode, as recorded

              Clusters and tools are read from registries/verbs.toml when this page is built. The envelope is a real migration_controlled line, recorded by a public-ledger recovery run and checked in at evidence/public_ledger/source-bound-recovery-2026-11-03/health-after-finalize-public-receipts.json.

              08The engine

              Memory-safe all the way down.

              Thirty-one Rust crates, 1.15 million lines, with unsafe_code = "forbid" across the workspace and no unsafe islands. It builds on std and Franken-suite projects pinned to exact revisions, with a pinned nightly toolchain. The kernels are tested against an independent oracle, and sixteen invariants are written down clause by clause, each live clause naming the tests that check it.

              Architecture

              Small crates, one direction.

              Foundations at the bottom: civil time, the registries, exact money. Above them the durable model, Folio the posting kernel, the registers, the Notary accumulator and Lantern’s forensics, then the fa library and its surfaces: the CLI, the daemon and the MCP server. fa-verify (148,794 lines) depends on nothing but std, and fa-reference, the oracle, builds on fa-time and fa-registry alone, never on the kernels it checks.

              Design philosophy in the README

              Hover a crate to trace what it builds on and what builds on it

              Interactive
              Crates31147 internal dependency edges
              Lines of Rust1,152,438tests included
              Tests7,433#[test] functions
              Unsafe0unsafe_code = "forbid" in every crate
              Outside the workspace6Franken-suite projects at exact revisions, and std
              Read from crates/*/Cargo.toml and the Rust sources when this page was built. Rows are dependency depth; edges are path dependencies. External dependencies are grouped by project: FrankenGraphDB (the storage substrate), asupersync, frankensympy, franken_networkx, fastmcp_rust and franken_markdown, each pinned at one revision in the workspace manifest.

              Sixteen invariants

              83 clauses, each with its evidence.

              The invariants are a registry, not a promise. Each splits into clauses; a live clause names the tests that check it and the negative fixtures that must fail, and a dormant clause names the bead that will activate it. 72 of 83 are live, with 159 checker and 144 negative-fixture references. No clause may be waived.

              invariants.toml

              Select a clause to see its statement and the tests behind it

              registries/From the registries

              01Balance law

              9/10

              02Append-only

              4/4

              03Period law

              5/5

              04Registers are folds

              6/6

              05Evidence closure

              7/8

              06Exactness

              1/2

              07Bitemporal visibility

              6/6

              08Supersession lineage

              7/7

              09Idempotent intents

              1/2

              10Authorization before observation; duties segregated

              6/9

              11Determinism and replay

              2/3

              12Subledger–control reconciliation

              2/2

              13Cross-book and consolidation conservation

              1/2

              14Tamper evidence and accumulator continuity

              8/9

              15Two-phase and limits

              5/6

              16Projections equal payloads

              2/2
              • Differential against the oracle
              • Negative fixture
              • Unit
              • Exhaustive
              • Model or property
              • Dormant: a bead activates it
              Checker strengths on live clauses: differential, negative_fixture, exhaustive, model, property, unit. “Differential” compares the kernel with the fa-reference oracle over generated histories. A clause’s first gate (G1 to G3) is when the project’s gate scoreboard first requires it.

              How it compares

              Where it sits, by category.

              Every hard part has a mature answer somewhere. The difference is having them in one system of record. This compares categories, not products, using the README’s own claims; individual products vary, and a category column describes what is typical. FrankenAccounting is in development, and the status line below is its own.

              How it compares, in the README

              Select a row to see where its claim comes from

              Status at 46e48c36102d (2026-11-23): RED · SLOs unmeasured · no performance claims

              FrankenAccountingERP general ledgersSmall-business bookkeepingFintech ledger databases and APIsAudit and forensic analytics
              Balances✓Folds of the journal, recomputed by fa verify registers✗Mutable balance tables beside an immutable posted journal✗Stored and edited with the entries◐Balance fields per account, updated by each transfer—Computed from an exported extract
              README TL;DR: ERP general ledgers “keep posted journals immutable but store balances in mutable summary tables”; fintech ledgers “stop at balances and transactions”; audit tooling “begins with export the GL to CSV”.
              Corrections✓Reversal and one-step Replace with SUPERSEDES lineage; no edit verb◐Reversals are re-keyed; the trail sits in a separate change-document table✗Entries edited in place◐Immutable transfers; no entry-level lineage—Not the system of record
              README TL;DR: ERPs “re-key reversals, and keep the audit trail in a separate change-document table”; small-business tools “edit entries in place”.
              Periods, close and lock✓Journaled control entries, enforced at commit with approvals◐Period flags◐A closing-date lock, typically✗No periods—Read from the extract
              README TL;DR and How it compares: ERP periods are flags; a two-leg balance engine has “no periods, no close, no restatements”.
              The books as known at a past moment✓Bitemporal by construction: --as-known-at, AS ORIGINALLY REPORTED✗No “as known at” selector✗Today’s state only✗Not modelled◐Only if the export was kept
              README TL;DR: ERPs keep the trail “with no ‘as known at’ selector”; FrankenAccounting has --as-known-at and AS ORIGINALLY REPORTED on tb, statements and explain balance today.
              Evidence behind each entry✓Documents, attestations and evidence minimums per class; rule versions are target (fa-c34)◐Attachments◐Attachments✗Metadata fields◐Sampled and requested separately
              README How it compares: ERP evidence is “attachments”; fintech ledgers have none. The evidence closure is partly target: posting-rule versions (fa-c34).
              Proofs an outsider can check offline✓Signed checkpoints, .fab bundles and the std-only fa-verify; witness quorums are target (fa-qtfd)✗Vendor attestations✗None✗None✗Workpapers, not proofs
              README TL;DR, Proofs: available now; an external witness quorum is target.
              Forensic procedures over the live books✓Registered, certified procedures in the database (fa procedure run)✗Export first✗Export first✗Export first✓Their purpose, run on an export
              README TL;DR: “audit and forensic tooling begins with export the GL to CSV”; FrankenAccounting’s procedures run via fa procedure run today.
              Exact arithmetic✓i128 mantissas; every rounding names a registered law✓Decimal columns◐Decimal, with display rounding✓Integers◐Whatever the export carried
              README How it compares: ERP decimal columns, fintech decimal or integer, TigerBeetle u128. FrankenAccounting adds named laws for every rounding, allocation and FX conversion.
              Built for AI agents✓Robot-mode CLI and MCP from one registry; drafts; refusals with fixes✗Not designed for it✗Not designed for it◐REST, GraphQL or client libraries✗Not designed for it
              README How it compares: “Agent-native surface: CLI robot mode + MCP”; fintech ledger APIs offer REST/GraphQL; ERPs none.
              Who holds the books✓You do: a directory on your machine◐Vendor or on-premises◐Usually the vendor’s cloud◐Often the vendor’s SaaS—A copy
              README How it compares: system-of-record custody.

              What it is not: an ERP, a payments processor, a UI, a tax engine or GAAP interpreter, a blockchain, or a SaaS. Judgment (materiality, treatment, recognition) belongs to professionals; the system makes every mechanical fact exact and every judgment attributable.

              FrankenAccounting’s column keeps to what the README marks available now; where part of a row is still target work, the cell names its bead. The README’s own table also names products and gives the full design target; this page keeps to categories and to today. The dots under each heading are that column’s marks, row by row, not a score.

              Open source, built in the open

              Read the plan. Run the verifier.

              The complete design is public: every subsystem, the sixteen invariants, the admissibility matrix, the CLI and MCP contract and the dependency ledger. The README separates what runs today from the target, and the project records its own failures, 98 entries so far, in a public negative-evidence log. Status at 46e48c36102d (2026-11-23): RED

              # From source, with the pinned nightly toolchain
              git clone https://github.com/Dicklesworthstone/franken_accounting
              cd franken_accounting && cargo build --release
              # A deterministic demo book with planted anomalies, then an agent's first two calls
              fa demo init --scenario ponzi --seed 7 --book ./books/ponzi --json
              fa triage --book ./books/ponzi --json
              fa next --book ./books/ponzi --json

              135 MCP tools and 89 CLI verbs share one registry. Exact commands and their output are in the README’s Try it today.