Skip to content

List the artifacts of one Mission.

API version mission-status unreleased

GET
/missions/{missionId}/artifacts

Returns the eligible files of the Mission directory as a flat list sorted by path in byte order, at most 1000 entries, with truncated set when more existed. Each entry names the path, the class (kind), the size, the modification time and whether a read of its content would be answered 200. The two root status records of the Mission, status.events.jsonl and status.json, are not artifacts and are not listed; a symlink is never followed. Eligibility denies by default: a file is an artifact only when its name ends in .md, .json, .jsonl, .yaml, .yml, .csv or .txt (with that case), no segment of its path starts with a dot (.env, .git/), and, for a data file (not .md), its name less the extension is not credential, credentials, secret, secrets, service-account or service_account (compared by case fold) and does not start with client_secret. Any other file is not listed and is answered 404. The Mission is selected by its missionId only. The modification time depends on the serving host.

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 artifacts of the Mission.

Media type application/json
ArtifactListing

The artifacts of one Mission: a flat list of its eligible files, sorted by path in the byte order of the UTF-8 encoding. At most 1000 entries are returned; truncated says whether more existed. The two root status records of the Mission, status.events.jsonl and status.json, are not artifacts and are never listed, and a symlink is never followed or listed.

object
entries
required

The eligible files of the Mission directory, sorted by path in byte order, at most 1000. The list is empty for a Mission with no eligible file.

Array<object>
<= 1000 items
ArtifactEntry

One artifact in a listing: an eligible file of the Mission directory. The entry names the file, its class and its size, and says whether a read of its content would be answered 200.

object
kind
required
ArtifactKind

The class of the file, decided from its path.

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

When the file was last modified, as an RFC 3339 date-time in UTC with the suffix Z and whole seconds. It is the modification time of the file on the serving host, so it depends on that host: a fresh checkout or a copy of the Mission gives a different value.

string format: date-time
/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$/
path
required
ArtifactPath

The path of the file, 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]+)*$/
readable
required

True when a read of the content of this file would be answered 200. False when it would be refused: the file is larger than 262,144 bytes (413), is not text, that is it holds a NUL byte or is not valid UTF-8 (415), holds a credential (422) or cannot be read (500). The credentials that make a file unreadable are a GitHub token (the prefixes ghp, gho, ghu, ghs and ghr, and the fine-grained prefix github_pat), an AWS access key id (the prefixes AKIA and ASIA) and the header line of a PEM private key. A file larger than the cap is decided from its size alone and is never opened.

boolean
sizeBytes
required

The size of the file in bytes, as the file system reports it for the file itself.

integer
missionId
required
MissionId

The canonical machine identity of the Mission the listing belongs to.

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

True when more than 1000 eligible files existed and the list holds the first 1000 of them.

boolean

404

The Mission or the artifact does not exist, or the path names no eligible artifact (a directory, a symlink, a path through a symlink, or a root status record, whose name is matched without regard to case), refused with 404. The body is a problem details object whose code is not_found.

Media type application/problem+json
ArtifactRefusal

The problem details body of a refused artifact read. It is a Problem whose code is one of seven values, and the status follows from the code: 400 for invalid_artifact_path, 404 for not_found, 413 for artifact_too_large, 415 for artifact_not_text, 422 for artifact_secret, and 500 for artifact_unreadable and artifact_listing_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
ArtifactRefusalCode

The reason of the refusal. The status is fixed by it: 400, 404, 413, 415, 422, 500 and 500 in the order of the values.

string
Allowed values: invalid_artifact_path not_found artifact_too_large artifact_not_text artifact_secret artifact_unreadable artifact_listing_unreadable

500

The listing of the artifacts could not be built, refused with 500 and never answered as a shorter list. The body is a problem details object whose code is artifact_listing_unreadable.

Media type application/problem+json
ArtifactRefusal

The problem details body of a refused artifact read. It is a Problem whose code is one of seven values, and the status follows from the code: 400 for invalid_artifact_path, 404 for not_found, 413 for artifact_too_large, 415 for artifact_not_text, 422 for artifact_secret, and 500 for artifact_unreadable and artifact_listing_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
ArtifactRefusalCode

The reason of the refusal. The status is fixed by it: 400, 404, 413, 415, 422, 500 and 500 in the order of the values.

string
Allowed values: invalid_artifact_path not_found artifact_too_large artifact_not_text artifact_secret artifact_unreadable artifact_listing_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