Status: Developer preview — contract-stable per @nexislabs/ai-platform v1; not yet serving public traffic.A run is a durable execution admitted via
POST /v1/execute
with mode:"task". It is backed by the existing task_runs /
task_run_events state machine (leases, attempts, budgets,
waiting_approval as a first-class state, run-recovery crons). RunResource
is the public projection of that internal entity — internal fields
(lease hashes, margin micros, pricing refs) never cross the API boundary.
For the event stream and the approval/cancel actions, see
Events and Approvals.
Get a run
Response — RunResource
Neither source publishes a field-level schema for RunResource. What is
confirmed:
Confirmed exclusions — these internal fields are explicitly stated to
never appear in the public projection: lease hashes, margin micros, pricing
references.
Everything else about this resource (timestamps, the task/context echoed
back, usage totals, links to events) is unspecified in the sources in scope
for this reference.
Cancel a run
No request body fields are specified in the sources. Cancelling a run is
expected to emit a terminal
request.cancelled event on that run’s stream.
Operations attempted against an already-cancelled run should expect the
cancelled error code (see Errors).