What it does
The whole repository measures 43,858 lines of application code in 324 files (TypeScript, JavaScript modules, Ruby, Python, Astro page files, SQL, stylesheets, and the extension-less shell commands and hooks counted as code), 17,750 lines of tests in 161 files, 12,263 lines of HTML, 6 service routes, 15 data tables, 16 database changes, 598 test cases, and 39 commits on the main line and on all branches. It holds a market observatory, a capture machine, a scoring and selection engine, a sterile campaign base, a built campaign with its own website and records, an outreach record, a 37-check gate and an evidence verifier. The engine alone, src, is 8,261 lines in 57 files in four layers: a domain of 583 lines in 10 files (capture evidence and results, circuit breaker, retry policy, network policy, CSV safety, the market schema, the stage 3 selection rules), an application of 4,486 lines in 23 files, 15 adapters of 2,480 lines (SQLite market store, pinned public proxy, Playwright capture, pdftotext extraction, filesystem evidence store, snapshot publication, the stage 3 evaluation ledger) and a command line of 551 lines in 7 files, with a generated market-schema contract that the gate checks for drift. Each part is below.
The market observatory (Stages 1 and 2). It maps a market no one had mapped: the active public fights an organiser might pay to have run.
- Stage 1, the census. A registered source surface (
data/sources/source-registry.csv) across eight families: fundraisers, petitions, campaign sites, associations, local news, government records, public social media and issue networks. Every search, including the ones that returned nothing or were refused, is a row in a search log (27 searches reviewed). It produced 39 directly reviewed fights (12 data-centre, 11 public-surveillance, nine land-use, and others) and two narrow Ruby extractors that took 236 rows from a national data-centre opposition tracker and 482 participating-group rows from a national surveillance-camera action page. TikTok returned a robots block and was recorded as not searched rather than guessed at. - Stage 2, the index. A deterministic build that turns the preserved records into one campaign index. It took in 757 preserved source records, proposed duplicates (153 raw candidate seeds, eight duplicate proposals each with a terminal decision of same, distinct or unresolved), and resolved them into 147 confirmed-unique campaigns across 37 states (120 data-centre fights, 11 public-surveillance fights, and a long tail of land-use, preservation, power and school fights) with 0 left blocked by an unresolved duplicate. It made 1,176 required-field verification attempts and recorded 8,379 field-level records, each one a fact, a calculation, an interpretation or an unresolved field, and 14 of the 147 carry a documented commercial signal. The build is content-addressed: the same pinned inputs produce the same build identity and byte-identical projections, and publication writes a whole generation before atomically moving the single
currentpointer. It writes a SQLite integrity kernel (market.sqlite), the campaign index, source records, verification attempts, field evidence, duplicate candidates, market counts and a report. The market database has a reversible migration pair; across the repository there are 15 data tables and 16 database changes. - Curated human decisions as data. Duplicate resolutions, verification decisions (2,126 rows), field corrections and capture selections are append-only files that the build reads, so a correction never rewrites history.
Public-web capture. A bounded capture machine opens public pages in a clean browser (no profile, no cookies) behind a local pinned public proxy. Only public destinations are allowed; private, loopback, link-local, multicast, carrier-grade NAT and cloud-metadata addresses fail closed. Downloads, service workers, WebSockets, non-GET requests and non-proxied WebRTC are blocked; redirects, requests, evidence size, retries and concurrency are bounded, with a per-site circuit breaker and retry policy. Each attempt writes rendered HTML, visible text, normalised public links, a viewport screenshot and a manifest of sizes and SHA-256 hashes, and a failed attempt still gets a terminal manifest with the reason. Recapture appends; it never overwrites. Runs are queued as managed jobs whose task identifier and log are the record. The repository holds 82 capture folders and 283 manifests behind the market index and the Campaign One record.
Stage 3, scoring and selection. A seven-dimension rubric (urgency and decision leverage 20, commercial capacity 18, organiser reachability 15, evidence depth 15, infrastructure gap 12, movement momentum 10, CommunityWatch service fit 10) is applied only after eight pass/fail gates (active fight, concrete decision, identifiable organiser, public contact route, enough public evidence, a supporter action, material improvement possible, a commercial signal). Unknown inputs score zero and are never inferred. Every nonzero subtotal carries source-record identifiers, an explanation, a verification date and a mark saying captured or calculated. The calculator adds approved subtotals and does not interpret. All 147 campaigns are on one scoreboard with all seven gate states; 14 candidates were live-verified, nine qualified, and the selection engine picked five primaries and two reserves under locked composition constraints, with a reason for each: five neighbourhood fights scoring 74 to 83, two of them data-centre fights, with two more in reserve. The evaluation ledger is append-only with content-addressed checkpoints, and the build refuses to run if the ledger does not match its latest commitment. It writes seven opportunity briefs.
The market observatory's reach. It resolved 757 source records into 147 distinct campaigns, verified 14 live, qualified nine and selected five with two reserves, and every score is explained and traces to saved captures.
The sterile base (Stage 4). A complete working copy of the community-campaign system, pinned to one community-campaign commit, with every community-campaign fact, name, address, media file, date, domain, credential and database identifier removed and replaced by a neutral fixture, in campaigns/sterile-base (about 17,500 lines of code). Tools capture the lineage from the pinned source, sterilise text, and verify mechanically that no fact specific to the community campaign remains and that sterilising did not silently delete or rebuild the useful system. The base keeps the community campaign's machinery: an Astro website of 12 pages, forms for RSVP, contact and volunteer with bot protection and rate limiting that fail closed, a database whose consent record is append-only by trigger, email delivery with a retry outbox, a Notion organiser command centre, a multi-campaign registry that stops one campaign's data from touching another's, security headers, a private-preview mode, an end-to-end browser suite, an accessibility suite, and its own quality gate. The sterile base's own tools-sterilize and tools-gate folders carry the sterilisation and gate checks. A design history is preserved under docs/provenance/stage4-design-history.
The first campaign built from it, Campaign One. A data-centre fight (about 7,200 lines of site code, 2,769 lines of campaign verifier and 1,492 lines of gate tools). It was made by a documented, repeatable procedure that extracts only the pinned subtree, records the commit, tree and candidate-build hashes before anything changes, writes a failing campaign-contract test first, and then adapts copy, palette, typography, imagery and page order to the fight. It has:
- 12 pages, 61 cited claims (the
C-nnregistry incopy/CITATIONS.md, each bound to a frozen claim ledger entry), an evidence library, a documents page, an appeal page, a companion-campaign page, a printable flyer page, a share panel and an action centre. - The city's own photograph of the property as its hero, the applicant's own numbers at headline size, and the applicant's own words side by side.
- A seven-part place profile of 423 lines (
docs/PLACE-PROFILE.md) with a machine-checked "current state" index, whose fingerprint must match the build binding or the gate fails. - A campaign brief, site copy, kit copy, a fundraising draft, two sample plan documents and a sample organiser call.
- A recipient record with two resolved public contact routes, a source manifest, an adaptation inventory that classifies every path as unchanged, adapted, campaign-added or base-removed with hashes, and an outreach record.
- A Cloudflare Worker deployment with a D1 database (
wrangler.jsonc,src/worker.ts) whose production configuration is generated at build time with no live identifiers committed, and a Notion campaign dashboard and database builder (ops/build-campaign-dashboard.mjs,create-campaign-notion-database.mjs, 404 lines). - An evidence archive of the applicant's own two hearing videos (a proposed-use tour and a community-program video) with a
SHA256SUMS.txt, plus eight subtitle transcripts in the repository. - A private preview that states on every page that it is a private concept prepared for the organiser and not the campaign's official website, with every form in demonstration mode and nothing collected.
The campaign packet. Eleven records per campaign, from the opportunity brief to the outreach: opportunity brief and score explanation, organiser and contact record, source manifest and preserved captures, claim-by-claim evidence ledger, plain-English narrative, timeline and next-decision record, immediate supporter action, content and media packet, Community-campaign base lineage and inherited-capability checklist, private preview and verification record, and the outreach draft, approval, delivery and response record.
The Stage 5 evidence packet and its verifier. Ten content-addressed builds under data/stage5-builds, each with a campaign packet, a claim ledger, an identity input, a requalification record and a candidate record. A candidate verifier (tools/stage5-candidate-verifier, verify-stage5-candidate.ts) re-checks captures, acquisition counts, packet documents, page rendering and requalification; a sealing tool (seal-stage5-packet.ts) seals a packet and refuses one whose document has gone stale.
The document reader. pdftotext extraction, a page-level capture record for every government PDF and a read log (data/curated/document-read-log.csv, 52 pages logged as rendered and read by eye). npm run check:document-reads strips the letterhead that repeats on most pages and fails the gate on any page left with almost no words that has not been logged as read. Citations can point at a page of a scanned document and say who read it.
The campaign verifier (tools-campaign). Checks that every visible number appears in its bound claim or excerpt, refuses a number outside any citation except a named allowlist, allows a citation only on surfaces its binding lists, requires organiser statements to render inside an organiser-attributed element, parses all six registry columns, refuses superseded citations, enforces a clock so a held hearing cannot be told as upcoming, and checks recipients and outreach records. Beside it are the gate tools: a citation checker, an anonymity checker, a render-integrity check, an asset-link check, a document-name scanner, a production smoke test, a stale-date scan, a stale-imperative scan and a print render check.
The quality gate. bin/quality-gate runs 37 registered checks: generated-contract drift, strict types, build, lint, Ruby lint, format, SQL format, SQL lint, import boundaries, duplication, unused exports, public API, coverage, integration and property tests, migrations, provenance, document reads, projection drift, atomic publication, generator failure, red-proof checks, static analysis, history and tree secrets, npm and Ruby dependency advisories, lock metadata, regression tests on Stage 1, the sterile base, Campaign One, the Stage 5 bound packet, hook activation and liveness, test budgets and the gate's own self-test. It recomputes the real target count of every command. Git hooks (.githooks, bin/setup-repo) run it on commit, and commit messages are linted.
The offer and the outreach. The commercial offer is defined in the repository: Claim and Launch at $3,000, half at claim and half at launch, and Managed Campaign Command at $1,500 a month in advance with a three-month minimum. Campaign One was offered at $750 once with no monthly fee, in the exact email, 601 words, 3,648 characters, with its SHA-256 recorded, that Maxwell approved for sending. It was sent to the organisation's public address (with the civic council copied) through the Resend email service, and the provider reported it delivered. The sent record (outreach/sent/) keeps the recipient, subject, preview address, send time, provider message identifier and delivery state.
Tests. 598 test cases over 161 test files: unit, integration, property-based, type-level, gate liveness, Ruby regression, the campaign site's schema, consent, rate-limit, outbox, Notion, Turnstile, migration and campaign-separation tests, and Playwright browser suites for accessibility, headers, forms, share, the preview intro and a computed-style design audit.
What it found
- 39 pages of the 68-page staff report in Campaign One's case were pictures of text, and the 44 pages across the packet's documents that text extraction could not read held the facts the campaign most needed. The enforced read found the strongest facts in the case there: the petitioner was offered a rezoning and chose the route that does not return to the elected council; 150 residents objected at the hearing against about 50 in support; 72 diesel generators; one million gallons of water; 75 permanent jobs against $2 to 4 billion of investment; a construction start of 16 September 2026; and that the land's owner is not the applicant.
- The clock showed that the decisive ruling, an administrator's written determination on 31 October 2025 that a data centre is not a permitted use in any of the city's zoning districts, was public nearly five months before the hearing on 18 March 2026.
- The place profile resolved a disagreement between documents (the agenda listed thirteen addresses and the staff report fourteen) against the parcel record, and recorded the applicant's withdrawal on 11 March of the request that had been the page's centrepiece.
- The city's own record described the use as "not permitted", with 200 parking spaces requested where 708 were required (a calculated implied floor area of about 1,062,000 square feet from 708 × 1,500), utility yards at up to 120 and 160 percent of floor area against a 25 percent limit, and a 200-foot separation from protected property where 500 feet was required.
What it achieved
- A verified market index of 147 active public fights from 757 source records, 1,176 required-field verification attempts and 8,379 field-level records, 14 live-verified, nine qualified, five selected with two reserves.
- A sterile reusable campaign base pinned to a community-campaign commit and a repeatable procedure that turned it into a built campaign.
- Campaign One: 12 pages, 61 cited claims, an evidence library, an action centre, a seven-part place profile and a 37-check gate that holds it, deployed as a private preview.
- The preview-and-offer email, approved by Maxwell at $750 once, delivered to the organisers by the email provider.
- Reader tests: a fresh reader given only the rendered page at phone width answered all six questions from the headings, numbers and buttons.
The problem it solves
- What an organiser cannot do alone is assemble the public record, which is scattered across a county's separate systems. Assembling it is the service.
- An organiser should not have to imagine the work. Show them the finished answer, built for their fight, and offer to run it (build before sale).
- An AI asked to build a campaign behaves like an assistant: it reads three files, assumes it understands, and publishes a number it never traced. The professional role has to be installed.
- An AI's default is to rebuild what already works. So every campaign begins as a literal copy of the working community-campaign system.
- A page can pass every check that asks "did we get text?" and still be unread. The 68-page staff report's exhibit pages each returned the same 68 characters of letterhead and nothing else. The test that works is to strip the lines that repeat across the document and see what is left. He turned the finding into a gate: a downloaded document is worthless until every page of it has been read, and reading never waits on whether a page can be cited.
- A cited page can still be false: an agenda can carry a request the applicant has since withdrawn, recorded only in a staff report attached on a separate government file store. He turned that into the rule that an agenda is an index, never a source, and that every attachment of every hearing is opened.
- A check whose two sides come from the same loop can never fail. He had every check built so that it is proven to fail first.
- Accuracy is the floor, not the job. A true, cited hero line still fails if Pat cannot understand it in ten seconds, so the page is judged by whether a tired stranger stays on it, and the legal restraint is what makes her trust the page over the rumour.
- An overclaim is as costly as a fabrication. The scoreboard read 14 live-verified, so the repository refused to say "147 active fights indexed in one week" and publishes the count with the verb the data supports: 147 normalised from public records, 14 verified.
- An agent can spiral into planning: writing a plan nobody requested, editing it again and again and spawning reviewers against it while nothing gets built. He turned that into the anti-spiral sentinel and into a rule that progress is a fight page produced, not findings closed.
How he built it
Maxwell builds by directing AI agents, and in this project the direction took the form of an operating system installed in the agents.
- The AI campaign manager. One instruction file makes any agent that opens the folder the person responsible for a public decision going a certain way, and not for a website. It names the habits by which that agent fails, so the agent can catch itself, and it carries the persona's proof: the refusals the community campaign made, each with a reason and a result (it refused "they lied", refused to argue from who the applicant was, refused to name the town employee who signed a letter, refused to predict how often a hall would host weddings, refused to publish a flyer with children on it, refused to promise a microphone the agenda did not grant, and refused to delete a figure its instrument could not see, and went and found the video instead). It is dispatched to every agent in full, never as a summary, because a summary of it would be the failure it describes.
- The veto. Nothing ships unless Pat can understand it in ten seconds from the biggest words on her phone, and it traces to a row in the registry and from there to the captured source.
- Pat. A named reader: sixty-two, three streets over, on her phone, ten seconds of patience, suspicious of neighbourhood hysteria and afraid of being blindsided. Every human-facing sentence is written for her, with numbers in her units, dates with the day of the week, one warm first-person button per section and a temperature plan for the page (warm, cool, warm, cool, hot once at the end).
- Six answers before any page. Who actually decides, what the record says and does not, what the other side will argue, the three things that win, who can be brought into the room, and the clock. Each answer points at a registry row or says "Not yet known", which is a complete answer.
- The place profile, built before a word of the campaign is written. Seven parts: the ground (every parcel, owner and zoning), the clock, the people and firms (each searched back through the same public systems), the documents, the decisions, the unknowns, and the coverage. Six passes in a fixed order, and an exit test that blocks all campaign copy until every sentence traces to a saved document at a locator.
- The clock. Two dates for every event: when it happened, and when an ordinary person could first have known. Two fights in one town get two clocks.
- Every page of every document read, and enforced. Each record is saved as published, fingerprinted, and given a page-level pointer. A check strips the letterhead that repeats on every page and fails the build on any page that then has almost no words and has not been opened and read.
- The registry. One row per publishable fact: the claim exactly as published, the saved file, the page, the capture date and the source's own caution. Nothing reaches a page without a row.
- Three layers of truth. Captured facts, calculated values, and interpretations. An AI's interpretation never becomes a captured fact, and a language model may classify but is never the source of a campaign fact.
- Certainty in three plain words: on the record, our read, not yet known. They fold the engine's five levels (observed, derived, association, inference, prediction) into words Pat can read.
- Absence with its bounds. An absence is admissible only with its bounds, a control and visible errors: "the notice, both pages, does not mention a rear yard" is bounded, and the same reading that found no rear yard found a control phrase in the same notice, proving the instrument could see.
- When two primary sources conflict, the conflict is the finding. The campaign publishes both.
- The seats that check the campaign manager. The Pat reader sees only what Pat sees and is never given the instruction file. The evidence officer asks of every claim whether the method used could have produced a failing result, and rules PRESENT, ABSENT or CANNOT-DETERMINE. The spiral sentinel (
.claude/agents/spiral-sentinel.md) is dispatched beside every reviewer and stops any work that is not the deliverable he named. Codex and fresh Claude reviewers audited the plans and the build across the Codex sessions, with conformance reviews of the scoring and the campaign copy. A fresh reviewer may be spawned against one artifact at most twice. - The reuse order. Use the community campaign unchanged, then configure it, then adapt it, then reuse another proven tool, and write new code only last. The prohibited sequence is written down beside it: ignore the community campaign, invent unrelated concepts, and rebuild the community campaign's capabilities afterward.
- Red proofs with an outside clock. Each hardening fix first records a real failing test while the defect is present, keeps the raw failure and the exact bytes, then sends only a SHA-256 manifest imprint to an RFC 3161 timestamp authority; after the fix it does the same for the passing result.
npm run check:red-proofsverifies both signatures offline against the pinned authority roots (two root certificates are pinned inconfig/trust), requires the red time to precede the green time and reruns every current green command. The repository holds 37 recorded proofs and 171 attestation files, and a mutation litmus on the capture craft killed 24 of 24 mutants. - The authority order. Maxwell's explicit words, captured primary sources, the organiser's own material for the organiser's own position only, the decisions log, the plan, and last of all derived summaries, scores and anything an agent wrote last turn, which are hearsay until reopened against the source. A summary and a source that disagree are settled for the source.
- Business decisions are his and recorded as such.
DECISIONS.mdholds only his approved decisions: build before sale, studying the market before selecting, manual production with narrow tools, the canonical repository, the two prices, the copy-first rule, the 5 to 10 system limit, and the $750 offer. Technical choices belong to the agent. - The external-action boundary. No command in the repository has a path to send an email, post, take a donation, collect a petition signature or publish; anything that leaves for an organiser needs his approval of the exact recipient, message, preview address, offer and price, and the fight and deadline are reverified on the day. A preview collects nothing and claims nothing.
- Escalation rules. Case facts, legal strategy and names go to the organiser or the attorney as ready-to-forward text that offers the no; only the send, the price and money are his. Every decision brought to anyone is one plain question with what each answer costs.
- The day-after and re-derivation rules. A date passing or a ruling landing invalidates the clock, so the six answers are re-derived and every surface that carried the old state is rebuilt: pages, flyer, calendar file, structured data, share message, email.
- A record that outlives the context window. Reviewer and builder reports are copied verbatim into
docs/operations/because a context window is not storage, and findings are issues on a tracker, never markdown reports. - Reporting by evidence, in plain English. He is told once, at the end, in plain English, leading with what the fight page now does.
Named concepts
The named concepts, defined
The campaign manager's veto · The place profile · The clock · Every page read · On the record, our read, not yet known · The sterile base · The Pat reader · The evidence officer · The spiral sentinel · Build before sale · The reuse order · Claim and Launch · Managed Campaign Command · Campaign One · The registry · Three layers of truth · Red proofs
What it shows
He can take a system that worked for one campaign and turn it into a repeatable service, and he can install a professional's judgment in an AI together with the checks that hold it to that standard.