Skip to content
Maxwell CollinsContact

Declare-once kernel, business software where each fact is written once

A way of building business software, used by Maxwell and his agents, where each fact is declared once.

What it achieved

Business screens show every field of a record, each fact written once, so no screen can leave one out.

The short version

Business screens show every field of a record, each fact written once, so no screen can leave one out. From one declaration, all 48 fields of a real booking record from one of his production apps appeared on screen, with no per-screen work. Maxwell built the declare-once kernel, a way of making business software in which each fact is written once. From that one declaration it creates the database, its security, a history of every change, the validation and the screens. That leaves nothing for an AI to forget, and a machine decides when the work is complete. Anything not allowed is rejected before the software can run, and the people using it see ordinary forms, buttons and tables. It became the base of Proposal Kernel, a multi-customer product.

The problem

In a normal business app, one fact is restated by hand in about fourteen places: the database column, the validation, the types, the form, the table and the tests. The bugs live where two copies differ, and AI is reliably bad at that wiring, so screens built that way ship with fields missing.

In use

  1. A developer, or an agent, declares a record once: its fields, rules and who may see it.
  2. The kernel generates the database, its row-level security, its history and its validation from that declaration.
  3. The screens build themselves: every field appears on its form and list with no per-screen work.
  4. Anything illegal fails to compile, and the people using it see ordinary forms, buttons and tables.

What it achieved

  • Screens come out complete: every one of the 48 keys of the largest real record in his fleet appeared on screen from one declaration.
  • It powers a real product: it became the base of Proposal Kernel, a multi-customer product whose pricing reproduced a real signed agreement line by line.
  • Real screens need almost no custom work: production-ready screens needed only four named additions (field groups, a chosen set of list columns, a relation picker and a list-of-values field).
  • Mistakes are stopped before the software runs: 8 proofs that illegal declarations won't compile and 15 demonstrated refusals, run by its gate every time.
  • Its quality was proven by someone who didn't build it: a fresh reviewer attacked it, each finding became a fix with a test, and each fix was broken on purpose to prove its test.

The full record

On this page
In one sentence

Maxwell built the declare-once kernel, a way of making business software in which a thing is declared once and then exists correctly everywhere (database, security, audit trail, validation and screens), with nothing for an AI to forget and completion decided by a machine; its walking skeleton is 3,151 lines of application code in 34 files (3,114 lines of TypeScript, React and shell script in 33 files, plus a 37-line HTML page) and 1,126 lines of tests in 13 files, 4,471 lines across the 57 tracked files other than the dependency lockfile (59 test cases, 8 compile-rejection proofs and 15 demonstrated refusals, in 4 commits), and it put a real 47-field booking record from one of his production apps on screen with every field present, from one declaration and no per-screen work.

lines of code
3,151
test cases
59
compile-rejection proofs
8
field record from one declaration
47

What it does

The walking skeleton, kernel-skeleton, is TypeScript on plain Postgres 18 running in Docker. It is 3,151 lines of application code in 34 files (3,114 lines in 33 files of TypeScript, React and shell script, plus 37 lines of HTML), 1,126 lines of tests in 13 files, 59 test cases, 4,471 lines in all 57 tracked files other than the 2,414-line dependency lockfile, 4 commits on the main line, and a 409-line demonstrator program. The src folder alone is 2,389 lines in 23 files. It is built on Postgres 18 in Docker (port 55432 with a health check), React 19, Zod 4, pg-boss 12, Vite 8, Vitest 3 and TypeScript 5.8 in its strictest settings (strict mode, checked array indexing, exact optional properties, no fall-through in a switch), with two separate compile scopes, one for the application and one for the screens. By area, in lines: the declaration language and what it derives (src/spec) 535, the write engine and its doorways (src/engine) 525, the screen generator (src/ui) 529, the database emitter (src/emit) 361, the decompiler (src/decompile) 208, the real booking and contact records used as a torture test (src/examples) 127, the database connection and migration runner (src/db) 104, the preview harness 129, the proof files 42, and the gate, doctor, migration and bite-proving programs (bin) 532. It is one slice carried through every layer: one record (Contact), one related record (Booking, which belongs to a Contact) and one custom action (booking.confirm, with a small pure checker). Each part below is an entry of its own.

  • The declaration language (src/spec/dsl.ts, 171 lines). The one place a business fact is written. Ten field kinds form a closed set (text, long text, email, timestamp, date, integer, money in whole cents, boolean, array, and enum with a declared starting value), so adding an eleventh breaks every place that has not handled it. A field carries its label, whether it is required and an optional display group. A relation is a first-class declaration naming another record. A row-level rule (CompareCheck) states a comparison once, such as "ends after starts." A cross-row claim (PeriodClaim) states that no two rows for the same room may overlap in time while confirmed. An action (EffectDef) carries a label, a pure checker, the change it makes and an optional queue it feeds. The types of every record's rows flow by inference from the declaration; no types are written by hand: each field's type comes from its kind, an enum becomes the exact union of its declared values, a field that is not required becomes nullable, a relation surfaces as a <name>_id column, and every row carries id and tenant_id. The list-column hint is typed from the declared fields and relations, so a hint naming a column that does not exist will not compile. Typed actions are stored in the registry in an erased form that the compiler lets in only through the blessed boundary below. The declaration also carries a soft-delete design: every table has a deleted_at column, and the no-double-booking claim, the views and the engine's reads ignore deleted rows.
  • The two declared records (src/spec/entities). Contact has name, email and phone. Booking has room, start, end, status (draft, confirmed, cancelled), notes and a required Contact, one check, one no-double-booking claim and the confirm action that moves a draft to confirmed and queues a follow-on job. The registry (src/spec/registry.ts) is the only registration step that exists; the engine, emitter, hash module, screens and demonstrator all iterate it.
  • The validators (src/spec/validators.ts, 116 lines). Create and update validators derived from the declaration, strict so that a field outside the declaration cannot be sent, with the declared checks applied to the merged row on update. Screens and the engine use the same validator.
  • The database emitter (src/emit/migrations.ts, 361 lines). The only generated code in the system, because Postgres needs real tables, constraints, policies and triggers. From the declaration it writes each table (with id, tenant, soft-delete and timestamp columns), foreign keys, enum and comparison CHECK constraints, a native no-double-booking EXCLUDE constraint scoped to a tenant and a time range, forced row-level security with a tenant-isolation policy, a floor trigger and an audit trigger per table, a derived relation view that applies the querying tenant's security, and the kernel's own tables: kernel.spec_stamps, kernel._migrations, kernel.command_log, kernel.job_runs and audit.record_version. It also writes the reserved error codes KS001 (declaration missing), KS002 (declaration stale) and KA001 (append-only table touched). The floor trigger fires on insert, update and delete, reads a JSON map of record kind to fingerprint so one transaction can write several kinds of record, and checks both that a declaration is present and that it equals the database's own stamp. The audit trigger stores the old and new row of every change as JSON beside actor, action, declaration fingerprint and transaction number. The three privileged database functions (floor, audit and command log) run with a pinned search path. The application's database role is a non-owner that cannot bypass row security; it is granted select, insert and update on the business tables and no delete, select only on the history and stamp tables, and execute (never insert) on the command-log function. The views are created with the querying role's security, and each shows the related record's first declared field as <relation>_<field>. Two enforcement forms for one declared comparison: the native CHECK in the database and the same comparison in the Zod validator, both from the one declaration.
  • The migration runner (src/db/migrate.ts, bin/migrate.ts). Stamps the declaration's content hashes first, inside the migration's own transaction, and fails closed when the database has drifted from the declaration without a migration.
  • The write engine (src/engine/engine.ts, 267 lines). One interpreted path for every write, in a single transaction: declare who is acting, which action and which declaration version; record the intent in the idempotency-keyed command log; validate; run the pure checker; write; queue follow-on work in the same transaction. It reads the declaration live, so there is no generated behaviour code. It refuses a write formed under a stale version early, translates the database's mismatch code into "deploying, retry in a moment," turns an overlap into a named claim violation, and treats another customer's record as not found. A write that repeats an idempotency key is rolled back and answered as a "duplicate" instead of running twice; an update locks the row it reads; a check violation from the database comes back as a validation error; and an action given parameters it does not take is refused.
  • The boot handshake. On start-up the engine compares its full set of fingerprints with the database's stamps and refuses to exist on any difference, missing stamp or unknown record.
  • The blessed boundary (src/spec/boundary.ts). The one place a verifier written against a record's exact type is called with a database row; a runtime shape check runs first and a named test pins it.
  • The queue doorway (src/engine/jobs.ts). Queue names are themselves derived from the declarations. Every job payload carries its record's fingerprint, and a job with a stale fingerprint parks in a parked queue and is recorded in kernel.job_runs; it never runs and never vanishes. A payload that does not parse also parks, with its reason and original attached. The queue's own tables are opened to the application's role by the setup step, with default privileges for the partitions the queue library adds later.
  • Action tokens (src/engine/tokens.ts). Signed emailed-link tokens carrying only the minimal intent: record kind, action, record, parameters, actor, tenant and a mint-time idempotency key. Tokens are versioned, signed with HMAC SHA-256 from a secret that must be set or minting refuses to run, and carry the actor they were issued to. Signatures are checked in constant time. Using a link replays the intent through the current checker and current permissions; one the checker no longer allows reads as expired, and a double-click lands on the idempotency key.
  • Error vocabulary (src/engine/errors.ts, 75 lines). Nine named refusals, from stale intent and deploying to claim violation, boot refusal and invalid or expired token. Each carries the response code it maps to: 409 stale screen and claim violation, 503 deploying, 422 invalid input and verifier refusal, 404 not found, 401 invalid token and 410 expired link.
  • The content-hash module (src/spec/hash.ts). A SHA-256 fingerprint per record of its resolved declaration, stable under key order, covering fields, relations, checks, claims and action signatures. A label change rehashes only that record; changing the body of a checker does not rehash, because the current checker runs on every write.
  • The decompiler (src/decompile/decompiler.ts, 208 lines). Reads the running database's own catalogue (columns, nullability, foreign keys, named constraints, row security, policies, triggers and whether they are enabled, view columns), rebuilds the structural declaration and compares it to the source. It reports problems by name: a missing or extra column, a column of the wrong type or nullability, a missing check, enum constraint or no-double-booking constraint, a relation with no foreign key, row security not enabled and forced, a missing tenant policy, a missing or disabled floor or audit trigger, and a view that is missing or omits a declared column. It has its own independent mapping from declaration to database types, imports nothing from the emitter, and labels its result "structural half only."
  • The screen generator (src/ui, 529 lines). A typed renderer map keyed by every column of a record's row type, so omitting a field is a compile error, plus a default map interpreted from the declaration in which every field is present by construction. It has ten renderers (text, long text, number, money, date and date-time, boolean, array chips, enum select, relation picker, read-only), a generated list and a generated form that validate with the same validator as the engine, a layout module that derives ordered form sections and list columns, and a second blessed boundary with its own completeness check and test.
  • The display vocabulary. The four additions the torture test demanded: a field group that becomes a titled section of the form, a record-level listColumns subset whose entries are compile-checked against real fields, a searchable relation picker, and an array field kind with a chip renderer; five more field kinds (integer, money, boolean, date, long text) went in at the same time with exhaustive coverage across validators, emitter and decompiler.
  • The screen torture test (src/examples, preview/). The real booking record of his venue-booking platform (45 declared fields plus its relation) and its contact transcribed as declarations and shown through the generated list and form in a browser by a Vite preview, with before and after screenshots. The preview is inside the type-check scope. The transcribed contact record has 19 declared fields in four groups (Identity, Lifecycle, Interest, Address) with array fields for phones and emails and a lead-or-customer stage; the booking record has 45 declared fields plus its required contact relation, grouped by the sections of the original schema, with a seven-column list.
  • The bite prover (bin/prove-bites.mjs, 77 lines, with prove/illegal-spec.ts and prove/illegal-ui.tsx). Two files of deliberately illegal declarations and screens with 8 marked lines in all (5 on the declaration language, 3 on screens). Each marked line must draw its own compiler error, so a guard that silently stopped biting fails by name and a file that compiles fails outright. The five declaration-language proofs are an unknown field kind, an enum with no starting value, an action whose checker returns the wrong shape, a comparison operator outside the allowed four, and a list column that is not a real field; the three screen proofs are a screen missing a field, a screen adding a field that does not exist, and a renderer of the wrong shape. The prover also fails if the clean configuration does not compile or if a proof file carries no markers.
  • The doctor (bin/doctor.ts, 409 lines). Drives 15 real violations through the real database and engine and requires each to be refused: an unstamped app write, a stale-stamped write, an unstamped console write, a stale client intent, a stale emailed link, a double-click on a link, a double booking, both rungs of dissimilar enforcement, a cross-customer read, a cross-customer write, a tampered audit row, a tampered command log, a deploy-window mismatch, and a decompiler round trip that is clean and then detects injected drift. It uses fresh customer identities each run because the database persists between runs, and it prints a warning and refuses to pass if zero checks ran.
  • The gate (bin/gate.sh). Four fail-fast stages (type check of the application and the screens, tests on a real database, the bite prover, the doctor) and a stage count asserted at the end, so that nothing having run can never read as success.
  • The tests (13 files, 59 cases, run one file at a time against the real database after a setup step that waits up to 30 seconds for Postgres and migrates; each file drains the previous run's queued jobs and boots a fresh engine). They cover the trigger floor, the engine, the handshake and deploy-window recovery, jobs, tokens, row-level security, the blessed boundary, the decompiler (and its detection of a dropped constraint, a disabled floor trigger and a hand-edited view), hashing, the validators and the screens. Several of them switch a guard off to prove the test fails without it.
  • The screen torture test, as specified. The skeleton's screen generator pointed at the real booking record of his venue-booking platform and viewed in a browser.
  • The evidence base. Seven audits of his own production systems and the research record of the five debates.
  • The kernel at product size. Proposal Kernel is a clone of the skeleton grown to 42 declared kinds of record, 15 compile-rejection proofs and 38 demonstrated refusals (measured in: 42 declaration files under src/spec/entities).
  • The Forge's kernel pack. The Forge carries the kernel as a starter pack for new products.
  • The canon around it. The kernel vision; the definitive concept document with its five debate refinements; the Kernel Advisor Charter; the walking-skeleton record; the screen torture test; the seven-repo audit synthesis and its seven audits.

What it achieved

  • Every one of the 48 keys of the real booking record appeared on its form and list from one declaration, with no per-screen wiring. This measures the central claim, on the largest real record in his fleet.
  • The display vocabulary needed exactly four named additions to make those screens acceptable for production use (field groups, a chosen set of list columns, a relation picker, a list-of-values field). This measures how much custom layout a real screen needs; the threshold he had set for concern was 30% of screens. The 48-field wall became 12 labelled form sections and a 7-column list, with money shown from whole cents.
  • The gate runs 59 tests, 8 compile-rejection proofs and 15 demonstrated refusals, in four stages.
  • A fresh-context reviewer with no part in the build attacked the skeleton; each of its findings became a fix with a test, and each fix was itself broken on purpose to prove its test.
  • In Proposal Kernel the same kernel carried a multi-customer product whose pricing reproduced a real signed agreement line by line.

The problem it solves

  • The glue tax. In a normal business app one fact is restated by hand in about fourteen places: the database column, the validation, the types, the form, the table cell, the tests. Most of the code is glue holding copies of one fact in agreement, and the bugs live where two copies differ.
  • AI is reliably bad at exactly that wiring, and screens built that way ship with fields missing.
  • Seven of his production systems were audited for the cause: a fact restated by hand drifts. The same audits showed the pieces already existed separately in his fleet: declare-once in five repositories, compile-enforced screen coverage in the Forge, and append-only history built three times, none of them yet joined into one system.
  • The people who use his software have not adopted AI and will not. So the screens stay completely normal: forms, buttons and tables. The AI lives underneath and behind a few specific buttons.
  • An AI can be brilliant and occasionally wrong. So the AI proposes and the verifier disposes: a small fixed checker stands in front of every change, and money, double-booking and the wall between customers are never left to a model.
  • What he has to get right shrinks. He judges the work by what the machine proves, and thousands of generated lines become one small declaration that reads in plain English.
  • A design argued only in documents is unproven. After five rounds he stopped the written debate and made running code the next adversary.
  • Selling to more customers should not mean forking code: a winery, a banquet hall and a conference centre run on the same machinery, and what differs between them is settings and a short brief.
  • A guard that cannot fail proves nothing, so every guard has to be shown failing, line by line.

How he built it

He builds by directing AI agents; the design, the arguments, the code and the proofs below are his work, produced through that direction.

What the kernel makes impossible

  • One declaration per fact. One specification file per kind of record states its fields, its relations, its allowed actions and its display hints. Every part of a declaration must be consumed or checked by a machine, because a decorative part rots at the speed of documentation. Where a fact cannot be derived and must be restated, an executable agreement test pins the copies in the same commit.
  • Interpreted behaviour, generated database. The program reads the declaration directly while it runs. Code is generated only for the database: tables, constraints, security policies and triggers.
  • Effects as the only path. A record changes only through a finite set of named actions, each with a small pure checker. One path performs every write: validate, verify, write, and queue any follow-on work in the same step.
  • The outbox, by construction. The follow-on job is inserted through the same transaction as the write, so committing publishes both and rolling back publishes neither.
  • Screens generated, with coverage enforced by the compiler. Every field appears by default, and hiding one is the deliberate exception. A screen may override how a field is drawn and may never drop it; a dropped field is a compile error, proved line by line on every run by prove-bites.
  • The trigger floor. Every write, a hand edit at the database console included, must truthfully declare who is acting, which action, and which declaration version. The database refuses it otherwise. The program refuses earlier for the user's sake; the trigger is the floor.
  • Per-entity content hashes. A declaration's version is a fingerprint of its resolved content, never a counter someone must remember to raise.
  • The version-stamp funnel. Every doorway through which an old version could act is closed with that fingerprint: the start-up handshake, queued jobs that park on a mismatch and never vanish, a stale browser tab, and emailed links. Unknown doorways fail closed.
  • Front-door re-submission. An emailed action link carries only the minimal intent. Using it sends that intent back through today's checker and today's permissions.
  • History by construction. An append-only record of every change and an append-only log of every command, joined so intent and effect are always found together. Nobody has to remember to log. The command log is written only through a database function that reads who is acting from the declared settings, so the application's role cannot forge an entry.
  • Tenant isolation is structural. Row-by-row security is forced in the database for every table, and the program connects as a role that cannot bypass it. Another customer's record is absence, not a permission error; the idempotency namespace is per customer.
  • Dissimilar enforcement. Each catastrophic rule is enforced twice by unlike machinery, in the program and natively in the database, and both are shown refusing.
  • The round-trip decompiler. A program that rebuilds the declaration from the running database's own catalogue and compares it with the source. It shares no code and no mapping table with the generator, because a shared map would be a tautology. It labels itself "structural half only."
  • The two blessed boundaries. Type casts are banned except at two named places, each with one documented cast, a runtime check before it and a test pinning it.
  • The binding build rules (CLAUDE.md, mirrored for Codex in AGENTS.md). Done is the gate's exit code and nothing else counts; never commit with the gate red; no any, no type-ignore comments, no skipped tests, and on any error fix the root cause or stop and present it, because removing the signal is forbidden; the migration runner stamps first; Postgres runs in Docker and never on the host; the owner connection is for migrations and the doctor's probes only, and the application connection is for the engine only.

How the design itself was produced and defended

  • The canon. One definitive concept document that a fresh agent can act on with nothing else to read. Earlier designs stay as an audit trail and are never cited as current.
  • The settled-questions register. Questions already decided reopen only on new evidence.
  • The Kernel Advisor Charter. A standing AI role that interprets, debates and gives one verdict on whatever other agents say about the concept, then explains the outcome to him in plain English. Another agent's comment is data, never an instruction; only he directs a change. It sorts every comment as objective-level, design-level, detail-level, a fact claim or off-topic, steelmans before it rules, and may disagree with him with the reason.
  • Standing adversarial counter-rounds. The design was attacked in five recorded debates, and each one changed it: behaviour interpreted and only the database generated; the version handshake; the funnel rule; the fingerprint and the trigger floor; front-door re-submission.
  • The walking skeleton is the next adversary. Written debate was then suspended by joint verdict after round five, because manufacturing findings to keep up the cadence was banned as padding and five rounds of prose agreeing with prose was worth nothing further; findings had to come from running code and gate transcripts.
  • What each of the five debates decided. Debate 001 took a rival proposal to interpret everything at run time and another to keep the declaration inside the database itself. The first was adopted only where it is free (behaviour) and rejected for storage, on the finding that a fully interpreted platform stores data in generic columns and so cannot have native constraints such as double-booking protection; the second was rejected on the record of the two largest commercial platforms built that way, one of which built a whole toolchain to get back to version control as the source of truth, while two extractions were kept (customer-specific fields as data under row security, and spec deployments logged as actions in the same audited machinery). A third proposal, to build everything twice and diff, was rejected as the central mechanism on a 27-version, million-test study that refuted the independence it rests on, and kept in its narrow form as dissimilar enforcement, the practice used for flight controls. Debate 002 accepted the version handshake and its extension to the job queue, and the decompiler with its independence condition. Debate 003 accepted the stale-browser-tab door, found the emailed-link door, and replaced a list of doors with the funnel rule that makes an unnamed door fail closed. Debate 004 moved the check down into the database trigger (presence and equality) and made the stamp a per-entity content hash, explicitly rejecting a finer hash of only the write-relevant parts because a misclassification would fail open. Debate 005 conceded that the "re-resolve where safe" wording for links was the same rejected classification in disguise, replaced it with front-door re-submission, added the re-checking of the actor's permissions and the mint-time idempotency key, and added the deploy-window error code and four doctor checks.
  • The settled-questions register, entries 9 to 13. Entry 9 holds the funnel rule with its four named doors (boot, queue, browser tab, emailed links and in-flight processes); entry 11 dissimilar enforcement, reworded so that a proposal to apply it to a new rule is welcomed; entry 12 requires that mechanism descriptions in canon documents either be generated from what they describe or carry dated pointers to the tests that prove them, with unproven prose presumed to be rotting; entry 13 makes standing adversarial counter-rounds a permanent part of design review.
  • Asymmetries chosen on purpose. The start-up handshake is global-strict, since the program and database must agree totally, while the per-entity tolerance applies only to the intent doors (browser, queue, links); an emergency console fix must truthfully declare which version of the declaration it believes it is acting under, and no helper that fills that in automatically ships, so the friction is deliberate; the deploy routine of stop, migrate, start shrinks the window while the error-code translation covers every imperfect run of it. Fact-claims inside the debates were verified live on the day, and unverified claims entered the record labelled unverified.
  • Live-verified facts. The licence and upkeep of every library the design leans on were checked on the day, and no candidate is named from memory. Two candidate foundations were ruled out on licences that would have endangered a product meant to be sold.
  • Rejected alternatives, with reasons. The earlier design, a ledger of events as the source of truth, was rejected on evidence: all seven of his production systems keep ordinary tables with an append-only audit beside them, and none rebuilds state from events.
  • The Ten Gate Laws. Ten rules for what a gate must do, each earned from his own fleet's record. Among them: gate the generator itself; regenerate inside the gate; pin every unavoidable copy with a test that runs both; generated apps ship their own runtime health checks; gates have three states so an empty check never counts; idempotency and provenance live in the schema; scheduled AI work gets a persistent circuit breaker from day one; every gate gets a per-line proof that it can fail; a drift check must read the source independently of the thing it checks; an adversary's finding becomes a permanent test.
  • The enforcement ladder. Every rule lands as far down as it can on day one: a type that will not compile, then a schema that will not accept the row, then a gate that will not merge, and prose last.
  • Demonstrate, don't claim (the doctor). A program that drives real violations through the real system and watches each one refused: an unstamped write, a stale-stamped write, a console insert, a cross-customer read, a tampered audit row, a double booking.
  • Done is the gate's exit code. Type check, tests on a real database, prove-bites and the doctor. Nothing else counts, and a fresh-context reviewer signs off after trying to break it.
  • The fresh-context adversarial reviewer. A separate agent with no part in the build attacked the first commit, switched guards off to confirm their tests really fail, and invented attacks of its own; its findings became fixes with tests, and its re-review red-proofed the fixes themselves.
  • The review bundle for him. Every change to a declaration produces a plain-English difference generated from the declaration, the gate's transcript, and before-and-after screenshots.
  • The seven-repo audit. Seven independent AI audits, each run read-only from inside one of his production repositories under one eight-question brief (what it is as verified from the code and not the README, where each fact is declared, the declare-once patterns, how done is proven, history and audit machinery, battle-test evidence, layer-wiring pain, and lessons), whose findings were treated as input to the concept and synthesised into five pillars and ten new rules, on which the skeleton then built a real database with migrations, relations and tenant isolation. The measured evidence in the audits includes: an append-only audit table of 54,875 rows in the project factory with a live delete refused during sign-off; a 10,034-event append-only log in a federated control plane over eight legacy repositories, whose own checker actually attempts a forbidden change; hash-chained pipeline events, 978 of them across a real 653-page run in a bid analyser, where 509 of 3,315 model findings (15.4 percent) were deleted by machine for lacking a verbatim quote from the source page; a scheduler guarded by backoff, parking and a persistent circuit breaker; and a voice-agent system with 706 call transcripts and 545 scorecards in its corpus. The audits also confirmed that all seven systems keep ordinary tables with an append-only audit log beside them and none rebuilds state from events, which is what rejected the ledger design.

Named concepts

The named concepts, defined

Correctness by construction · The declare-once kernel · One declaration per fact · The glue tax · The screens stay completely normal · The AI proposes, the verifier disposes · Deterministic core, AI shell · Effects as the only path · The trigger floor · The version-stamp funnel · Front-door re-submission · History by construction · Dissimilar enforcement · The round-trip decompiler · The two blessed boundaries · prove-bites · The doctor · Demonstrate, don't claim · The Ten Gate Laws · The enforcement ladder · The canon · The settled-questions register · The Kernel Advisor Charter · Standing adversarial counter-rounds · The walking skeleton is the next adversary · The screen torture test

What it shows

He can find the structural cause of a whole class of software faults in his own production record and design it out, then have AI attack, build and prove the design.