Agent quality gates and review
Pre-commit order
hatch run formathatch run type-checkhatch run linthatch run yaml-linthatch run contract-testhatch run smart-test
SpecFact code review JSON
- Treat
.specfact/code-review.jsonas mandatory evidence before an OpenSpec change is complete. - Re-run the review when the report is missing or stale.
- Resolve every finding at any severity unless a rare, explicit exception is documented.
- Record the review command and timestamps in
TDD_EVIDENCE.mdor the PR description when quality gates are part of the change.
Clean-code review gate
The repository enforces the clean-code charter through specfact code review run. Zero regressions in naming, kiss, yagni, dry, and solid are required before merge.
Module signature gate
Before PR creation, every change that affects signed module assets or manifests must pass:
hatch run ./scripts/verify-modules-signature.py --require-signature
If verification fails because module contents changed, re-sign the affected manifests and bump the module version before re-running verification.