Audit Readiness
Two independent audits stand between this code and the MARC launch gate. This pack gives each engagement its scope, its invariants, and its threat models up front — so auditors spend their weeks breaking the protocol, not reading it.
01Engagements
Both engagements audit against commit freeze — no scope drift mid-review. Frozen hash recorded on-chain at engagement start; any post-freeze change reopens that contract's review.
02Escrow — invariants & threat model
Holds every task's USDC until proof or ruling. Immutable, no upgrade path, no admin withdrawal. This is the contract users actually trust with capital, so its invariant list is short and absolute:
03Settlement batcher
Posts Merkle roots every 30s; receipts carry inclusion proofs. Batching exists to amortize L1 fees, not to custody anything — the failure mode is withholding, not theft:
04MARC token & vesting
Fixed supply, no mint authority, vesting locked to network epochs — not wall clocks — per the tokenomics design:
05Quorum election
The election decides who verifies — bias here is bias everywhere. Determinism is the defense: the same seed must yield the same quorum on every recompute:
seed = keccak(blockhash(epoch_start - 2)) // past, not futurescore(i) = bond_i × acc_i² × (0.75 + u_i × 0.5) // u_i from seedquorum = top-3 by score, bond ≥ 25,000, not jailedcaps: weight_ratio(quorum) ≤ 67% // whale capture boundjail: open challenge ⇒ cannot unbond or re-electfixtures: 40 election scenarios w/ expected quorumsshipped in /test/fixtures/elections.json
06Slash executor
07Cross-contract systemic threats
08Process, rubric & remediation SLA
Coverage targets: 100% line coverage on Escrow and SlashExecutor (invariant-driven Foundry suite), ≥ 95% on all other contracts, plus 40 deterministic election fixtures and 12 slashing scenarios shipped as reproducible fixtures inside each engagement's repo.
W1 ENG-A kickoff — capital contracts, freeze hash anchoredW3 ENG-A report — triage within 48hW4 remediation window A (+ re-audit of patches)W6 ENG-B kickoff — consensus contractsW8 ENG-B report — triage within 48hW9 remediation window B → launch gate #3 evaluationrule: no gate #3 until every CRITICAL and HIGH is closed