Skip to content
Maxwell CollinsContact

The property software suite, six products on one property record

Six property products in one application, used by owners, inspectors, service companies and property managers on one shared record.

What it achieved

64 daysto rebuild what a team built over twelve years

Rebuilt in 64 days, by directing AI agents, property software a team spent twelve years building.

The short version

In 64 days, Maxwell rebuilt property software a team had spent twelve years building, with every line written by AI agents he directed, and held it to the review a buyer's engineers run before an acquisition. Owners, inspectors, service companies and property managers work on one shared record of each property, across six products in one application. Owners keep every asset, job, document and insurance policy for each building in one place, from one house to a hospital campus. Inspectors and service companies record their work against the same property, and the owner sees it at once. Every plot of land has one permanent identity that survives any change of address, owner or parcel number. A seller can hand a buyer the building's whole history as a shareable record (Property Passport). AI in the product reads documents, photos and policies and suggests what to record or do next.

The problem

He designed the suite's original products, so he knew every workflow the rebuild had to keep. The rebuild had to pass the review a buyer's engineers run before an acquisition, with AI agents writing every line.

In use

  1. A property owner keeps every asset, job, document and report for each building in one place.
  2. An inspector or service company records its work against that same property, and the owner sees it at once.
  3. Each property keeps one identity through every change of address, owner or parcel number, and its history cannot be edited.
  4. When the building is sold, the seller chooses what to share and the buyer reads it through a link, with no account needed.
  5. AI in the product reads each owner's records and helps run the building. Every suggestion waits for the user to accept or clear it.

What it achieved

  • Software a team had spent twelve years building, rebuilt in 64 days by AI agents he directed, with 1,207 commits landing in those 64 days.
  • Nothing the old software did was lost: all 294 of its legacy features mapped into the new design, none dropped.
  • Owners, inspectors, service companies and property managers work on one record of each property: six products on one database, one sign-in and one AI layer. They are Hub, the owner portal, the inspection app, the field-service app, the property-management app and the admin console.
  • Built to pass the review a buyer's engineers run before an acquisition. 3,862 numbered business rules outrank the code, each piece was built by one agent and reviewed by a fresh one, and a 19-step gate ruled on everything.
  • Bugs are caught by the tests before customers meet them: mutation testing, which plants faults on purpose to see whether the tests notice, caught 97.58% of them in the API and 96.76% in the database.
  • A machine tester used the product the way people do and found problems before users could, after first proving before each run that it could see.

The full record

On this page
In one sentence

Maxwell built the property software suite, a property software suite of six products in one application over one database (203,526 lines of application code in 1,108 files, 260,878 lines of tests in 585 files with 13,380 test cases, 38 screens, 320 or more API procedures, 106 data tables and 43 database changes, in 2,034,952 lines across 4,078 tracked files), by directing an organisation of AI agents to rebuild it against the standard a buyer's engineers apply before an acquisition: 3,862 numbered rules outrank the code, each piece is built by one agent and reviewed by a fresh one, and a 19-step gate and a browser tester that must first prove it can see rule on everything; inside it he built a permanent identity for every plot of land. Directing AI agents, he took it through 1,211 commits on the working branch, 1,207 of them in 64 days, and 1,217 across all branches.

lines of code
203,526
lines of tests
260,878
test cases
13,380
data tables
106
  • Hub
  • Owner portal
  • Inspection
  • Field service
  • Property management
  • Admin console
One parcel identity, one database
Property PassportInspection reportsService workInsurance and finances

What it does

The size of the whole

Counted from git at dev: 203,526 lines of application code in 1,108 files (TypeScript, TSX, JavaScript, SQL, shell, Python and style files, plus the supervisor's command bin/suite, the tracked post-commit hook, the Dockerfiles, the web-server file, the crontab and three marker files); 260,878 lines of tests in 585 files holding 13,380 written test cases; 118,681 lines of HTML in 62 files; 673,822 lines of Markdown and YAML in 2,081 files; 4,078 tracked files and 2,034,952 lines in all. Across the history, 2,857,646 lines were added. Every one of these counts is a floor.

  • Six products in one application on one database. Hub (the shared dashboard), the owner portal (owners), the inspection app (building inspection), the field-service app (field service), the property-management app (property management, new in this version) and the admin console. They are six route groups of one Next.js 16 application, one per product, over one PostgreSQL 17 database, one sign-in system and one AI layer, so that what an inspector or a contractor records appears on the owner's record of the same property. The rebuild replaces a four-product legacy system written in PHP, with a product switcher joining them.
  • The application's screens. 38 screens: the Hub has 12 (dashboard, AI assistant, billing, calendar, notifications, people, reports, settings, onboarding and a catch-all); the owner portal has 16 (properties with a detail page and a new-property wizard, assets, calendar, contacts with a detail page, documents, financials, insurance, maintenance, projects, tasks, verification and profile); the rest are sign-in and sign-up, the public Property Passport page reached by a share token, the about page, the privacy policy and terms of service, and the QA canary page the browser tester is calibrated on.
  • The owner portal. The owner's digital record of a building across twelve areas: properties, ownership verification and claims, insurance, documents, assets, maintenance, tasks, projects, calendar, contacts, financials and profile. It serves a homeowner with one house and an institution with a hospital campus on the same screens, from one component tree.
  • The API. One tRPC v11 layer holds all database access: at least 320 procedures in 108 router files, grouped by area. Properties has 15 router files, people 12, messaging 8, hub 8, admin 7, claims 6, assets 6, parcel events 5, insurance 5, tasks 4, maintenance 4, documents 4, passport 3, and further files for projects, portfolios, layouts, events, email, compliance, AI, valuations, dashboards, activity, auth and cross-product requests and shares.
  • The database. 106 tables in 50 schema files in Drizzle and PostgreSQL, built by 43 database changes, among them properties, the canonical property identity, claims and disputes, the parcel event ledger and historical renumbering, the open-address parcel table, the pending-resolution request queue, resolver metrics, passports, insurance, assets with loans, tenants and relations, people and person links, messaging, layouts, calendar sync, data import, email bounce and templates, notification preferences, background jobs, role-based access defaults, valuations, the activity log and system errors.
  • Service routes. 10: the AI chat endpoint, the sign-in service, the tRPC gateway, the realtime channel authorisation, the email-bounce webhook, sign-out, an upload endpoint and three scheduled jobs (session cleanup, the monthly open-address refresh and the parcel reconcile job).
  • The canonical property identity and the Global Property Model. One permanent record for each plot of land, shared by every organisation that works on it and owned by none. The primary action is "claim property", with verification, one verified owner per unit, and disputes decided by an administrator.
  • The parcel lifecycle event ledger, the parcel resolver and the national open parcel-data pipeline. The history of every split, merge and renumbering, the lookup from an address to an identity, and the monthly intake of public parcel data. All of these are on the identity page.
  • Property Passport. A transferable digital record for a property sale. The seller chooses what to include (maintenance history, warranties, documents, specifications, financials) and the system takes a snapshot of that moment and issues a share link, a QR code and an expiry date. The buyer reads it without an account, then claims it, which connects the buyer to the same permanent property record. No copy of the property is ever made. Twelve operations cover it, including a health score, invitations, revoking access, viewer activity and a PDF.
  • The AI layer in the product. Property details from a plain description, photo analysis, manufacturer-specific maintenance schedules, document reading, insurance coverage-gap analysis and a chat assistant, built on the Anthropic Claude API with tool use and image reading. Every one arrives as a suggestion the user accepts or clears; nothing an AI produced takes effect without that.
  • Access and records. A five-level permission hierarchy with deny as the default, on a sign-in system (Better Auth) that serves several organisations and several roles. A record a person may not see is reported as not found, so nobody can probe for what exists. Every change is written to an audit log kept seven years. Every query carries the organisation and the soft-delete test. Money is whole cents in a 64-bit column, so amounts above $21,474,836.47, the ceiling of the smaller type, never overflow.
  • A mobile-ready foundation. Identifiers a phone can mint offline (time-ordered UUIDv7), soft deletes and change stamps on every table for syncing, sign-in by cookie or by token, and packages that import nothing from the web framework, so a React Native app can use the same API.
  • Platform services. One notification router for in-app (real-time over a self-hosted Soketi server), email (Resend) and push; ten scheduled jobs; overdue escalation at 1, 7, 30 and 90 days; data import that recognises five competitors' formats; email delivery with bounce handling; file storage through presigned S3 links; and calendar export in the standard format.
  • The domain rules. 20,513 lines of numbered rules in 48 files across 24 domains: shared (audit log, auth, errors, identifiers, the parcel resolver, permissions, persistence, security), cross-cutting (activity, AI infrastructure, background jobs, calendar sync, cross-product requests, data import, email templates, messaging, overdue escalation, system errors), the Hub, field service, and 25 owner-portal files (assets, claims, compliance, contacts, dashboard, documents, events, financials, inspections, insurance, layouts, maintenance, management views, passport, people, projects, property AI, properties, reports, service views, settings, tasks, tenants, valuations, vendors). Behind them stand 177 feature specifications under specs/, a 1,208-line feature inventory of the original's 629 features, a 2,271-line product vision and an 8,684-line system map.
  • The quality machinery inside the repository. A 19-step gate script (pnpm gate: format, lint, architecture boundaries by dependency-cruiser, 41 structural code rules and their tests, dead code, copy-paste detection, version consistency, dependency audit, a security scan, secret detection, type checking, the harness's self-tests, unit tests with coverage, integration tests against a real PostgreSQL in Docker, and browser end-to-end tests); 48 hookify rules; 37 hook scripts; 32 skills; 3 reviewer agents; 190 files under scripts/, among them 67 declarative browser-test flows and the supervisor's verbs (status, remediate, verify, revert, kill, build-feature, qa, fix-cycle, deploy, schedule); a benchmark harness; a recovery protocol that backs the ledger, local settings and caches up to cloud storage after every commit and restores them on a new machine with one script.
  • Property-based and mutation testing. Archived test generations: 492 files and 11,647 tests. Mutation testing, which plants faults to see whether the tests catch them, scored 97.58% on the API, 96.76% on the database, 95.45% on sign-in and 92.78% on the application.
  • Two knowledge graphs. A graph of the domain rules (4,605 nodes, 5,156 edges, 22 thematic clusters) and a graph of the code (11,321 nodes, 26,060 edges, 279 communities), both rebuilt by a hook after every commit, queried by agents instead of reading files.
  • The browser-testing system. A planted-defect canary and two independent adjudicators. Its own page.
  • The business design. "Free for Demand, Paid for Supply": owners come in free, and inspectors, service companies and managers pay. The owner's product is the inbox and outbox for the others: reports and proposals arrive there, and requests for inspection, service and management leave from there.
  • A 74-component design system and a wireframe repository in which every piece of sample data on a drawn screen declares whether the backend behind it exists, so a design cannot drift from the code it will be bound to; a sync script ships the wireframes to a server for review.
  • Four agent factories on one kernel. The testing system, the contract pipeline, the suite orchestrator and an opportunity scout share one design: a fixed program owns every step and an AI does only bounded work that something else checks.
  • The written method. The Domain-Rules-Driven Development manifesto; "The Claude Code System: A 10,000-Hour Practitioner's Framework" (939 lines); a 3,943-line report on the AI operating environment; a blueprint for the testing system; a 682-line catalogue of AI anti-patterns; a 66-section record of 264 and more design decisions; six forensic reports; and 16 research and reference papers, among them studies of spec-driven development, of why agents put work off, of prompting for coding agents and of property-software design.
  • The hand-built migration runner. packages/database/migrate-custom.ts (143 lines, with its own tests) applies the 15 custom SQL changes that Drizzle's own tool cannot express. It wraps each change and its record in the tracking table in one transaction, so a change either lands whole or not at all, and it accepts a strictly parsed -- @no-transaction marker only for the few database operations PostgreSQL forbids inside a transaction (building an index without locking the table). Tests cover the parser's false positives and regex backtracking. A CI workflow, Migration Check, regenerates the Drizzle migrations and fails the build when the schema changed with no committed migration.
  • The procedure base and the permission walk. The API's procedures are built on a fixed ladder (public, authenticated with active-organisation anti-spoofing, property, and scheduled-job), a custom error formatter that forwards only plain cause codes and never a stack trace, keyset-only pagination with compound cursors, and responses that leave internal columns out. Property access resolves in a strict order: platform administrator, organisation owner or administrator, no relationship means deny, explicit per-property permissions (empty means inherit), then the defaults for each relationship (owner, manager, tenant, delegate, inspector, technician) over nine permission keys, all read from one shared map so two implementations cannot drift. Properties carry no organisation column: access flows through a junction of people to properties, in one SQL check that reports every miss as not found (decision C-13, the most defended decision in the code).
  • Parcel resolver resilience and the renumbering authority. The resolver sits behind a single approved import point (a structural rule enforces it) with four resolvers behind it (the national open-address one by default, a manual one by assessor number, and two vendor stubs, one of them blocked at start-up), retry and a circuit breaker that sort vendor failures into timeout and outage codes, and an address-cleaning integration frozen to one of the vendor's interfaces by decision INV-9. The monthly open-address intake streams each county, writes to a new table and swaps three tables by rename in one step, keeps a local county-coverage table as the source of truth, and isolates a bad county so the rest still load. An administrator can apply a jurisdiction-wide renumbering (the seed case is New York City's 1 July 2020 renumbering of tax lots) that fans out to one ledger event per affected property, with a unique constraint as a second guard against two fan-outs at once.
  • Audit log, security hardening and concurrency discipline. The audit writer covers a registry of 84 entity types that must be widened in the same commit as the rule that names it, never throws into the business transaction, is called outside the transaction, caps its metadata at 10,240 bytes, and uses a null-organisation system actor for scheduled runs. The API removes cross-organisation record probing by moving the organisation test into the SQL, checks file addresses against a request-forgery and cross-tenant test with one error for both failures, escapes search wildcards, rejects script and data links, compares secrets in constant time (with a defence against length leaks), and rate-limits per user. A named body of concurrency practice covers checking foreign keys inside the transaction, row locks for idempotency keys, PostgreSQL advisory locks to keep one job at a time, partial unique indexes as structural race guards, and keeping web calls out of transactions.
  • Sign-in, notifications, jobs and observability. The sign-in system serves web cookies and phone tokens from one configuration, with two-factor, magic links, Google and Apple sign-in, a start-up check that throws on a missing secret, and a sign-in rate limit of 5 per 300 seconds whose development switch is double-gated so a misconfigured production deploy cannot disable it. The notification router resolves each person's channel choices per event type (default: in-app on, email and push off), saves the in-app row first, then fans out. The scheduled-job platform keeps its schedules in one constants file as plain five-field UTC timings, one central registry, and a gate that checks the bearer secret in constant time. A system-error log with severity tiers and three administrator screens (county coverage, parcel-event detection, resolver metrics) lets one operator see the health of the vendors and the intake without a shell.
  • Email delivery, calendar and the application shell. Templated transactional email with bounce and suppression handling and verified webhooks from the email provider; a hand-built calendar (month and week grids, mini-calendar, now-indicator, colour system) with an RFC 5545 calendar export (ics-export.ts, 195 lines) and a specified push-sync to outside calendars; a shell shared by every product with a command palette fed by per-product navigation settings, a right-hand information panel, breadcrumbs, a product switcher driven by declared product flags, and a multi-theme system. The property detail page is one adaptive page with twelve section renderers (activity, assets, compliance, contacts, documents, financials, inspections, insurance, maintenance, notes, services, tasks, units), a map view, a property switcher and scroll-spy navigation. Insurance has 28 files (policies, certificates, claims, compliance, coverage analytics, an AI policy scanner), documents 18 files with a four-tab preview that includes AI-extracted data, maintenance 14, tasks 12 and projects 11. The asset registry went through four named wireframe variants (field-rename ripple, compliance and lifecycle dashboard, floor-plan first, portfolio roll-up). A live in-app prototype tested a GitHub-style visual direction against the locked theme, and an author-site wireframe set exists beside the product.
  • Remote checks and the VPS set-up. Six GitHub Actions workflows of 891 lines run on every pull request: CI (format, lint at zero warnings with SonarJS, dependency-cruiser boundaries, the structural rules, dead code, copy-paste at a 5% limit, version consistency, a secret scan and gitleaks, then the test tiers), Security (CodeQL, dependency audit at high, Trivy on critical and high, weekly), Compliance (a CycloneDX software bill of materials, failure on GPL and AGPL licences, conventional changelogs and tag-driven releases), Migration Check, QA, and Deploy (a container image with build cache, migrations run over SSH, and a deploy group that is never cancelled midway). A server set-up of Docker Compose, a Caddyfile for TLS and systemd units for the supervisor, with a remediation timer, a heartbeat and an installer, sits under infrastructure/.
  • Provenance and containment for unattended agents. Every supervisor job leaves a record in a hash chain: events are canonicalised to RFC 8785, linked by SHA-256, and tagged with evidence levels from L0 to L4 (L1 is a claim with an artifact path, L2 a claim with a git commit), stored in an append-only SQLite table with write-ahead logging and full synchronisation, with parent-and-child session lineage. The dispatch ledger adds runs, dispatches, actions, cursors, findings and schedules, each dispatch holding its write set, the commit it produced, its cost, its tool uses and whether it was verified; commit trailers join commits to dispatches, and suite verify recomputes the chain from the first record so he can check any claim himself. suite revert undoes a dispatch by its recorded commit, and suite kill asks a running dispatch to stop. Beside it, scripts/sandbox/ (eight files) runs a dispatch in a throwaway container built from a minimal image, on a fresh clone that is the only writable path, behind an egress firewall (iptables and ipset), with the Anthropic key held by a proxy so it never enters the agent's environment, and a list of credential paths the agent may not read.
  • The dispatch toolchain beyond the verbs. The supervisor's twelve scripts include a scheduler daemon and a verify, deploy, schedule and status family; refresh-briefs.py (322 lines) writes a read-once brief per domain from the rule, decision, finding and graph stores, and further scripts generate per-domain manifests and per-layer build and audit briefs. Seven hand-built MCP servers (about 3,100 lines of Python) serve orientation, memory, a semantic memory analyzer (BERTopic and sentence-transformers run locally, with a seven-tool interface that proposes contradictions and replacements but never calls a model itself), the dispatch ledger, findings and decisions. A completion ledger in SQLite tracks 21 owner and administrator screens across five tables, renders its Markdown views from the database and has a drift gate that fails when the two disagree.
  • Recovery and context machinery. recover.py replays the writes and edits found in a Claude Code session transcript, in time order, to rebuild lost work, and extract_context.py rebuilds a conversation from a transcript for a replacement agent. Start-up and compaction hooks inject the orientation protocol, re-inject load-bearing rules by reference and snapshot the transcript before the context is compacted.
  • The hook and guard layers, in full. A consolidated shell-hook router (bash, edit, git and database checks, first block wins, with a regression harness for the hooks themselves); a dispatch guard that enforces a workflow state machine (no new domain while the current one has a rejected review, no reviewer without a verified worker, no escape-hatch wording in a brief); 48 declarative blocking rules for deferral, test skipping, hard-coded secrets, script injection, weak ciphers, timestamps without time zones and version-4 identifiers; and Stop hooks that police the agent's final message, one calling a model to classify it against a 20-category catalogue of AI failure patterns (schema-constrained, bounded in cost), one catching time-budget excuses and one refusing to end a session while tracked errors remain.
  • The QA machinery in detail. A durable finding writer (qa-emit-writer.ts, 209 lines: a lock file per write, a flush to disk per line, a queue in memory, reclaiming of stale locks) behind a per-flow MCP server so a browser agent's findings survive a crash; zero-model probes (a source and API pre-scan, an HTTP input fuzzer, a route walker, a contract check, a time-zone diff and a visual diff); flows for eight security checks (IDOR, CSRF, CSP, cookie tampering, AI injection, auth bypass, file upload, debug exposure) and cross-cutting sweeps (dead links, dark mode, hydration timing, internal strings, disabled elements, duplicate headings, responsive layout, round-trip integrity); and a SQLite ledger that gives each bug a cross-run identity, with a regression gate that fails when the app or the harness itself gets worse.
  • Test and rule corpora kept as record. Two archived test corpora of 492 files and 233,999 lines (one holding 302 tests on valuations alone); a mutation-testing programme with its own measured campaigns; and a rules corpus of 48 files and 3,862 rules.
  • The specification and product-scoping programmes. A canonicalisation campaign: 890 decision records extracted from the rules, a 1,850-line questionnaire of 613 numbered questions covering about 780 business decisions the agents had made on their own, about 2,800 rules reviewed and about 220 revised, two rival final audits (the second of 1,126 lines), and a re-audit of 1,012 lines that created the shared rules layer. Before it, a three-phase product-scoping programme of about 8,000 lines: all 294 legacy features regrouped by what the user accomplishes (with the finding that five separate notions of a person are one), about 51 new capabilities set against named competitors, and one synthesis mapping 294 of 294 legacy features with none dropped, from five synthesiser agents and a devil's-advocate agent. A frontend-design skill was built from measured design extraction of ten products rather than taste, and three competing frontier models were given the same evidence on the enforcement system and their diagnoses kept.
  • The skill and contract compiler in detail. contract-feature.ts (690 lines) compiles a multi-domain feature into a verified contract in five passes: one agent writes the preamble, one parallel agent per layer writes each brief (after measuring 9 to 15 times paraphrase compression in late layers of single-agent runs), the briefs are joined by program, the seven-agent panel runs, and only a passing verdict creates the marker file without which /build-feature refuses to run; the panel's verbatim check fails any rule whose word ratio drifts past 1.5. /specify (664 lines) and /spec-audit (590 lines, 12 passes with a 17-word banned list for deferral) write and grade the rules; /build-source (531 lines) extracts three lookup tables before writing and runs 15 grep checks after each procedure; /review-source (546 lines) makes the reviewer first list every behaviour in a shared file with file and line and only then judge it; /build-feature (674 lines) handles six layer types; the CTO dispatcher strips multiple-choice framing from a question and sends it to a fresh agent. The system has 30 workflow skills of 14,219 lines.

What it achieved

  • 1,211 commits on the working branch and 1,217 across all branches, 1,207 of them in 64 days and as many as 80 in a single day; 4,078 files and 2,034,952 lines in the project, from 2,857,646 lines added over its history.
  • 203,526 lines of application code, 260,878 lines of tests and 13,380 test cases; 38 screens, at least 320 API procedures, 106 data tables.
  • 3,862 numbered rules in 48 files across 24 domains, 264 recorded design decisions, and 629 features of the original inventoried.
  • His own forensic review of the browser tester's findings: for four kinds of fault that a rule rejects at the moment of writing (the wrong kind of identifier, a permanent delete, decimal money, unmanaged clock time), the ledger holds one finding across all four.
  • The canonical identity was built as 19 layers in four days, from a 5,436-line contract.
  • 382 logged dispatches to agents, 275 to builders and 107 to reviewers. One overnight run, with nobody attending, produced nine commits across 42 files in 81 minutes.
  • 229 commits in five days on the screens of the owner's product.
  • Archived test generations: 492 files and 11,647 tests. Mutation testing, which plants faults to see whether the tests catch them, scored 97.58% on the API, 96.76% on the database, 95.45% on sign-in and 92.78% on the application.
  • 38 screens, 10 service routes, 108 router files, 106 tables in 50 schema files, 15 custom database changes, 32 skills, 48 hookify rules, 37 hook scripts, 41 structural code rules, 67 browser flows, 190 scripts, 6 remote workflows of 891 lines and 7 MCP servers, each counted from the tracked files at dev.
  • The 12 scripts of the supervisor and 7 hand-built servers of project state; the canonicalisation campaign's 613 questions and 890 decision records; and the 294-of-294 feature mapping with no feature dropped.

The problem it solves

  • He knew this suite from the inside: he had designed its original products. He held the rebuild to the review a buyer's engineers run before an acquisition, set a quality score of 90 out of 100 as the bar and made the review mechanical, so that no agent can talk its way past it.
  • Every established product in property software was written years ago, with AI added on afterwards, and each serves one kind of user. He built this suite with AI as the main way of working and with owners, inspectors, service companies and managers all on one record of the same property.
  • With AI agents writing every line, he judges the work by the evidence the machine produces, not by reading every line. Every finding has to be trustworthy enough to go straight to repair without anyone sorting it first.
  • An AI reads a written rule once and then lets the code it wrote overrule it, and its obedience fades as a session grows long. A better-written specification does not fix that. He changed what a specification is: a numbered rule a test can check, which code must cite and can never outvote.
  • An AI copies whatever code it is shown, even when told not to. So the old code is never shown to an agent that writes code.
  • An AI will satisfy the check in place of doing the job. He made tests that succeed without exercising the product impossible to write, and moved authority from tests to rules.
  • An AI asked to settle a disagreement between a rule and the code will quietly rewrite the rule. So rules may only be added to or strengthened.
  • An AI reports progress it has not made. He made a progress report without evidence impossible to send.
  • An AI talks itself out of work in the language of time and budget. He listed the phrases and treats any of them as a sign that the reasoning has gone wrong.
  • An address is not a property, and a data vendor's key is not one either.
  • A stubborn fault has a cause nobody is looking at. When the browser tester saw the page reloading every millisecond or two, he had a fresh-context agent handed a forensic record, with the previous agent's theory marked as not endorsed, and it found the cause: a loop between the middleware and the page layout when a sign-in cookie outlived its database session. The cure moves the signed-in redirect out of the middleware into the sign-in pages (decision AUTH-D3), and the working record of it was kept.
  • A vendor's key is a cache, not an identity, and a rule that stays only in prose will be broken. He made the address vendor's key a cache column and put the rule that no code may import a concrete resolver outside its factory into a structural check, so the boundary holds without anyone remembering it.
  • A team of agents cannot be trusted to say how much of the machinery works. He had a forensic inventory made of 178 checks, hooks and rules to see which of them caught anything, 51 recurring patterns of agent unreliability catalogued, a benchmark of 12 task briefs scored by a 553-line harness, and a three-phase redesign written (six forensic reports, a digest of 170 external sources with 8 convergent findings, and 32 locked decisions).
  • An instruction file is itself a source of defects. He rewrote the project's main instruction file across 48 revisions, among them one that removed stakes and desperation language and cut negative phrasing by about 83%, and a memory corpus of 209 files (about 1.2 MB) that had outgrown the system prompt's measured 24.4 KB limit was moved to an archive and served by query instead.
  • He then examined his own operation the same way. He had three different AI models each propose improvements, commissioned six forensic reports, and measured the method itself with a benchmark of 12 task briefs and a scoring harness. He named what he saw the Defense Machinery Treadmill, in which every bypassed check is answered with another check, and set the rule for the next generation: anything that can be made impossible to compile must be.

How he built it

Maxwell builds by directing AI agents; he did not type the code. The rules, hooks and reviews below are his, and each is a file in the repository.

  • The standard: four finish-line criteria. Every user 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 fourth stands apart from the other three, with a note telling any future rewrite why it stays.
  • The constitution. Eight principles that outrank every other instruction: Complete Legacy Parity (none of the original's 629 features may be cut or simplified), time-ordered identifiers everywhere, a time zone on every timestamp, fixed boundaries between packages, source-first development from domain rules, small files (500 lines a file, 200 a function), data that is never changed in place, and a mobile-ready foundation.
  • Domain rules are truth. "Source code has zero authority." When a rule says one thing and the code does another, the code is wrong and there is no reconciling them. The project's phrase for the code is "the defendant, not a witness". The method has its own page.
  • The authority hierarchy. Six ranks settle any disagreement: the constitution, the instruction files, the shared rules, each domain's rules, the recorded design decisions, and last the code.
  • The contamination firewall. Code-writing agents never read the original software. Isolated agents distil it into two artifacts, a feature inventory and a description of each screen, and builders read only those.
  • The source-first pipeline. /specify writes the rules, /contract cuts them into layers of three to six related operations, /build-source builds one layer with 15 mechanical checks, /review-source reviews it in nine passes, pnpm gate runs the 19 steps, the QA auditor tests in a real browser, and /fix-source repairs what it finds. No step is optional.
  • The 7-agent contract panel. Before a large design may be built, seven independent agents each hunt one class of defect in its contract, such as a rule that was paraphrased, a citation that leads nowhere, or work nobody asked for. Building is refused until all seven return zero.
  • Enforcement at the moment of writing. 48 hookify rules and 41 structural code rules run on every file an agent writes, each structural rule with its own tests. They reject decimal money, a timestamp with no time zone, a permanent delete, an unbounded input and an unaudited insert.
  • Agent boundaries. The agent that writes tests cannot touch product code, the implementer cannot touch tests, and the browser auditor and the CTO agent can change nothing. A hook blocks any agent that steps outside its role.
  • Zero-deferral, and the Two-option rule. Every finding is fixed or brought to him; "later" does not exist. On any error an agent has two moves, fix the root cause or stop and present it.
  • Time-budget anti-prompts, and "Plans guide; code ships". Fourteen listed phrases about time, phases and scope mark diverged reasoning, and a turn may not end on a plan alone.
  • Persistence. An agent keeps going until the task is done. There are three reasons to stop: he says so, the session has to hand over, or the plan has no task left. A worry about budget is not one of them.
  • The file system and tool output are truth. Chat history is not, and memory is a hint. An agent states that work is done only after running or reading the result, and cites the file and line.
  • Commit cadence. Agents commit without asking and commit every loose file they find, because a commit is his backup.
  • Decisions belong to you. In this design he is the owner who decides and the AI is the sole engineer. It makes every technical call and brings him one proposal: what it did, what that caused and how it will fix it. A read-only CTO agent rules on design questions with one answer and one reason, never a menu; 264 such decisions are recorded and stay closed unless new facts appear. Two things stay with him: the versions of the core frameworks, and anything destructive or hard to undo.
  • A tester that must prove it can see. Before each run the browser tester must find exactly six defects planted on a hidden page, or the run is thrown out. Every finding then gets two independent rulings, one on the code and one on the rule itself. This has its own page.
  • The anti-gaslighting Stop hook. A claim that testing is going well is blocked unless the same message carries three numbers read from disk.
  • The MCP-first protocol. Eight query services answer an agent's questions about rules, decisions, findings, dispatch history, memory and the code's structure, in place of reading files. One orientation call of about 2.5 KB replaces about 30 KB of re-reading, and a dispatched agent is given the protocol word for word.
  • suite, the supervisor program. Each job goes to a short-lived agent, its report is checked against what is on disk, and the result joins a chain of records he can re-verify himself. This has its own page.
  • Nothing is deleted from the record: the SUPERSEDED marker. A replaced plan or rule keeps its text under a dated marker naming its successor, and a hook reads the marker so agents stop following the old one.
  • When a skill produces a defect, the skill is the root cause. A nine-step protocol repairs the instruction that caused the fault and not only the fault.
  • The testing certification. An agent must score every one of 53 questions correctly before it may touch a test file.
  • owner-portal design principles. Eleven testable principles and a locked visual language bind every screen of the owner's product, each naming the mistake it rules out and how to check for it.
  • Backup as a side effect of work. Every commit triggers the rebuild of both knowledge graphs and a background backup of everything git does not hold, with a manifest written each time; a restore script rebuilds a new machine.

Named concepts

The named concepts, defined

Domain rules are truth · Source code has zero authority · The defendant, not a witness · Four finish-line criteria · Complete Legacy Parity · Zero-deferral · Two-option rule · Time-budget anti-prompts · Plans guide; code ships · Decisions belong to you · The contamination firewall · Source-first pipeline · The 7-agent contract panel · Layer Brief · MCP-first protocol · The anti-gaslighting Stop hook · The SUPERSEDED marker · Global Property Model · claim property · RESO UPI · Property Passport · owner-portal design principles · suite · Domain-Rules-Driven Development · Defense Machinery Treadmill · Persistence · Commit cadence · Free for Demand, Paid for Supply · The Claude Code System · AAT hash chain · Trust levels L0 to L4 · Per-dispatch sandbox · Completion ledger · Contract compiler · ETV (extraction, then verification) · Migration @no-transaction marker · C-13 · INV-9

What it shows

He can stand up an organisation of AI agents that builds a whole product suite to an outside standard by directing AI agents, and he can design original systems inside it that the industry's existing products do not have.