Proofcourt

ProofCourt: a 2‑phase permit→proof protocol that safely settles agent work on 0G.

Proofcourt

Created At

Open Agents

Project Description

ProofCourt is a 0G-native multi-agent work + settlement protocol built around a strict two‑phase flow: (1) Mandate/Permit and (2) ProofCourt/Settlement. In Phase 1 (Mandate/Permit), the requester defines the task and SLA, resolves real agents via on-chain Agent iNFTs (“AgentDNS”), and anchors the AgentSLA + per‑agent memory capsules to 0G Storage. ProofCourt then emits/records a PermitReceipt that commits the allowed scope before any execution happens—so the worker can only act within the permitted mandate. In Phase 2 (ProofCourt/Settlement), the worker executes and submits work, then a 3‑verifier jury independently produces PASS/FAIL verdicts via 0G Compute. A 2/3 quorum decides the outcome: KeeperHub executes an atomic payout or refund, while 0G Galileo contracts anchor evidence/receipts and update mutable iNFT reputation. Every case is replayable from 0G roots.

How it's Made

We implemented the two‑phase protocol end-to-end as a runnable stack: a React 19 + Vite frontend (wallet-connected requester) and an Express API that enforces a fail‑closed state machine: idle → prepare (Phase 1) → permit_issued → payout_locked → commit (Phase 2) → evidence_stored → proof_verified → payout_released/refunded → reputation_updated. For agent coordination, we run a real 5‑node Gensyn AXL mesh (requester/worker/3 verifiers) and hash AXL transcripts into evidence capsules. 0G Storage anchors the AgentSLA, agent memory, and replay artifacts; 0G Compute runs verifier inference (qwen‑2.5) and returns an attestation handle displayed in the UI. On 0G Galileo, Solidity contracts mint role iNFTs and persist reputation + evidence pointers. KeeperHub handles automated settlement via webhook/MCP workflows and x402 payment signing so funds move only after quorum-approved proof.

background image mobile

Join the mailing list

Get the latest news and updates