Get the detail of one work package of a Mission.
API version mission-status unreleased
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
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.
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.
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.
The identifier of the work package inside the Mission, for example WP01.
Responses
200
The detail of the work package.
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
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
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
The class of the artifact, decided from its path by the same ordered classifier as in the listing.
The path of the artifact relative to the Mission directory.
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
The class of the artifact, decided from its path by the same ordered classifier as in the listing.
The path of the artifact relative to the Mission directory.
The work packages this one depends on, in their authored order, each with its title and status lane. Empty when there are none.
One work package this work package depends on: its identifier, its title and its current status lane.
object
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.
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].
The identifier of the work package depended on, as authored.
The canonical machine identity of the Mission the work package belongs to.
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.
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
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.
True when the pattern holds a glob character, so that it names a set of files and not one file.
The owned file or pattern exactly as authored, repository-relative.
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.
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
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.
The number of the cycle, taken from the file name review-cycle-N.md. Cycles are listed in ascending order.
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.
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.
The handle of the reviewer the cycle file names, or null when it names none or the value is not a valid handle.
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.
The subtasks of the work package in their authored order, each with its title and resolved status lane. Empty when none are listed.
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
The subtask identifier as authored, for example T017. The roster keeps its authored order.
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.
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.
Where the work package runs, with its code lane, its branches and whether its lane worktree exists on the serving host.
object
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.
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.
The branch the planning file records as the planning base of the work package, or null when it records none.
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.
The identifier of the work package inside its Mission.
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.
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
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, 404 for not_found and 500 for 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.
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
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, 404 for not_found and 500 for source_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.