Skip to content

Read one Mission in detail.

API version mission-status unreleased

GET
/missions/{missionId}

Returns the Mission overview fields, the five Mission phases and a summary of each work package. The Mission is selected by its missionId only.

Parameters

Path Parameters

missionId
required
MissionId

The canonical machine identity of a Mission: a 26-character Crockford ULID minted when the Mission is created and never changed. Never confuse it with displayNumber, which is display-only and repeats.

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

The identity of the Mission, a 26-character ULID. It is the only identifier accepted to select a Mission; the display number is never accepted.

Responses

200

The Mission in detail.

Media type application/json
MissionDetail

The detail of one Mission: every field of the overview (defined in MissionHead), the five Mission phases and a summary of each work package. The schema is closed, so a record with any other property is invalid.

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

Exactly five entries, in the order specify, plan, tasks, implement, review. No existing reader computes these, so the rules are owned by this contract. Specify, plan and tasks are evaluated alike: complete with basis artifact when the planning file (spec.md, plan.md or tasks.md respectively) exists in the Mission directory; else complete with basis lifecycle_event when the matching Completed lifecycle event (SpecifyCompleted, PlanCompleted or TasksCompleted) exists; else in_progress with basis lifecycle_event when the matching Started event exists; else pending with basis artifact. Implement and review always carry basis derived_from_status_lanes and use statusLaneCounts and wpTotal, evaluated in this order. Implement: complete when wpTotal is above 0 and every work package is for_review, in_review, approved, done or canceled; else pending when no work package has left planned or blocked (a Mission with no work packages is pending); else in_progress. Review: complete when wpTotal is above 0 and every work package is done or canceled; else pending when no work package is for_review, in_review, approved or done; else in_progress. There is no lifecycle event for implement or review. The Mission phase is not the glossary phase.

Array<object>
>= 5 items <= 5 items
MissionPhase

One of the five phases of a Mission’s workflow: specify, plan, tasks, implement, review. This is the Mission phase, a stage of the workflow. It is not the glossary term phase and it is not the phaseLabel of a work package. Each entry says how far the phase has got and what that statement rests on. The first three phases rest on a planning artifact or a lifecycle event; implement and review rest on the status lanes of the work packages and never on an artifact.

object
basis
required

What the status rests on. artifact: a planning file exists, or no evidence exists and the phase is pending. lifecycle_event: a Started or Completed lifecycle event. derived_from_status_lanes: the status lane counts, used for implement and review only.

string
Allowed values: artifact lifecycle_event derived_from_status_lanes
name
required

Which phase this entry describes. The five phases always appear in this order.

string
Allowed values: specify plan tasks implement review
status
required

How far the phase has got. The rule for each phase is written on the phases field of MissionDetail.

string
Allowed values: pending in_progress complete
workPackages
required

One summary for each work package of the Mission, ordered by wpId ascending compared as plain strings. A work package that has a planning file but no events is listed with a null status lane; it is not counted in wpTotal or in statusLaneCounts, which count only work packages the status model holds.

Array<object>
WorkPackageSummary

The short form of a work package that a Mission detail lists. It carries identity, position in the plan, status lane and readiness. It never carries the prompt body and none of the review or history detail; those are on the work package resource.

object
dependencies
required

The work packages this one depends on, as authored; empty when there are none.

Array<string>
lastTransitionAt
required

When the work package last changed status lane, or null when it has no events.

string | null format: date-time
phaseLabel
required

The grouping label the planning file gives the work package, or null. It is a label written by the author of the plan; it is not a Mission phase and not the glossary term phase. Human text. A host path inside it is replaced by [path] and an e-mail address by [email].

string | null
readiness
required
Readiness

Whether the dependencies have reached an acceptable ending.

object
satisfied
required

True when no dependency is unsatisfied.

boolean
unsatisfied
required

The dependencies that have not reached an acceptable ending, in dependency order; empty when satisfied.

Array<string>
readyToStart
required

True only when the status lane is planned and the dependencies are satisfied; false in every other case, including a null status lane.

boolean
statusLane
required
One of:
StatusLane

The display state of a work package in the status model. Exactly nine values. The runtime enum also carries genesis and uninitialized, which are not display values: a work package with no events reads as a null status lane, never as one of those two. This is the status lane, not a code lane or the repo-root lane; the contract never groups these values into board columns.

string
Allowed values: planned claimed in_progress for_review in_review approved done blocked canceled
subtaskProgress
required
SubtaskProgress

How many subtasks are done, from the resolved subtask map.

object
done
required

The number of subtasks whose resolved state is done.

integer
total
required

The number of entries in the resolved subtask map.

integer
title
required

The human title of the work package. Human text. A host path inside it is replaced by [path] and an e-mail address by [email]; only the matching text is replaced.

string
>= 1 characters
wpId
required
WpId

The identifier of the work package inside its Mission.

string
>= 1 characters <= 64 characters /^WP[0-9]{2,}$/

404

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

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