Skip to content
Maxwell CollinsContact

Domain-Rules-Driven Development, a method for building with AI agents

Maxwell's method for building software with AI agents, in which the business's written rules overrule the code.

What it achieved

AI agents build to the business's rules, and the mistakes those rules forbid almost never reach the code.

The short version

Under this method AI agents build to the business's rules, and the mistakes those rules forbid almost never reach the code: across a six-product property software rebuild, the four kinds of fault it refuses as code is written showed up once among 920 recorded review findings. Domain-Rules-Driven Development is Maxwell's method for building software with AI agents. The business's rules are the authority, and the code has to answer to them. He set down 3,862 numbered, testable rules, compiled into contracts that seven independent AI reviewers must clear before building starts. 32 written agent procedures cut each contract into small work packets that quote every rule word for word. One agent builds a packet and a fresh agent reviews it. 48 blocking rules refuse the wrong code as it is typed, and 41 structural rules and a 19-step check stop it before it is saved.

The problem

An AI treats a specification as something to read once. It obeys written rules closely at the start of a session and hardly at all by the end, and the code it writes quietly overrules the rules. Asked to settle a disagreement between a rule and the code, it changes the rule. Asked to summarise a rule into a work brief, it changes that too: later briefs were measured compressing rule text nine to fifteen times.

In use

  1. Maxwell and the people who do the work write the rules in plain English. Each is numbered, tagged and made checkable.
  2. A seven-agent panel reads each contract, and building is refused until all seven return zero defects.
  3. An agent picks up one packet, builds it and cites every rule it touches by number. A fresh agent that has not seen its reasoning reviews it.
  4. When a fault turns up, the rule that would have caught it is written first. It is enforced at the strongest point it allows: refused as the agent types, rejected at the gate, or checked in a real browser. Then the fault is fixed.
  5. Business decisions the agents made on their own come back to Maxwell as a numbered questionnaire, each mapped to the rules his answer changes.

What it achieved

  • The mistakes its rules refuse as code is written all but disappeared: in his review of 920 recorded findings, four such kinds of fault showed 0, 0, 0 and 1 findings.
  • Small files, far fewer defects: files of 100 lines or fewer carried findings at 1.2%, about a tenth of the rate across the whole API, which is why the method caps file size.
  • Agents can no longer make business decisions silently: about 780 decisions agents had made on their own came back to him as a numbered questionnaire, each mapped to the rules his answer would change.
  • Fast once the plan is approved: a permanent identity for every property went from a design of 18 invariants to 19 built layers in four days once its contract cleared the seven-reviewer panel.
  • Tests that really catch faults: when faults were planted on purpose to test the tests, they caught 97.58% on the API, 96.76% on the database, 95.45% on sign-in and 92.78% on the application.
  • Kept a six-product rebuild moving through 1,211 commits (saved changes to the code), 1,207 of them in 64 days, all made by AI agents.

The full record

On this page
In one sentence

Maxwell built a method in which the specification is the authority and the code is "the defendant, not a witness", and the machinery that carries it: 3,862 numbered, testable rules (3,885 layer tags counted across 48 rule files of 20,662 lines) compiled into 20 contract sheets and two feature contracts of 9,470 lines, cut into small bounded work packets by 32 skills (26,681 lines in 82 files), each packet built by one agent and reviewed by a fresh one, held in place by 48 write-time blocking rules, 41 structural code rules and a 19-step gate, then put through browser testing; he built it by directing AI agents, and it carried a six-product rebuild through 1,211 commits.

numbered rules
3,862
lines of rules
20,662
step gate
19
independent reviewers
7

What it does

The size of the whole

Counted from the repository: 48 rule files holding 3,862 numbered rules (3,885 layer tags, of which 2,119 are [spec], 652 [consistency] and 1,114 [adversarial]), 20,662 lines of rules; 20 area contract sheets of 11,455 lines and two feature contracts of 5,436 and 4,034 lines; 32 skills in 82 files of 26,681 lines; 37 hook files and 48 hookify rules (39 written as block rules, 19 set to stop the agent outright and 29 to warn it); 41 structural rules and three reviewer agents; a gate of 19 steps; a feature-contract compiler of 2,329 lines of TypeScript (its reparse tool included); a decision record of 264 entries, each with its reasoning, in 4,097 lines; and the manifesto of 207 lines, the constitution of 203 and the contract panel's specification of 189. Every count is a floor.

  • The rule corpus. 48 rule files holding 3,862 numbered rules across 24 areas: the shared tier (sign-in, permissions, storage, errors, the audit log, security, identifiers and the parcel resolver), the cross-cutting files (activity, the AI infrastructure, background jobs, calendar sync, cross-product requests, data import, email templates, messaging, overdue escalation, system errors), the hub files (the hub, its account, notifications) and the property organiser files (assets, claims, compliance, contacts, dashboard, documents, events, financials, inspections, insurance, layouts, maintenance, management views, passport, people, projects, properties, the properties AI assistant, reports, service views, settings, tasks, tenants, valuations, vendors). Each rule is one numbered line carrying its layer, its error codes, its inputs and its side effects. The largest file, the hub, holds 273 rules; the people file 261.
  • The shared rule layer. Eight shared files (889 lines) that every area cites by number: sign-in (AUTH), the nine property permission keys (P), persistence (PER: soft delete, getNow timestamps, .returning write checks, money), errors (ERR), the audit log (AL: an 84-value entity registry that must be widened in the same commit as its rule, and an audit write that never throws into a business transaction), security (SEC: wildcard escaping, text sanitising, sanitising before text crosses into the AI service, protection against requests forged to reach internal addresses), identifiers (ID, and PCI for the canonical property identity, a RESO Universal Parcel Identifier URN) and the parcel resolver (RM), which holds the vendor-swap rules: one factory is the only place a resolver may be imported, no vendor name may appear on a canonical surface, and vendor failure is sorted into closed cause codes behind a retry and circuit breaker. The answer to a rejected paid vendor was a free Census Geocoder and OpenAddresses composite, swapped in by configuration alone.
  • The rule graph. A knowledge graph of the rule corpus, 5,474 nodes and 10,762 edges, rebuilt on every commit that touches a rule, so an agent finds a rule by asking the graph and not by reading 20,662 lines.
  • The domain registry. The single list of every domain across every product, with the status of each, which no agent may change without the founder's instruction.
  • The upstream authority chain. Product vision (2,271 lines), a feature inventory of 629 capability IDs (1,208 lines) that /specify and /spec-audit check mechanically into the rules, architecture documents (2,146 lines), blueprints (4,887 lines, a machine-readable bridge between prose and rules), the domain registry with its status ladder (NOT STARTED, SPECIFIED, AUDITED, TESTED, REMEDIATED) and the CTO decision ledger, whose C- numbers rules cite, with a rule in /specify forbidding a citation that cannot be verified.
  • The Constitution. Eight non-negotiable principles, "LAW", whose violations are blocking errors: complete parity with the original software, UUIDv7 identifiers everywhere, timestamps with time zone in UTC, architecture boundaries enforced by a dependency checker, source-first development from the rules, a 500-line file cap, immutable data patterns and a mobile-ready foundation. Version 3.0.0.
  • The manifesto. docs/drdd-manifesto-v2.md, 207 lines, written so the method can be taken to another project: the four commitments, the twelve rules of a domain rule, the anatomy of a rule with two worked specimens (cross-organisation access, and money persistence as integer cents) and the provenance.
  • The contract layer. 20 area contract sheets (11,455 lines) and the feature contracts for the canonical property identity (5,436 lines) and the resolver remediation (4,034 lines), each stamped with the date its panel review cleared. /contract cuts an area into layers of three to six related operations; every layer's brief carries the full text of every rule it needs, with the reason, never a pointer to it.
  • The feature contract compiler. scripts/contract-feature.ts, a reparse tool and six libraries, 2,329 lines, runs five steps, as passes: a fresh agent writes each layer's brief so that none gets a tired reader, the program itself pastes the rule text in so no AI stands between a rule and the brief that quotes it, the layers are concatenated into the contract, seven reviewers read it, and an aggregator writes the verdict into the contract's header and the marker file.
  • The 7-agent contract panel. Seven agents in parallel as separate processes, each with one question: is every rule word for word, does every citation resolve, is every operation covered exactly once, does the order of layers hold together, has anything outside the design crept in, what risk is left undecided, and is any layer too large or too small. Each answers with a list of defects or an exact zero line; phrases such as "looks good" and "substantial progress" are banned. Two of the seven are judgment reviewers that use the CTO skill on a stronger model. Building is refused until a marker file written on seven zeros exists, and its defect shapes are named: missing, reference-form, paraphrase (rule text compressed by more than half again) and mispaired for the verbatim check, and cycle, missing dependency, invariant missing or paraphrased and shared rule missing or paraphrased for coherence. A failing panel gets at most two fix iterations before it goes to him.
  • The build packet. What /build-source opens before it writes anything: the layer's brief, the area's rules in full, all the shared files, the router patterns, the actual implementation of every shared utility the layer calls (with a stop if one contradicts its shared contract), and the project's rule files. Reading an existing router file as a model is forbidden, because copying one carried its drift into new work. Pages are then built from the finished router, in five staged subagent runs (map, plan, build-index, build-detail, verify) by /page-build, with a mechanical check that no procedure goes unaddressed.
  • /build-feature and the implementation map. Executes exactly one layer of a feature contract across six layer types (infrastructure, schema, per-domain, orchestration, jobs and admin, cutover), refuses to run without the panel's marker file and without proof on disk that the layers it depends on are complete, and writes a map of every file it will touch and the data flow of each operation, which the orchestrator approves before any code is written.
  • The QA triage chain. /qa-audit (one journey in a real browser per run), /qa-discover (a bug hunter with 12 areas of attack), /qa-verify (a source reader that confirms or refutes a finding, with guardrails against refuting a finding about a file it has not read), /qa-dr-adversary (asks whether the rule itself is the bug and returns one of six verdicts: sound, under-specified, ambiguous, contradictory, stale, missing) and /qa-severity-classifier (derives FIX, SPEC-GAP, CTO, RISK or DISMISS from the pair of verdicts). /diagnose owns a journey from broken to working and is not done until the journey runs end to end from a clean state, and /fix-source fixes one bug at a time with check sets per layer (15 grep checks for routers, 6 for schema, 7 for frontend) and refuses to fix a symptom.
  • /frontend-design, /frontend-implement, /frontend-review. A wireframe generator that studies the live code and competitor products first, an implementer that turns the wireframe and the rules into React and runs the gate, and an eight-pass reviewer (wireframe binding, behaviour binding, source precedence, security, accessibility, type safety, performance, findings).
  • The architecture and inventory skills. /architecture-write designs from the best products in a category and checks legacy parity only at the end, because a design that reads the old software first comes out shaped like it. /architecture-audit sends three expert agents at each document, /blueprint writes a 17-section product blueprint with a self-audit, /feature-inventory-write runs four parallel extraction agents, a modernisation agent and a consolidation agent and checks the result against the old inventory only as a cross-check, and /legacy-ux-extract is the firewall that distils the old interface in an isolated agent.
  • Test skills. /test-audit (six passes, with a check that every test calls the real production path), /test-write (one procedure per file, from the rules and not from the code), /test-fix and /test-remediation (Stryker mutation testing finds fake tests mechanically, then they are fixed).
  • Other skills. /timesheet writes the daily engineering report as a Word document in plain English, /opportunity-scout scans a channel group for verifiable demand signals with evidence tiers and an adversarial pass, and /domain-status reports the workflow state and the next command.
  • 32 skills. /specify and /spec-audit, /contract and /contract-feature, /build-source, /review-source, /fix-source, /cto and /cto-decide, /qa-audit, /qa-discover, /qa-verify, /qa-dr-adversary, /qa-severity-classifier, /feature-inventory-write, /legacy-ux-extract, /architecture-audit and /architecture-write, /blueprint, /build-feature, /diagnose, /domain-status, /frontend-design, /frontend-implement and /frontend-review, /page-build, /test-audit, /test-fix, /test-remediation, /test-write, /opportunity-scout and /timesheet: 26,681 lines in 82 files, most of them stages of the pipeline. /specify writes an area's rules; /spec-audit audits them in 12 passes (Pass 0, Pass 0.5 and Passes 1 to 10) against the architecture, the feature inventory, the drawn screens, the code and the schema, and Pass 0.5 scans for 17 words that signal a put-off feature.
  • /build-source. Builds one layer at a time, one operation at a time, with 15 mechanical grep checks run on every operation before it may claim the layer, a lookup table built before it writes, worked examples of the most-violated patterns, and a degradation check that sends it back if it skipped a check on a later operation. The layer then faces the gate, a cross-operation consistency audit of four checks and the existing tests. The agent's plan for the layer is re-derived and checked by a different agent that has not seen it.
  • /review-source and the ETV protocol. A nine-pass review against the rules and the contract: Pass 0 verifies the shared infrastructure in three phases (extract behaviour, negate each rule, sweep for forbidden patterns), then eight domain passes on procedure inventory, input validation, query correctness, error handling, audit log, response shape, security surface and engineering quality. Extraction-Then-Verification makes the reviewer list every behaviour in a file, with its line, before judging any of it. Error messages are compared character by character, and findings are never grouped to make the count smaller. Every finding is classified FIX, SPEC-GAP or RISK and all require action before the domain closes.
  • The gate as specification. pnpm gate (scripts/gate.sh, with a static-only form for the build loop) runs 19 steps: formatting, lint with no warnings allowed, package boundaries (the dependency checker's rules), the 41 structural rules, the tests of those rules, dead code, duplication, dependency versions, known vulnerabilities, a security scan, secrets, types, four self-test suites (the testing system's parser, the orchestrator's library, its substrate and its property-based checks), unit tests with coverage, tests against a real database, and browser tests. A failure means stop and fix the cause; running it again in hope is forbidden.
  • Enforcement at the strongest layer a rule allows. At the moment of writing, 48 hookify rules (the hookify rules, 39 of them written as block rules, 19 set to stop the agent outright and 29 to warn it: no UUIDv4, no console.log in source, no empty catch, no any, no skipped or deleted tests, no timestamps without time zone, no Math.random in production, no hard-coded secrets or database credential fallbacks, no innerHTML, no fail-open fallbacks, no lint suppressions, no edits to existing migrations, no feature branches, no deferral language in rules) and 41 structural rules (1,696 lines in 44 files, each with tests that show it catching the wrong shape and allowing the right one) reject the wrong shape before it lands, backed by 37 hook files (5,236 lines) that guard git, direct database changes, protected files, skill-bypass language, rationalisations about time budgets and every subagent dispatch. At commit, the gate. At run time, the product's own middleware. "Code review" does not count as enforcement.
  • The audit and remediation record. docs/audit-reports/ holds 362 files and 146,264 lines of Markdown: 151 files of rule audits, 107 files (51,041 lines) of source reviews across 17 areas that each converge to a zero-finding verdict, 49 architecture reviews from three personas, a foundation audit, shared-infrastructure and utility sweeps, a schema comparison of 32 sections against 33 schema files, and forensic reports. docs/remediation/ adds 211 files and 32,077 lines across 28 area folders.
  • Forensics kept as memory. The 278-line spec-fix forensic report records the orchestrator reading all 24 subagent regression reports, discarding every subagent verdict and re-judging from evidence; a 325-line assessment measures a subagent's test weakening, the move the test hooks now block; and a page-build forensic catches a fork that claimed an authorisation nobody gave. /specify's edit mode forbids rewriting a rule file, and deferral tags are invalid.
  • The CTO agent. /cto first neutralises a question, stripping any multiple choice and turning stated facts back into things to verify, then hands it to a fresh agent. That agent opens with a sentinel line naming its decision class (architectural, category-c, tooling, security, ui-ux, test-quality or domain-specific) and the order of authority (constitution, then CLAUDE, then the shared rules, then the domain rules, then the CTO decisions, then the source). It reads only, cites a file and line for every claim, never hedges and returns one decision with one reason. The 264 decisions it produced, recorded in 4,097 lines, stay closed unless new facts arrive. A briefing of 375 lines orients it with every claim cited to a file or commit.
  • Recurring decision defaults. Questions that come up in every area have one written answer: what happens to linked records on deletion (restrict for every creator reference, cascade for notifications), rate limits (10 AI calls and 30 changes a minute per user), when a repeated request must be harmless, how two simultaneous writes are settled, and how long records are kept. Agents apply the default or cite the reason they did not.
  • Gold standard files. Named reference files show every correct pattern at once (unit, property, integration and browser test patterns, the Drizzle call chains, the shared utilities' contracts), and a blocking rule requires an agent to read them before writing in that part of the code.
  • The test policy. Tests are written beside utilities and security code, as locks on defects the browser testing found, and as safety nets afterwards. The litmus rule: delete the product code, and a test that still succeeds is broken. An agent must score every one of 53 questions on a certification exam correctly before it may touch a test file.
  • The MCP federation. Eight servers of the project's own expose its state as questions an agent asks for about 200 tokens, where reading the files would cost 5,000 to 30,000: one orientation call that gives the branch, the finish line, the last three decisions, open dispatches and the findings summary; the memory corpus (267 indexed files) and an analyser that clusters it and proposes contradictions and supersessions; the decisions; the findings database (920 findings); the orchestrator's ledger of dispatches and runs; and two graphs, one over the rules and one over the code (11,321 nodes, 26,060 edges, 279 communities as the instructions record it). A blocking first step makes every session and every helper call the orientation first.
  • The canonicalisation campaign's instruments. 24 business-decision files, a 1,850-line questionnaire of 613 questions, two rival final audits (the larger 1,126 lines) and two re-audits (1,012 and 911 lines). Their outcome was the shared rule layer: 126 canonical rules, cited 271 times across all 24 area files.
  • The four finish-line criteria. Every journey works in a real browser, the gate lets the code through, the testing system reports no blockers, and the code scores 90 or more out of 100 on the due-diligence rubric. The constitution names the first three; the fourth is held in the project's instructions, which record why it stays.
  • Generations of the method, all kept. The Three-Layer Verification Architecture (context an agent may ignore, tests it cannot fake, enforcement it cannot bypass), test-first with mutation testing, a two-agent adversarial protocol in which one agent writes tests and another attacks them, and the source-first form above. The constitution records each change of order; the superseded plans carry a marker that names their successor, so the history stays readable and the routing hook stays quiet.
  • The benchmark. Twelve feature task briefs and a 557-line scoring harness that measure the method against a baseline.
  • The next generation. docs/postmortem/ (eight analysis documents, among them AI behaviour patterns, what worked, the bifurcation of the rules and the requirements for the next version) and docs/v4-design/ (a digest of four research reports of 41, 31, 41 and 57 sources, three proposals, their reconciliation and a first design) together 4,828 lines. Its locked intent keeps the rule-first authority and adds one property: whatever can be made impossible to compile must be, with checks at run time kept for what cannot.
  • Packaged for reuse. The seven core skills of this method are packaged as suite-plugin (15 authored files, 2,748 lines), with a stated list of what a project must have for them to apply.

What it achieved

  • 1,211 commits by AI agents alone across the method's generations, 1,207 of them in 64 days.
  • His forensic review of 920 recorded findings: four kinds of fault that a rule rejects at the moment of writing show 0, 0, 0 and 1 findings.
  • In the same review, files of 100 lines or fewer carried findings at 1.2%, about a tenth of the API-wide rate, which measures the small-file rule.
  • The canonical property identity went from a design of 18 invariants to 19 built layers in four days once its contract had cleared the panel.
  • Mutation testing, which plants faults to see whether the tests catch them: 97.58% on the API, 96.76% on the database, 95.45% on sign-in and 92.78% on the application.
  • 3,862 rules in 48 files; 264 decisions and 920 findings recorded; two feature contracts that cleared a seven-agent panel.

The problem it solves

  • An AI treats a specification as something to read once. It refers to it imperfectly, and the code it writes quietly overrules it. Its obedience to written rules is high at the start of a session and all but gone by the end. Writing a longer or clearer specification does not close that gap.
  • The gap closes when a rule becomes something a machine can check, that every dependent piece of code cites by number, and that is enforced at every point where it could be broken.
  • An AI asked to settle a disagreement between a rule and the code will change the rule. Under pressure a reviewer will delete the requirement that exposed a fault instead of fixing the fault.
  • An AI that summarises a rule into a work brief changes the rule. In long single-agent runs the later briefs were measured compressing rule text nine to fifteen times, and agents invent escape routes such as "see Layer 3" when the old ones are blocked. So the program pastes rule text in itself, and the panel's paraphrase check catches what is left.
  • An AI reviewing its own work, or told to "read the file", finds one piece of evidence that things are fine and stops.
  • An AI makes business decisions without saying so. An audit of the rules found about 780 decisions that agents had made on their own.
  • An AI copies the code it is shown, so the rebuild is built from the rules rather than from old code, to a rubric that sets the bar at 90 out of 100 or more.
  • Tests written before the code can pass without exercising anything. A system he ran elsewhere, built straight from a specification and then tested in a browser, delivered without defects, so the pipeline builds from the rules first and proves the result in a real browser, to the same standard.
  • Every fault found is a missing rule. Repairing only the fault leaves the same class of fault free to come back in the next area.
  • A status report from an agent can describe the last run and not the current one. He made the report carry three measured signals read from disk and database (new findings, journeys past sign-in, seconds since the last finding), and a hook blocks any "going well" without them.
  • Agents reach for budget talk (weeks, phases, "out of scope for now") to shed work. He wrote the phrases down as anti-prompts, with a hook that detects time-budget rationalisation.
  • A helper that looks like a winner may only be used where the bugs are. He cross-checked every pattern against the findings database and kept only what the numbers support.

How he built it

He builds by directing AI agents, and every mechanism below was put in place that way. Each one is his rule for what the agents must treat as true, what they are blocked from doing, who checks whom, and how the result reaches him as evidence he can judge without reading every line.

  • Four commitments. Machine-testable rules over prose specifications. Mechanical enforcement over agent compliance. Source-of-truth authority over reconciliation. Monotonic rule sets over revisable specifications.
  • Domain rules are truth. "Source code has zero authority." If a rule says one thing and the code does another, the code is wrong. An agent may never argue from what the code does to what the rule must have meant.
  • The Twelve Rules of a Domain Rule. His written standard for what counts as a rule: machine-testability, three layers, the authority hierarchy, monotonicity, origin citation, incident capture, mechanical enforcement, specification completeness, adversarial coverage, shared vocabulary, zero deferral and gate as specification. Each comes with a counter-example and a litmus test; the litmus for the first is that a junior engineer given the rule and nothing else can write one passing and one failing test against it.
  • The anatomy of a rule. Six parts: its layer, its origin (the decision, incident or commit that produced it), its text, the assertion that tests it, where it is enforced, and the fault it closes. A rule missing a part is a wish.
  • Three layers. Every rule is tagged [spec] (what the operation does), [consistency] (what must hold across operations) or [adversarial] (what happens when the system is probed: races, injected input, reaching across organisations, an outside service failing). An area with no adversarial rules is not specified.
  • Monotonicity, and "SPEC-GAP can only ADD". Rules grow and never shrink. A finding may add a rule or strengthen one. It may not remove one or soften "must" to "should".
  • Shared vocabulary. Matters that cut across every area (sign-in, permissions, storage, errors, the audit log, security, identifiers) are written once under numbered families, AUTH, P, PER, ERR, AL, SEC, ID and PCI. Every area cites them by number, so a change is inherited everywhere.
  • Specification completeness. Behaviour the code shows and no rule states is itself a violation, whether or not it works. It is removed, or a rule is written for it.
  • The contamination firewall. Isolated agents distil the original software into a feature inventory of 629 features (1,208 lines) and a description of each screen (18 files). Builders read the distillations and never the source. The reason is copying, not speed.
  • The canonicalisation campaign. Agents drew the business decision out of every rule: 890 decision records across 24 areas, and a 613-question numbered questionnaire that put the roughly 780 decisions agents had made on their own back in front of him, each mapped to the rules his answer would change.
  • /specify and /spec-audit, /contract and the Layer Brief. Rules are written by one skill and audited by another before any contract is cut, and the Layer Brief that results carries the full rule text, never a reference.
  • Bounded work packets, fresh reviewers. One layer, one operation at a time; the planner is not the checker, and the reviewer has not seen the builder's reasoning.
  • Incident capture. A fault is answered in four steps in order: name the rule that would have caught it, write the rule, attach its enforcement, then fix the fault. Every hook, structural rule and gate step is a frozen incident.
  • Zero-deferral. No finding is left for a later phase. It is fixed, turned into a rule, or brought to him for a decision.
  • Fix or stop. On any error, warning or failure an agent either fixes the cause or stops and presents what it found; carrying on silently is not an option the instructions allow.
  • Persistence. The instructions keep an agent working until the task is done, treat context limits as handled by compaction and require state to be saved and work carried on; a named list of real reasons to stop is the only exception.
  • Evidence before status. The QA progress rule, a hook that refuses any report of progress without its three measured signals, and a STALLED verdict that is mandatory when either is flat.
  • Superseding, not deleting. A replaced plan, spec or rule file keeps its body under a first-line marker naming its successor and the date, so the audit trail survives.
  • Commit cadence. Every uncommitted file is committed, in conventional-commit form, with no bypass of hooks and no force push; a post-commit hook rebuilds the code graph on every commit and the rule graph when a rule changes, and backs the work up to iCloud with a documented restore (docs/RECOVERY.md).
  • Skills are fixed at the source. When a skill produces a defect the skill is the root cause, and a nine-step protocol governs how it is changed.
  • How the result reaches him. The instructions are written for a founder who judges the work by the evidence it produces (tests, gates and recorded proof) instead of reading every line: technical decisions belong to the agent, the CTO agent makes each one with its reason, and the questionnaire returned only the business decisions to him.

Named concepts

The named concepts, defined

Domain-Rules-Driven Development · Domain rules are truth · Source code has zero authority · The defendant, not a witness · The Twelve Rules of a Domain Rule · Three layers: spec, consistency, adversarial · Monotonicity · SPEC-GAP can only ADD · Origin citation · Incident capture · Shared vocabulary · Specification completeness · Zero-deferral · Gate as specification · Layer Brief · The 7-agent contract panel · Extraction-Then-Verification · The contamination firewall · The canonicalisation campaign · Source-first pipeline · Four finish-line criteria · The litmus rule · The anatomy of a rule · Four commitments · Authority hierarchy · Adversarial coverage · Mechanical enforcement · Three-Layer Verification Architecture · MCP-first protocol · The two-option rule

What it shows

He can turn a product's requirements into law that AI agents cannot rewrite, and build the machinery that carries that law unchanged from his decision to the code.