The method, in one paragraph: Polyculture Markets is built spec-first. A written specification with stable, testable requirement IDs comes before code; work proceeds in gated stages where a stage does not start until the previous stage's gate passes; fixes change code, never the tests that catch them; and no fix counts as closed until an independent auditor — working from a fresh clone at a pinned commit — re-runs the gate, re-derives the test counts by hand, and confirms the result. Where a test can be fooled, auditors plant mutations and check the suite catches them.
The specification
- Spec v2 adopted 2026-10-13: AGPL-3.0+, Rust/Axum/PostgreSQL, no-JavaScript interface, ciphertext-only PGP messaging, direct noncustodial payment — no escrow, no multisig, the server never touches keys, funds, transaction IDs, or amounts.
- A consolidated full specification is drafted (2,071 lines, 212 testable requirement IDs, all 30 invariants preserved) and is pending Cameron's ratification — it is not yet the ratified spec. Two items remain his to rule: the C-4 “verified” list (drafted at R-3.12) and R-8.20 (who bears the loss for addresses vended from a pool later reported compromised). One drafting item, the R-7.8 trade-id byte layout, is flagged in the ratification prep as needing resolution or an explicit deferral before ratification.
- Owner rulings are recorded as amendments with dates, including reversals: e.g. the October 2026 switch to server-vended signed subaddress pools bound to one listing and one signed terms version, replacing the earlier helper-local-ledger model, and the ruling that a buyer's unverified proof holds an order at AwaitingPayment — “Paid” prints only on seller attestation.
The test record
- 694 test functions at current main (
0c3cab2, verified as local main = origin/main on 2026-10-25), of which 13 of the 24 integration suites are the blind suites. - Stage gates 0–10 built and passed; the Hidden Trades alpha stages H1 and H2 passed their gates and were merged (H2 as PR #2, head
c1950f3). - Worked example of why counts are re-derived, never copied: the seller-helper suite's count was reported three ways in its own record; the E11 auditor's re-derivation settled the baseline at 43 tests and the head at 46, and the earlier “44” was an arithmetic slip. E11 itself — exit codes that mean what scripts think they mean — was re-verified PASS at
3aef2bbon 2026-10-25. - A follow-on auditor finding from that same pass (deleting a trade's assignment file hid tampering and turned an error exit into a clean one) is fixed on a local branch at
593536bwith two new committed tests (46 → 48, all passing, mutation-checked) — not yet pushed and not yet auditor-re-verified, so it is not counted closed here.
The audit record
- Code Audit 2 at
c1950f3: no Critical findings; the noncustodial custody model held. Its one High was ruled on by the owner and fixed (proof-hold, above); the fix batch was merged as PR #3, making0c3cab2the current main. - A documents-only external spec review was received and triaged; several of its findings were artifacts of the reviewer not locating the specifications, and its one live-behaviour High was the item already ruled on and fixed. It is recorded as input, not as closure.
- A deployment and dependencies audit found no Highs: secrets out of the repository, loopback-only services, pinned
--lockedbuilds, lockfiles clean against RustSec as of 2026-10-17; its Medium/Low fixes are complete and merged via PR #1 under branch protection (required PR, required CI, enforced for admins).
Honest limits
- Every reviewer so far has been an AI. If the generator and a reviewer share a wrong assumption, review alone cannot catch it. The outstanding Stage 12 independent human security review is the missing leg, and it has not happened.
- There has been no mainnet sign-off. The public demo is stagenet-only and is a viewing window, not a trading path. Legal review and a GPG usability test also remain outstanding before any public instance.
- The software has never faced production load, a hostile user base, or time. “Not slop” is a claim about the verification record; “proven” is a status earned from independent human review and use, and this has not earned it yet.
Sources and pins
Main: 0c3cab2 (github.com/CameronRuggles/polyculture-markets), local = origin verified 2026-10-25. Consolidated spec draft: FULL-SPEC-V1-DRAFT-2026-10-24.md (branch spec-consolidation-v1, local, unratified). Ratification prep: SPEC-RATIFICATION-PREP-2026-10-24.md. Helper release: helper-v0.1.0, live GitHub Release at the H2 merge head.