CMP-0 — Compute Market protocol specification¶
Status: DRAFT — specification coverage through CMP-0.12; operational closeout BLOCKED. Audited baseline: main 277395931f5419af0728f3ea801800401a8bb336 (2026-09-21); refresh against latest main before any closeout or merge.
Authority and compatibility¶
This document refines, but does not supersede, frozen ComputeMarket V1 architecture, including CMP-INV-001–030. Frozen V1 governs canonical on-chain state if labels or orchestration differ. CMP-0 creates no fixed Genesis predeploy, active registry entry, deployable contract, custody privilege or assertion of production readiness. ComputeMarket contracts become registry-resolved applications only after deployment, code-hash verification and authorized publication against the current frozen system-address map. Do not reference retired recovery branches as authority.
Scope, authority and actors¶
420 ComputeMarket is a provider-neutral general-purpose marketplace for CPU, GPU, accelerator, proving, rendering, simulation, transcoding and batch execution. 420AI is a client; non-AI jobs have no AI dependency. Customer workloads and private datasets execute off-chain; on-chain commitments and economic entitlements are minimal and auditable. JobOwner is requester/payer; ComputeWorker is provider-bound operator; Scheduler is replaceable and non-authoritative; Verifier executes a bound policy; Challenger has scoped dispute authority; DatasetProvider and ResultConsumer control their own off-chain access; Protocol consists of canonical registries, authorization, verification and Vault-backed accounting. Combining actor roles does not combine their capabilities or grant wallet/custody rights.
Phase roadmap and authoritative specifications¶
- CMP-0.1 — Source inventory and integration verification: repository inventory and source/integration audit. Completed as an inventory assessment on the pinned baseline; not proof of runtime integration.
- CMP-0.2 — Canonical ComputeJob schema: field ownership, write-once bindings, constraints and state validation. A job can exist in
CREATEDbefore match/provider/resource/beneficiary are bound; these become immutable at their authorized binding moment. - CMP-0.3 — Deterministic work-unit identity: exact typed V1 unit/attempt identity and qualification gate. Domain-separated Keccak of standard ABI-encoded immutable job/manifest/partition/replica metadata; retries are attempts of the same payable unit.
- CMP-0.4 — Signed execution manifests: canonical payload and request-bound EIP-712 authorization. Fail-closed signer/nonce/capability checks, immutable executable and resource-policy commitments, worker checks and off-chain secret boundaries.
- CMP-0.5 — Provider, node and resource identity: distinct canonical identities, permanent parentage, eligibility and acceptance snapshots. Operator grants, endpoint/capability revisions and suspension do not redirect already accepted economic entitlements.
- CMP-0.6 — Offers, requests and matching: dual authorization, versioned constraints, atomic capacity/funding checks and immutable accepted match. Matching service proposals are non-authoritative; paid execution requires an eligible concrete resource and a bounded, funded commitment.
- CMP-0.7 — Authorized job lifecycle: named actor/capability/guard/evidence/event transition matrix and exceptional paths. Canonical normal/exceptional states, bounded attempts, nonterminal dispute resolution, terminal-state protection, real Vault refund boundary and replay-safe settlement are distinct from off-chain scheduler observations.
- CMP-0.8 — Vault funding, settlement and payer refunds: source-verified Vault semantics, payer-segregated accounting, verification-gated claims and actual refund routes. Existing Vault-wide free balance and
cancelObligationdo not establish payer ownership or transfer a refund. A CMP adapter/extension and executable proofs remain outstanding. - CMP-0.9 — Receipts and verification: attempt-bound signed receipt, evidence and metering requirements, objective verifier-policy decision and one entitlement per unit. Attribution alone cannot prove correctness or release funds; executable vectors, receipts and workload verification remain outstanding.
- CMP-0.10 — Disputes, privacy and security: bounded challenge/appeal, disputed-entitlement holds, objective stake sanctions, private evidence disclosure and nonconfiscatory emergencies. Case state does not replace canonical job state; neither an allegation nor a worker signature authorizes slashing or payment. A deployed dispute service, protected evidence channel and executable test evidence remain outstanding.
- CMP-0.11 — Client, node and 420AI integration: provider-neutral SDK/UI/worker contract, isolated node runtime, audited AI-facade translation and real execution test criteria. Existing node420/AI/Vault source is not a working general CMP integration. The worker, client, UI, adapter, deployment and dedicated tests remain outstanding.
- CMP-0.12 — Qualification and closeout: ten executable evidence gates, all 30 frozen invariant-to-test obligations, funded AI/non-AI scenarios, latest-main reconciliation and exact-head qualification. The evidence plan is specified, but runtime gates are OPEN until implemented and proven. Prior Docs/Integrated green results qualify their exact documentation commits, not live ComputeMarket.
Canonical state and authorization¶
A canonical ComputeJob references distinct jobId, requestId, and, after authorized matching, matchId, providerId and resourceId; it binds the accepted manifest, workload class, input/output commitments, resource profile, deadline, replication and verification profile, accepted pricing/SLA and a bounded funding reference. Use authoritative request/match/funding records rather than redundant independently writable copies. The requester maximum may be raised only by separately authorized funding. Replication and all units must fit the accepted aggregate quote. Never place raw inputs, secrets, datasets, model weights or outputs on chain.
Frozen lifecycle: CREATED -> FUNDED -> MATCHED -> ACCEPTED -> RUNNING -> RESULT_COMMITTED -> VERIFIED -> SETTLED, with exceptional CANCELLED, EXPIRED, FAILED, DISPUTED, REFUNDED. Scheduler QUEUED/ASSIGNED, worker SUBMITTED and verifier VERIFYING are off-chain observations, not added canonical states. REJECTED and SLASHED are verification/security outcomes, not new job states. A dispute is not automatically terminal; resolution/appeal rules must be specified and tested. Every transition needs named actor, capability, prerequisite and event; no generic arbitrary state setter and no terminal-state reopening or renewed spending.
Boundary constraints¶
- Accepted matching must verify active eligible provider/node/resource, compatible offer/request and expiry, region/privacy, price/SLA, resource and verification policy versions. A scheduler cannot bypass checks or alter accepted terms.
- Fund via an authorized, registered 420Vault custody/accounting path, native $420 as Genesis default. Reserve before paid work; bind provider beneficiary to the accepted match and preserve payer refund rights.
cancelObligationmerely frees balance inside its Vault and is not a payment to the payer. Existing Vault free balance is vault-wide, so payer segregation must be separately implemented and proved. No parallel unrestricted escrow. - Bind verification profile before execution. Signature on a receipt proves attribution, not result correctness. Failed verification creates no provider payment unless a preaccepted objective partial-entitlement policy explicitly permits it.
- Receipt must bind chain/domain, job, unit/attempt, provider/resource, manifest, bounded metering, output commitment and evidence reference. Reject replay, rollback, duplicate unit/replica payments and unquoted spend across attempts.
- Dispute and any slash require scoped authorization, objective policy-bound evidence, deadlines and auditable resolution/appeal. Suspension blocks new work without confiscating earned entitlements.
- Off-chain workers/schedulers are replaceable. Neither EVM consensus nor finality may depend on execution of customer workloads.
fourtwentyd, optionalnode420 compute,@420/compute-sdk, 420Compute UI and 420AI must use the same protocol only after their concrete source/module boundaries and capability scopes are verified. They are clients/operators, not alternative custody or settlement authorities.
CMP-0 qualification gate¶
Use CMP-0.12 as the closeout evidence register: inventory current sources; freeze exact versioned typed schemas/encodings and independent executable fixtures; test every frozen CMP invariant; deploy and prove actual registered components, bounded authority, privacy and off-chain worker isolation. Demonstrate real end-to-end funded/verified/settled/refunded paths using narrowly scoped Vault authorization; execute dedicated contract/worker/SDK/AI and adversarial checks on exact final branch head; reconcile latest main before any merge. Documentation-only CI green does not satisfy operational CMP closeout.