Skip to content

Get the detail of one work package of a Mission.

API version mission-status unreleased

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

Returns the detail of one work package: its subtasks with titles and status lanes, its dependencies with titles and status lanes, its review cycles, its workspace (code lane, branches and whether the lane worktree exists), the files it owns with their change state, and pointers to its prompt file and to the Mission’s specification. Every array is present and may be empty. The Mission is selected by its missionId only. A work package id held by two files is served by the first regular, non-symlink file in byte order of the file name, and the work package’s prompt file is the first qualifying tasks/WP[0-9]{2,}-*.md file in byte order; a file that is a symlink or a directory is skipped. The workspace worktreePresent flag and the change state of each owned file depend on the serving host. Review cycles are read from the primary planning surface 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.

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.

Responses

200

The detail of the work package.

Media type application/json
WorkPackageDetail

The detail of one work package, selected by the Mission’s missionId and the work package’s wpId. It is closed and self-contained: it repeats nothing of the work package resource and embeds none of it. Every array is present and may be empty. A work package id held by two files is served by the first regular, non-symlink file in byte order of the file name, and the prompt file of the work package is the first qualifying tasks/WP[0-9]{2,}-*.md file in byte order. Members that depend on the serving host (workspace.worktreePresent and the change state of each owned file) say so in their descriptions.

object
artifactReferences
required
ArtifactReferences

Pointers to the prompt file of the work package and to the Mission’s specification, each null when absent or not an eligible artifact.

object
prompt
required
One of:
ArtifactReference

A pointer to one artifact of the Mission: its path, for use with getArtifactContent, and its class. Nothing of the file is opened to build it.

object
kind
required
ArtifactKind

The class of the artifact, decided from its path by the same ordered classifier as in the listing.

string
Allowed values: review_cycle work_package_prompt spec plan tasks data_model quickstart analysis_report research contract checklist other
path
required
ArtifactPath

The path of the artifact relative to the Mission directory.

string
>= 1 characters <= 512 characters /^(?![\s\S]*[\n\r\x0B\x0C\x1C-\x1E\x85\u2028\u2029])(?!~/)(?![A-Za-z]:)(?!\.\.?(?:/|$))[^/\\\x00]+(?:/(?!\.\.?(?:/|$))[^/\\\x00]+)*$/
spec
required
One of:
ArtifactReference

A pointer to one artifact of the Mission: its path, for use with getArtifactContent, and its class. Nothing of the file is opened to build it.

object
kind
required
ArtifactKind

The class of the artifact, decided from its path by the same ordered classifier as in the listing.

string
Allowed values: review_cycle work_package_prompt spec plan tasks data_model quickstart analysis_report research contract checklist other
path
required
ArtifactPath

The path of the artifact relative to the Mission directory.

string
>= 1 characters <= 512 characters /^(?![\s\S]*[\n\r\x0B\x0C\x1C-\x1E\x85\u2028\u2029])(?!~/)(?![A-Za-z]:)(?!\.\.?(?:/|$))[^/\\\x00]+(?:/(?!\.\.?(?:/|$))[^/\\\x00]+)*$/
dependencies
required

The work packages this one depends on, in their authored order, each with its title and status lane. Empty when there are none.

Array<object>
DependencyRef

One work package this work package depends on: its identifier, its title and its current status lane.

object
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
title
required

The title of the work package depended on. It is never empty: the identifier stands in when the dependency has no title or its title holds a credential. Human text. A host path inside it is replaced by [path] and an e-mail address by [email].

string
>= 1 characters
wpId
required
WpId

The identifier of the work package depended on, as authored.

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

The canonical machine identity of the Mission the work package belongs to.

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

The files and patterns the work package owns, in their authored order, each with its change state on the serving host. Empty when none are declared.

Array<object>
OwnedFile

One file or pattern the work package owns, as the planning file wrote it, with whether the work package’s code lane changed it. changeState depends on the serving host.

object
changeState
required
ChangeState

Whether the commits of the work package’s code lane touched a file this pattern matches. The value depends on the serving host: a host without git or without the lane worktree answers unknown for every entry, and a brace pattern is always unknown.

string
Allowed values: changed unchanged unknown
isGlob
required

True when the pattern holds a glob character, so that it names a set of files and not one file.

boolean
pattern
required
RelativeReference

The owned file or pattern exactly as authored, repository-relative.

string
>= 1 characters <= 256 characters /^(?![A-Za-z]:)[^/\\~].*$/
reviewCycles
required

The review cycles found on the primary planning surface, ascending by cycleNumber. A cycle held only on a coordination surface is not shown, so an empty list means none was found there.

Array<object>
ReviewCycle

One review cycle of the work package, read from its review-cycle file on the primary planning surface. A cycle held only on a coordination surface is not shown, so [] means that none was found on the primary planning surface, not that none ever happened. A file the product cannot parse is still an entry: its number comes from its file name, reviewedAt and reviewer are null, and verdict, feedbackReference and artifactPath follow their own rules.

object
artifactPath
required
One of:
ArtifactPath

The path of one artifact, relative to the Mission directory and written with forward slashes. It is never an absolute location: it does not start with a slash, a tilde and a slash, or a drive letter and a colon, it holds no backslash, no NUL character and no line break (a line feed, carriage return, vertical tab, form feed, one of the three information separators, the next-line character, or a line or paragraph separator), it has no empty segment and no trailing slash, and no segment is a single or double dot. A name with a space, an accented letter, an at sign, a leading dot or a directory segment named home is a valid path. The pattern restates the artifact-path rule of the service, which decides the same way on every string; a request path the rule refuses is answered 400.

string
>= 1 characters <= 512 characters /^(?![\s\S]*[\n\r\x0B\x0C\x1C-\x1E\x85\u2028\u2029])(?!~/)(?![A-Za-z]:)(?!\.\.?(?:/|$))[^/\\\x00]+(?:/(?!\.\.?(?:/|$))[^/\\\x00]+)*$/
cycleNumber
required

The number of the cycle, taken from the file name review-cycle-N.md. Cycles are listed in ascending order.

integer
>= 1
feedbackReference
required

The canonical review-cycle pointer for the cycle, built from the Mission directory name, the work package directory name and the file name; null when a segment is refused. Each directory name is a single ASCII path segment that starts with a letter or digit and holds no .., as the product validator requires. It is never an event’s feedback path.

string | null
/^review-cycle://(?![A-Za-z0-9._-]*\.\.)[A-Za-z0-9][A-Za-z0-9._-]*/(?![A-Za-z0-9._-]*\.\.)[A-Za-z0-9][A-Za-z0-9._-]*/review-cycle-[1-9][0-9]*\.md$/
reviewedAt
required

When the review was recorded, as an RFC 3339 date-time with an offset, or null when the file holds no valid one. A date without a time is null, never midnight.

string | null format: date-time
reviewer
required
ActorHandle

The handle of the reviewer the cycle file names, or null when it names none or the value is not a valid handle.

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

The subtasks of the work package in their authored order, each with its title and resolved status lane. Empty when none are listed.

Array<object>
Subtask

One subtask of a work package: the identifier the planning file lists, its title from the Mission’s task list, and its resolved status lane.

object
id
required
RelativeReference

The subtask identifier as authored, for example T017. The roster keeps its authored order.

string
>= 1 characters <= 256 characters /^(?![A-Za-z]:)[^/\\~].*$/
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
title
required

The human title of the subtask, or null when the task list gives none. Human text. A host path inside it is replaced by [path] and an e-mail address by [email]; a title that holds a credential is withheld and read as null.

string | null
>= 1 characters
workspace
required
Workspace

Where the work package runs, with its code lane, its branches and whether its lane worktree exists on the serving host.

object
laneBranch
required

The branch of the code lane. Null for lane-planning, which has no lane branch, and when laneId is null. A value that fails the branch pattern is null.

string | null
>= 1 characters <= 255 characters /^[A-Za-z0-9][A-Za-z0-9._/-]*$/
laneId
required

The code lane of the work package, for example lane-a; lane-planning for a planning-artifact or single-branch work package. Null when the Mission has no lanes.json or the work package is in no lane. This is the code lane, never a status lane.

string | null
>= 1 characters <= 64 characters /^[A-Za-z0-9][A-Za-z0-9._-]*$/
planningBranch
required

The branch the planning file records as the planning base of the work package, or null when it records none.

string | null
>= 1 characters <= 255 characters
worktreePresent
required

True only when the work package runs in its own lane worktree and that worktree exists on the serving host. It depends on that host: a host without worktrees, or one that has not created the lane worktree, reports false. A work package that runs in the repository checkout root reports false.

boolean
wpId
required
WpId

The identifier of the work package inside its Mission.

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

404

The Mission or the work package does not exist, the identifier is ill-formed, or the identifier is known only to the status log, refused with 404. A work package id held by two files is served by the first regular, non-symlink file in byte order of the file name; a file that is a symlink or a directory is skipped. The body is a problem details object whose code is not_found.

Media type application/problem+json
WorkPackageDetailRefusal

The problem details body of a refused work package detail read. It is a Problem whose code is one of two values, and the status follows from the code: 404 for not_found and 500 for source_unreadable. The body carries no file content, no host path and no Mission directory. Consumers branch on code, never on title.

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
WorkPackageDetailRefusalCode

The reason of the refusal. The status is fixed by it, 404 for not_found and 500 for source_unreadable.

string
Allowed values: not_found source_unreadable

500

A source of the detail could not be read, refused with 500 and never answered as a partial detail: a malformed lanes.json, an ambiguous Mission selector, an undecodable task list or an unreadable work package file. The body is a problem details object whose code is source_unreadable.

Media type application/problem+json
WorkPackageDetailRefusal

The problem details body of a refused work package detail read. It is a Problem whose code is one of two values, and the status follows from the code: 404 for not_found and 500 for source_unreadable. The body carries no file content, no host path and no Mission directory. Consumers branch on code, never on title.

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
WorkPackageDetailRefusalCode

The reason of the refusal. The status is fixed by it, 404 for not_found and 500 for source_unreadable.

string
Allowed values: not_found source_unreadable

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