Information
- OpenAPI version:
3.1.0
API version mission-write unreleased
The CLI to write-service protocol of one repository.
The contract between the CLI’s EventBridge client and the resident write service of one repository (ADR 2026-10-22-1, ADR 2026-10-27-1). The service listens on 127.0.0.1 only, on a random port that it writes, with a random bearer token, to an endpoint file in the git common dir. The service is authoritative: it owns the lane state machine, the guards and dependency gating, and every refusal carries a code from WriteRefusalCode. A unit is acknowledged only after it is appended in one write and synced. The service checks a request in this order and answers the first refusal: the Host and Origin guard (403), the bearer token (401), the protocol header (400), the size cap (413), the body’s shape (400), then the domain (404, 409, 422). This file holds the document header, the security scheme and the map from each path to the file that defines it.
The random token the service wrote to its endpoint file (mode 0600 in a 0700 directory of the git common dir). It is never logged and never echoed in a body.
Security scheme type: http