spec-kitty-events documentation
spec-kitty-events is the event-contract surface of Spec Kitty. It owns the
CloudEvents-shaped envelope, the payload schemas for every event family, the pure reducers
that fold an event stream into state, the packaged conformance fixtures and the
compatibility policy. It is the event-contract repository of the
Build Kitty product line — the free Spec Kitty CLI
and its extension surface.
The Spec Kitty CLI and runtime produce these events as a Mission moves through its lifecycle. Any other system — the Team Kitty dossier, a dashboard, an analytics job, a SaaS ingress — consumes them by importing this package to validate, order and reduce the stream. Because the contract is a small, dependency-light package with no runtime dependency on the CLI, those consumers stay orthogonal: they couple to the event contract, never to the CLI’s internals. How it interacts with the CLI core.
The repository also ships the two events-domain services — the mission-status-api read
service and the command-cli write service — on their own service-v* release line; see
Service APIs.
This tree follows the doc-kitty convention: each
section’s README.md is its index and carries frontmatter, and the sections are registered
in _meta/sections.yaml.
Start here
- New to the package? Read Context for what it is, where it sits in the product lines, and the producer → contract → consumer model.
- Looking for a specific event? Event families groups every family by concern, each with its event types, payloads, generated schema pages and reducer; the normative envelope is under The envelope.
- Integrating as a consumer? API & Contracts is the envelope, the Python package surface, the lane vocabulary, the versioning policy and the strict profile.
- Operating or calling the services? Service APIs introduces the read and write services and their API reference; Running the Mission Status Read API gets the read service up from a release or from source.
Sections
| Section | What it holds |
|---|---|
| Context | What the package is, the Build Kitty line, and how it is produced and consumed. |
| Event families | The event families the runtime emits, grouped by concern. |
| API & Contracts | The envelope, the Python package, the lane vocabulary, versioning, the strict profile and the service APIs. |
| Architecture | The envelope design, total order and reduction, the journal-versus-volatile durability split, and the services. |
| Glossary | The vocabulary of the event contract. |
| Decision Records | Architectural decisions, numbered NNNN-title. |
| Guides | How to contribute, how to build the docsite, and how to run, release and cut over the services. |
| Changelog | Dated pages for notable changes, newest first. |
Authoritative sources outside this tree
The docs explain and link; the normative contract lives in code and in the repository-root policy files:
- The durable, governing contracts:
contracts/. - The public compatibility policy and the single declaration of the current package version:
COMPATIBILITY.md. - The full release history:
CHANGELOG.md. - The canonical models:
src/spec_kitty_events/.