1.5 KiB
1.5 KiB
BAT-007 Planning
Scope
- Implement REQ-007: MCP response contract versioning governance.
- Implement REQ-008: representative contract regression and lint required checks.
- Preserve existing success response shapes; runtime
contract_versionremains unexposed. - Use synthetic/temp data only for tests and evidence.
Dependencies
- dcy-007 confirmed Discovery and approved REQ-007/REQ-008.
- Existing BAT-006 CI workflow and synthetic fixture policy.
- Existing service-layer functions that accept
db_pathfor temp fixture tests.
Work plan
- Add BAT-007 standard batch docs and index entry.
- Add contract version
1.0governance and CI required-check contract to baseline docs. - Add representative contract snapshot metadata and pytest regression for health/status, list, report, and mutation success envelope scopes.
- Add
ruffdev dependency/config and CIlint/contract-regressionjobs while preserving existing job names. - Run narrow local verification: contract pytest, ruff, targeted regression that includes the new test, then full pytest if narrow gates pass.
- If evidence satisfies ACs, move REQ-007 and REQ-008 to Implemented.
Risks and mitigations
- Over-strict snapshot failures: mitigate by required-subset/type checks so optional additive fields pass.
- Existing code lint churn: mitigate by conservative initial
ruffrule set (E9,F). - Branch protection cannot be toggled from code: document as external operator setting and keep stable job names.