Skip to content

List Mission overviews.

API version mission-status unreleased

GET
/missions

Returns one page of Mission overviews. The order is a total key: createdAt descending, with ties broken by missionId ascending. 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 no longer valid is answered with 400 and a problem whose code is invalid_page_cursor.

Parameters

Query Parameters

pageSize
integer
default: 50 >= 1 <= 200

The number of items to return in one page. The service may apply a smaller maximum.

pageCursor
PageCursor

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.

string
>= 1 characters

The opaque token from the previous page’s nextPageCursor. Omit it to fetch the first page.

Responses

200

One page of Mission overviews.

Media type application/json
MissionOverviewPage

One page of Mission overviews, ordered by createdAt descending with ties broken by missionId ascending, plus the shared pagination state.

object
items
required

The Mission overviews of this page, in the order the operation defines.

Array<object>
MissionOverview

The overview of one Mission: its identity, branch shape, work package counts, progress, lifecycle state and the position of its event log. The fields are defined in MissionHead; this schema closes them, so a record with any other property is invalid. displayNumber is display-only and is never an identifier.

object
acceptedAt
required

When the Mission was accepted, or null while it is not accepted.

string | null format: date-time
blockedCount
required

The number of work packages in the blocked status lane.

integer
createdAt
required

When the Mission was created, an RFC 3339 date-time with an offset.

string format: date-time
discardedAt
required

When the Mission was abandoned, or null. It is the discarded_at key of the raw mapping that load_meta returns; no typed dictionary declares it.

string | null format: date-time
displayNumber
required

A display-only sequence number assigned when the Mission is consolidated; null before that. It is not unique, repeats across Missions, and must never be used as an identifier.

integer | null
eventCount
required

The number of events in the Mission’s event log.

integer
friendlyName
required

The human display name of the Mission, the friendly_name key of its meta.json. When the key is empty or absent this contract defines the slug as the display name; that fallback is a rule of this contract and has no code source. Human text. A host path inside it is replaced by [path] and an e-mail address by [email].

string
>= 1 characters
lastActivityAt
required

The latest moment any work package changed status lane, or null when none has. There is no Mission-level event time, so this is the maximum over the work packages.

string | null format: date-time
lastEventId
required

The identifier of the last event in the Mission’s event log, or null when the log is empty.

string | null
lifecycleStatus
required
LifecycleStatus

The Mission lifecycle state, derived in this order. 1: discardedAt is set, so discarded. 2: wpTotal is 0 (including an unreadable event log), so draft. 3: any work package is claimed, in_progress, for_review, in_review or approved, so active. 4: otherwise, any work package planned or blocked, so planned. 5: otherwise (every work package done or canceled), active until acceptedAt is set, then done. Two quirks are part of the rule: a Mission whose only remaining work packages are blocked reads as planned, and a Mission whose work packages are all canceled reads as done once acceptedAt is set.

string
Allowed values: active planned done draft discarded
mergedAt
required

When the Mission was consolidated into its target branch, or null before that. Recorded together with the post-consolidation review baseline.

string | null format: date-time
mid8
required

The first eight characters of missionId, used to disambiguate branch and worktree names. It is derived from missionId, which is always present, so it is always present too; it is never null and never an empty string.

string
/^[0-9A-HJKMNP-TV-Z]{8}$/
missionId
required
MissionId

The canonical machine identity of the Mission (a 26-character ULID), the only identifier clients may use for lookup.

string
/^[0-9A-HJKMNP-TV-Z]{26}$/
missionType
required

The kind of Mission, as an open string (new kinds may appear without a contract change); null when none is recorded.

string | null
nextAction
required

A provisional hint for the operator, or null. It is one of two English sentences, both embedding the Mission slug: the review-then-accept sentence when the Mission carries a merge baseline and is not accepted, or the consolidate sentence when every work package is done or canceled with at least one done and the Mission is not accepted. It is null once the Mission is accepted and in every other case. A Mission whose work packages are all canceled has no done work package, so its hint is null; that is a deliberate divergence from the replaced dashboard, not an omission. Human text. A host path inside it is replaced by [path] and an e-mail address by [email]. The shape is undecided; see the open decision on #5528.

string | null
progress
required
MissionProgress

Weighted readiness and done-only completion of the Mission, computed from the status lanes of its work packages.

object
doneCount
required

The number of work packages in the done lane.

integer
donePercentage
required

The percentage of work packages in the done lane, rounded to four decimals; 0 when there are no work packages.

number
<= 100
semantics
required

Names what weightedPercentage means. It is always weighted_readiness, a readiness measure and not a completion measure.

string
Allowed value: weighted_readiness
weightedPercentage
required

Lane-weighted readiness of the Mission as a percentage from 0 to 100, rounded to four decimals; 0 when there are no work packages.

number
<= 100
slug
required

The human handle of the Mission, a kebab-case slug fixed when the Mission was created.

string
>= 1 characters
statusLaneCounts
required
StatusLaneCounts

How many work packages sit in each of the nine status lanes; every key is present and none are grouped.

object
approved
required

The number of work packages whose current status lane is approved.

integer
blocked
required

The number of work packages whose current status lane is blocked.

integer
canceled
required

The number of work packages whose current status lane is canceled.

integer
claimed
required

The number of work packages whose current status lane is claimed.

integer
done
required

The number of work packages whose current status lane is done.

integer
for_review
required

The number of work packages whose current status lane is for_review.

integer
in_progress
required

The number of work packages whose current status lane is in_progress.

integer
in_review
required

The number of work packages whose current status lane is in_review.

integer
planned
required

The number of work packages whose current status lane is planned.

integer
streamCursor
required
StreamCursor

The position at the end of the Mission’s event log, from which a stream resumes. Offset 0 with the empty-input digest means an empty log.

object
invariant
required

The 64-character lowercase hexadecimal SHA-256 digest of the last consumed line, or the digest of the empty input when the offset is 0. The stored attribute is named content_invariant.

string
/^[0-9a-f]{64}$/
offset
required

The byte offset in the event log just after the last consumed line; 0 means nothing consumed yet.

integer format: int64
targetBranch
required

The branch the Mission lands on, as recorded in its meta.json.

string
>= 1 characters
topology
required
Topology

The stored shape of the Mission’s branches and lanes; unknown when none is stored or the stored value is not one of the four known shapes.

string
Allowed values: lanes single_branch coord lanes_with_coord unknown
wpTotal
required

The number of work packages the status model holds for the Mission, that is the length of the snapshot’s work package map. It can differ from the number of work package files, because a work package without events is not counted.

integer
pageInfo
required
PageInfo

Whether another page follows and the token that fetches it.

object
hasNextPage
required

True when another page follows this one.

boolean
nextPageCursor
required
One of:
PageCursor

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.

string
>= 1 characters
pageSize
required

The number of items the service applied as the page size for this response.

integer
>= 1

400

The page cursor of the list request was refused. The body is a problem details object whose code is invalid_page_cursor.

Media type application/problem+json
PageCursorRefusal

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
code
required

A stable machine-readable code for the problem, such as the name of a refusal reason. Consumers branch on it, never on the title.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
instance

A URI reference that identifies this occurrence of the problem.

string
status
required

The HTTP status code of this occurrence.

integer
>= 400 <= 599
title
required

A short, human-readable summary of the kind of problem. It does not change between occurrences.

string
type

A URI reference that identifies the kind of problem. Absent means about:blank.

string
code
required

The only refusal reason of a page cursor.

string
Allowed value: invalid_page_cursor
status
required

The HTTP status of the refusal, always 400 for a refused page cursor.

integer
Allowed value: 400

default

The request failed. The body is a problem details object.

Media type application/problem+json
Problem

The only non-2xx body of any module. A problem details object in the sense of RFC 9457, served as application/problem+json.

object
code

A stable machine-readable code for the problem, such as the name of a refusal reason. Consumers branch on it, never on the title.

string
detail

A human-readable explanation specific to this occurrence of the problem.

string
instance

A URI reference that identifies this occurrence of the problem.

string
status
required

The HTTP status code of this occurrence.

integer
>= 400 <= 599
title
required

A short, human-readable summary of the kind of problem. It does not change between occurrences.

string
type

A URI reference that identifies the kind of problem. Absent means about:blank.

string