CMP-0.10 — Disputes, privacy and security¶
Status: PROTOCOL SPECIFICATION ONLY. This increment does not implement or deploy a dispute router, secure evidence channel, stake slash, privacy-preserving worker, Vault adapter or CMP-specific executable tests. Authority: frozen ComputeMarket V1 architecture, CMP-0 phase overview, CMP-0.3 work-unit/attempt identities, CMP-0.4 signed manifest, CMP-0.5 provider identities, CMP-0.6 accepted matching, CMP-0.7 authorized lifecycle, CMP-0.8 Vault economics, and CMP-0.9 receipt verification. No new fixed Genesis predeploy, privileged matcher, independent custody pool or consensus dependency.
1. Accepted policy, challenge authority and case identity¶
At job acceptance freeze an immutable, content-addressed DisputePolicyV1 with version, eligible claimant and respondent roles, objective grounds and evidence types, verifier and independent adjudicator selection/independence rules, finite submission/challenge/response/appeal deadlines, finality basis, evidence retention and sealed-disclosure rules, fee/bond limits, permitted resolutions and any objectively defined stake penalties. The policy must be compatible with the accepted verification, privacy, pricing, SLA and Vault policies. An unpublished, mutable, unsupported, unavailable or contradictory policy fails closed before paid work; later policy changes cannot retroactively lower evidence requirements, increase a penalty or redirect funds.
A distinct, stable disputeId binds chainId, the real registry-resolved verified CMP dispute contract/domain, job and accepted match, affected canonical unitId and selected receipt/attempt or explicitly scoped job-wide condition, policy hash, unique case sequence and opening nonce. Treat these as proposed canonical bindings; freeze exact ABI/hash vectors in implementation before deployment. A challenge may be opened by the payer/requester, affected accepted provider or independently authorized capability-holder within its object/action scope, and by a protocol security reporter only for explicitly enumerated objective safety grounds. A scheduler, verifier, ordinary administrator or unrelated user cannot fabricate payer consent, impersonate a disputant, obtain unrestricted evidence access or alter another party's payable entitlement. Distinct roles require distinct authorization even when held by one account.
Each case records its accepted decision reference, grounds code, party identities, disputed unit/amount cap, evidence commitment/root, applicable policy hash, opened-at finality anchor, challenge and response deadlines, currently authorized adjudicator, appeal route, current case status and immutable event sequence. Permit one active resolution path per contested entitlement; simultaneous or repeated challenges cannot manufacture another hold, second repayment or new work-unit payment. Exact byte-identical replay is idempotent; contradictory overlapping cases are rejected or linked into one bounded case under an explicit policy. Do not replace canonical job/unit/receipt identities with transport ticket numbers.
2. Dispute state, holds, deadlines and lifecycle integration¶
Case-level states are OPEN -> RESPONDED -> EVIDENCE_CLOSED -> DECIDED -> FINAL, with policy-scoped APPEALED -> FINAL and WITHDRAWN/TIMED_OUT outcomes. These are case states, not new ComputeJob states. DISPUTED is a nonterminal job lifecycle branch under CMP-0.7; record its exact pre-dispute canonical state and frozen accepted economic bindings. A resolved case resumes only the separately permitted transition to verification/failure/settlement/refund; it cannot reopen SETTLED, REFUNDED, CANCELLED, EXPIRED or FAILED or grant fresh paid attempts through a generic status setter. If a case is opened after a legitimately final provider claim under a policy allowing post-finality allegations, resolve it through independently authorized security/stake processes without clawing back an unrelated payer or duplicating CMP unit settlement.
Open a case only within the accepted challenge window measured against a canonical chain event/finality anchor and the policy's explicit clock/height convention. Make RESULT_COMMITTED -> VERIFIED evidence review, the challenge opportunity, adjudication/appeal, and release of claimable provider funds separately observable. On a timely admissible challenge, atomically hold the specific contested, not-yet-released earned entitlement and matching refund liability; do not hold all unrelated units, all jobs of the provider, other payers' credits, or already legitimately claimable/paid funds without separate preaccepted authority. An interim PASS or worker receipt is not settlement finality. Final release of an uncontested unit must await its own applicable window/decision, and retries must share its one payable entitlement.
A hold preserves the original payer-backed liability and immutable accepted provider beneficiary; it does not transfer value to adjudicators, administrators or the complainant. The final decision allocates only the bounded previously reserved amount among independently proven earned provider claims, bound payer refund claims and preaccepted fee/bond rules. Refund credit, refund claimability and external refund payment remain different evidence under CMP-0.8; Vault cancelObligation alone proves none of them. Any open appeal continues the affected hold according to the preaccepted policy. A terminal resolution consumes a single finalization key for (jobId, unitId, disputeId, policyVersion) and atomically prevents conflicting settlement, refund and slash actions. On expiry, missing evidence or adjudicator unavailability, use a preaccepted finite fail-closed timeout/default route and preserved recovery claim: never let an indefinite admin-controlled hold or default automatic provider payment emerge from missing proof.
3. Evidence procedure, independent adjudication and appeals¶
Admit only domain-separated, versioned evidence committed against the accepted manifest, unit, attempt, receipt, verifier decision, metric/proof, resource assignment and relevant deadline. A case submission records claimant, signed scope and nonce, objective grounds, evidence-root commitment, evidence-retention deadline and access grants. Respondents receive a policy-defined opportunity to inspect permissible evidence and submit counter-evidence without being given the requester's raw private datasets, keys or credentials by default. Seal evidence before the deadline; require a canonical ordered commitment set and signed adjudication record with explicit grounds, checks performed, accepted/rejected evidence references, bounded monetary disposition, policy version and reason code. Unavailable, forged, late, altered or unverifiable evidence is handled under explicit burden-of-proof rules, not treated as proof of guilt.
Adjudication may use accepted deterministic re-execution, cryptographic/TEE proof validation, policy-defined quorum of disinterested adjudicators, independently verifiable metering, or requester acknowledgment where that was the accepted trust model. A requester acknowledgment cannot be relabeled independent correctness proof. Disallow self-adjudication and sybil quorum where the frozen policy requires independence; require disclosed conflict, quorum, abstention and replacement rules. A verifier cannot certify its own disputed decision when the selected adjudication policy demands an independent check. Administrative override cannot replace objective grounds, broaden restitution, change the beneficiary or skip an appeal.
An appeal is available only to parties and on grounds/deadlines defined at acceptance, with an independently selected authority when required. One bounded appeal sequence and finite final deadline prevent recursive reopens. Record every interim and final decision; overturning an unfinalized decision updates the same entitlement and release gate, not a second settlement. A case's resolution must be reconstructable from canonical references, authenticated decision events and retained inspectable evidence commitments, while the actual private proof bytes remain access-controlled off-chain.
4. Objective misconduct, stake and Trust boundaries¶
Provider stake changes only through the separately authorized stake, withdrawal and slash paths, following the actual bound provider/stake policy and objectively evidenced misconduct. Permissible proposed proof categories include signature-verifiable forged/conflicting receipts, double-claim attempts, knowingly falsified bound hardware attestation, identity fraud and verifiable failure to perform an explicitly accepted measurable SLA. A failed result, inconclusive verifier vote, subjective output-quality complaint, provider suspension, or disputed allegation is not itself objective slash evidence. A stake slash requires a versioned preaccepted violation predicate, unique misconduct-event key, validated evidence, independently authorized adjudicator/verifier decision, bounded amount, the prescribed challenge/appeal close, and exactly-once accounting. Prevent duplicate sanctions from resubmitting one receipt, attempt, dispute or cross-chain evidence; do not debit the user's job escrow or another provider's stake to pay a penalty.
Stake slash proceeds and claimant compensation, if permitted, follow a separately documented authorized stake/economic policy rather than an invented Vault refund or unilateral governance recipient. A provider's suspension blocks new matching and assignment according to CMP-0.5 but preserves already accrued valid claimable earnings and payer refunds. 420Trust receives minimized signed outcome references, SLA bands and final case/verification disposition as evidence only; its scores, labels, or a Trust reporter cannot approve routing, rewrite accepted terms, authorize custody, certify correctness or initiate a slash by themselves. Avoid recording a contested allegation as a final proven violation.
5. Private workload and secure disclosure boundary¶
Raw instructions, prompts, models/weights, datasets, input slices, generated outputs, plaintext proofs revealing those inputs, API keys, bearer/session tokens, unredacted logs and endpoint credentials remain off-chain by default. Public CMP state contains only bounded typed identities, hashes/commitments, policy versions, measured economic quantities and minimally necessary proof references. Hashing does not guarantee confidentiality for low-entropy inputs: use access-controlled encrypted transport/storage, domain-separated salted or hiding commitments where warranted, and an explicit public-metadata/privacy threat review. A worker receives the least input and time-limited access necessary for its exact accepted assignment; an accepted match is not blanket dataset or cross-job access. Off-chain retrieval URIs may be rotated without changing immutable content commitments, permitted readers or accepted semantics.
Evidence access capabilities are scoped to the exact case, data class, reader, purpose, expiry and revocation rule, with authenticated access logs and encrypted disclosure to authorized parties/adjudicators. Do not publish private evidence merely because a dispute was opened; support policy-defined zero-knowledge proofs, redacted attestations or a mutually approved confidential independent reviewer where objective verification requires sensitive material. Explicitly state where a chosen verifier/TEE or worker can see plaintext; TEE attestation is evidence under an accepted threat model, not a universal confidentiality or correctness guarantee. If the accepted workload cannot be verified without a disclosure the requester did not authorize, reject the job before funding/acceptance or follow the signed failure/refund policy, not an emergency access override. Define bounded retention, deletion of private copies and key/credential rotation while keeping minimum nonsecret canonical audit state reconstructable.
6. Emergency, abuse and recovery authority¶
Emergency powers may narrowly pause new activation, offers, matching, acceptance, unsafe worker routes, new receipts or verifier decisions when the action is demonstrably compromised. Every pause has authenticated scope, objective incident reference, event, review and recovery rules; it cannot forge proof, assign generic job status, rewrite the accepted manifest/resource/economics, move a node between providers, force secret publication, choose a new beneficiary, seize stake or redirect payer deposits. A paused verifier cannot automatically release a held entitlement or mark an unverified unit VERIFIED. Preserve already earned claims, payer-bound refundable credit and protected appeal evidence across pause, Vault winding-down, worker failure, key compromise, RPC reorg and scheduler replacement.
Bind every sensitive action to chain, actual verified registry/contract code hash and published version, object, scoped role, nonce and expiry; consume replay protection atomically with authoritative state updates. Separate worker receipt-signing keys, evidence access keys, verifier/adjudicator keys, provider-operator keys and Vault adapter authorizations. Audit reentrancy, signature malleability/ERC-1271 temporal checks, forged evidence, colluding verifier/provider, metadata leakage, underfunded hold, retry double-payment, reorg-finality assumptions, key rotation and malicious off-chain matcher. Do not authorize bridge/governance/validator/wallet execution merely through ComputeMarket registration or emergency status. Non-AI clients receive the same dispute and privacy guarantees as 420AI.
7. Executable qualification and completion boundary¶
Required positive tests after implementation: payer challenges within the exact window; provider rebuts under allowed evidence access; a disinterested checker reaches a signed final decision; one disputed unit is held while unaffected units proceed; a timely appeal retains the same liability and overturns a not-yet-released decision without duplication; objectively verified units settle once to the accepted provider and unearned payer-backed credit becomes payer claimable/paid through the real Vault route; objective forged receipt evidence triggers exactly one authorized bounded stake-path sanction after finality; provider suspension preserves preearned claims; private evidence remains off-chain and readable only under scoped grants; incident pause/resume and reorg/restart reconstruct open cases without opening terminal jobs.
Required negative tests: foreign-chain/domain/case/job/unit/receipt evidence; forged claimant or adjudicator, expired challenge, replayed nonce, conflicting concurrent decisions, sybil or provider-controlled independence quorum, appeal after finality, immutable policy change, wrong evidence ordering, private payload/log leak, unauthorized evidence download, stale worker/grant/revoked access, fabricated TEE claim, unsupported verifier, unverifiable subjective slash, twice slashed event, cross-payer hold/refund, duplicate refund after cancellation, held claim released prematurely, overquote disposition, admin-selected beneficiary, emergency confiscation, unrestricted custody grant, failure to preserve earned rights on suspension, and a scheduler bypass of manifest/privacy constraints. On rejected actions assert unchanged canonical case/entitlement/job state, consumed nonces, payer liabilities, Vault balance and stake except explicitly permitted audit records. Execute complete binding/signature fixtures, Foundry dispute/Vault/stake tests, off-chain authorization/privacy tests and real end-to-end challenge/appeal/finality/claim/refund paths, mapped particularly to CMP-INV-005–025 and 026–030, alongside all remaining CMP-INV-001–030 evidence and exact-head CI.
Completion boundary: CMP-0.10 defines dispute, appeal, privacy, objective-stake and nonconfiscatory emergency requirements only. It does not prove secure confidential compute, shipped case adjudication, independently verified sanctions or funded runtime paths. Keep PR #367 draft/unmerged through CMP-0.11 client/node integration and CMP-0.12 executable qualification and current-main reconciliation.