Writing
Maxwell’s own writing on building software by directing AI agents. The newest piece is how he works now. The April 2026 essays and rules record the earlier method, Domain-Rules-Driven Development, and each says what has changed since.
Essays and field notes
- From Blocking Agents to Judging Their WorkHow I build with AI agents now: seven hard blocks, done decided from the user's seat, tests first, and every change checked by an agent that did not build it. What changed since April 2026, why, and what I kept.Methodology19 November 20265 min
- Domain-Rules-Driven DevelopmentA methodology for specifying behavior in a form an AI agent cannot silently overrule, enforced at every boundary where violation could occur.Earlier methodMethodology20 April 202614 min
- Three CrisesScope narrowing, and the two other failure modes that compound in AI-built software until shipping stops, each named after the incident that earned it.Earlier methodMethodology20 April 20264 min
- Why I Stopped Writing Tests FirstTests assert call-site values. User journeys are sequences. The gap is why test-first produces a specification with holes, and the six-stage pipeline that closes it.Earlier methodField note20 April 202615 min
- The 4,800 Fake Tests WeekendThe 20-minute QA audit that killed a passing test suite.Earlier methodField note20 April 20265 min
Rules
Domain rules from a production rebuild. Each one carries its origin, the rule, the assertion that tests it, the enforcement that blocks a violation, and the failure it closes.
- AL-1writeAuditLog contractwriteAuditLog is fire-and-forget and never throws. Callers must not wrap it in try/catch.spec / audit-log
- AUTH-2propertyProcedure middlewareThe tRPC middleware base for every property-scoped endpoint. Joins propertyUsers for org scoping, throws a single canonical NOT_FOUND for all four failure cases.spec / auth
- AUTH-5Cross-organization accessSingle-entity fetches collapse three failure cases into NOT_FOUND to prevent cross-org enumeration.adversarial / auth
- DR-121Orphan-but-filter soft-delete patternSoft-deleting a parent entity never cascade-updates its children. Readers join back through the parent with notDeleted, so orphaned children become invisible without being destroyed. Universal across every parent-child relationship in the domain.consistency / persistence
- ERR-1NOT_FOUND canonical formatNOT_FOUND errors use the form "<Entity> not found" — no suffixes, no interpolation.spec / errors
- PER-1softDeleteSet canonical utilityThe single source of truth for soft-delete writes. Every soft-delete mutation uses softDeleteSet(). Inline variants are forbidden.spec / persistence
- PER-7Money persistence as bigint integer centsMoney columns are PostgreSQL bigint with JS safe-integer Zod bound. integer/numeric/real FORBIDDEN.spec / persistence
- SEC-16Pinned AI model constantAll AI calls import the canonical ANTHROPIC_MODEL constant. Hardcoded model strings and aliases are FORBIDDEN.spec / security