curl "https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/cases?state=blocked&limit=20" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
{
"success": true,
"data": [
{
"key": "repo-141",
"state": "blocked",
"owner": "platform-team",
"next_action": "Review the failing build",
"due_date": "2026-11-02T00:00:00.000Z",
"evidence": ["diffs/repo-141.patch"],
"status": "completed",
"age_seconds": 864000
}
],
"page": { "total": 1, "limit": 20, "offset": 0, "next_cursor": null },
"counts": { "merged": 140, "blocked": 1, "open": 59 }
}
Goals
Goal Cases
List the cases a compute goal is working through, with their records
GET
/
v1
/
compute
/
{goalId}
/
cases
curl "https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/cases?state=blocked&limit=20" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
{
"success": true,
"data": [
{
"key": "repo-141",
"state": "blocked",
"owner": "platform-team",
"next_action": "Review the failing build",
"due_date": "2026-11-02T00:00:00.000Z",
"evidence": ["diffs/repo-141.patch"],
"status": "completed",
"age_seconds": 864000
}
],
"page": { "total": 1, "limit": 20, "offset": 0, "next_cursor": null },
"counts": { "merged": 140, "blocked": 1, "open": 59 }
}
Overview
All wallets use the agent loop. The
cases done check requires a one-off goal.key, budget, step limit and record. New triggers reopen finished cases.
A case at its budget or step limit stops in needs_a_person; a scoped goal’s daily owner batch includes budget (unit ceiling) stops only.
Authentication
Requires the owner’s read proof or access token; others get404.
Path Parameters
Query Parameters
Response
Each case has:
key: the case’s name, unique in the goalstate,owner,next_action,due_date,evidence: the record.stateis a lowercase token the agent chooses (merged,blocked), or one the platform writes:open,reopened,done,failed,needs_a_person,unreached,cancelled.evidenceholds links (300 characters each).status:pending(no free slot),running,waiting,completed,failedorcancelledtask,session_id,parent_id,depthbudget_usdc: its last slice;held_usdc: what it still holdsspent_usdc: settled spend;actual_usdc: final cost, or null before settlementvalue: the latest delivered result’s declared value, or null; omitted withoutvalue_fieldstep_limitopened_at,updated_at,ended_at,age_seconds(since opened, or until it ended)
Limits on what is awake
Defaults: three levels deep, 20 awake per goal (2,000 across API instances); excess cases wait (status: pending). Override:
{ "params": { "agent_limits": { "max_depth": 2, "max_awake": 50 } } }
Done check over cases
A goal is done when every case is in a listed state:{ "kind": "cases", "finished_states": ["merged", "blocked"], "owner_required_for": ["blocked"], "min_cases": 200 }
blocked needs an owner; unreached (no answer within the unit’s persistence policy) always counts. Cancelled cases are left out; with none the check is not met.
Only listed states count, done included. Each case is told them, in its prompt and update_case; finish with "done" is refused, naming them, until the record is in one (with any required owner). A case ending open or reopened is stored as done, which the refusal judges, so a check lists either only with done. "failed" is never held.
curl "https://win.oneshotagent.com/v1/compute/3f2b9c1e-8d4a-4f6b-9e2a-7c1d5b8a0f42/cases?state=blocked&limit=20" \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope read>"
{
"success": true,
"data": [
{
"key": "repo-141",
"state": "blocked",
"owner": "platform-team",
"next_action": "Review the failing build",
"due_date": "2026-11-02T00:00:00.000Z",
"evidence": ["diffs/repo-141.patch"],
"status": "completed",
"age_seconds": 864000
}
],
"page": { "total": 1, "limit": 20, "offset": 0, "next_cursor": null },
"counts": { "merged": 140, "blocked": 1, "open": 59 }
}
Case settings and outcomes
Optionalparams.cases (GoalSpec: cases):
{ "params": { "cases": { "value_field": "invoice.amount_usd", "person_actions": ["approve", "retry"] } } }
value_field: dotted path with [A-Za-z_][A-Za-z0-9_]* segments; deliver_result requires a finite number.
Without params.result_webhook_url or params.result_recipients, quotes warn
value_field_without_result_address: nothing is delivered or counted.
person_actions: 1 to 10 unique labels matching [a-z][a-z0-9_]{0,31}.
Malformed settings get field errors.
Totals: GET /v1/compute//outcomes; org: /v1/org/goals/{goalId}/outcomes.