420Docs context
Skip to content

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

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

  1. 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.
  2. 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. cancelObligation merely 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.
  3. 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.
  4. 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.
  5. Dispute and any slash require scoped authorization, objective policy-bound evidence, deadlines and auditable resolution/appeal. Suspension blocks new work without confiscating earned entitlements.
  6. Off-chain workers/schedulers are replaceable. Neither EVM consensus nor finality may depend on execution of customer workloads.
  7. fourtwentyd, optional node420 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.