Resolution

All pages

29 · Building it

One build, not a sequence of prototypes. The system is built once, and it grows along a readiness ladder whose rungs are facts checked by code rather than judgements about progress.

29.1 The seven spikes

The decision records in decisions/ choose the technology on paper. The spikes are their acceptance tests. Each spike is small, and can be thrown away. It runs the hardest real case for the records it names, and it writes its measurements into those records. A spike that meets its bar marks those records proven. A spike that misses it triggers the record's falsifier, and a superseding record follows. Each spike can invalidate a large part of the design, so nothing else is built until all seven have passed.

#SpikeTestsThe questionPasses when
1Gateway and idempotency0007, 0004can the chosen broker's API be driven such that a crash mid-order is always recoverable by client order id, with no double placement?a paper account is driven through 1,000 orders with induced crashes, restarts and network failures, and reconciliation is clean every time
2Point-in-time data0002, 0003can the store answer "what did we know on date X" for prices, fundamentals, filings and macro, across a real universe, at acceptable speed?a known historical episode is reconstructed and verified against independent evidence, with vintages, restatements and identifier changes handled
3The kernel0001, 0008can limits be expressed as pure functions over frozen inputs, evaluated in the required latency, with verdicts that are legible and replayable?the full first limits library runs against a year of replayed decisions, producing identical verdicts on re-run, with the worst-case latency measured
4Seats and manifests0008can a full pipeline stage — candidate to view to bear twin to debate — run with code-assembled manifests, typed outputs, validation and repair, inside a stated cost and latency budget?fifty real candidates pass end-to-end; schema failure rate, repair rate, cache hit rate and cost per view are measured
5The Floor and signing0006can a view be declared rather than coded, and can the owner sign exactly the bytes that execute?three different artefact types render from declarations with the edge panel; a signed payload is verified by the gateway and the hash matches what was on screen
6Replay0001, 0003does the system produce byte-identical artefacts on replay of a past decision, including model responses and the clock?a week of paper decisions replays with zero divergence, and an induced schema change replays through its upcaster
7Cost and latency0004, 0005what does a full firm-day actually cost and take, at three variants?a full simulated day is run and measured; the cost table in §27 is replaced with actuals
  • R-BUILD-001 (MUST) A spike that fails supersedes its decision records, and changes this specification where needed, before the build starts. Spikes are allowed to be bad news; that is what they are for.

29.2 The walking skeleton

  • R-BUILD-002 (MUST) The first build is a thin path all the way through: one universe, one desk, one screen, one limit, one paper order, one resolved view, one scoreboard row. Every architectural boundary in §24 is crossed by that path, including the kernel, the gateway, the signing flow and replay.
  • R-BUILD-003 (MUST) The skeleton is never bypassed later. Every subsequent capability is added to a running system that already works end-to-end; there is no phase in which the pipeline is incomplete.

29.3 The build rules

  • R-BUILD-004 (MUST) The Record's event schema and the artefact schemas are written first; nothing else is built against an undecided shape.
  • R-BUILD-005 (MUST) The kernel and the gateway are written by hand, read line by line by the owner, and covered by tests that include every halt state and every failure injection in R-ARCH-072.
  • R-BUILD-006 (MUST) Every requirement id in this specification maps to at least one test, and the mapping is generated. A requirement with no test appears on a report until it has one or is explicitly retired.
  • R-BUILD-007 (MUST) The paper broker and the fund's own fill model are built before any live adapter, because they are the test harness for everything else.
  • R-BUILD-008 (MUST) Seats are added one at a time, each with its prompt version, its eval suite and its record, and each must beat doing nothing on its own stage before the next is added.
  • R-BUILD-009 (MUST) No feature ships without its Floor view and its measurement. A capability the owner cannot see and cannot score does not exist.
  • R-BUILD-010 (MUST) The evidence plan (§16) is implemented as code — the trial ledger, the evidence window register, the boundaries, the verdict calendar — in the first build, not added later. It is the thing the fund is for.
  • R-BUILD-011 (MUST) Costs are instrumented from the first model call, not retrofitted.
  • R-BUILD-012 (MUST) Nothing is built for a capability the ladder has not reached. Auto-mode machinery is specified, not built, until L4.
  • R-BUILD-013 (MUST) The build order within a rung is: schema, then the code path, then the test, then the Floor view, then the measurement. A rung is not complete until all five exist for everything in it.

29.4 The readiness ladder

Rungs are code-checked facts. The Floor shows the current rung per universe and exactly which checks are outstanding.

RungStateEntry requires
L0Spikes answeredall seven spikes passed and their measurements written into the decision records; every record proven or superseded
L1Walking skeleton on paperthe thin path runs end-to-end; replay divergence zero; the Record hash chain anchored
L2The full firm on paperevery seat, desk, the Lab, the Data desk, the Idea Book, three variants, the twenty-one core views, the Wire among them; the nulls running; the evidence plan signed and recording; failure injection passing
L3Approve-readypre-registered paper record over the family's minimum n and months; calibration beating the three nulls on the fast layer; reconciliation clean; go-live checklist (§26.4) green for one universe
L4Live slice, one universea capital slice at the bottom of the ladder, Approve mode, with everything in §26.4 satisfied for that universe and nothing else live
L5Hardened, then boundeda stated period live with clean reconciliation, no unexplained positions, halts exercised, restore drilled; only then does a family with a graduated record move to Bounded, and Auto only through R-SCORE-020
  • R-BUILD-020 (MUST) Rungs are per universe. Being at L4 in one market says nothing about another, and the Floor never shows a single global readiness number.
  • R-BUILD-021 (MUST) A rung can be lost. A failed drill, a degraded control past its tolerance, a contaminating event or an unexplained position drops the universe a rung, automatically, with the reason.

29.5 Cadence and done

  • R-BUILD-030 (MUST) The build runs continuously against a paper fund that is always live: every change is deployed to paper, soaked, and measured. There is no integration phase.
  • R-BUILD-031 (MUST) Definition of done, per requirement: the schema exists; the code path exists; a test fails when the requirement is violated; the Floor shows it; the measurement records it; and the requirement id appears in the generated coverage report.
  • R-BUILD-032 (MUST) Weekly, the build reports: rung per universe, requirements done against total, coverage gaps, open spikes, replay divergence, cost against budget, and the evidence plan's clock — how many resolved views exist against how many the next verdict date needs.