Skip to content

Read one work package of a Mission in full.

API version mission-status unreleased

GET
/missions/{missionId}/work-packages/{wpId}

Returns the authored plan, the resolved state, the review evidence, the readiness and the status history of one work package. The prompt body is included only when includePrompt is true. An unknown Mission or an unknown work package is a 404.

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.

wpId
required
WpId

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.

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

The identifier of the work package inside the Mission, for example WP01.

Query Parameters

includePrompt
boolean

Set to true to include the work package’s prompt body as promptMarkdown. When the parameter is absent, or false, the response omits promptMarkdown; there is no default body.

Responses

200

The work package.

Media type application/json
WorkPackage

One work package of a Mission in full. The fields fall in three groups. Authored plan: read from the planning file; what was intended (authored, ownedFiles, dependencies, requirementRefs, executionMode, taskType, priority, mergeTargetBranch, trackerRefs, phaseLabel, title). Resolved state: read from the status snapshot, never from the agent, assignee, shell, lane or review status keys that old planning files still carry (statusLane, assignment, subtasks, subtaskProgress, implementerOfRecord, lastTransitionAt, forceCount, lastEventId, actor, cancellation). Derived and review evidence: readiness, readyToStart, review, history, staleness. The prompt body is returned only when the request asks for it.

object
actor
required
Actor

Resolved state. Who made the latest status change, as three handles; three nulls when the work package has no events or the stored actor is not a valid handle.

object
profile
required
ActorHandle

The handle of the agent profile the actor used, or null when unknown or not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
role
required
ActorHandle

The handle of the role the actor held, or null when unknown or not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
tool
required
ActorHandle

The handle of the agent or tool that acted, or null when unknown or not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
assignment
required
Assignment

Resolved state. Who holds the work package and the binding that ran, from the status snapshot.

object
agent
required
ActorHandle

The agent that currently holds the live claim, or null when none does (a release clears it).

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
agentProfile
required
ActorHandle

The agent profile of the resolved binding, or null when none resolved.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
agentProfileVersion
required
ActorHandle

The version of the resolved agent profile, or null.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
assignee
required
ActorHandle

The assignee recorded in the status snapshot, or null.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
model
required
ActorHandle

The model of the resolved binding, or null. The internal marker for a pick-up that resolved no model reads as null.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
provider
required
ActorHandle

The provider of the resolved binding, or null.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
role
required
ActorHandle

The role of the resolved binding, or null.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
authored
required
Authored

Authored plan. The recommended assignment and subtask roster from the planning file. What was intended, never what ran.

object
agentProfile
required

The recommended agent profile, or null when the planning file names none.

string | null
model
required

The recommended model, or null when the planning file names none.

string | null
role
required

The recommended role, or null when the planning file names none.

string | null
subtasks
required

The subtask identifiers the planning file lists, in authored order; empty when there are none.

Array<string>
cancellation
required
One of:
Cancellation

Why a canceled work package was canceled, and whether a person wrote the reason. It is present only while the work package sits in the canceled status lane.

object
reason
required

The human text recorded with the cancellation, or null when none was recorded. 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 | null
reasonSource
required

Operator when a person wrote the reason; synthetic when the tool filled in a default.

string
Allowed values: operator synthetic
dependencies
required

Authored plan. The work packages this one depends on; empty when there are none.

Array<string>
executionMode
required

Authored plan. How the work package executes, as an open string such as code_change or planning_artifact; null when the planning file names none. Some planning files store the value with a balanced pair of literal quotes around it; one such pair is stripped, so a stored “code_change” in quotes is read as code_change.

string | null
forceCount
required

Resolved state. How many of the work package’s transitions bypassed the usual guards; 0 when it has no events.

integer
history
required

Review evidence. The status transitions of the work package, oldest first, ordered by time then event identifier. Only transitions appear; annotation and lifecycle rows of the event log are not exposed.

Array<object>
HistoryEntry

One status transition of a work package. History lists transitions only: annotations and lifecycle rows of the event log are never shown here, so kind has the single value transition.

object
actor
required
Actor

Who made the transition, as three handles.

object
profile
required
ActorHandle

The handle of the agent profile the actor used, or null when unknown or not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
role
required
ActorHandle

The handle of the role the actor held, or null when unknown or not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
tool
required
ActorHandle

The handle of the agent or tool that acted, or null when unknown or not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
at
required

When the transition happened, an RFC 3339 date-time with an offset.

string format: date-time
eventId
required

The identifier of the event, unique within the Mission’s event log.

string
>= 1 characters <= 64 characters
force
required

True when the transition bypassed the usual guards.

boolean
fromStatusLane
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
kind
required

The kind of row; always transition.

string
Allowed value: transition
reason
required

The human text recorded with the transition, or null when none was recorded. 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 | null
reviewVerdict
required
One of:
ReviewVerdict

The verdict of a review: approved, or changes_requested. A work package that was rejected and sent back carries changes_requested; one that passed review carries approved.

string
Allowed values: approved changes_requested
toStatusLane
required
StatusLane

The status lane the work package entered.

string
Allowed values: planned claimed in_progress for_review in_review approved done blocked canceled
implementerOfRecord
required
ActorHandle

Resolved state. The agent that last claimed the work package for implementation, kept after the live claim is released; null when no claim was recorded or the snapshot predates the field.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
lastEventId
required

Resolved state. The identifier of the last event that touched the work package, or null when it has no events.

string | null
lastTransitionAt
required

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

string | null format: date-time
mergeTargetBranch
required

Authored plan. The branch the work package merges into, or null when the planning file names none.

string | null
ownedFiles
required

Authored plan. The repository-relative files or patterns the work package owns; empty when none are declared.

Array<string>
phaseLabel
required

Authored plan. 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
priority
required

Authored plan. The priority the planning file gives the work package, as an open string; null when none.

string | null
promptMarkdown

The authored markdown body of the work package’s planning file. It is returned only when the request sets the includePrompt query parameter to true; otherwise the property is absent from the response. It is the one text field that is not redacted: it passes through as authored (Mission D-14), so it can carry host paths and e-mail addresses that the [path] and [email] tokens would have replaced elsewhere. Authored prompts are the reason it is opt-in; the includePrompt request parameter is the only guard, and a consumer must treat the value as sensitive. Corpus-derived payloads are not scanned for it, but the examples in this contract are.

string | null
readiness
required
Readiness

Whether every dependency has reached an acceptable ending, and which have not.

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

Authored plan. The requirements the work package covers, as authored references; empty when none are listed.

Array<string>
review
required
Review

Review evidence. The latest review result and any review override; each is null until it exists.

object
latestResult
required
One of:
ReviewResult

The latest recorded review outcome of a work package: who reviewed, the verdict, and a reference to the review. The reference is a review-cycle reference or a legacy free-text reference; the contract never exposes a location on the machine that holds the review notes.

object
reference
required

The review reference as recorded, a review-cycle reference or legacy free text. 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
reviewer
required
ActorHandle

The handle of the reviewer, or null when the stored value is not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
verdict
required
ReviewVerdict

The verdict of the review.

string
Allowed values: approved changes_requested
override
required
One of:
ReviewOverride

A recorded override of the review step: when it was recorded, by whom, and the stated reason. It is present whenever the status snapshot holds an override record, including a partial one. complete is true only when the record’s at, actor, work package id and reason are all non-empty (the rule of the code). A partial record (complete false) is not discarded by the code and keeps blocking the merge gate, so it is shown here with the blank members as null: a consumer that sees complete: false knows an override exists and that the merge gate is blocked by it. The work package id is not carried, because the override sits inside its own work package. The release marker that clears an override (all four fields empty) is not an override and is projected as null for the whole object.

object
actor
required
ActorHandle

The handle of whoever recorded the override, or null when the record has none or the stored value is not a valid handle.

string | null
>= 1 characters <= 128 characters /^[A-Za-z0-9._:-]+$/
at
required

When the override was recorded, an RFC 3339 date-time with an offset, or null when the record has no time (a partial record).

string | null format: date-time
complete
required

True when at, actor, the work package id and reason of the record are all non-empty. False for a partial record, which still blocks the merge gate.

boolean
reason
required

The reason given for the override, or null when the record has none (a partial record). 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 | null
staleness
required
One of:
Staleness

Whether the work happening on a work package has gone quiet. It needs git and a worktree, so it cannot be computed from the event log alone. Provisional: how staleness is measured and whether v1 carries it is an open decision on #5528.

object
minutesSinceCommit
required

The minutes since the last meaningful commit of the work package, or null when unknown.

number | null
reason
required

A short machine-readable reason for the status, or null. Exactly the two reasons the code sets today: planning_artifact_repo_root_shared_workspace (a planning-artifact work package shares the repository root, so there is no worktree to measure) and live_claim_process (the claiming process is alive). Whether more reasons exist is pending the open decision on #5528.

string | null
Allowed values: planning_artifact_repo_root_shared_workspace live_claim_process
status
required

Fresh when recent work exists, stale when it has gone quiet, not_applicable when the work package is not being worked on.

string
Allowed values: fresh stale not_applicable
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

Resolved state. How many subtasks are done and how many exist, both 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
subtasks
required

Resolved state. The state of each subtask, keyed by subtask identifier. This is a deliberately open map, the one exception to closed objects: the keys are the subtask identifiers of the work package and cannot be listed in the contract. Empty when no subtask state was recorded.

object
key
additional properties
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
taskType
required

Authored plan. The kind of task, as an open string; null when the planning file names none.

string | null
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
trackerRefs
required

Authored plan. External tracker references such as an issue number; empty when none are listed.

Array<string>
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