{"uid":"cap_MMa-FlZP_RoaruLAAC2ss","slug":"taifoon-coordination-layer-grade-job-0bbb1fd2","name":"Taifoon Coordination Layer – Grade Job","description":"One API over the coordination layer: the root that commits every chain, proofs that a transaction happened, what every route costs, the transfers, and the agent-hiring lifecycle. Most operations are public reads. Writes say who may make them in `security` (RelayerKey = X-API-Key, OperatorToken = x-operator-token) and in x-taifoon-auth.rule; nothing here signs or sends a transaction for you. A 2xx JSON object answered to a caller that sent no key also carries `get_key` (and the headers x-taifoon-get-key and Link rel=free-key): how to get a free key in one call; proofs, evidence packs, cards and this document are left as written. Lineage language: a sale walks offer in → classify → listed → hired → delivered → graded → settled → legs written → accrued → split → PAID → recorded; a venue adapter has offer.in · offer.out · job.in · job.out; the seller of record pays on by forward · share · period · markup; a leg is Owed → Reserved → Sent | Held | Refunded; a hop reads OK · HELD · MISSING · BROKEN. On the wire the hop ids are the event field step and the metric label stage; a wire name is never renamed.","url":"https://coord.taifoon.dev/v1/judge/grade?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"jobId":{"type":"string"},"state":{"type":"string"},"chainId":{"type":"integer"},"handshake_id":{"type":"string"}}},"maxItems":4,"minItems":1}}},"responseSchema":{"type":"json","example":{"ok":true,"graded":[{"id":"job-1","value":"delivered_as_specified","verdict_code":1}],"decision":{"id":"…"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uZ9uGk2lg7Xb86ROF2uu8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Grades one or more completed agent jobs, assigning a delivery verdict (e.g. delivered_as_specified) and a numeric verdict code for each job ID submitted.","exampleAgentPrompt":"Grade job 'job-abc123' for me — it's in state 'delivered' on chain 8453 with handshake 'hs-xyz789' — and tell me whether it was delivered as specified.","exampleUseCases":[{"title":"Post-delivery job verdict","prompt":"I just received the output from agent job 'job-001'. It was in 'delivered' state on chain 8453 with handshake 'hs-001a'. Can you grade it and tell me if it counts as delivered_as_specified?"},{"title":"Multi-job batch grading after settlement","prompt":"Grade these three agent jobs for me: job-111 (delivered, chain 8453, handshake hs-aaa), job-222 (delivered, chain 8453, handshake hs-bbb), and job-333 (delivered, chain 8453, handshake hs-ccc) — I need the verdict codes before we finalize the split."},{"title":"Dispute resolution check","prompt":"Agent job 'job-dispute-77' is being contested — it's currently in 'hired' state on chain 8453 with handshake 'hs-d77'. Can you run a grade on it so we can see if the delivery holds up and get a decision ID?"}],"resultDescription":"Returns a JSON object with ok: true, a 'graded' array where each entry contains the job ID, a human-readable value (e.g. 'delivered_as_specified'), and a numeric verdict_code; plus a 'decision' object containing a decision ID that can be used for downstream settlement or recording.","failureModes":["Missing required 'id' field in any item returns a validation error","Submitting more than 4 items in the array returns a 400 error (maxItems constraint)","Invalid or unrecognized job ID may return a 404 or an unresolvable grade","Unauthorized caller without OperatorToken or X-API-Key receives a 401/403","Job not yet in a gradeable state (e.g. still 'hired' without delivery) may return an error or a non-positive verdict","Network or chain resolution failure may return a 5xx error"],"whenToPreferThis":"Use this endpoint when you need an authoritative, on-chain-backed verdict on whether an agent job was fulfilled as specified — particularly after a job transitions to 'delivered' state in the Taifoon agent-hiring lifecycle. It is the correct choice for triggering settlement, resolving disputes, or producing a decision record that feeds into leg accounting (Owed → Reserved → Sent). Prefer it over manual inspection when you need a machine-readable verdict_code for downstream automation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-20T06:47:29.241Z","isFirstParty":false,"canonicalSlug":"taifoon-coordination-layer-grade-job-0bbb1fd2"}