Skip to content
Maxwell CollinsContact

Receipts, cited answers about an inherited software estate

An AI assistant for one manager running a twelve-year-old software estate, answering questions about its code and tickets.

What it achieved

A manager left alone with 12-year-old software gets answers proven to the line of code, or "can't tell".

The short version

A manager left alone with a twelve-year-old software estate gets every answer about it proven to a file and line of code, or a plain "can't tell", never a guess. Maxwell built Receipts, an AI assistant for that one project manager, so the AI cannot state anything it cannot prove. Every claim is a typed citation that a checker with no AI in it re-checks against frozen evidence. A claim that fails is deleted and never shown, and what passes goes on a record that cannot be changed. It reads the ticket system and eight code repositories without writing to them, and drafts the specification each ticket is missing. It gives him eight capabilities, from a daily view of what changed to a map of risky code and his own metrics. Its core ran on the estate's real data two days after building began.

The problem

None of the estate's 5,966 tickets says what "done" means. The people who held the intent behind the work had left, and one manager had inherited 505 open tickets. "Is this ticket done?" couldn't be answered by anyone. "What does the code do?" could.

In use

  1. The manager asks about a ticket.
  2. Receipts reads the ticket system and the eight code repositories, read-only.
  3. It answers what the code does, with a citation to the file and line, and drafts the missing specification for the ticket.
  4. Any answer it can't prove is replaced with "can't tell".
  5. He carries the file and line to the developer, with the message already drafted.

What it achieved

  • The reading is done for him: it works through the estate's 5,966 tickets and eight code repositories, and hands him the exact file and line to take to his developer, with the message drafted.
  • He can act on an answer without checking it: a claim the checker cannot prove is deleted before he sees it, so the AI cannot hand him a confident wrong answer.
  • Its core ran on the estate's real data two days after building began (53 commits and 396 tests).
  • Its figures match reality exactly: the checker recomputed the 505 open tickets from the real export of 5,966 and confirmed a file-and-line citation against a real repository.
  • Every phase was attacked before it closed: twelve fresh reviews tried to forge a "verified" answer and to leak a private key, and each finding was closed inside its phase and kept as a permanent test.
  • Its rule that the AI never computes a number on screen went on to govern the project page built for the same estate.

The full record

On this page
In one sentence

Maxwell built Receipts, an AI assistant for one project manager running a twelve-year software estate alone, in which the AI cannot state anything it cannot prove: 12,956 lines of application code in 92 files (counting the scripts, the migration and the test fixtures), 7,084 lines of tests in 44 files (332 test cases, 396 run in the full suite), a database of 8 tables guarded by 12 triggers, and 8,999 lines of written specification across 25 documents (110,943 words), all produced by directing AI agents; every claim is a typed citation that a verifier with no AI in it re-checks against frozen evidence, a claim that fails is deleted and never shown, what passes is added to a record that cannot be changed, and nowhere in the system is there a place to store a grade. In two days he built its spine on the estate's real data, 53 commits and 18,714 lines of TypeScript (33,739 lines inserted), under twelve fresh reviews that attacked it for forged citations and leaked keys, each finding closed before its phase did.

lines of code
12,956
tests in the full suite
396
tickets of history
5,966
days to its spine
2

What it does

Maxwell builds software by directing AI agents, the way a general contractor builds a house through subcontractors. Everything below is his: the specification, the design rules, the code, the tests and the reviews.

The whole system, measured from the repository. 12,956 lines of application code in 92 files (TypeScript, Node scripts and SQL, tests excluded, the contract fixtures and the fixture builders included); 7,084 lines of tests in 44 files with 332 test cases, which run as 396 tests in the full suite; 916 lines of contract and fixture data in JSON and CSV; 9 packages; 1 database migration of 287 lines that makes 8 tables, 12 triggers and 10 indexes; 6 platform check scripts plus a generator check (643 lines); 25 Markdown documents of 8,999 lines and 110,943 words, plus a 254-line HTML playbook; 53 commits across the two days, 33,739 lines inserted.

The package map. Nine packages, each with one job:

  • @receipts/receipts, the spine (3,654 lines). The citation and entry types, the verifier, the chained store, the footer, trust levels, snapshots and the secret-shape guard. Detailed below.
  • @receipts/model (4,247 lines). Everything that reads the estate: six ingest adapters, nine model-free probes, the secret-literal guard and the cross-source reconcile.
  • @receipts/metrics (460 lines). The metric engine: a declarative predicate language and a registry of named queries that the verifier can re-run.
  • @receipts/projections (241 lines). Read-time views folded from the record, starting with the per-source freshness and coverage view.
  • @receipts/doctor (3,001 lines). The acceptance oracle and its gates, with its own test harness and the override mechanism.
  • @receipts/mcp (136 lines). The local read-only tool layer Claude Code calls, with the client for the existing code-graph servers.
  • @receipts/skills, @receipts/ops and @receipts/dashboard. The seams for the capability skills (with their shared closed-schema door), the operations layer and the static dashboard.

The citation spine (packages/receipts).

  • Citation and VerifiedCitation. Exactly five kinds of citation exist: file_line (a file, a commit, a line span and the quoted text), commit (a repository and a SHA), ticket (a ticket key with an optional quote), metric (a named metric, a recipe, a count-or-ratio, a value, a tolerance and the snapshot it was computed on) and absence (a symbol present at one commit and gone at another, gated by how much of the code the graph covers). There is no free-text "reason" field: a citation is evidence a machine can resolve, never an interpretation. Branded types stop a commit hash, a ticket key, a metric id and a content digest from being swapped for one another.
  • Exactly 9 kinds of record entry. change_review, finding, metric_snapshot, ticket_insight, translation_answer, narrative, run_opened, run_closed and discarded_proposal. Each has its own payload type, none carries a verdict field, and the code fails to compile if either the five or the nine becomes any other number.
  • The verifier (verify.ts and five kind checks, 90 to 142 lines each). verify is total: it always returns a verified citation or a rejection, and no error escapes. It parses the shape, looks up the check for the kind, runs it with every error caught, logs a rejection to the discard sink, and on success makes the one cast to the verified type, the only one in the codebase. It runs without any estate access, only the frozen snapshot, and its clock is passed in so a result can be reproduced. The file_line check normalises line endings and a leading byte-order mark, then confirms the quote is in the cited span and belongs to that file; the ticket check confirms the key resolves in that ticket system's frozen body and, if a quote is given, that it is in the text; the commit check confirms the repository and SHA in that repository's frozen snapshot; the metric check re-runs the registered query, exactly for a count and within a declared tolerance for a ratio, and refuses a recipe whose declared kind differs from the citation's; the absence check proves present-then-gone and refuses when code-graph coverage is too low to say.
  • Trust levels L0 to L4 and the confidence ladder. A deterministic table (stampTrust) stamps each receipt from how it was matched: relative ranks, never a percentage. L0, "we have nothing", is never stored.
  • The Footer. One validator (FooterSchema) for the envelope every AI answer ends in: what was tested, what was not, whether a claim was made, and a status from a closed list. It enforces three cross-field rules, among them that a claim needs at least one citation and that cant_tell makes no claim. too_vague_to_assess is allowed beside cited facts because it states what shipped while declining a completion verdict.
  • The triple-locked append-only store. Entry, citation, source snapshot, attestation, discarded citation and metric series are tables with a trigger that refuses any update or delete (12 triggers in all); the types offer no mutation path; and chain.ts hashes each entry over a canonical form (RFC 8785) joined to the hash of the one before it, starting from a fixed genesis hash, so verifyChain can recompute the whole ledger from its first entry. The connection is set to write-ahead logging with full synchronous durability, and out-of-database files are replaced atomically through a same-folder temporary file so a crash never lands half a file, with no shell command involved. The store sits at the user's own Windows profile folder, never a hard-coded path.
  • The discard-and-log vertical (loop.ts). The deterministic half of the loop: every raw citation of a proposal is verified; if all pass, an attestation is minted and the entry appended; if any fails, the whole proposal is recorded as a discarded proposal with a row per failed citation, and each rejection is written to a local log with secrets removed. A proposal with one rejected citation is discarded whole, never partly shown.
  • The secret-shape guard. A single list of secret shapes (the estate's five documented shapes plus GitHub tokens, Slack tokens, AWS temporary keys and Stripe restricted keys, and whole private-key blocks) used both to detect and to redact, and to reject any record that carries one, in a value or in a key.
  • The $schema strip. One shared path that removes a key which makes Claude Code's structured output silently produce nothing, used by every skill that hands Claude a constrained schema.
  • The database. migrations/001_init.sql (287 lines): entry, citation, source_snapshot, attestation, discarded_citation, metric_series_point, ops_state and the migration ledger, with checks on the lists derived from the one authored vocabulary.
  • Two-axis rejection vocabulary. A failed citation carries one of 22 named reasons (for example file_line.attribution_mismatch, metric.ratio_out_of_epsilon, absence.coverage_insufficient, verifier.broken), and a total projection maps each to one of 12 coarse failure reasons, the only value stored. The projection is a record type, so the code fails to compile if a reason is added without its mapping. Each confirmation also records how the quote matched (verbatim or normalised).
  • Closed payload schemas for all nine entry types. Every payload is checked against a strict schema before insert, so a key outside the specified shape, a smuggled verdict, grade or score key above all, is refused at parse, inside nested citations too (payload-schemas.ts, 269 lines).
  • The read-back path is a mint path, so it is guarded. rehydrateVerified rebuilds a verified citation from the store and routes through the same single mint; it throws rather than fill in a missing snapshot digest or time (fail closed), and carries a structural backstop.
  • The migration runner (migrate.ts). Numbered SQL files applied once each, in order, inside a transaction with foreign keys off and a foreign-key check before commit, rolled back and aborted on any error, with a checksum taken over line-ending-normalised text so a Windows checkout and a Mac checkout of one migration agree. Entry identifiers are nonce-based (prefix, date, random hex).

Read-only ingest (packages/model/ingest, 2,732 lines). Six adapters, none of which writes to the estate:

  • The ticket system, by its web interface (jira.ts, 791 lines). A canonical normaliser that reshapes a raw issue into one frozen, content-fingerprinted snapshot, stored as key-sorted pair arrays because a map cannot be serialised canonically. The live reader is a drop-in for when a read-only token is issued.
  • The ticket export, as a file (jira-csv.ts, 466 lines). A hand-written RFC 4180 reader with no new dependency, streaming and memory-bounded, that reshapes each row into the same raw issue so the normaliser, fingerprint and verifier are untouched. It dates each row in the estate's time zone, DST-correct, and reproduces the estate's real ground truth exactly: 5,966 issues, 505 open, 0 with acceptance criteria, the same fingerprint on every run.
  • The eight repositories (git.ts, 373 lines). Read-only history, tested against real git.
  • The pull requests (github-pr.ts, 418 lines). Read through the gh command, so no operator-issued token is needed (gh is called with an argument array, never a shell string, and only read endpoints are constructed: pulls, single pulls and reviews); whether a change was merged by its own author is derived, not assumed. Access was proven by running gh auth status, which showed a logged-in account with repository scope, and the adapter was built the same session.
  • The code graph (code-graph.ts, 239 lines). Resolves code through the existing graph servers and maps their coverage to a reliability (high, medium, low, none), failing closed to "no hit" where coverage is low or the repository is unmapped. A repository-to-server map covers the eight repositories, and the graph is only a locator hint: the file-and-line check still re-reads the real bytes, so a stale graph can lower reliability and can never produce a passing citation. (graphify-client.ts, 132 lines, in @receipts/mcp.)
  • Findings and history (findings.ts 267 lines, history.ts 178 lines). Security findings and earlier runs, cited by finding id and location only.

Nine model-free probes, a guard and a registry (packages/model/probe, 1,148 lines). Each is a pure, named, unit-tested function that settles what plain code can settle before any AI turn: ticket_key_probe (ticket keys in commit text), commit_linkage_era_probe (how linkage changed over time), self_merge_probe, cycle_time_probe, open_issue_probe, spec_emptiness_probe (tickets with nothing to build from), dup_link_probe, hunk_overlap_probe (changes that touch the same lines) and dead_symbol_probe, plus secret_literal_guard and a registry that makes the tier enumerable.

Reconcile (reconcile.ts). A union-find fold that fuses claims from different sources about the same subject (a ticket, a commit, a code location, a finding, a metric window) into one claim whose evidence is the union of every source's citations, deduplicated by canonical bytes, with fixed precedence for any single value; it is deterministic and idempotent, and a path keys identically on Windows and Mac.

The metric engine (packages/metrics, 460 lines). A closed vocabulary of 16 named queries, each a pure function of a frozen snapshot with no clock inside, and a predicate language for filters. A registered query recomputes the figure the verifier re-checks. The first metric, net_backlog, is the estate's 505 open tickets, recomputed from the real export. Behind it stands the metric catalog specification: 66 entries (65 that recompute and 1 rollup for the owner), 6 per-product families that make 84 displayed slices, 19 query definitions, and a non-engineer-editable definition format. The catalog is grouped as delivery (12), quality (12), team and integrity (11), risk (7), inheritance (10), the long arc of multi-year trends (7), six per-product families and the owner's roll-up (1). It states that self-merge is a metric while the review-discipline finding is carried as a cited finding that cannot be recomputed, a versioned identity map and leaver registry for the people in the data, and universal determinism rules (total tie-break ordering, epsilon for ratios only).

Projections (packages/projections). freshness.ts folds the record into one row per source (the ticket system, git, GitHub and the code graph, each separately, never one combined "as of") with the as-of time, how complete each source is and the could-not-assess list, in fixed order so the output is byte-stable. Staleness is decided at display time, never baked into the file.

doctor and its gates (packages/doctor, 3,001 lines). The acceptance oracle, which proves each guard by driving a real violation through the real machinery: G1 no-verdict, G2 citation-required, G3 append-only, G5 ingest-determinism (across six sources and the reconcile, 734 lines), G6 metric-recompute, G7 verifier-bijection (an abstract-syntax check that counts every cast form), G8 attribution and G11 fail-closed-verifier. It has a scratch store, a contract-corpus runner, a real-git end-to-end test, a report writer and the single-use override. doctor runs by phase (--phase0, --phase1, --phase2) and as a full run. Gates G1, G2, G3, G5, G6, G7, G8 and G11 run together, and the full run exits 0. Each gate reports one of three outcomes: blocked (the violation was stopped, so the gate is green), leaked (the violation got through, a finding that fails closed) or gate-broke (the gate itself could not run, which is loud and never a pass). Each also carries a positive control, so a gate that rejects everything cannot pass. The sheet also specifies G4 zero-cost view (the dashboard's import graph has no model edge, a deliberate model import fails the build, and the shipped bundle has no credential read or outbound call), G9 chain integrity (tamper with a stored entry and verifyChain must name the right sequence number) and G10 honesty render (every surface shows machine-confirmed evidence and the AI's reading as separate, labelled regions, and drafts are marked as drafts with no auto-post).

The contract corpus. Five per-kind contract files plus a global contract and 11 fixture files make a corpus of cases (a blank line, CRLF and LF files, two files with one quote, an empty quotation, a quote just outside its span, a present-then-gone symbol, a still-present symbol, a broken resolver, a frozen commit, a wrong value kind). A bijection test requires every rejection reason to have a case, and the prove-bites test requires each check to fail when its guard is removed.

Six platform canaries and a generator check (scripts, bin). check-platform (no shell, no developer paths), check-no-ai-sdk, check-schema (the database's allowed lists derived from the authored vocabulary, the bijection guard), check-snapshot, check-sqlite and check-verify, with gen-check beside them, run by npm run check together with the typecheck and the linter.

The specification Maxwell wrote (docs). A master sheet with the canonical vocabulary and ten detail sheets, each the authority for one subject: D data model (1,200 lines), V verifier (766), I ingest (523), S skills (994), M metrics (452), W dashboard (610), O operations (637), G governance and configuration (739), C doctor and gates (294) and B build plan (264); two blueprints, the WHAT (159 lines) and the HOW (240 lines); HOW-THE-TEAM-WORKS.md (178 lines, an analysis of the 5,966 tickets and the eight repositories in which every number is computed); the estate's true-state cross-pattern record (69 lines, six cross-patterns across git, tickets and the user); a 651-line decisions log; and the grounding on the one user: a profile of how he works, a 254-line adoption playbook and the 432-line transcript of the onboarding call. The skills sheet specifies all eight capabilities with prompt templates and worked examples on real data: the oracle Q&A (S.1), spec-assist (S.2), bug-test-by-ticket (S.3), institutional memory (S.4), chief-of-staff (S.5), dev co-pilot (S.6), landmine map (S.7) and metrics-run (S.8). The dashboard sheet specifies the projection files (ReceiptRef, MetricSnapshotView, landmines.json, backlog-health.json, flagged-changes.json, narratives.json, freshness.json, store-integrity.json, ceo-rollup.json), a build step in which projection == replay(ledger), an escaper for every AI-written string, a freshness banner and an integrity banner, a layout for the owner's monthly glance and one for the manager's daily work, and colouring computed at display time. The governance sheet specifies the two Windows accounts, the exact permission commands that lock three files and the in-process guard, the credentials file and the exact failure message for a refused write; it also covers the automation toggle file with its dated history line and the operator-run bin\toggle, a credentials file whose Jira write credential is used only when the toggle is on, and the in-process guard with its stated blind spot. Beyond those, the specification covers: a three-tier markdown configuration (project, then user, then shipped default, first found wins) with full example files for metrics.md, landmine-rubric.md (the closed list of facts the AI may record, tier rules where the first match wins, and always-surface rules), spec-template.md (current behaviour, expected behaviour, acceptance criteria, out of scope, evidence, honesty) and push.md (cadence, include and mute, focus, alerts); input-side lints that only warn; a session-start re-surface of yesterday's picture from the store; an anti-sycophancy in-session skill; and the operations sheet's survival layer: a four-status work envelope, a persistent rate-limit gate whose reset time is parsed from Claude Code's own output with the platform's date library and no dependency, a never-throw wrapper with class-aware retry, a feed through standard input for inputs too large for the command line (about 256 KB), a pre-flight canary that fails in seconds with a plain message, a check that "done" means completed and every expected output exists, and a trimmer for oversize lists so a good partial answer is not thrown away. The operations state is the one deliberately changeable table in the database, written only through the store's own surface. The dashboard sheet adds a manifest of the build, validation of every file before it is written, and the hosting choice.

The eight capabilities the manager gets. Ask anything with citations (the project oracle); draft the missing specification from what the code does (spec assistance, the root-cause fix for tickets that have no criteria); the project's institutional memory (the continuity the people who left took with them); a proactive daily view of what changed and what is risky (chief-of-staff); test a bug against its ticket (bug-test-by-ticket, the owner's second priority); prepare the conversation with a developer (the dev-management co-pilot); a map of the dangerous code (the landmine map); and the metrics cockpit with the manager's own measures and the owner's monthly view.

The parts

  • The citation spine, the verifier for all five kinds, and the chained store with its discard log.
  • Read-only ingest for the ticket system, the repositories, change requests, the code graph, findings and run history, reusing the control plane's services for the code graph.
  • Nine model-free probes that settle what plain code can settle before any AI turn, and a reconcile step that folds a commit, its ticket and the code it touched into one claim.
  • A metric engine in which a number is computed by a registered named query and re-run by the verifier.
  • The doctor with its gates, the six canaries, and nine packages of TypeScript.
  • A real-data end-to-end test in which a file-and-line citation against a real repository of the estate runs the whole path (verify, mint, attest, append, chain), skipping cleanly where the repository is absent; a discard log of one JSON line per rejection written atomically and never allowed to throw.
  • The GitHub read-only ingest through gh with no operator token, with access proven by gh auth status.
  • The plan's tasks for the three phases that carry the spine: the scaffold, the data layer, the verifier dispatch, the five kinds, the chain and store, the three ingest adapters of Phase 0, the contract corpus, the trust stamps, the $schema strip, the discard vertical, the GitHub, code-graph, findings and history ingest, the probes, the reconcile, the freshness projection and the Phase-2 doctor gate.

What it achieved

  • 53 commits in two days, 33,739 lines inserted, 18,714 lines of TypeScript and 396 tests.
  • The three phases that carry the spine, built on the estate's real export of 5,966 tickets. The verifier recomputed the figure of 505 open tickets from it and confirmed a file-and-line citation against a real repository.
  • At every phase boundary the phase's doctor run exited 0 on the estate's real data.
  • Twelve fresh reviews in four rounds (a first round of three on the specification, then one at each of the three phase boundaries). Their attacks, among them an empty quotation aimed at the wrong file, a count pushed through the ratio path and a real private key run through the redactor, each became a permanent test.
  • Its rule, that the AI never computes a displayed number, went on to govern Project Oracle, the project page built in the control plane.

The problem it solves

  • None of the estate's 5,966 tickets says what "done" means. "Is this ticket done?" cannot be answered by anyone. "What does the code do?" can. The tool answers the second, drafts the missing specification for the first, and otherwise says "can't tell".
  • The people who had held the intent behind the work had left, and one manager had inherited 505 open tickets. The tool had to be that manager's memory and reading, and it had to be adopted by him or it was worth nothing. So adoption is the specification, not a hope.
  • The ground truth was real and could be counted. The analysis measured the share of bugs, how many open tickets the people who left had orphaned, ticket age, review and traceability rates and how far the code graphs could be extracted. He built the tool to cite any security finding by location only, because the repository is private but history is permanent.
  • The export is not a simple table: 5,966 rows by thousands of columns with only 112 distinct column names, the comment column repeated thousands of times, and the recorded resolution time filled in on only a small share of finished tickets. So cycle time has two honest readings, one over the tickets with a recorded time and one over all finished tickets, and the tool states both. The same analysis counted commits across the eight repositories, comments, cloned tickets and how linkage between tickets and commits changed over the years. Finished tickets with no commit key are stated as an auditability gap and not as proof that work was not done. People in the data can share a name, which is why the tool carries a versioned identity map.
  • In the onboarding call the AI had read the code behind a ticket's claimed fixes, and the long discussion that followed turned on two different questions, which he separated: whether the ticket is done (intent, unknowable with no specification) and what the code does (behaviour, provable with a receipt). The tool answers only the second.
  • A confident wrong answer looks exactly like a right one. A receipt therefore proves where something is, not what it means: the machine-confirmed evidence and the AI's reading of it are shown side by side, each labelled.
  • An AI grades. The only way to stop it is to give it nowhere to write a grade.
  • The user needed relief from the workload and needed to stay in control, and both were true at once. A tool that relieved him by bypassing him would be rejected, so Receipts relieves him by doing the reading at scale and arms him with the file and line to carry to a developer. He recognised that the user established truth by asking his developers, and designed the tool to route through that habit.
  • AI spending had to stay predictable, and an AI loop that retries by itself is the costliest failure an unattended system can have. So this one runs only on a flat subscription, only when a person drives it, and never retries by itself. The subscription also throttles the user when he uses it too much, so a persistent rate-limit gate was made load-bearing.
  • The builder leaves after handover. It has to run on the manager's own Windows machine with no engineer behind it, which is why it is Node-only, with no shell commands, and why the stack and the operating limits are what they are.
  • He wrote nine drift traps down for the agent that would build it: it is not a code auditor with a dashboard; do not demote the manager or build for anyone but him; the cost rule is a subscription, not an architecture; it is Windows 11, not Mac; relief and control are both needed; never pretend to judge intent; the reference framework is not adopted; verify before asserting; and no unattended retry loop.
  • A secret-handling review can be fooled by a plausible test: example secrets redact fully where a real private key may not. He made it a rule for the build: when two reviewers disagree about a security property, the one that ran the exploit wins.

How he built it

What counts as true

  • A receipt. Every claim points to a real thing a person can open: a file and line with the quoted text, a commit, a ticket, a number that can be recomputed, or a proven absence. An unbacked claim is never surfaced (P1: anchored, not trusted).
  • Citation to VerifiedCitation: the single verifier. There are exactly five kinds of citation and nine kinds of record entry, and the code will not compile if either count changes. One function, verify, is the only place a VerifiedCitation can be made. It uses no AI model: it checks that the quoted text is in that file, that the quote belongs to the file it is attributed to, that the commit or ticket exists, and that a number recomputes, exactly for a count and within a declared tolerance for a ratio. The whole codebase holds one cast to the verified type, and a canary counts it.
  • Deleted, never shown. A citation that fails is removed and logged, with any secret scrubbed from the log. It is never downgraded and displayed.
  • The triple-locked append-only store. Three locks on the record: a database rule that refuses any change or deletion, the type system, and a chain in which each entry's fingerprint covers the one before, computed over a canonical form (RFC 8785) so it comes out byte for byte the same on Mac and Windows and can be re-verified from its first entry.
  • No verdict column. The AI emits facts from closed lists: yes or no, a count, one of a fixed set. A pure function computes any tier (INFO, NOTE, ELEVATED, DANGER). The first gate fails if a grade, score or verdict column exists anywhere in the store.
  • Trace-before-grade and the Footer. Every answer ends in a fixed footer: what was tested, what was not, and a status from a closed list that includes too_vague_to_assess and cant_tell. A claim requires at least one citation. A lint rejects hedging and celebrating words outright.
  • Trust as a label, never a percentage. Each receipt carries a trust level from L0 to L4, such as "re-derivable from this commit". No surface may show "% likely". A blank value is drawn as a dash with its reason, never as zero.
  • Frozen, fingerprinted sources. Tickets, the eight repositories, change requests, the code graph, findings and earlier runs are read without writing and frozen into snapshots with a content fingerprint. The same input gives the same fingerprint on both platforms, and fields whose names repeat are ordered by content, never by position, so a harmless re-export changes nothing.
  • Cited by location only. A leaked secret is named by where it is and never by its value. A guard refuses any record that contains something shaped like a secret, in a value or in a key.
  • The valueKind bond. A metric citation's declared kind (count or ratio) must equal the kind the recipe itself declares, and an unknown recipe is refused, so a ratio citation can never be forged for a count.
  • Deterministic-first. Plain code, in the nine probes, settles what it can before any AI turn, and the AI's turn begins from those facts.
  • Real-data tests that skip where the data is not. Tests against the estate's real export or real repositories run on a machine that has the data and skip in a build that has none, so the real numbers are checked without the data ever being committed. The export is git-ignored and absent from every commit.

What the AI is blocked from doing

  • Assist by default; the automation toggle (P0). The oracle proposes, drafts, explains and surfaces, and the manager takes every action. Writing to the ticket system is built in and sits behind a switch that is off when delivered. Touching code is not on the switch at all.
  • The operator lock. On the manager's machine the agent runs as a separate Windows user. The switch, the credentials and the record belong to the operator, enforced by the operating system's own permissions with explicit refusals. The agent may add to the record and cannot delete it, change its permissions or take ownership of it.
  • No metered AI anywhere (P2). The only AI is Claude Code on the flat subscription. A canary fails the build if an AI library appears anywhere, and the dashboard build fails on one import of a model.
  • The work envelope and the rate-limit gate. Every operation returns one of four statuses and never throws. A failure that would fail the same way again is never retried. When the subscription throttles, work is parked until the stated time and does not rearm by itself.
  • Platform canaries. Six small checks that read the text of the code: no shell commands and no developer paths, so everything runs on Windows; no AI library; one cast; and a guard that derives the database's allowed lists from the one authored vocabulary and fails if a hand edit breaks the match.
  • Read-only on the estate. The build agent never edits, commits or pushes the estate's code in any mode, and the ingest code contains no write path to it.

Who checks whom

  • doctor and the gates. Done means doctor exits 0 on Windows 11, never a claim. Eleven correctness gates (G1 to G11) and nine governance gates (G-1 to G-9) each drive a real violation through the real machinery: an attempted change to the record, a claim with no citation, a broken verifier. No failure inside the doctor can come out as a pass. A red gate can be overridden once, with a single-use token that is recorded.
  • One task, one helper; the integrator. Each task of the plan goes to one fresh helper agent. The main session reads every file that comes back, runs the non-AI gates itself and makes the commit. Helpers never commit.
  • Three fresh adversaries at every phase boundary. Each holds a different lens: fidelity to the specification, build integrity, and constraints and security. A finding is reproduced through the real verifier before it is fixed. The rule the build wrote down for itself: when two reviewers disagree about a security property, the one that ran the exploit wins.
  • The brief he gave the build agent. A fresh agent with no prior context was told to read the repository in a fixed order (the handoff, the standing constraints, the master sheet, the two blueprints, the ten sheets, the grounding), restate the product, the user and the seven hard constraints, list the Phase-0 plan, and report every gap, ambiguity or contradiction before writing any code. Every point it reported was decided and fixed at the source before the first line of code.
  • The real export instead of a token. When the agent asked for a read-only ticket-system token, Maxwell asked why one was needed when the export already on his machine could be pulled into a local structured store, and told the agent to copy it in. That produced the CSV adapter (no token, same normaliser) that reproduced the estate's 5,966 / 505 / 0 exactly, with the export git-ignored.
  • How he ran the build. He told the agent to build by subagent-driven development, with three adversarial reviewers at each phase, corrected it when it bundled two tasks into one helper and when it held commits at clean boundaries, and had the branch pushed to the remote with the merge to the main line held until Phase 2 closed.
  • The integrator's own gates over the helpers' green checks. The main session checks what a helper's own checks pass over: the platform scan, the file-extension rule the compiler's module mode needs on relative imports, subpath imports that must typecheck with no build present (rm -rf packages/*/dist && npm run typecheck passes), the store recording its source snapshot so the full verify, mint, attest, append, read-back round trip of a real citation works, and the read-back path through the single mint.
  • A contradiction between two sheets settled by building the missing piece. The correctness sheet puts the citation-required gate in Phase 0, but the footer it depends on was planned for Phase 1; the agent pulled a minimal footer validator forward so the gate was built properly, and logged it.
  • The decisions log. Every contradiction found in the specification (A1 to A7) and every review round (R1 to R8) is recorded with its resolution, and each decision that changed code has a dated pointer at the line it changed.
  • Standing guards before every commit. npm run check; a clean rebuild with the compiled output deleted and the typecheck run again, so cross-package imports resolve to source; the full test suite; the phase's doctor run; and the one-cast invariant. Commits are at each clean boundary, files staged by name.
  • Handoffs with a chain. Four numbered handoffs (receipts-phase0, sequence 1 to 4) each carry the goal unchanged, the operating model, a table of what each commit landed, the boundary adversaries' findings, carried flags, and a paste-prompt for the next session, so a fresh agent resumes at the right task. The record carries the rule that "blocked on the operator" may be written only after the command that proves it has been run.

How it reaches a person who does not work in the code

  • P-Adoption: adoption is the spec. It is a capability the manager commands. It cannot make a ticket or change his workflow. It hands him the file and line to carry to the developer and drafts the message for him to send. It reports in the measures he named himself. The first result takes one ticket and no setup.
  • Eight capabilities. Ask anything with citations; draft the missing specification from what the code does; hold the project's memory; a daily view of what changed and what is risky; test a bug against its ticket; prepare the conversation with a developer; a map of the dangerous code; and the metrics.
  • Plain English, evidence attached (P5), and honest about limits (P7). Every surface shows how freshness and completeness are stated for each source.
  • A static dashboard at no cost. The owner's monthly glance and the manager's daily view are generated files on a free host, with no AI and no credentials; the build recomputes each view from the record and refuses to write one that differs, and it checks the chain before it renders and shows a broken-record banner if it fails.
  • The operating principles P0 to P7. P0 assist by default, P1 anchored not trusted, P2 no metered AI, P3 an integrity check at render, P4 read-only access, P5 plain English with the evidence, P6 metric definitions a non-engineer can edit, and P7 honest about limits, together with P-Operation and P-Adoption.

The specification itself

  • The ten-sheet blueprint. A master sheet and ten detail sheets, each the authority for one subject (data, verifier, ingest, skills, metrics, dashboard, operations, governance, gates, build plan), with one canonical vocabulary that wins where sheets disagree and a 66-task plan in which every task names the gate that accepts it.
  • The mined-patterns register. Each load-bearing mechanic is traced to where it was proven, two of his own earlier production builds among seven sources, and tagged as verified, borrowed or unproven.
  • The drift traps. Nine wrong turns from the design, each with the right answer, written for the building agent: it is not a code auditor with a dashboard; do not build for anyone but the manager; never pretend to judge intent.
  • Coordination of parallel drafts. The sheets were drafted in parallel and then coordinated: the metric citation kind was reconciled to one name, a leaked reference to the framework he chose not to adopt was scrubbed, the two gate families were separated by a hyphen, the metric count was fixed at 66 and 84, and the ingest path was fixed as read-only. A full audit (A4) reconciled the data sheet with the verifier sheet, settled in the code.

Named concepts

The named concepts, defined

Receipts · a receipt · the project oracle · Citation · VerifiedCitation · verify · the single mint · the spine · the triple-locked append-only store · the discard log · no verdict column · closed-vocabulary facts · trace-before-grade · the Footer · too_vague_to_assess · cant_tell · trust levels L0 to L4 · assist by default · the automation toggle · P0 to P7 · P-Operation · P-Adoption · adoption is the spec · doctor · G1 to G11 · G-1 to G-9 · platform canaries · the bijection guard · the work envelope · the rate-limit gate · deterministic-first · the valueKind bond · the secret-literal guard · the ten-sheet blueprint · the mined-patterns register · the drift traps · the integrator · prove-bites · the contract corpus · stampTrust · net_backlog · the operator lock · the decisions log

What it shows

He can design an AI system for a setting where a wrong answer costs trust and money, so that the AI is structurally unable to assert what it cannot prove or to grade what it finds, and he can specify it so completely that agents build it under review in days.