# Taifoon Coordination Layer – Grade Job

> Taifoon Coordination Layer – Grade Job is a paid API for AI agents from coord.taifoon.dev, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-20).

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.

## Facts

- Endpoint: POST https://coord.taifoon.dev/v1/judge/grade?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/taifoon-coordination-layer-grade-job-0bbb1fd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MMa-FlZP_RoaruLAAC2ss

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability taifoon-coordination-layer-grade-job-0bbb1fd2 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "graded": [
   {
    "id": "job-1",
    "value": "delivered_as_specified",
    "verdict_code": 1
   }
  ],
  "decision": {
   "id": "…"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/taifoon-coordination-layer-grade-job-0bbb1fd2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from coord.taifoon.dev](https://www.zero.xyz/host/coord.taifoon.dev/llms.txt)
