SPEC-000: Specification process¶
- Status: Implemented
- Milestone: M0
- Owners: lead maintainer
1. Purpose¶
The spec is the source of truth and code is its implementation. This spec defines how specs are written, reviewed, accepted and changed.
2. Terms¶
The keywords MUST, MUST NOT, SHOULD and MAY are interpreted as in RFC 2119. Public interface: any function, class, field, CLI command, file format or schema a user or plugin author can depend on.
3. Requirements¶
- PRO-001 Every spec MUST live in
specs/asSPEC-NNN-slug.mdand followspecs/TEMPLATE.md. - PRO-002 A spec MUST carry one status: Draft, Accepted, Implemented or Deprecated.
- PRO-003 Requirements MUST have unique IDs of the form
AAA-NNNand use RFC 2119 keywords. - PRO-004 Every requirement MUST map to at least one test ID in
tests/conformance/before its spec moves to Implemented. - PRO-005 Machine-readable formats (scenario, run log) MUST be JSON Schema files in
specs/schemas/. - PRO-006 A spec PR MUST have one maintainer approval; a change to a public interface MUST also have a 3-day comment window.
- PRO-007 Spec changes and code changes MUST land in separate commits.
- PRO-008 Public API MUST trace to a spec section; unspecified public API MUST NOT be added.
- PRO-009 A spec change that breaks compatibility MUST bump the relevant schema version and add a migration note to the changelog.
- PRO-010 Changes that do not alter behavior (typos, refactors, docs) MAY skip the spec step.
- PRO-011 CI MUST run a spec-link check: every requirement ID in an Accepted or Implemented spec MUST appear in at least one test (as
test_<ID>with-written_, or in a test's docstring), unlessspecs/untested.yamllists it with a reason.
4. Acceptance criteria¶
| Requirement | Test ID | Notes |
|---|---|---|
| PRO-001..003 | PRO-001 |
tests/conformance/test_specs.py lints spec files |
| PRO-004 | PRO-004 |
Spec-link check arrives with M1 |
5. Workflow¶
Propose (issue) → write spec → review and accept → conformance tests first → implement → release.
6. Open questions¶
- Spec-link tooling: script vs. pytest plugin (decide in M1).
7. Change log¶
- 2026-11-30: Initial draft.
- 2026-11-30: Accepted by the lead maintainer.
- 2026-11-30: Added PRO-011 (spec-link check in CI).
- 2026-11-30: Implemented in v0.1.0; every requirement has a test (PRO-004, PRO-011).
- 2026-12-01: PRO-011 applies to Accepted and Implemented specs; a Draft spec is reviewed before its tests are written (workflow step 4).