Service APIs
spec-kitty-events releases on two lines: the Python contract package (PyPI v*) and the
events-domain Java services (service-v*, ADR-0002). This page introduces the two service
APIs that the service-v* line ships; everything else in this section is the Python
package’s contract surface.
The two services
- The read service,
mission-status-api(contract modulemission-status), is the loopback, read-only status service: it reads a project’s missions and serves their status over HTTP. - The write service,
command-cli(contract modulemission-write), is the loopback write service the CLI drives. Its write core is built (#160, #161): it appends and syncsstatus.events.jsonlunder the per-Mission lock, andcoordination_ref_commitwaits for migration step 4.
Both live under service/
and ship on the service-v* line, versioned and released apart from the Python package
(ADR-0003 owns the Gradle build and
the release line; the contract bundles ride on every service-v* tag as release assets).
Running them
See Running the Mission Status Read API for run-from-release
and run-from-source recipes for the read service. The write service is started by the CLI’s
launcher; service/command-cli/README.md
gives its command line.
Contracts
Each service’s contract is normative in the repository:
contracts/mission-status— the read service’s OpenAPI contract.contracts/mission-write— the write service’s OpenAPI contract.
contracts/tools/bundle.py resolves each module to a single self-contained OpenAPI file;
the docs site publishes those files byte-for-byte (CI compares digests), so the reference
pages always match the resolver output.
API reference
- mission-status API reference — the read contract, from
the bundle, with the raw
openapi.yamland its sha256 available for download. The contract is wider than the service today: a single Mission, a Work Package, its detail,/driftand/ops/invocationsare in the contract but answer404. The routes the service serves are listed in Routes. - mission-write API reference — the same for the write service.
Both references are unreleased until the first final service-v* tag exists: no tag means
no released contract for a consumer to pin. The flip rule (#194): when the first final
service-v* tag is cut, set released: true for both specs in site/astro.config.mjs
in the release pull request. The same rule is recorded in
Service protocol and releases.