Skip to main content
GET

Overview

All wallets use the agent loop. The cases done check requires a one-off goal.
A case is a sub-agent with a unique 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 get 404.

Path Parameters

string
required
Goal ID (a UUID) from the create endpoint

Query Parameters

string
Only cases in these record states, comma separated (merged,blocked).
integer
Page size, 1 to 200. Default 50.
string
The previous page’s next_cursor.
integer
Cases to skip (oldest first).

Response

array
Each case has:
  • key: the case’s name, unique in the goal
  • state, owner, next_action, due_date, evidence: the record. state is a lowercase token the agent chooses (merged, blocked), or one the platform writes: open, reopened, done, failed, needs_a_person, unreached, cancelled. evidence holds links (300 characters each).
  • status: pending (no free slot), running, waiting, completed, failed or cancelled
  • task, session_id, parent_id, depth
  • budget_usdc: its last slice; held_usdc: what it still holds
  • spent_usdc: settled spend; actual_usdc: final cost, or null before settlement
  • value: the latest delivered result’s declared value, or null; omitted without value_field
  • step_limit
  • opened_at, updated_at, ended_at, age_seconds (since opened, or until it ended)
object
total (matching the filter), limit, offset, next_cursor (null at the end).
object
Counts by state, ignoring filters.

Limits on what is awake

Defaults: three levels deep, 20 awake per goal (2,000 across API instances); excess cases wait (status: pending). Override:

Done check over cases

A goal is done when every case is in a listed state:
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.

Case settings and outcomes

Optional params.cases (GoalSpec: cases):
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.