Skip to content

Services

The events domain has a read service and a write service, command-cli. The write service runs and its write core serves checkout_append: durable, byte-exact status appends under the same per-Mission lock core’s Python writer takes (#160, #161). Their code and contracts live in this repository, under service/ and contracts/, imported from core (spec-kitty/spec-kitty) at 512567eee71e31bb39f580c4f7acf8b865e9d1b2 with their history (ADR-0002). These pages describe them with a citation for each claim: local paths for what lives here, core at 4eecb124 for what stays in core.

  • Services overview: the context and container views, the onion layering and the ArchUnit rules that enforce it, and where the code lives. Read this first.
  • The read-write split: the read-only Mission Status Read API, the Java write service as the one canonical writer, and the writers and readers today versus the target.
  • Event-log lock and append: the lock shared with the CLI, atomic and durable appends, torn-tail repair, and why CI pins a core SHA.
  • Lock-interop spike: the verdict and CI evidence for which Java lock excludes the CLI’s lock on each OS, and the follow-ups it named for the write service.
  • Write-service protocol: loopback HTTP, the bearer token, the handshake, durability acks, refusal codes and the launcher contract.
  • Event ledger writers and readers: core’s map of every event log and ledger it writes and reads, the target the event ADRs set, and the gap table (G-1 to G-19) the read-write split summarises.
  • command-cli research note: the research for the write service (#156): what core binds, what the contract fixes, the gaps and the proposed slicing.

Build and release: ADR-0003 and ADR-0004.