spec-kitty-events
Package Version: 11.3.0 | Envelope Schema Version: 3.0.0 | Python: >=3.10
The event contracts of Spec Kitty: the canonical vocabulary the Spec Kitty CLI and runtime emit as a Mission moves through its lifecycle. This repository is the event-contract surface of the Build Kitty product line — the free CLI and its extension surface.
spec-kitty-events 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 a small, dependency-light
Python package with no runtime dependency on the CLI, so any system — a dashboard, an
analytics job, the Team Kitty dossier, a SaaS ingress — can validate, order and reduce
Spec Kitty events orthogonally, without coupling to the CLI's internals.
spec-kitty CLI / runtime ──emit──▶ status.events.jsonl / relay / journal
(producer) │
▼
spec-kitty-events contracts
(envelope · payloads · reducers · strict profile)
│
┌────────────────────────┬───────────────┴───────────────┐
▼ ▼ ▼
Team Kitty dossier dashboards / analytics SaaS ingress
(consumer) (consumer) (consumer)
What this package gives you
- One envelope.
Eventis the single top-level envelope every family rides in: a stable set of context fields (identity, ordering clock, project, schema version) carrying an opaque, per-familypayload. - Event families. Typed Pydantic payload models and event-type constants for mission lifecycle, work-package status, review and audit, runtime observation, collaboration, and semantics and analytics. See Event families.
- Deterministic reducers. Pure functions that fold an ordered event stream into a frozen state snapshot (mission state, work-package lanes, audit verdict, collaboration roster, …).
- A fail-closed strict profile.
validate_strict_envelope— an opt-in, deterministic gate (STRICT_PROFILE_ID = "journal/v1") for the durable journal and TeamSpace ingress. - Conformance fixtures. Valid/invalid payloads, replay streams and golden reducer outputs, shipped in the package so every consumer validates against one corpus.
Documentation
The documentation site follows the doc-kitty
convention and is published from main to
https://spec-kitty.github.io/spec-kitty-events/. Start at
docs/README.md:
- Context — what the package is and how it is produced and consumed.
- Event families — the families grouped by concern.
- API & Contracts — the envelope, the Python package, the lane vocabulary, the versioning policy and the strict profile.
- Architecture — the envelope design, ordering and reduction, and the journal-versus-volatile durability split.
- Glossary · Decision Records · Guides · Changelog
The durable, governing contracts live in contracts/;
COMPATIBILITY.md is the public compatibility policy and the
authoritative version-and-compatibility reference.
Installation
Pin a released version (a v<version> tag), not a mainline commit — a package version
is frozen only when it is tagged, so main may still move an unreleased version
(versioning policy).
From PyPI (pin an explicit version — see COMPATIBILITY.md for the
current release and what a major bump means):
pip install "spec-kitty-events==11.3.0"
# with conformance-validation support:
pip install "spec-kitty-events[conformance]==11.3.0"
With uv, install the exact versions pinned by the committed
uv.lock — what CI and make test-fast / make test-full resolve against:
uv sync --locked --extra dev --extra conformance
Quick start
Emit a canonical envelope
import uuid
from datetime import datetime, timezone
from spec_kitty_events import Event
event = Event(
event_id="01ARZ3NDEKTSV4RRFFQ69G5FAV",
event_type="WPStatusChanged",
aggregate_id="mission/WP01",
payload={
"mission_slug": "mission-001",
"wp_id": "WP01",
"from_lane": "planned",
"to_lane": "claimed",
"actor": "ci-bot",
"execution_mode": "worktree",
},
timestamp=datetime.now(timezone.utc),
build_id="build-2026-04-05",
node_id="runner-01",
lamport_clock=1,
project_uuid=uuid.uuid4(),
correlation_id="01ARZ3NDEKTSV4RRFFQ69G5FAV",
schema_version="3.0.0",
)
Validate a payload against the canonical contract
from spec_kitty_events.conformance import validate_event
result = validate_event(event.payload, "WPStatusChanged")
assert result.valid
Gate a full envelope fail-closed (durable journal / ingress)
from spec_kitty_events.strict import validate_strict_envelope
errors = validate_strict_envelope(event.to_dict())
assert not errors
More, including reducing a stream into state, is in API & Contracts.
Versioning in one line
Two version numbers move independently: the package version (contract behaviour) and the
on-wire envelope schema_version (3.0.0, held stable across package majors). A change
is major if it flips the accept/reject boundary for any producer or consumer. The rules and
the required artifacts on a bump are in
contracts/versioning-and-compatibility.md.
Development
make test-fast # implementer blast-radius baseline
make test-full # whole suite with coverage (CI agent)
uv run pytest --pyargs spec_kitty_events.conformance # packaged conformance gate — every PR
ruff check . && ruff format --check . # lint
See AGENTS.md for the programme process and
docs/guides/contributing.md.
License
MIT © 2026 Spec Kitty, Inc. and contributors.
Metadata
Release files for spec-kitty-events 11.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spec_kitty_events-11.3.0.tar.gz | 706.2 kB | With provenance | Details for spec_kitty_events-11.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spec_kitty_events-11.3.0-py3-none-any.whl | Python 3 | none | any | Details for spec_kitty_events-11.3.0-py3-none-any.whl |
Total release size: 2.2 MB
Release files / spec_kitty_events-11.3.0.tar.gz
| Download URL | spec_kitty_events-11.3.0.tar.gz |
|---|---|
| Size | 706.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da28c9775562f2078747e55de137c11408f33c7d790a587a2b0aaae02ca0c458
|
|
BLAKE2b-256 checksum How to use checksums |
b01980eb0b6f2c4cfef0901f7d02a9d3a26f23923f1f5a1b99a3834fc2f2231c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logRelease files / spec_kitty_events-11.3.0-py3-none-any.whl
| Download URL | spec_kitty_events-11.3.0-py3-none-any.whl |
|---|---|
| Size | 1.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92e72cec8bdeb320621cb754bbc46a9f915d9a5179f9dc6f8c6046623eed1d25
|
|
BLAKE2b-256 checksum How to use checksums |
a32566d2e90850b932e58604bef7ecd542de5ba8818fc942571f779fa855d520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logSecurity for spec-kitty-events 11.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for spec_kitty_events-11.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.