{"service":"wever-agent-hiring","version":"1.0.0","schemas":{"workorder-create":{"type":"object","additionalProperties":false,"required":["idempotency_key","title","description","acceptance_criteria","price_usdc","deadline","worker_wallet"],"properties":{"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+(?![\\s\\S])"},"title":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[^\\u0000-\\u001f\\u007f-\\u009f]+(?![\\s\\S])","description":"At most 200 UTF-8 bytes. Control characters are not allowed."},"description":{"type":"string","minLength":1,"maxLength":4000,"pattern":"^[^\\u0000-\\u001f\\u007f-\\u009f]+(?![\\s\\S])","description":"At most 4000 UTF-8 bytes. Control characters are not allowed."},"acceptance_criteria":{"type":"array","minItems":1,"maxItems":16,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":500,"pattern":"^[^\\u0000-\\u001f\\u007f-\\u009f]+(?![\\s\\S])","description":"At most 500 UTF-8 bytes. Control characters are not allowed."}},"price_usdc":{"type":"string","pattern":"^(0|[1-9][0-9]{0,2})(\\.[0-9]{1,6})?(?![\\s\\S])"},"deadline":{"type":"integer","minimum":1,"maximum":4102444800},"worker_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"usage":{"enum":["synthetic","operational"]}}},"workorder-fund":{"type":"object","additionalProperties":false,"required":["order_id","idempotency_key","payer_terms_signature","funding_payment"],"properties":{"order_id":{"type":"string","pattern":"^wo_[a-f0-9]{64}(?![\\s\\S])"},"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+(?![\\s\\S])"},"payer_terms_signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"},"funding_payment":{"oneOf":[{"type":"null"},{"type":"object","additionalProperties":false,"required":["x402Version","resource","accepted","payload"],"properties":{"x402Version":{"const":2},"resource":{"type":"object","additionalProperties":false,"required":["url","description","mimeType"],"properties":{"url":{"type":"string","minLength":1,"maxLength":512},"description":{"type":"string","maxLength":256},"mimeType":{"const":"application/json"}}},"accepted":{"type":"object","additionalProperties":false,"required":["scheme","network","asset","amount","payTo","maxTimeoutSeconds","extra"],"properties":{"scheme":{"const":"exact"},"network":{"const":"eip155:8453"},"asset":{"const":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"amount":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})(?![\\s\\S])"},"payTo":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"maxTimeoutSeconds":{"type":"integer","minimum":1,"maximum":3600},"extra":{"type":"object","additionalProperties":false,"required":["name","version"],"properties":{"name":{"const":"USD Coin"},"version":{"const":"2"}}}}},"payload":{"type":"object","additionalProperties":false,"required":["signature","authorization"],"properties":{"signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"},"authorization":{"type":"object","additionalProperties":false,"required":["from","to","value","validAfter","validBefore","nonce"],"properties":{"from":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"to":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"value":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})(?![\\s\\S])"},"validAfter":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})(?![\\s\\S])"},"validBefore":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})(?![\\s\\S])"},"nonce":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}(?![\\s\\S])"}}}}}}}]}}},"workorder-accept":{"type":"object","additionalProperties":false,"required":["order_id","idempotency_key"],"properties":{"order_id":{"type":"string","pattern":"^wo_[a-f0-9]{64}(?![\\s\\S])"},"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+(?![\\s\\S])"}}},"workorder-deliver":{"type":"object","additionalProperties":false,"required":["order_id","idempotency_key","deliverable_reference","proof_hash"],"properties":{"order_id":{"type":"string","pattern":"^wo_[a-f0-9]{64}(?![\\s\\S])"},"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+(?![\\s\\S])"},"deliverable_reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[^\\u0000-\\u001f\\u007f-\\u009f]+(?![\\s\\S])","description":"At most 2048 UTF-8 bytes. Control characters are not allowed."},"proof_hash":{"type":"string","pattern":"^[a-f0-9]{64}(?![\\s\\S])"}}},"workorder-release":{"type":"object","additionalProperties":false,"required":["order_id","idempotency_key","mandate","presentation","challenge_token"],"properties":{"order_id":{"type":"string","pattern":"^wo_[a-f0-9]{64}(?![\\s\\S])"},"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+(?![\\s\\S])"},"mandate":{"type":"object","additionalProperties":false,"required":["context","terms","payer_terms_signature","signatures"],"properties":{"context":{"type":"object","additionalProperties":false,"required":["escrow_id","payer_wallet","payee_wallet","custody_wallet","chain_id","asset","amount_atomic","expires_at","funding_nonce","terms_sha256","funding_transaction_hash","release_nonce"],"properties":{"escrow_id":{"type":"string","pattern":"^esc_[0-9a-f]{64}(?![\\s\\S])"},"payer_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"payee_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"custody_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"chain_id":{"const":8453},"asset":{"const":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"amount_atomic":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})(?![\\s\\S])"},"expires_at":{"type":"integer","minimum":1,"maximum":4102444800},"funding_nonce":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}(?![\\s\\S])"},"terms_sha256":{"type":"string","pattern":"^[0-9a-f]{64}(?![\\s\\S])"},"funding_transaction_hash":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}(?![\\s\\S])"},"release_nonce":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}(?![\\s\\S])"}}},"terms":{"type":"object","additionalProperties":false,"required":["escrow_id","payer_wallet","payee_wallet","custody_wallet","chain_id","asset","amount_atomic","expires_at","funding_nonce","release_policy"],"properties":{"escrow_id":{"type":"string","pattern":"^esc_[0-9a-f]{64}(?![\\s\\S])"},"payer_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"payee_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"custody_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"chain_id":{"const":8453},"asset":{"const":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"amount_atomic":{"type":"string","pattern":"^(0|[1-9][0-9]{0,77})(?![\\s\\S])"},"expires_at":{"type":"integer","minimum":1,"maximum":4102444800},"funding_nonce":{"type":"string","pattern":"^0x[0-9a-fA-F]{64}(?![\\s\\S])"},"release_policy":{"oneOf":[{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"const":"payer_signed"}}},{"type":"object","additionalProperties":false,"required":["kind"],"properties":{"kind":{"const":"mutual"}}},{"type":"object","additionalProperties":false,"required":["kind","attestor_wallet","delivery_sha256"],"properties":{"kind":{"const":"delivery_attestation"},"attestor_wallet":{"type":"string","pattern":"^0x[0-9a-fA-F]{40}(?![\\s\\S])"},"delivery_sha256":{"type":"string","pattern":"^[0-9a-f]{64}(?![\\s\\S])"}}}]}}},"payer_terms_signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"},"signatures":{"oneOf":[{"type":"object","additionalProperties":false,"required":["payer_signature"],"properties":{"payer_signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"}}},{"type":"object","additionalProperties":false,"required":["payer_signature","payee_signature"],"properties":{"payer_signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"},"payee_signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"}}},{"type":"object","additionalProperties":false,"required":["payee_signature","attestor_signature"],"properties":{"payee_signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"},"attestor_signature":{"type":"string","pattern":"^0x[0-9a-fA-F]{130}(?![\\s\\S])"}}}]}}},"presentation":{"type":"string","minLength":1,"maxLength":32768,"pattern":"^[^\\u0000-\\u001f\\u007f-\\u009f]+(?![\\s\\S])","description":"At most 32768 UTF-8 bytes. Control characters are not allowed."},"challenge_token":{"type":"string","minLength":1,"maxLength":16384,"pattern":"^[^\\u0000-\\u001f\\u007f-\\u009f]+(?![\\s\\S])","description":"At most 16384 UTF-8 bytes. Control characters are not allowed."}}},"workorder-dispute":{"type":"object","additionalProperties":false,"required":["order_id","idempotency_key","evidence_reference","proof_hash"],"properties":{"order_id":{"type":"string","pattern":"^wo_[a-f0-9]{64}(?![\\s\\S])"},"idempotency_key":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]+(?![\\s\\S])"},"evidence_reference":{"type":"string","minLength":1,"maxLength":2048,"pattern":"^[^\\u0000-\\u001f\\u007f-\\u009f]+(?![\\s\\S])","description":"At most 2048 UTF-8 bytes. Control characters are not allowed."},"proof_hash":{"type":"string","pattern":"^[a-f0-9]{64}(?![\\s\\S])"}}}},"holder_bindings":[{"version":1,"method":"eth_sign","format":"ES256K kb+jwt"},{"version":2,"method":"personal_sign","format":"wever-holder-binding-v2"}],"pricing":{"network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","scheme":"exact","x402Version":2,"pricesAtomic":{"/api/workorder-create":"100000","/api/workorder-fund":"100000","/api/workorder-accept":"100000","/api/workorder-deliver":"100000","/api/workorder-release":"100000","/api/workorder-dispute":"100000"},"freeTier":{"calls":10,"windowDays":30,"scope":"all_paid_endpoints","walletProofMaxAgeSeconds":300},"escrow_principal_is_fee":false},"max_order_atomic":"25000000","max_order_usdc":"25.000000","max_duration_seconds":2592000,"wallet_proof":{"header":"X-Wever-Wallet-Proof","every_mutation":true,"body_and_api_path_bound":true},"state_machine":["open","funded","accepted","delivered","released"],"terminal_states":["released","disputed","refunded"],"dispute_policy":"Either party freezes release in the native custody ledger. Both parties may append bounded evidence through workorder-dispute. The order remains disputed and original-deadline refund is recorded separately under settlement. No arbitration in v1.","expiry_policy":"The existing escrow recovery schedule reconciles pending transfers and refunds only the hirer after expiry. Workorder recovery records the monetary resolution and signed receipts. Chain or storage outages can delay confirmation; pending states remain explicit.","funding":"Create returns immutable EIP-712 terms. Fund with their hirer signature and funding_payment=null to obtain the exact principal quote. Submit that exact signed x402 principal authorization in funding_payment on a fresh fund call. Payment-Signature remains the separate 0.10-USDC access fee. Each successful fund call uses the shared allowance or access fee.","release":"The hirer supplies an AP2 trusted-issuer presentation bound to the release intent and a separate EIP-712 escrow release mandate. AP2 verifies API fee intent only. The escrow mandate authorizes principal release only to the immutable worker.","challenge_endpoint":"/api/workorder-challenge","challenge_input":{"holder_wallet":"Hirer wallet","request_sha256":"SHA-256 of canonical JSON {order_id,idempotency_key,mandate}; sorted object keys, no whitespace."},"mandate_issuance":"Use the existing operator-authenticated /api/delegated-authority AP2 issue_mandate flow for the signed workorder-release checkout. Existing issuer credential and holder proof remain required.","status_endpoint":"/api/workorder-status","status_input":{"order_id":"wo_ followed by 64 lowercase hex characters"},"status_access":"Free POST with an exact-body, exact-path wallet proof from either party. Reconciles already observed escrow disposition and missing receipts. No payment or chain submission.","evidence":"References and hashes are party assertions stored through proof-inbox. References are never fetched and delivery quality is not independently certified.","receipts":"Both parties receive record-backed EdDSA receipt-passports after a confirmed release or refund. Verify with the existing receipt-passport tool and /api/trust-contract public key.","limits":{"orders":128,"evidence_per_party":4,"max_request_bytes":65536,"native_escrow_caps":"/api/escrow-contract"},"custody_audit":"External custody audit pending. Larger-value escrow is not enabled.","live_funded_acceptance":"Manual step for the operator; not performed by this release."}