ADR 002: Sprint context bus files β
Status β
Accepted
Context β
CodyMaster already had a shared context bus (context-bus.json) for multi-skill chains. Feature work needed:
- A named pipeline (brainstorm β β¦ β retro) with explicit current step and artifacts on disk.
- Human escape hatches (skip a step, reset sprint) without corrupting audit trails.
- MCP and CLI reading the same state.
Decision β
Persist sprint state under .cm/sprint/:
state.jsonβ pipeline definition,current_index,completed[],skipped[](v2 schema), timestamps,artifacts_dir.events.jsonlβ append-only events (e.g.skip, step transitions) for forensics.artifacts/β per-step markdown or other files produced by the workflow.
Implementation: src/sprint-pipeline.ts. CLI: cm sprint init|dry-run|skip|reset|β¦ (see src/cli/commands/engineering.ts).
Skipping a step writes a stub artifact, advances index, appends a skip event β does not silently delete history.
Consequences β
- Positive: Reproducible handoffs between agents and humans; state is grep-friendly.
- Positive:
cm suggestand skills can infer βwhere we areβ fromstate.json. - Negative: Two concepts (root bus vs sprint folder) β docs must point authors to the right file for their use case.
Related β
- Engineering pipeline
- Sprint A β P0 plan (historical checklist)