Skip to content

Executions

Read executions and act on those that need an operator.

Executions newest first, filtered, paged. sefra_viewer and above.

Newest first by id (ids are time-sortable), or oldest first with order=oldest. Filters are combined with AND, each given at most once; each reads a value recorded at acceptance or refusal. A time range is at most 31 days: from without to runs to now, to without from is refused. A malformed, repeated, unknown or unbounded filter is 400. Indexes per filter: migration 0014.

Parameters

Name In Type Required Description
status query string No Comma-separated execution statuses, or in_flight.
principal query string No The authenticated principal (executions.principal_id). Pattern: ^[A-Za-z0-9:._@-]{1,128}$.
on_behalf_of query string No The user the agent acted for (on_behalf_of.id). Pattern: ^[A-Za-z0-9:._@-]{1,128}$.
intent query string No An intent type of any of the execution’s steps. A refusal with UNKNOWN_INTENT has no step. Pattern: ^[a-z0-9_]+\.[a-z0-9_]+$.
code query string No The execution’s error code. Pattern: ^[A-Z][A-Z_]{0,63}$.
bundle query Digest No The bundle digest the execution was accepted or refused under. Pattern: ^sha256:[0-9a-f]{64}$.
from query string No Received at or after (RFC 3339). Format: date-time.
to query string No Received before (RFC 3339); needs from; at most 31 days after it. Format: date-time.
not_started_for query integer No Accepted executions (executing, pending_approval) whose workflow has not started, received at least this many seconds ago in database time. Minimum: 0. Maximum: 86400.
after query string No The next of the previous page; the list continues in its order.
order query string No One of newest, oldest. Default: newest.
limit query integer No Default: 100. Minimum: 1. Maximum: 1000.

Responses

Status Description Body
200 A page. object
400 A problem. Problem (application/problem+json)
401 No valid token (with WWW-Authenticate). Problem (application/problem+json)
403 The principal is not human or lacks the role. Problem (application/problem+json)

Body of 200

Field Type Required Description
executions array of ExecutionSummary Yes
next string No The after of the next page; absent on the last.

One execution without step bodies. sefra_viewer and above.

Parameters

Name In Type Required Description
id path string Yes

Responses

Status Description Body
200 The execution. ExecutionDetail
401 No valid token (with WWW-Authenticate). Problem (application/problem+json)
403 The principal is not human or lacks the role. Problem (application/problem+json)
404 A problem. Problem (application/problem+json)

Cancel an execution pending approval. sefra_operator, sefra_admin.

Parameters

Name In Type Required Description
id path string Yes

Responses

Status Description Body
204 Cancelled. None
401 No valid token (with WWW-Authenticate). Problem (application/problem+json)
403 The principal is not human or lacks the role. Problem (application/problem+json)
404 A problem. Problem (application/problem+json)
409 A refusal with a code (APPROVAL_NOT_PENDING, HASH_MISMATCH, NOT_ELIGIBLE, INVALID_STATE, INVALID_OUTPUT). Problem (application/problem+json)

Close an execution as resolved manually. sefra_operator, sefra_admin.

Parameters

Name In Type Required Description
id path string Yes

Request body

Empty, or a note.

Content type application/json, schema object.

Field Type Required Description
note string Yes At most, in characters: 2000.

Responses

Status Description Body
204 Resolved. None
400 A problem. Problem (application/problem+json)
401 No valid token (with WWW-Authenticate). Problem (application/problem+json)
403 The principal is not human or lacks the role. Problem (application/problem+json)
404 A problem. Problem (application/problem+json)
409 A refusal with a code (APPROVAL_NOT_PENDING, HASH_MISMATCH, NOT_ELIGIBLE, INVALID_STATE, INVALID_OUTPUT). Problem (application/problem+json)

POST /v1/executions/{id}/retry-compensation

Section titled “POST /v1/executions/{id}/retry-compensation”

Retry an exhausted compensation. sefra_operator, sefra_admin.

Parameters

Name In Type Required Description
id path string Yes

Request body

Empty, or a note.

Content type application/json, schema object.

Field Type Required Description
note string Yes At most, in characters: 2000.

Responses

Status Description Body
204 Retried. None
400 A problem. Problem (application/problem+json)
401 No valid token (with WWW-Authenticate). Problem (application/problem+json)
403 The principal is not human or lacks the role. Problem (application/problem+json)
404 A problem. Problem (application/problem+json)
409 A refusal with a code (APPROVAL_NOT_PENDING, HASH_MISMATCH, NOT_ELIGIBLE, INVALID_STATE, INVALID_OUTPUT). Problem (application/problem+json)

Settle a step whose outcome is unknown. sefra_operator, sefra_admin.

Parameters

Name In Type Required Description
id path string Yes

Request body

Content type application/json, schema object.

Field Type Required Description
note string No At most, in characters: 2000.
outcome string Yes One of succeeded, failed.
output object No
step string Yes

Responses

Status Description Body
204 Settled. None
400 A problem. Problem (application/problem+json)
401 No valid token (with WWW-Authenticate). Problem (application/problem+json)
403 The principal is not human or lacks the role. Problem (application/problem+json)
404 A problem. Problem (application/problem+json)
409 A refusal with a code (APPROVAL_NOT_PENDING, HASH_MISMATCH, NOT_ELIGIBLE, INVALID_STATE, INVALID_OUTPUT). Problem (application/problem+json)
422 A refusal with a code (APPROVAL_NOT_PENDING, HASH_MISMATCH, NOT_ELIGIBLE, INVALID_STATE, INVALID_OUTPUT). Problem (application/problem+json)

The running execution workflows, at most 1000. sefra_viewer and above.

Responses

Status Description Body
200 The workflows. object
401 No valid token (with WWW-Authenticate). Problem (application/problem+json)
403 The principal is not human or lacks the role. Problem (application/problem+json)
503 A problem. Problem (application/problem+json)

Body of 200

Field Type Required Description
more boolean Yes
workflows array of string Yes