Skip to content

Read the project header.

API version mission-status unreleased

GET
/project

Returns the project name, the number of Missions the service lists, the recorded Spec Kitty and schema versions, the health badge, the current branch and the latest Mission activity. The read is side-effect-free and runs no drift scan; its cost grows with the Mission count (see the Project schema). A Mission whose declared coordination branch no longer exists, or whose remote cannot be reached, is read from its own directory and the answer is still a 200; any other resolver error is a 500 Problem, as for GET /drift.

Responses

200

The project header.

Media type application/json
Project

The project the service reports on: its name, the number of Missions it lists (missionCount), and five properties of the project’s state: specKittyVersion and schemaVersion (what the project recorded), health (whether that schema is one the serving build supports), currentBranch (the branch checked out) and lastActivityAt (the latest Mission activity). It never carries a path, a worktree location or a credential. GET /project is read-only, side-effect-free and safe to call once per recent project; it runs no drift scan, and health never depends on a drift finding. It is not free: missionCount and lastActivityAt need every listed Mission, so the read resolves each Mission’s read directory through git queries, which can include network probes for a Mission whose declared coordination branch is absent locally, and reduces its event log. The cost grows with the Mission count and, for those Missions, with the network, so side-effect-free does not mean not network-free.

object
currentBranch
required

The branch the project’s HEAD names, read from the HEAD file with no process started; an unborn branch is its name. Null means no branch name this contract can carry: a detached HEAD, no repository, an unreadable or unparseable HEAD, a name that fails the pattern or is too long, or a name that is a host path. It does not separate those cases. A served name is user-authored text served as stored, so it can carry a handle, as Workspace.laneBranch can.

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

Healthy exactly when schemaVersion is not null and lies in the range of schema versions the serving build supports; otherwise schema_drift. The range is that of the serving build, so the same project reads healthy or schema_drift depending on which build serves it. It rolls up the three non-compatible schema statuses (unmigrated, outdated, cli_outdated); the finer split stays in schemaVersion. It never depends on a drift finding. This property is provisional, and a client must tolerate a health value it does not know.

string
Allowed values: healthy schema_drift
lastActivityAt
required

The latest MissionHead.lastActivityAt over exactly the Missions GET /missions lists, compared as instants (different offsets are ordered by instant, not by text) and served as that Mission’s own string. Null when no Mission is listed and when every listed Mission has null activity. A Mission whose status.json cannot be read leaves its activity out (null if that was the only source); an event log that cannot be decoded or parsed fails the whole read with a 500.

string | null format: date-time
missionCount
required

The number of overview records, that is the number of Missions the service lists on GET /missions. It is defined by that listing and by nothing else.

integer
name
required

The project slug, the short human-readable name of the repository the service reports on.

string
>= 1 characters
schemaVersion
required

The schema version the project recorded (spec_kitty.schema_version), exactly as the command line coerces it: a numeric string, a float and a boolean in the file are served as the integer the CLI’s coercion gives (the string “3” is 3, 3.9 is 3, true is 1). Null when the file is absent or unreadable, the field is absent, or the value is not an integer after that coercion.

integer | null
specKittyVersion
required

The Spec Kitty version the project recorded in .kittify/metadata.yaml (spec_kitty.version). Null when the file is absent, empty, unreadable or not the expected shape, when it records no version, and when the recorded value is not a string of the pattern; the product’s own placeholder for a missing version never leaves the service. A strict field: projected or null, never redacted.

string | null
<= 64 characters /^[0-9A-Za-z][0-9A-Za-z.+!_-]{0,63}$/

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