420Arbitration audit remediation roadmap¶
Status authority: repository evidence on audit/420arbitration-complete-20261004. Initial baseline main SHA: e22a744d8fbcff20f2b2108a1117ee3abe9dc437. ARBITRATION-AUDIT-1 through ARBITRATION-AUDIT-4 are repository-complete. AUDIT-4 Level-2 app-integration qualification is retained on exact implementation SHA 554e16a3a3656cb61ab1819b60c10eb7c8fa8f93, workflow run 37237412184 (qualify job 111539203484, security job 111539203626). Closeout confirmation: exact branch head 80aa33fe1666e1f6015614015dc02ac2dc71b0a8 requalified by Arbitration run 37238594853 (#27), qualify 111542609087 PASS and security 111542608940 PASS. Current main observed during final bookkeeping: 58b6b17c6538bd3cd22694e417a32472aae899f4.
ARBITRATION-AUDIT-1 — Canonical definition and source reconciliation — COMPLETE¶
- Reconciled Genesis config, service ID, dApp map, protocol architecture, application manuals, Wallet catalogue and integration consumers.
- Preserved the four-file canonical contract inventory.
- Preserved Arbitration as bounded dispute/ruling authority with no custody or blanket remedy execution authority.
- Recorded the unresolved ProtocolRegistry service-endpoint/address-authority gap rather than inventing one.
ARBITRATION-AUDIT-2 — Contract and invariant hardening — COMPLETE¶
- Enforced a nonzero requested-remedy commitment at case creation.
- Enforced a nonzero remedy commitment for rulings.
- Rejected duplicate evidence commitments within the same case/round.
- Exposed the complete snapshotted case record through a read-only getter for documented client inspection.
- Expanded negative/state-transition tests for deadlines, replay, policy snapshots, resolver authority and appeal caps.
ARBITRATION-AUDIT-3 — Exact-head build, test and security qualification — COMPLETE¶
- Added a dedicated Arbitration workflow.
- Qualified Foundry formatting/build and all Arbitration Foundry tests on the exact implementation head.
- Qualified the mechanical repository verifier.
- Qualified the forbidden
tx.origin,delegatecallandselfdestructprimitive scan. - Qualified targeted Slither with zero high-severity findings.
- Retained two medium
unused-returnfindings and six low findings (tworeentrancy-events, fourtimestamp) for explicit release-stage triage; they do not authorize a production-security declaration. - Durable evidence:
docs/audit/420ARBITRATION-AUDIT-3-QUALIFICATION.md.
ARBITRATION-AUDIT-4 — Application/runtime and release materialization — COMPLETE¶
- Added
ArbitrationRouter420as the canonical read/discovery service implementation for420/service/arbitration/v1. - Added
arbitration-routerasREGISTRY_RESOLVED_NO_FIXED_GENESIS_ADDRESS; no new fixed predeploy or CREATE2 address was invented. - Materialized the deterministic Policy -> Case -> Ruling -> one-time binding -> Router -> component registration -> service publication graph.
- Added local deployment/ProtocolRegistry publication, deprecation and recovery qualification.
- Added the Wallet-integrated Arbitration runtime binding with fail-closed service/chain/version/router/dependency code-identity validation.
- Explicitly retained Indexer projection as non-canonical; live same-deployment projection/reorg/rebuild qualification remains AUDIT-5 because no existing Arbitration descriptor authority was found.
- Source-located and remediated both Medium Slither
unused-returnfindings with purpose-specific CaseRegistry context reads. - Exact implementation SHA:
554e16a3a3656cb61ab1819b60c10eb7c8fa8f93. - Qualification: run
37237412184; qualify111539203484PASS; security111539203626PASS; 13/13 Foundry tests in normal and hardening profiles; zero High and zero Medium-unused-return Slither findings. - Durable evidence:
docs/audit/420ARBITRATION-AUDIT-4-QUALIFICATION.md. - Formal disposition: COMPLETE; no repository-local Audit-4 work remains.
ARB-PRE-06 — Shared Arbitration Indexer/History/API — REPOSITORY-QUALIFIED¶
- Implemented the versioned, exact seven-event
420Arbitrationdescriptor at420-indexer/descriptors/arbitration420-v1.json, checked against actual Foundry-compiled CaseRegistry/RulingRegistry ABIs. No public fixed Arbitration predeploy or independent ledger is invented. createArbitrationIndexer420verifies the trusted chain/genesis/Registry published service version, metadata/manifest/interface pins, Case and Ruling emitter addresses, runtime bytecode hashes and immutable binding. It rejects an unverified release, RPC log/receipt mismatches, missing canonical events, wrong emitter and release drift.- Existing 420Indexer atomic PostgreSQL protocol event/checkpoint/canonical-history infrastructure performs interruption-safe ingestion, duplicate suppression, restart, rollback, reorg reconciliation and deterministic fresh rebuild. Case/round/ruling/finalization reconstruction validates exact event order and matching transaction provenance and refuses cross-case substitution.
- Versioned
/v1/arbitration/cases,/v1/arbitration/cases/:caseId, and/v1/arbitration/cases/:caseId/historyprovide bounded, case-scoped read-only history, filters and cursor pagination; DTOs are non-authoritative and mark pending, stale or reorganized checkpoints. LivecaseState/caseRoundat the indexed checkpoint must agree before a projection is returned. - Exact-head implementation qualification at commit
70604207059f703aae824ef4445c6f206a80e81c: ARB-PRE-06 workflow run 45273198624, SUCCESS — 7/7 runnable focused tests passed (1 intentional pre-Foundry ABI check deferred within first pass), then 5/5 actual Foundry ABI parity tests passed, 420Indexer and 420RPC TypeScript builds passed. PostgreSQL test executed fresh ingest, duplicate, interrupted checkpoint, restart, same-height reorg rollback, canonical rebuild and missing/mismatched RPC evidence. - Repository exit met. Live testnet same-release publication, runtime identifiers, finality/reorg and API operational deployment remain ARBITRATION-AUDIT-5, not a repository-indexer defect. Never authorize rulings, evidence access or remedy execution from Indexer results.
ARB-PRE-07 — Ecosystem consumer authority boundaries — REPOSITORY-QUALIFIED¶
- Inventory and dispositions retained in
docs/audit/420ARBITRATION-ARB-PRE-07-CONSUMER-INTEGRATION.md: active/opt-in Commerce and Launchpad case consumers; Pay as independent financial authority; Rights, Grants, Resource, ComputeMarket, DOOBr, 420Hz and other Genesis references classified as indirect, private-evidence-only, conditional, disabled or future. No universal remedy adapter was created. - Hardened
LaunchpadCrowdfundingIntegration420.publishFinalizedDisputeOutcometo recheck original claimant, controller/respondent, domain, component, sale object, finalized lifecycle and current-round ruling and remedy commitments before one-shot, noncustodial outcome publication. Added adversarial contract tests for substitution, nonfinal, stale appealed round, missing remedy and replay. - Hardened
commerce/src/service.mjsto recheck the original finalized Market dispute and seller when binding an Arbitration case, and Market status, both parties and the precise origin/commitments before every previously bound case evidence or appeal action. Added regression tests for post-link identity/Market substitution. - Exact source/head qualification:
120f961c72ec55c8b9cb086e99bcb7f099ca300e; ARB-PRE-07 consumer run 45276646089 SUCCESS, including 7/7 focused Commerce Node tests and 4/4 Foundry contract + real local EVM integration tests. Launchpad audit 45276646110, Arbitration audit 45276646029, Pay ecosystem 45276646109, and Commerce security 45276646005: SUCCESS on that exact source commit. - Repository-side exit met; no merge requested. Live same-release Registry/dispute/consumer/settlement/finality/reorg evidence is owned by ARBITRATION-AUDIT-5. Do not activate disabled integrations, automatic refunds, rights rewrites or cross-protocol custody routes.
ARB-PRE-08 — Security and adversarial qualification — REPOSITORY-QUALIFIED¶
- Hardened
ArbitrationCaseRegistry420foruint64timestamp/window overflow at open, appeal and ruling transitions, reverting before nonce/round/state effects and preserving atomic rollback. Added four extreme-boundary, appeal-round and rollback adversarial tests. - Retained a detailed current-source findings disposition in
docs/audit/420ARBITRATION-ARB-PRE-08-SECURITY.md: present Slither 0 Critical/High, 0 Medium; the historical Medium unused-return findings remain remediated; retained 2 Low reentrancy-events, 6 Low timestamp, and 1 informational low-level-call findings each evaluated against real case/ruling source. No Medium risk waiver or independent security-audit declaration. - Strengthened the existing five-source Slither gate to reject any new Critical/High/Medium and any previously unreviewed Low finding class; preserved hardening Foundry tests, forbidden-primitive, deployment/Registry/namespace and Wallet checks.
- Exact code/report head
671dc9f303e2f726e0770ecafbdd0f188ae31e6b: Arbitration audit run 45279447484 SUCCESS (qualify/security, 34/34 normal and hardening contract tests, targeted Slither); ARB-PRE-08 adversarial security run 45279446671 SUCCESS (application security, historical/reorg, Commerce and Launchpad adversarial jobs). The targeted matrix includes 73/73 Wallet/private evidence tests, Go private Gateway checks, PostgreSQL reorg/restart cases, actual Foundry event ABI parity, 7/7 Commerce tests and 4/4 real Launchpad consumer local-EVM tests. - Repository/local-EVM exit met; not merged without instruction. The live post-consumption reorg/finality and deployment evidence, private 420Storage issuer/endpoint and network receipts remain ARBITRATION-AUDIT-5, while independent production security closeout remains ARBITRATION-AUDIT-6.
ARB-PRE-09 — Deterministic local Genesis deployment and recovery — REPOSITORY-QUALIFIED¶
- Added
scripts/qualify-arbitration-pre09-local-genesis.mjs, a real Anvil/local EVM deployment of the frozen GovernanceTimelock and ProtocolRegistry Genesis fixtures plus unfixed Policy/Case/Ruling/Router contracts. Governance changes pass through the compiled Timelock's scheduled seven-day G1 execution, not a privileged test-only caller. - Preserved
REGISTRY_RESOLVED_NO_FIXED_GENESIS_ADDRESSandcontracts/config/arbitration/arbitration-audit-4-release-materialization.jsonwithout modifying frozen parameter/address namespace. Recomputed canonical deployment dependencies, reciprocal immutable constructor bindings, runtime hashes, component identity, service metadata/manifest/interface/dependency commitments, active version resolution, deprecation and approved v2 recovery. - Actual claimant/respondent/initial-resolver/appeal-resolver local lifecycle exercises origin commitments, distinct evidence, ruling, appeal, deadline-based finalization and prior round integrity. Adversarial checks reject unauthorized governance, incorrect or duplicate one-time binding, wrong resolver, observer evidence, replay, early Timelock execution and unauthorized/stale service revisions.
- Added
scripts/verify-arbitration-pre09-local-genesis.py, which rejects altered compiler settings, new fixed Arbitration addresses, missing or reordered transaction receipts, runtime hash or service commitment drift and nonidentical clean-run manifests; exact0.8.24, Cancun, optimizer 200 and via-IR settings retained. - Canonical local metadata
contracts/config/arbitration/arb-pre-09-local-release-metadata.json, dedicated exact-head workflow.github/workflows/420arbitration-pre09-genesis.yml, and reproducible runbookdocs/audit/420ARBITRATION-ARB-PRE-09-LOCAL-GENESIS.mdadded. The local-only predeploy Genesis fixture uses real compiled GovernanceTimelock constructor runtime/storage and no invented production predeploy or active public testnet. - Exact implementation head
67362e7f74d1c0e80011b6417ba1e58499316079: ARB-PRE-09 local Genesis run 45282718765 SUCCESS. Two independent fresh Anvil runs, 30 actual transactions per run, six runtime hashes, 26 negative checks per run, full Timelock/claimant/appeal/finalization and version-2 governed recovery;cmpidentical source-independent reproducibility manifests and Python audit verifier PASS. CI artifactarbitration-pre09-local-genesis-3d354732e698443c15a0772377c84ed9ff13cc75retains full local receipts and hashes. - Repository/local Genesis exit criteria met, not merged without explicit request. Live public testnet deployment/Registry receipts and real-network reorg/finality evidence remain ARBITRATION-AUDIT-5; no production release/security declaration follows from local testing.
ARB-PRE-10 — Full application and whole-stack local qualification — REPOSITORY-COMPLETE¶
- A–I scenario acceptance and executable component ownership are documented at
docs/audit/420ARBITRATION-ARB-PRE-10-WHOLE-STACK.md. Local Genesis qualification now executes standard and appealed cases, two-appeal cap and rejections, real G1-governed post-open policy mutation/snapshot preservation, unauthorized evidence/appeal/resolver negatives, G1 deprecation/recovery, and real Anvil orphaned block/receipt/case rollback followed by canonical reopening. - Existing deterministic local Genesis artifacts, service/contract bytecode and fixed namespace authority were preserved; no newly assigned Arbitration address, modified Genesis parameter, automatic financial remedy or production privileged Wallet signature route was introduced.
- Dedicated
.github/workflows/420arbitration-pre10-whole-stack.ymlchecks the exact source head across four independent jobs: actual Chromium Wallet UI against local Anvil Solidity, PostgreSQL Indexer/API rollback/rebuild plus real Foundry event ABI parity, Commerce + real Launchpad/Pay-origin refund accounting and one-shot ruling consumption, and malicious-RPC/session/private evidence security with Go gateway denial tests. - Actual source SHA
982e6cb2d815c073f17a556c64f1c2d8c7fa088b: Local Genesis 45286734816 SUCCESS (two clean runs, 47 transactions and 36 adversarial checks each, reproducible manifests, local-chain reorg and governance recovery); whole-stack qualification 45286735212 SUCCESS (actual Chromium Anvil UI, 73/73 Wallet/private-evidence tests and private Gateway Go tests, PostgreSQL 7/7 runnable Indexer cases + 5/5 compiled Foundry ABI parity, Commerce 7/7 and Launchpad 7/7 actual local EVM consumer/accounting tests); Arbitration audit 45286734719 SUCCESS. - The native browser test's injected local EIP-1193 provider and Indexer RPC/log fault fixtures are explicitly nonproduction; the core deployed state/receipts, real G1 GovernanceTimelock and origin consumer contract tests are real local EVM transactions. Production hardware signing, a genuinely shared remote Indexer node and public network operational finality are not falsely claimed. These live-environment items remain ARBITRATION-AUDIT-5 and production/external review remains ARBITRATION-AUDIT-6.
- Repository/local assembled-system exit met and merged: ARB-PRE-09 PR #1372 merged at
ecf2a73f2de354cd2fa8f2127125628021c69bd5, followed by ARB-PRE-10 PR #1373 merged ate2116fc2bf8ae0c84bbf5851664a68734f3518b1. No locally reproducible Arbitration-specific failing test remains on the evidenced source head; final ARB-PRE-10 CI evidence is retained in runs 45287229109 (whole stack), 45287227293 (Genesis), 45287227477 (audit) and 45287227622 (docs).
ARB-PRE-11 — Operations, Documentation and Testnet Handoff — REPOSITORY-QUALIFIED¶
- Published
docs/audit/420ARBITRATION-ARB-PRE-11-OPERATIONS-TESTNET-HANDOFF.mdwith concrete governed deployment/rollback limits, domain policy configuration, resolver key onboarding and rotation without rewriting snapshotted cases, evidence/privacy handling, case/appeal/finality monitoring, Wallet/RPC/Indexer interruption and reorg recovery, service deprecation/Registry versioned recovery, incident containment, origin-consumer accounting troubleshooting, application configuration, and exact-release evidence capture. - Prepared
contracts/config/arbitration/arb-pre-11-testnet-handoff-template.jsoncovering chain ID/genesis/finality, actual deployed contract constructor args, four runtime hashes, transaction/block hashes and order, reciprocal one-time binding, Timelock scheduler/G1 execution, component/service publication and active resolution, all A–I scenario receipts plus private 420Storage, workflow run/commit/artifacts and signoff. All live-only values remain NULL/FALSE/EMPTY, with statusPREPARED_NOT_DEPLOYED_NOT_QUALIFIEDandliveQualified:false; no invented network identity, address or deployment receipt. - Added
scripts/verify-arbitration-pre11-handoff.py(checks exact source ownership/compiler/namespace, complete empty template, runbook references and future candidate completeness without falsely certifying on-chain truth),scripts/tests/test_arbitration_pre11_handoff.py(13 malicious/partial/forged/changed-source regression checks) and.github/workflows/420arbitration-pre11-operations.yml(exact-head checks plus two actual local Anvil GovernanceTimelock, Registry deprecation/recovery and case/reorg drills). - Actual implemented head
e09f87ec59891d12816153adb2328698eb4710ce: ARB-PRE-11 operational CI 45289799766 SUCCESS; template verified 0 live fields populated, 4 contract evidence records and 10 scenario placeholders, nine required runbook sections/21 operational topics, 13/13 negative/schema tests, frozen source/namespace checks; twice repeated actual Anvil local recovery 47 mined transactions/36 negative checks per run, six runtime hashes, real G1 seven-day Timelock and deterministic manifest comparison. Artifactarbitration-pre11-operations-local-e09f87ec59891d12816153adb2328698eb4710ceretains the local receipts and projected identities. - Pretestnet predecessors ARB-PRE-01 through ARB-PRE-10 are repository-qualified; ARB-PRE-09 and ARB-PRE-10 have now actually been merged. ARB-PRE-11 repository exit met; no live testnet or independent production-security qualification claimed. Subsequent ARBITRATION-AUDIT-5 remains blocked on actual public chain and authorized endpoint availability, not a locally missing runbook. ARBITRATION-AUDIT-6 remains independent production-security/release closeout. Do not merge ARB-PRE-11 absent explicit user request.
ARBITRATION-AUDIT-5 — Production-equivalent public testnet qualification — NEXT / BLOCKED ON LIVE TESTNET¶
- Deploy the exact qualified release.
- Verify chain identity, runtime hashes, governance and one-time registry bindings.
- Exercise real case/evidence/ruling/appeal/finalization flows and representative origin-protocol consumption.
- Exercise Wallet/runtime discovery plus indexer/reorg/rebuild/finality behavior.
- Retain transactions, receipts, logs, block hashes, addresses and code hashes.
Deferred 420Storage private evidence activation — TESTNET ONLY (ARB-PRE-05)¶
Repository-side connection now composes the existing 420Storage v1 private retrieval transport and prepare/ingest interface through wallet/web/core/arbitration-storage-bridge.js; canonical CaseRegistry events, case/round/resolver permissions, read/write capability, exact six-field object identity, authenticated issuer, bounded retention and encrypted-capsule verification are enforced in the application code. This does not create a second storage network, public evidence repository, 420ID wallet privilege or an unconditional private-access token.
Defer ONLY the following live-environment operations until the public testnet is operational:
- Configure a private-only existing 420Storage GatewayRouter with ArbitrationEvidenceAccess420 for the Arbitration evidence object namespace; its optional public-read guard rejects missing/private-mode downgrade. Keep ordinary public Gateway routers separate and unchanged.
1. Deploy and independently qualify the existing 420Storage/420Store Resource Protocol and private 420Gateway endpoints; pin the authorized HTTPS host, Genesis/Registry identities and code hashes. Do not fabricate a live endpoint or claim an active service now.
- Wire the already-implemented execution/storage/ArbitrationEvidenceAccess420 authorizer into the approved GatewayRouter.Authorizer, supplying the real on-chain canonical case/evidence reader and app-private verified Wallet-controller session verifier. Neither the Go authorizer nor the browser may issue a session merely from a 420ID app profile; require real Wallet-controller authentication, object/capability scope, short-lived expiry and revocation.
2. Provision the app-private 420Identity/Wallet gateway integration and server-side Wallet-controller authenticated session issuer; 420ID application login alone is not a Wallet proof or permission. Recheck the current canonical case, round, participant/resolver, explicit private Storage object and requested read or write capability before every short-lived grant.
3. Fund/authorize the actual Storage agreement, capacity reservation, commitment and idempotency preconditions for uploads; install the approved 420Storage v1 prepare/ingest adapter. The browser must never invent canonical agreements or upload via a public fallback.
4. Connect the approved X-420-Access-Mode: private, X-420-Subject, X-420-Session-ID, X-420-Capability retrieval route; enforce object/permission matching, server-side expiry/revocation, no-store responses, max 90-day retention, deletion and outage/recovery operations.
5. Execute and retain real testnet authorized claimant/respondent/resolver, unauthorized observer/wrong-case/expired/revoked grant, corrupted/missing data, upload interruption, private non-disclosure, finality/reorg and evidence lifecycle tests; preserve redacted transaction and storage receipts without secrets.
Do not mark the live 420Storage integration or ARBITRATION-AUDIT-5 complete before these verified deployments and tests. Local cryptographic and authorization qualification is separate. Local encrypted capsule export and on-chain evidence commitments remain available even when the remote service is disabled.
ARBITRATION-AUDIT-6 — Genesis/production security and release closeout — BLOCKED ON AUDIT-5¶
- Reconcile all prior evidence to the exact release candidate.
- Complete resolver/operator key-custody, monitoring, incident-response and recovery procedures.
- Complete independent external security review or a formally approved release exception.
- Re-run exact-head final qualification and separately declare code/build/contract/test/docs/integration/security/testnet/Genesis/production readiness.