List the Op invocation records of the project.
API version mission-status unreleased
Returns one page of the Op invocations of the project, newest first: startedAt descending, with ties broken by invocationId descending. An Op is one governed invocation of an agent profile on an action, recorded in the Ops directory. Paging uses the shared opaque page cursor: pass the nextPageCursor of one response as pageCursor to fetch the next page, and stop when hasNextPage is false. A pageCursor that is malformed, forged, or issued for another profile is answered with 400 and a problem whose code is invalid_page_cursor. The optional profile query parameter keeps the Ops of one profile; a profile that matches no Op gives an empty page, and a profile that fails its pattern is a 400 problem. Records with legacy or malformed content are skipped, never served and never a failure: a record of an older shape, an empty or truncated file, a file whose name differs from its invocation id, an index entry that names no file and a malformed field are skipped and counted in skippedCount, over the same candidate set as totalCount and independent of profile, because a skipped record has no reliable profile. totalCount is the number of served Ops matching profile, and it can lag the newest records, which an Op appended after the read began may not yet be part of. An Op is closed when its own file holds a completion or the closure spine holds a record for its id. A directory, the closure spine or an Op file that exists but cannot be opened is a 500 problem, never an empty page. The operation never starts an agent and never writes.
Parameters
Query Parameters
The number of items to return in one page. The service may apply a smaller maximum.
An opaque pagination token. A consumer passes it back unchanged to fetch the next page and never parses, builds or compares it. It has no relationship to the event stream position that GET /events uses for resuming a stream.
The opaque token from the previous page’s nextPageCursor. Omit it to fetch the first page.
Keeps only the Op invocations of one agent profile, by its profile id. A profile that matches no Op gives an empty page, and a value that fails the pattern is refused with 400. A page cursor is bound to the profile it was issued for.
Responses
200
One page of Op invocations.
One page of Op invocations, ordered by startedAt descending with ties broken by invocationId descending, plus the shared pagination state and two counts. totalCount is the number of served Ops that match the profile filter and can lag the newest records. skippedCount is the number of legacy or unreadable records that were skipped, over the same candidate set and independent of the profile filter. Skipped records are in neither items nor totalCount. A project with no Ops directory answers an empty page with both counts 0.
object
The Ops of this page, in the order the operation defines.
One Op: a governed invocation of an agent profile on an action, as recorded in the Ops directory, with the state of its closure. It is open until its own file holds a completion or the closure spine holds a record for its id, and then closed; an open Op has no outcome, closer, completion instant or evidence. A record of an older shape or an unreadable record is never served as an Op; it is skipped and counted. Record fields left out on purpose, because they are free text, model identity or internal routing state: request_text, model_id, governance_context_hash, governance_context_available and router_confidence. The schema is closed, so a payload carrying any of them is invalid.
object
The canonical action token the Op was opened for. A record whose value does not fit the pattern is skipped, never served.
The handle of the tool, role or agent that opened the Op, or null when the stored value is not a handle or holds a credential.
Who closed an Op: the agent that ran it, or doctor_sweep when a sweep closed an Op that the agent left open. An open Op has no closer.
When the Op was closed, as an RFC 3339 date-time with an offset, or null while it is open. For an Op closed by a sweep it is the instant of the closure.
The evidence a closed Op recorded, made safe to show: a class, a value of at most 512 characters and whether the value was changed. Host paths are replaced by [path], e-mail addresses by [email], and the userinfo, query and fragment of an address are removed. A value that holds a credential is never served at all, so the evidence of the Op is null instead.
object
The class of the evidence, decided by the shape of the stored value.
True exactly when value differs from the stored evidence reference, because something was removed or the text was cut.
The stored evidence with host paths, e-mail addresses and address userinfo removed, cut to at most 512 characters.
The 26-character ULID of the Op, which is also the stem of its file name.
How the work of the Op was framed.
How a closed Op ended, done, failed or abandoned. An open Op has no outcome.
The identifier of the agent profile the Op ran under. A record whose value does not fit the pattern is skipped, never served.
When the Op was opened, as an RFC 3339 date-time with an offset.
Whether the Op is open or closed, counting the closure spine.
The identifier of a work package inside one Mission: the letters WP and at least two digits, for example WP01 (the same rule the planning-file reader enforces). A status-transition row of the event log whose work package id does not match is not forwarded as an event and is counted as dropped. It is unique within a Mission and is not unique across Missions, so it is always read together with a missionId.
Whether another page follows and the token that fetches it.
object
True when another page follows this one.
An opaque pagination token. A consumer passes it back unchanged to fetch the next page and never parses, builds or compares it. It has no relationship to the event stream position that GET /events uses for resuming a stream.
The number of items the service applied as the page size for this response.
The number of legacy or unreadable records skipped over the candidate set, independent of the profile filter.
The number of served Ops that match the profile filter, over the candidate set. It can lag the newest records.
400
The page cursor of the list request was refused. The body is a problem details object whose code is invalid_page_cursor.
The problem details body of a refused page cursor: the pageCursor of a list request is malformed, forged or no longer valid. It is a Problem whose code is always invalid_page_cursor and whose status is always 400. A refused request is answered before any page is returned. Consumers branch on code, never on title. It is unrelated to the refusals of the event stream (StreamRefusal) and to the stream cursor.
object
A stable machine-readable code for the problem, such as the name of a refusal reason. Consumers branch on it, never on the title.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies this occurrence of the problem.
The HTTP status code of this occurrence.
A short, human-readable summary of the kind of problem. It does not change between occurrences.
A URI reference that identifies the kind of problem. Absent means about:blank.
The only refusal reason of a page cursor.
The HTTP status of the refusal, always 400 for a refused page cursor.
500
The Ops directory, the closure spine or an Op file could not be opened, refused with 500 and never answered as an empty or partial page. The body is a problem details object whose code is ops_unreadable.
The problem details body of a refused Ops read. It is a Problem whose code is ops_unreadable, and the status is 500. The body carries no host path, no directory and no record content. Consumers branch on code, never on title.
object
A stable machine-readable code for the problem, such as the name of a refusal reason. Consumers branch on it, never on the title.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies this occurrence of the problem.
The HTTP status code of this occurrence.
A short, human-readable summary of the kind of problem. It does not change between occurrences.
A URI reference that identifies the kind of problem. Absent means about:blank.
The reason of the refusal. The status is fixed by it, 500 for ops_unreadable.
default
The request failed. The body is a problem details object.
The only non-2xx body of any module. A problem details object in the sense of RFC 9457, served as application/problem+json.
object
A stable machine-readable code for the problem, such as the name of a refusal reason. Consumers branch on it, never on the title.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies this occurrence of the problem.
The HTTP status code of this occurrence.
A short, human-readable summary of the kind of problem. It does not change between occurrences.
A URI reference that identifies the kind of problem. Absent means about:blank.