Build on it
The harness is a small TypeScript tree built for extension: one interface for targets, one directory of attack modules, one hash contract that keeps every run reproducible.
Targets
The registry is one environment variable, read in run.ts. ARENA_TARGET=gateway or ARENA_TARGET=reference runs a single target. Unset, one command runs the full battery against both targets. An unknown value exits 2 before any account creation (usageFail).
A target implements the ArenaTarget interface and boots through the bootTarget factory, which selects GatewayTargetAdapter (the adapter over the gateway-replica contract) or ReferenceTarget. A third target is three edits: implement the interface, extend the TargetId union, extend the selection in bootTarget.
Attacks
An attack is a module in src/attacks exporting runA1 through runA5. Constants live in config.ts: ONE_TOKEN, the A1 block (cap 100, spend 20, concurrency 8), and the receipt slugs such as A1_SLUG.
The runner writes each receipt with writeReceipt and stamps the hash from verdictHash, computed over the FR-11 canonical core: attack_id, target, verdict, per_account_deltas, in that order. Every run closes with the oracle check assertPolicyRecomputable (W-5: policy state is recomputable from on-chain state alone).
New attacks append as A6 and later, only through a PRD.md §0 amendment: IDs are never renamed, reused, or renumbered.
Determinism
FR-11 is the contract you extend against: the canonical core re-runs equal. The M0 spike record pinned the field set and reproduced hashes unchanged across sessions; the M4 re-run came out equal on both targets at fork height 222603395, later than the M0 pin at 222518565, with the committed receipts unchanged.
Runtime envelope, measured at M0: node startup 528 ms against a 120 s budget, per-tx p95 2021 ms against a 5 s budget.
The harness source tree is the reference for everything above: registry, boot factory, attack modules, receipt writer, oracle.