What it does
The method governs how a large software platform is researched, designed, documented, validated and built by AI agents, so that nothing written about the platform can drift away from what the platform really does. It was built for the property suite, a property-software ecosystem whose products (the owner portal, the inspection app, the field-service app, the property-management app, a shared AI intelligence layer and a single sign-on Hub) all sit on one central API of about 110,000 lines, and whose earlier generation was a large estate of legacy PHP.
The 25 phases
The method is written as a 1,206-line playbook in seven parts. Its sequence is load-bearing: no phase is skipped, and each produces named documents the next phase depends on. It is written for one operator directing AI agents, with no team.
Part 1, Research
- Market and competitive research: the competitive landscape, feature gaps, market size, pricing, technology trends, regulation and the user-experience workflows competitors use.
- User research and customer discovery: personas, jobs-to-be-done maps, current workflows, pain points, willingness to pay and switching signals, built from public reviews. A further gap-closure step (phase 2.5) adds feature teardown matrices, cross-product integration patterns, cross-industry interface patterns and review mining by feature.
Part 2, Strategy, both phases under a mandatory source-verification banner
- Strategic thesis and ecosystem vision: the thesis, the value of each product, the revenue model, the network-effect case, the stack and build-versus-buy decisions.
- Product portfolio strategy: the dependency map, the anchor product, the build sequence, the roadmap and kill criteria.
Part 3, Architecture
- Enterprise architecture foundation: principles, the domain model, service topology, shared versus product-specific components, communication patterns and architecture decision records.
- Data architecture and ownership: the master data catalogue, who owns which data, data flows, the unified data model, the observation registry (named the first rebuild-prevention artifact), the shared enumeration registry, caching, governance and privacy.
- API contract and integration design: API standards, the platform's OpenAPI specification, the AI layer's tool contracts, an additive-only versioning rule, consumer-driven contract testing, the event catalogue and the gateway.
- Identity and access: nine documents and 3,785 lines covering tokens, single sign-on, authorization, service-to-service authentication, provisioning, multi-tenancy and the Hub's token-claims contract (the second rebuild-prevention artifact).
- Security and compliance: threat model, zero trust, encryption, compliance mapping, security testing, the incident runbook and the dependency policy.
- Design system and user experience: principles, design tokens, the component library, layouts, accessibility and maintenance rules.
- Frontend architecture: the monorepo, shared packages, state, routing, testing, pipeline and performance budget.
- Mobile architecture: platform choices, offline design, the sync engine, camera and media, shared patterns and app-store compliance.
- Infrastructure, DevOps and observability: cloud, CI/CD, infrastructure as code, monitoring, alerting, disaster recovery, cost and capacity.
- The AI intelligence layer: concept, blueprint, tool contracts, the copilot, SMS and chat intake, adapters, knowledge-base seeding, the operations guide and the technical architecture.
- Governance and documentation strategy: coding standards, the decision-record process, testing standards, review, documentation rules, technical debt and release.
Part 4, Validation
- Proof of concept and technical validation: throwaway mock versions of the consumer products (Hub, the owner portal, the inspection app, the field-service app, the property-management app and the AI layer) driven against the real API, in three rounds: four proofs of concept with benchmarks, seven gap-closure batches, and the 135-test cross-product re-validation.
Part 5, Product design
- Individual product specifications: for each of 13 products, its features, flows, wireframes, data model, API requirements, a product-to-API mapping, AI-layer integration and non-functional requirements, 43 documents in four waves, closed by a pre-build compatibility gate that checks every endpoint, observation type, AI tool and token claim against the contracts.
Part 6, Build, each phase run through an eight-step cycle: top-level documents, then detailed documents, then validation of the product-to-API mapping (stop on any incompatibility), task breakdown, test-driven development, review, the full gate with contract tests and AI-tool contract validation, then staging and production.
- Shared platform and intelligence layer: the Hub, event bus, component library, CI/CD, observability, the AI-layer skeleton, knowledge base, worker pools and the AI client package.
- Anchor products: full web, mobile and backend, with contract and AI integration tests.
- Secondary products: cross-product flows and cross-domain intelligence.
- Tertiary products and mobile: the remaining backends and frontends, every mobile app and the offline AI queue.
Part 7, Quality and launch
- Integration testing and performance: cross-product flows, single sign-on, events, the AI layer across products, graceful degradation, knowledge-base accuracy, load, chaos, data consistency and mobile sync.
- Security audit and compliance: static, dynamic and dependency scanning, API and database audits, prompt-injection, data-isolation and token-cost audits for the AI layer, an external penetration test, SOC 2, GDPR, a license audit, remediation and the report.
- Release management and launch: dogfooding, closed beta, open beta, general availability and launch monitoring.
- Post-launch operations: runbooks, service-level monitoring, the feedback channel, golden signals, knowledge-base operations, model evolution, security operations, analytics and technical-debt paydown.
Structure around the phases: a three-level documentation hierarchy in which a lower-level document may never contradict a higher one; sizing rules (no file over 500 lines or 100 KB, agent instruction files held to 75 lines, an index in any folder of three or more files); the frameworks it draws on (TOGAF, domain-driven design, OWASP secure-by-design, consumer-driven contracts); a quality-enforcement appendix; and resume prompts so any session can pick up exactly where the last one stopped.
The code-citation rule
The rule is short: any document that states what the platform does must cite the source code or an audited registry, and never another document alone. Every platform claim is tagged as current (true in the code today), target state (designed, not yet in the code) or unverified. The citation names the exact source file, for example the property entity in the API's source tree.
How the rule is enforced, not merely stated:
- 13 audited contract registries hold the machine-readable truth about the platform: permission levels, error codes, rate limits, domain events, the metrics baseline and more.
- A claim-checking server with 14 tools lets any agent ask whether a statement about the platform is true. Its
validate-claimtool returns CONFIRMED or CONTRADICTED, with the evidence drawn from the registries and the source code. - Write-time blocking rules refuse fabrication patterns, documents with missing sources and mocked platform behavior, and flag any architecture document that cites the old aspirational blueprint as its source.
- A fact registry is built before any writing starts, and the source truth overrides everything else in the document.
- The strategy-writing skill fails any uncited claim in its first pass: a platform claim with no citation within two lines does not pass. The architecture-writing skill has three stop gates.
- A start-up hook injects the anti-hallucination rules into every helper agent the moment it starts.
- A legacy capability registry of 9 files and 1,782 lines lists every capability of the legacy PHP products, each row cited to its file and line, built by mechanical extraction with codex-audit, fresh AI audits with mandatory file-and-line citations, and cross-reference checks. A coverage gate requires every one of those capabilities to be dispositioned: carried forward, improved or removed. Nothing the old products did can be dropped by accident.
The 135-test cross-product validation suite
Phase 16 builds disposable versions of the consumer products and drives them against the real API, testing the whole path a real request takes (token, guard, controller, service) instead of the mocked pieces a unit test sees. The full suite is 135 tests in 14 batches across three passes: regression, new coverage, and integration (consumer journeys, cross-product flows, load and certification), spanning the owner portal, the inspection app, the field-service app, the property-management app, the AI layer and the Hub.
Unit tests mock users and guards, so they never exercise the full chain from token to service; the cross-product suite does, covering sessions across devices, the guards that read the user, role checks, webhook registration and event delivery under a burst of load. Every finding is filed as a tracked issue, fixed in the API and re-validated, with the full gate reporting 7,485 tests passing.
What it achieved
- A 500-document hallucination cascade reversed. The method found that AI agents had been verifying documents against other documents, archived the contaminated set, rebuilt the architecture phases from the source code and the registries, and deleted every decision record that described a decision never made in the code.
- Faults where products meet caught before any product was built on them, each of which would have reached every client product that touched it.
- A documentation estate held to the code: 781 working documents (284 research, 18 strategy, 113 architecture, 110 product specifications, 95 validation, 15 on the AI system, 13 decision records), 13 product specifications sets of 43 documents, 13 audited registries and a 14-tool claim checker.
- Every legacy capability accounted for, each cited to its file and line and given a disposition.
- Source-level answers on demand: a 95-question technical deep dive for a prospective partner was answered at source-code level, with file references and line numbers.
- It grew out of his earlier seven-phase pre-build methodology for a founder who directs AI agents and judges their work by the evidence it produces, and carries its cardinal rule forward: no production code until the plan is complete.
The problem it solves
When AI agents write a platform's documentation, they read documents, not code, unless something forces them to. On the property suite, a 15,273-line aspirational design blueprint had been treated as the truth about the platform, and agents verified each new document against the documents before it. The loop was closed: nothing told any agent to read the source. The result was a cascade of more than 500 documents describing a platform that did not exist. They claimed 39 database tables where the code had 28 to 32, described a token scheme the code did not use, a permission model the code did not have, a webhook format the code did not send, and API routes that had never been written. Every product designed from those documents would have been designed against a fiction.
Unit tests cannot catch faults where products meet, because they mock exactly those pieces. The method answers both: documents must cite code, and the platform is proved by products that really call it.
How he built it
Maxwell wrote the playbook for one operator directing AI agents. When the cascade surfaced, he ran a reconciliation audit (679 lines, sorting every claim into diverges from the code, aspirational or matches), traced the cause to the closed document-to-document loop, and directed a four-part repair: fix contamination inside the platform repository itself, rewrite the documentation system so it requires source code, archive the contaminated documents, and rebuild phases 5 to 16 from the source and the registries, followed by verification. The old blueprint was moved out of the platform repository with a warning attached.
He then turned the rule into machinery so that no agent could repeat the mistake: the contract registries, the claim-checking server, the blocking rules, the fact-registry step, the stop gates in the writing skills, the hook that briefs every helper agent and the legacy coverage gate. A written AI governance system describes the whole arrangement, its anti-hallucination section setting out every layer. Validation was run in rounds (24 tests across four proofs of concept, then 62 gap-closure tests, then the 135-test cross-product suite), each round's findings filed as tracked issues, fixed in the API and re-tested. The governing repository carries 198 commits and the API it governs 353.