Skip to content
Maxwell CollinsContact

Independent examiner for AI-built software

A walled-off examiner that tests AI-built software the way a client uses it, against the real signed contract.

What it achieved

AI builders no longer grade their own work: a walled-off examiner checks it against the real signed contract.

The short version

The AI agents that build Maxwell's proposal software no longer grade their own work: this walled-off examiner decides whether the product really produces a customer's proposal, judged clause by clause against the real signed contract. It lives in its own repository, where the builders cannot write, and the operating system's sandbox enforces that. Each run takes a fresh copy of the product at a named version and uses it the way a client would. It scores the proposal that comes out on 88 defined checks. Known-good and known-bad controls run first, so an examiner that cannot fail is caught. Every verdict is saved as a machine-written receipt, 214 of them, and the status page is computed from them, never typed. Built in eight days.

The problem

A builder had reported the product verified after checking it against a sample built by hand, which the real product couldn't produce. "Matches the signed contract" had once been cut down to comparing two dollar figures. The system was grading itself. Builders and graders have to be separate, and the separation has to be physical, not a polite request.

In use

  1. It checks out the product at a named version.
  2. It drives the product through the same doors a client uses to produce a proposal.
  3. It compares the proposal with the signed contract clause by clause, plus checks that must fail and checks that one source feeds every copy.
  4. Known-good and known-bad controls run first, so an examiner that can't fail is caught.

What it achieved

  • It replaced the builders' own report of "verified" with a measured reading of the real product against all 88 of the contract's checks, and that reading became the starting point of a 20-phase plan, in 25 bounded pieces of work, to build the product.
  • Builders cannot game it: every test of its walls tries 14 forbidden moves, such as a forged receipt, a weakened pass mark or an altered contract file, and all are refused; 147 records show the walls at work.
  • It is proven able to fail: a known-bad proposal must still score 11 of 77 and fail the same 18 checks every time, so an examiner that passes everything is caught.
  • Every verdict is on record: 214 machine receipts (14 examinations, 53 control runs and 147 records of the walls at work), and the status page is computed from them, never typed.
  • It mapped about 250 parts of the product's code, each marked keep, repair, replace, migrate or verify first, so the rebuild started from facts.
  • Built in eight days.

The full record

On this page
In one sentence

Maxwell built an independent examiner for AI-built software, 1,420 lines of examiner code in 13 files (1,379 in the 12 files with a standard code ending, plus a TypeScript probe), 233 tracked files in all, 1,898 lines of Markdown across 33 documents, 33 commits: it lives in its own repository where the AI builders cannot write, takes a fresh copy of their product at a named version, drives it through the same doors a client would use, and judges the proposal that comes out against a real signed contract, clause by clause, on 88 defined assertions (87 of them counted toward the verdict), with every verdict written as one of 214 machine receipts and its status page computed from them, never typed; its reading of the product became the starting measurement of a 20-phase, 25-packet plan to build the product.

lines of examiner code
1,420
assertions
88
machine receipts
214
commits
33

What it does

The system is one repository in five parts: the golden-document gate, the capability wall, the receipt ledger and computed status page, the fixtures and findings, and the build-wiring plan. Measured from the repository: 233 tracked files; 1,420 lines of examiner code in 13 files (shell, Node and one TypeScript probe: gates/golden 979 in 6 files [run-golden.sh 299, evaluate.mjs 403, append-receipt.mjs 99, verify-receipt-artifacts.mjs 104, selftest.sh 33, seam-render-probe.mts 41], gates/wall 412 in 6 code files, gates/emit-status.sh 29); 3,507 lines in 16 data files outside the run folders (3,333 in 14 JSON files: the assertion census, the controls and the reports; plus the 171-line contract text and the fingerprint list); 33 Markdown documents of 1,898 lines and 44,213 words; a 231,295-byte receipt ledger of 214 receipts; 25 committed run folders holding 170 evidence files (29 run folders and 191 evidence files on disk, among them 15 ARC-0A wall-probe runs); 569 lines of preserved known-bad HTML.

The golden-document gate, PK-GOLDEN-0 (gates/golden/). The gate answers one question: does the real product, set up only by its own committed scripts and used only through the doors a client would use, produce the first customer's actual proposal, as judged against that customer's signed contract? run-golden.sh (299 lines) carries out a run in eight stages. It verifies the fixtures against their fingerprints; makes a fresh clone of the product at an explicit version, refusing any working copy that is not one of the product's own folders; starts an isolated database in a container (Postgres 18) with its own configuration, leaving the product's configuration untouched; runs the product's own committed migrate, seed and customer seed scripts, recording a failure of any of them as an observation about the product; starts the product's server; drives the real loop (a user logs in, approves the proposal, sends it, the delivery job runs, a hosted link is minted); fetches the recipient's page and the PDF the way a recipient would; takes screenshots at two widths (1440 and 390 pixels) for the operator; and hands everything to the evaluator, which writes the verdict, appends the receipt, tears down and re-verifies the receipt. Where the real client path is unreachable, a diagnostic probe renders the document straight from the product's internal seam; that run can never be better than RED.

The assertion census (golden-assertions.json, 108 lines): 88 assertions, every one with its own number, its kind, the clause of the signed contract it cites and the line of the contract's text it comes from.

  • 72 clause assertions, GOLD-DOC-01 to 72, one for every load-bearing part of the contract: letterhead (3), date, recipient block (5), salutation, subject with tank sizes, the state's registry number and the proposal number scheme, term (2), general scope (2), initial one-time services (6), annual services (4), triennial services (7), fee schedule (5), conditions and unit prices (5), all 11 numbered notes individually, the access and legal paragraph (3), acceptance and signature (6) and fine print (6). A count of matching phrases may not stand in for any single clause.
  • 5 negatives, GOLD-NEG-01 to 05, for what must never appear: an internal identifier, a machine date, an internal field name written in programmers' camel case (with a closed allow list that is empty), and two terms that an AI render had invented and the contract never contained (a 50 percent retainer and a fuel-markup note).
  • 3 one-source parity checks, GOLD-PAR-01 to 03: the web page and the PDF carry the same set of money figures; they give the same verdict on every clause; and neither has substantive wording the other lacks (page furniture on an allow pattern). The third is a diagnostic that cannot change a verdict by itself, which is why 87 assertions count and 88 are defined.
  • 8 loop assertions, GOLD-LOOP-00 to 07: provisioning completes (migrate, seed, customer seed, server boot); a flagship user exists as shipped; approve then send returns "sent"; zero failed or unparseable jobs; a delivery record and link token exist; the rendered document was stored; a contact exists; and the recipient's link serves a 200.
  • The census is grouped by failure class: rendered content, machine artifacts leaking into the document, invented terms, one-source parity, provisioning and boot, identity and access, recipient data, delivery lifecycle.

The evaluator (evaluate.mjs, 403 lines, no dependencies). It turns HTML and PDF (through pdftotext) into normalised text, evaluates each content assertion on every surface present, and produces per-assertion outcomes of pass, fail or indeterminate. The delivery-job check is causal attribution: only jobs whose payload carries the proposal's own id count, with the queue's job-run history as a second witness; no send attempt means failure, never a clean result; zero attributable jobs means failure; a completed delivery job with no receipts behind it means failure; an unreadable probe means indeterminate. Any indeterminate counted assertion turns the whole run FAILED_CLOSED. It exits 0 for GREEN, 1 for RED, 2 for FAILED_CLOSED.

The three verdicts. GREEN requires every counted assertion to hold and the hosted document to have come through the real client path. RED means the product ran and broke assertions (a failure of the product's own committed setup scripts is also RED). FAILED_CLOSED means the examiner could not establish or evaluate the path (a fixture mismatch, a missing tool, an unreadable probe) and says nothing about the product.

The five controls (selftest.sh, control-*-report.json, controls/loop/ with six red-first scenarios), each with its own receipt every time it runs:

  • control-good: all 77 content assertions must hold against the signed contract's own extracted text, proving the census describes the artifact.
  • control-bad: the preserved known-bad render (fixtures/known-bad/, 569 lines of HTML) must score 11 of 77 and fail every one of the 18 pinned assertions in expected-bad-failures.json.
  • control-fallback: a render with perfect content but fallback_used: true must remain RED.
  • control-loop: six scenarios for the delivery-job logic (zero jobs cannot pass; an unrelated success cannot satisfy; an attributable parked job fails; an attributable success with receipts passes; an unreadable probe is indeterminate; a completed job without receipts fails).
  • control-parity: scenarios built from the signed text for the web-versus-PDF parity checks.

The capability wall (gates/wall/, 412 lines in 6 code files plus the approved-product configuration). Four roles: the harness author, the product builder, the verifier and the adversarial reviewer.

  • capability-wall.mjs (120 lines) is the decision function. A builder writing into the harness is a capability_wall_breach; a builder or verifier writing into the product is denied; a reviewer cannot write anywhere; a receipt can be emitted only by the harness with an emission flag, otherwise the attempt is status_typed_not_emitted. The verifier may read and execute the product only after pinnedProductState has checked that the folder is the expected product, its remote is the product's, the pinned commit exists as a commit, HEAD equals it and the working tree is clean; otherwise the refusal is unpinned_product_state_refused, dirty_product_state_refused or unexpected_product_tree_refused. Four harness files are protected by name: the ledger, the assertion census, the contract text and the evaluator.
  • role-runner.sh (68 lines) makes the wall a property of execution, not only a decision: it runs a role's command inside the operating system's sandbox (sandbox-exec) with a generated profile that denies everything by default and allows writes only where the role may write, failing closed when the sandbox is unavailable, the harness or product root is unexpected, or the role-bound session is missing.
  • session.mjs (36 lines) creates a role-bound session with a random token, stores only the token's SHA-256, and seals the session to the hash of the run's report; run-arc0a.mjs (93 lines) and run-arc0a.sh run the probe set; append-wall-receipt.mjs (45 lines) writes the receipts; approved-product.json holds the approved product commit, loaded from harness-owned configuration so that no builder controls the commit the verifier grades.
  • The ARC-0A probe set: 15 policy cases and 5 real operating-system write probes per run, 20 in all, of which 14 actions are refused by design (10 policy refusals and 4 sandboxed write refusals) and the legitimate ones succeed, among them a pinned read and a pinned execution of the product's own self-test run through the sandbox. The seeded attacks are an altered fixture, a weakened threshold or verdict logic, a forged receipt and a dirty product tree. Run again and again, it produced 147 wall receipts: 92 refusals, 44 proofs and 11 whole-packet passes.

The receipt ledger and the computed status page. receipts.jsonl is the only carrier of completion facts: one JSON line per run with the receipt id, gate, product commit, harness commit, fixture manifest digest, start and finish, verdict, whether the fallback was used, assertion counts and ids, the SHA-256 of every artifact and of the command log. append-receipt.mjs (99 lines) writes it; verify-receipt-artifacts.mjs (104 lines) proves every artifact a receipt names still exists and still matches its recorded hash, and has its own self-test showing that a wrong hash, a missing file and an empty file are all caught. emit-status.sh (29 lines) produces STATUS.md (214 lines) from the ledger. The 214 receipts are 14 runs of the golden gate (across 7 distinct product commits), 53 control receipts (12 control-good, 12 control-bad, 11 control-loop, 11 control-parity and 7 control-fallback) and 147 wall receipts (11 whole-packet passes and 136 per-probe receipts, 92 refusals and 44 proofs, ids ARC0A-01a to 08 and ARC0A-OS-01 to 05, from 15 probe runs on disk). A golden run against a product commit that the wall's approved-product configuration has not approved for the active packet stops at the product-preflight stage as FAILED_CLOSED: the examiner refuses to grade a product version no one has approved, and writes each refusal as a receipt. Every run keeps its web page, PDF, screenshots, probes, server log and full command log in runs/, immutable.

The fixtures and the findings. fixtures/ holds the signed contract as PDF and extracted text and the known-bad render, with MANIFEST.sha256 verified before every run. findings/F-BOOT-001.md records the first finding of the real path, about how the product boots from its own committed example configuration when no field-service connection is configured, with the committed file, its own comment and the captured stack trace as evidence. ARC-0B closed it with a connector that reports "not configured" loudly and invents nothing; the receipt for that repair carries a connector probe showing the empty configuration choose the null connector and a configured one choose the real connector.

Build-wiring (build-wiring/, 26 files, 1,360 lines and 38,187 words; PACKETS.md alone is 6,000 words and the 13 census files 23,999 words together). The production plan made from the certified rule set:

  • The brownfield census (13 files in census/): about 250 surfaces of the real code across the 12 domains of the rule set, each tied to a path and line at the pinned product commit and classified as keep, repair, reconnect, replace, remove, migrate or verify-first. Eleven cross-domain threads came out of it.
  • The acceptance surfaces (6 files in acceptance/): the anchoring law and nine check classes from compile-time checks up to the operator-held check, with the rule that a product-outcome requirement must end in one of the five outcome classes; registries of 25 cross-domain contracts, 10 event topics, 79 data-ownership assignments and 11 actor types, and the kernel floor and precedence rules.
  • MIGRATION-SEQUENCE.md: 20 dependency-ordered phases with entry condition, what must keep working, whether the step is irreversible, and its acceptance. PACKETS.md: 19 bounded packets with 11 fields each (owner, requirement, allowed and prohibited surfaces, migration discipline, oracle, entry, done, rollback, receipt, dependencies, non-goals), expanded to 25 packet names by splitting. Among them: ARC-0A, ARC-0B, KERNEL-1A, 1B and 1C, KERNEL-2A, then the domain packets through to signing and purge. FIRST-PROVING-ARC.md: the ten legs of one customer thread from boot to a truthful sent-viewed-signed-locked chain, with the golden assertion each leg must satisfy.
  • AUTHORITY-DEFECTS.md (the ledger of defects in the rules, not the code), REVIEW.md and REVIEW-FINDINGS.md: the plan after a review by four independent reviewers (plan coherence, fidelity to the rules, evidence in the code, completeness) whose findings were each re-checked before they counted.

What it achieved

  • 88 assertions defined and 87 scored against the signed contract: 72 clause assertions, 5 negatives, parity checks and 8 journey checks.
  • 214 machine receipts in the ledger: 14 runs of the gate, 53 control receipts, 147 wall receipts.
  • 147 receipts of the capability wall's own operation, with 14 actions physically refused in each probe run.
  • The known-bad control holds at 11 of 77 with its pinned 18 failures.
  • A census of about 250 surfaces of the product's code, a 20-phase migration sequence and 25 named packets, produced from the examiner's findings.
  • Built in 33 commits over eight days.

The problem it solves

  • A builder had reported the product verified after checking it against a sample built by hand, which the real product could not produce. So the examination has to go through the real path, against truth that comes from outside the project.
  • The build's own census found that the system was grading itself. Builders, reviewers and graders have to be separate parties, and the separation has to be physical: a different repository with write access denied, never a polite request.
  • "Matches the signed contract" had once been reduced to two dollar figures, and the rest of the document went unchecked. A total, a count or a similarity score can never stand in for the document.
  • An examiner that has never been seen to fail a bad input proves nothing. Its controls run first.
  • Anything an AI could grade for itself must be graded by a machine comparison. An AI's verdict, the lead agent's included, is a signal and never the authority.
  • The product has to be proved against the real world before it is repaired. He moved executable external truth ahead of the repair work.
  • Some checks are his alone, and a mechanical check exists to give him evidence, never to replace him.
  • An empty result is not a clean result. A send with no delivery job attributable to it is a break in the chain, and "no failures found" can never come from "nothing ran".
  • A repair that makes the known-bad document score better has weakened the gate. A rise in the known-bad score is a reason to reject the change.
  • A mismatch between the rules and the code has two possible owners, and picking the wrong one rewrites a rule to suit the code. Each escalated defect is checked against the rules before it is treated as a rule defect.
  • A status that cannot be reproduced is not a status. The evidence a receipt names has to still exist, byte for byte, when the receipt is read, and a red-first regression test holds that.

How he built it

He builds by directing AI agents. He decided the rules below and the agents wrote the examiner, the wall, the ledger and the plan under them.

  • The four-surface separation. His authority, the behaviour rules, the product build and the examination were set up as four physically separate surfaces, and the examiner is the fourth.
  • The examiner never trusts a builder's copy. Each run makes a fresh clone of the product at an explicit version and provisions it only through the product's own committed scripts.
  • Fixtures verified by digest. The signed contract and every other fixture carry a fingerprint that is checked before every run. A mismatch stops the run.
  • PK-GOLDEN-0, the golden-document gate. The product must produce the first customer's real proposal and is judged against the signed contract: 72 positive assertions, one for every load-bearing clause, each with its own number and the line of the contract it cites. No count of matching phrases may stand in for any single clause.
  • The negatives. Five assertions for what must never appear: an internal identifier, a machine date, an internal field name, and two terms that had been invented and that the contract never contained.
  • One-source parity. Three checks that the web page and the PDF carry the same money figures, the same clause verdicts, and no wording found on only one of them.
  • The loop assertions. Eight checks on the journey itself: provisioning ran, a user exists as delivered, approve then send returns "sent", no background job failed, the delivery record and link were minted, the rendered document was stored, and the recipient's link opens.
  • Three verdicts. GREEN only when every assertion holds and the document was produced through the real client path. RED when the product ran and broke assertions. FAILED_CLOSED when the examiner could not establish the path, which never counts as anything about the product.
  • The fallback cap. A diagnostic shortcut render can never produce GREEN, even with every assertion satisfied.
  • Controls first. Before any run is trusted: the assertions must all hold against the contract's own text; a preserved known-bad document must fail and reproduce a pinned set of 18 failures; a perfect shortcut run must stay capped. A change that makes the known-bad document score better has weakened the gate and is rejected.
  • Causal attribution. A send counts only when the delivery job can be tied to that proposal. No jobs at all is a failure of the chain, never a clean result.
  • Receipts, not reports. Every run appends one receipt to an append-only stream, which is the only carrier of completion facts. Words such as implemented, verified or release-ready are valid only beside a receipt number; typed by a builder without one, they are mechanically invalid.
  • STATUS is computed. The status page is emitted from the receipts by a program and is never edited by hand.
  • Receipt integrity. A receipt's recorded hashes must equal the final bytes of the files it names. The command log is frozen before it is hashed, a temporary file is kept out of the evidence, and verify-receipt-artifacts.mjs re-checks the latest receipt after teardown.
  • Runs are immutable. Each run keeps its web page, PDF, screenshots, probes and full command log.
  • The capability wall (the four-role access law). The harness author changes only the harness. The product builder changes only its own bounded working copy and never the harness. The verifier reads and executes a pinned, committed version of the product and never changes it. The adversarial reviewer is read-only everywhere. A sandboxed role runner carries out each role's work inside its permissions, so the wall is a property of execution.
  • Bite-proving. The wall is accepted only when each refusal test is shown to bite: the seeded attack is refused and the legitimate operation passes. ARC-0A had to be independently reviewed by a fresh-context adversary before any product code (ARC-0B) could be written.
  • Builders never write their own grader. A gate, fixture, control or threshold written by the builder whose work it grades is a breach of the wall, recorded as a governance failure.
  • Producer is not reviewer is not grader. Every load-bearing packet gets a fresh-context adversarial reviewer who did not produce it, whose verdict is signal, and whose findings are re-verified by the lead before they count; the grade comes from the mechanical gate.
  • The two-program boundary. A defect in the rules stops the work and goes back to the authority process. A defect in the code stays in the build. Narrowing a rule to fit the code is forbidden, and when unsure the agent treats it as a rules question and stops.
  • Transcript-verified approval. An agent performs a stamp only after his approval, verified in the session record, binds the exact digest. Agents carry out every technical consequence of an approval and can never invent one. A rule defect is ruled on, reconciled in the rule set with its checks passing and its cross-domain contracts unchanged, reviewed by a fresh reviewer and re-stamped.
  • Truthful boot. The product must start without optional credentials through a connector that fails loudly, never one that manufactures data or a false success.
  • No silent caps. A piece of work that bounds its coverage logs exactly what it dropped.
  • Progress is a moved receipt. A packet may report only progress it can show as a changed score with the known-bad control unchanged.
  • Anti-proxy law. A route that answers, a row that was written, a job that was queued or a unit test that is green never stands in for the outcome an operator could witness.
  • Fresh worktree for the first repair. The boot repair runs in a fresh copy of the product taken from the approved version, never in the parked design branch, with an exact allow-list of the four files it may touch.
  • Operator-held checks. The blinded side-by-side of the signed PDF and the product's version, and the recorded test with a stranger, stay his. Each run saves screenshots at two widths to serve them.
  • Build-wiring. Beside the examiner sits the production plan made from the certified rules: a census of every requirement per domain, bounded work packets, the migration sequence and the acceptance framework. The critical chain runs in order, independent packets run in parallel by file ownership, and an irreversible change runs alone behind a copy checked on a fresh database. Every packet declares its rollback, a packet whose receipt does not go GREEN does not merge, and history is kept with merge commits.

Named concepts

The named concepts, defined

The independent examiner · The four-surface separation · PK-GOLDEN-0 · The golden-document gate · External truth · Controls first · The fallback cap · FAILED_CLOSED · Receipts, not reports · STATUS is computed · The capability wall · The four-role access law · Producer ≠ reviewer ≠ grader · The two-program boundary · Transcript-verified approval · Truthful boot · No silent caps · Operator-held checks · Build-wiring · Causal attribution · Bite-proving · The anti-proxy law · ARC-0A and ARC-0B · F-BOOT-001 · NullConnector · Progress is a moved receipt

What it shows

He can separate the party that judges AI-built work from the parties that build it, and make "it works" a recorded observation of the real product against the real world.