CMP-0.9 — Signed execution receipts and objective verification¶
Status: PROTOCOL SPECIFICATION ONLY. No executable CMP receipt verifier, worker signer, evidence service, correctness proof, paid settlement or dedicated CMP tests are implemented by this increment. Authority: frozen ComputeMarket V1 architecture, CMP-0 overview, CMP-0.3 deterministic work units, CMP-0.4 signed manifest, CMP-0.5 provider/resource identity, CMP-0.6 immutable matching, CMP-0.7 lifecycle, and CMP-0.8 Vault economics. A scheduler is not a correctness authority; a worker signature proves attribution only. No new fixed Genesis predeploy, unrestricted escrow, or consensus dependency.
1. Immutable authority and admissibility boundary¶
The canonical job, accepted request/match/manifest, selected verification profile, funded cap, work plan, unit ID and attempt ID are read from authoritative registries. Do not create a second editable copy in a receipt. Before admission, verify RUNNING or a specifically authorized late-receipt recovery path, the exact registered attempt assignment, provider/node/resource ancestry and scoped signer grant at execution/receipt time, bound deadlines, selected evidence policy, and the accepted immutable versioned quote. A receipt from a different job, replica, attempt, chain, contract, resource, authorization epoch or executable is not interchangeable. Suspended resources cannot begin new paid attempts; an existing attempt's eligibility and earned rights follow the frozen policy rather than silent confiscation.
A versioned ReceiptV1 is an attempt-level assertion, never an extra work unit or payment slot. Canonical receipt fields are: receiptSchemaVersion, chainId, verifyingRegistry, jobId, requestId, matchId, unitId, attemptId, providerId, nodeId, resourceId, workerSigner, signerGrantId, manifestHash, partitionPlanHash, partitionIndex, replicaIndex, attemptNonce, executionStartedAt, executionEndedAt, meteringProfileId, meteringProfileVersion, measuredUnits, measurementCommitment, inputSliceCommitment, outputCommitment, evidenceRoot, resultCode, and receiptNonce. All IDs/commitments are fixed 32-byte values; chain ID and metered quantities are uint256; indexes and profile versions are uint32; timestamps/nonce are uint64; signer/verifier are addresses. Before executable implementation, freeze the exact static ABI tuple, type widths, signature type string and encoding vectors in a separately reviewed schema/fixture commit. This ordered field description is normative as to bindings but is not an assertion of a deployed ABI or tested hash vector. Reject zero or unsupported critical IDs, versions and evidence roots; a legitimately empty output must have a profile-defined nonzero empty-output commitment.
Define a receipt payload commitment as a domain-separated Ethereum Keccak-256 digest of standard ABI encoding of the frozen typed fields; sign a distinct EIP-712 execution-receipt authorization digest with actual chain ID and deployed, code-hash-verified registry/verifier domain, never an assumed fixed address. A request manifest signature under CMP-0.4 is not a receipt signature. Bind signer to canonical attempt-assignment authorization and an action-scoped receipt.submit grant; validate EOA canonical low-s signatures or ERC-1271 under the frozen accepted signer policy. A worker key must not gain job.verify, settlement.execute, arbitrary Vault release, provider beneficiary edit, or payer refund authority. Consume (chain, jobId, unitId, attemptId, receiptNonce) under a defined single-use/idempotency rule only after successful admission; a byte-identical repeated submission has no additional state or economic effect, while conflicting receipts for one attempt are rejected or explicitly flagged for dispute with no extra entitlement. Off-chain transport identity and receipt ID cannot replace canonical attempt/unit IDs.
2. Evidence and metering integrity¶
The evidence root commits to a versioned, domain-separated canonical ordered evidence set with digest algorithm, immutable content-addressed references, verifier-retrieval policy, retention deadline, and per-evidence provenance. Minimum evidence requirements are selected before acceptance by the verification profile: executable/artifact digest, manifest and input-slice binding, assigned resource attestation where required, start/finish and bounded metering attestations, output commitment and reproducibility/correctness proof or challenge material as applicable. Off-chain evidence and private data remain encrypted and access-controlled; the public chain stores minimal commitments, not raw inputs, private outputs, credentials, dataset locations or arbitrary unbounded logs. Evidence unavailable by the policy deadline fails closed or follows the explicit challenge/failure path, never auto-verification.
Measured units use the accepted metering profile's exact unit, scale, integer arithmetic, rounding direction, maximum duration and resource ceilings; reject negative/unrepresentable measurements, end-before-start, fabricated timestamps, excessive runtime, clock skew outside policy, usage above reserved capacity, missing attestors and aggregation overflow. Provider/self-reported meter readings are claims; verification must cross-check the objective evidence required by the accepted profile. Quote and fee totals include every accepted partition, replica and permitted retry; changing a meter or evidence policy after acceptance cannot raise the user's maximum. A late receipt cannot reset deadline, aggregate metering or consumed budget.
3. Verification profile and independent decision¶
An accepted VerificationProfileV1 immutably binds profileId, version, policyHash, supported workload/output schema, required evidence types, trust and independence model, deterministic replay/proof/quorum mechanism where applicable, verifier identities/selection rule, permitted replica-provider diversity, result aggregation, measurement tolerance, challenge and appeal windows, acceptance threshold, partial-result policy, price-to-earned formula and objectively bounded failure policy. Hash and resolve exact policy bytes against authorized versioned publication before acceptance; a mutable URL or future governance change cannot substitute an easier verifier for an accepted job. If a workload cannot be checked by its selected mechanism, it must not claim correctness verification or trigger earned payment by default. Provider signatures, scheduler votes, resource reputation and receipt presence alone are insufficient correctness proofs.
A verification decision binds chain/domain, exact job and accepted match, immutable manifest and profile hashes, complete required unit/replica set, unique admissible receipt commitments and evidence root, evidence retrieval/validation outcome, checker identity/grant, decision nonce, challenge deadline, result aggregate commitment, fixed versioned metering and exact integer earned amount. Require independent policy-authorized verifier authentication and objective evidence. A verifier may say PASS, FAIL or INCONCLUSIVE at the decision-record level; these are not new canonical job states. PASS allows RESULT_COMMITTED -> VERIFIED only if every preaccepted condition is met; FAIL or INCONCLUSIVE follows CMP-0.7 failure/dispute or a bounded retry path and creates no provider entitlement by default. If policy explicitly permits independently verified partial work, calculate each eligible unit's earnings under the preaccepted rule and cap; a generic partial success percentage cannot invent a payout. Verifier does not select the beneficiary, rewrite the accepted quote, issue new paid attempts, withdraw from Vault, or bypass an open challenge.
Replica agreement needs an explicit versioned predicate over committed outputs and the accepted independent-provider threshold; duplicate replicas on one resource/provider cannot satisfy a diversity requirement. Nondeterministic workloads require an accepted objective tolerance/test protocol rather than byte-equality or a majority vote assumed reliable. A provider-controlled verifier cannot count as independent when the profile requires independence. Verification is scoped to evidence within the frozen policy and must record why a required proof/replica was accepted or rejected, without publishing private evidence bytes.
4. Exactly-once result and payment gating¶
For every unitId, choose one accepted verified result/attempt under the profile's deterministic tie/dispute policy and maintain one canonical payable entitlement key across all retries. Bind receipt admission, verification decision and settlement to the same unit ID derivation from CMP-0.3; no attempt-level second payment. At job level, transition from RUNNING to RESULT_COMMITTED only after complete required coverage or the preaccepted partial-result branch; transition to VERIFIED only with a valid policy-authorized result decision and exact nonduplicated unit earnings. The challenge/dispute window and finality gate in CMP-0.7/0.10 must close or resolve before CMP-0.8 provider claim release. Claimable and externally paid are separate states; a verified receipt is not a Vault transfer.
Enforce sum(verified unit earnings + explicitly accepted fees) <= accepted aggregate quote <= requester maximumAuthorizedSpend <= real payer-backed funded reserve, with the liability and isolated refund conditions of CMP-0.8. Reject multiple receipts that represent the same actual unit through varied metadata, replay after reorg/resubmission, a new attempt nonce, reassigned worker or changed replica index outside the accepted plan. A valid dispute can hold a contested entitlement but cannot mint a second one, change its frozen beneficiary or consume another payer's balance. Refund the unearned balance only through the payer-bound Vault process, never by interpreting cancelObligation as an external refund.
5. Auditable boundaries, events and qualification¶
Proposed source ownership: canonical attempt registry validates assignment/signers; ComputeReceipt420 validates typed receipt and preserves minimal commitments; ComputeVerification420 resolves immutable policy, evidence and objective decision; ComputeJobRegistry420 gates lifecycle; ComputeSettlement420 and the approved, payer-segregating Vault adapter exclusively own economic claims. These names describe target modules, not verified existing/deployed CMP contracts. Emit versioned ReceiptCommitted, ReceiptRejected where safe, VerificationDecision, UnitEntitlementFinalized and ResultSetCommitted events with job/unit/attempt, policy version, actor, nonce and evidence commitments. Logs alone are not canonical correctness or custody proof; retain queryable state and off-chain evidence availability under the accepted retention policy.
Executable positive qualification after implementation: pin complete standard-ABI and EIP-712 fixture inputs/words/hashes/signatures in Solidity and independently in Go/TypeScript; demonstrate EOA and ERC-1271 receipts bound to the same accepted CMP-0.4 manifest; verify one valid assigned attempt, exact metering, correct output/evidence, prescribed independent replica quorum, complete partition result, a valid optional partial-entitlement policy, one verified unit payable once across two retries, challenge-window finalization and provider claim plus payer remainder in real native-$420 Vault accounting. Assert immutable input/output commitments and no plaintext publication. Include reboot, submission reorder and chain reorg reconstruction.
Negative qualification: missing/mismatched job/request/match/manifest/unit/attempt/provider/node/resource/chain/verifier, stale or revoked signer grant, wrong EIP-712 domain, alternate ABI/packed encoding, malleable signature/bad ERC-1271, nonce reuse, duplicate/conflicting receipt, fabricated meter/time/evidence, unsupported or changed policy, empty/missing private proof, colluding/duplicate replicas, insufficient quorum, incorrect/nondeterministic output outside accepted tolerance, unverified partial payout, verifier self-dealing/unauthorized decision, failed or inconclusive result marked VERIFIED, expired challenge or disputed claim paid, unit retry/replica double payment, quote overflow, beneficiary redirect, cross-job payer spend and scheduler-forged success. Each rejected attempt must leave unit entitlement, payer liabilities, Vault balances, job state and consumed nonce unchanged except explicitly permitted audit evidence. Map cases to frozen CMP-INV-001–030 and run dedicated Foundry/worker/SDK tests alongside exact-head repository qualification.
Completion boundary: CMP-0.9 defines receipt/evidence/verification bindings, correctness and metering gates, independent decision and exactly-once earning semantics. Exact executable typed vectors, signed receipt verifier, objective workload checkers, real worker runs, deployed registry and funded end-to-end settlement are not implemented or demonstrated. Keep PR #367 draft/unmerged pending remaining CMP-0 phases and executable closeout; CMP-0.10 specifies dispute, privacy and security.