This document summarizes the public verification-governance contract that sits on top of the repository test workflow.
For the authoritative execution order and acceptance rules, follow:
tests/TEST_SOP.mdtests/E2E_TESTING_NOTICE.mdtests/E2E_TESTING_SOP.mddocs/release/ci_regression_policy.md
The standard local and CI-parity validation flow includes two explicit governance checks:
python scripts/verify_quality_governance.py- keeps
pyproject.tomlcoverage settings aligned with the staged ratchet policy intests/coverage_governance_policy.json - protects mutation-threshold, SOP-guidance, and coverage-policy drift
- keeps
python scripts/verify_test_debt_governance.py- fails closed on stale or under-documented entries in
tests/skip_policy.json - fails closed on stale or under-documented entries in
tests/mutation_survivor_allowlist.json
- fails closed on stale or under-documented entries in
Backend unit coverage should be gathered through the shared helper instead of ad hoc coverage run invocations:
python scripts/run_backend_coverage.py --start-dir tests --pattern "test_*.py" --enforce-skip-policy tests/skip_policy.json --coverage-json .tmp/coverage/backend_unit_coverage.jsonBefore any future coverage-floor promotion, review hotspot-family coverage with:
python scripts/report_coverage_governance.py --coverage-json <path-to-coverage.json>This report is the governed review surface for critical families such as:
safe_io- security boundaries
- connector config and ingress seams
- config and bootstrap seams
Retained release-cycle review evidence lives in:
tests/coverage_promotion_reviews.json
The current enforced stage is ratchet-55, which means the repository floor is now
fail_under = 55.0. The promotion is backed by two consecutive ratchet-45 release-cycle
reviews with immutable release commits, full-suite artifact hashes, all required hotspot
percentages, and named regression owners.
tests/coverage_governance_policy.jsonis the source of truth for the current enforced floor, next planned ratchet target, hotspot families, and temporary exceptions.pyproject.tomlcoverage settings must stay aligned with the active stage floor declared intests/coverage_governance_policy.json.tests/coverage_promotion_reviews.jsonis the retained promotion-evidence ledger for reviewed hotspot summaries across release cycles.- Ratchet-55 evidence must identify consecutive release boundaries, the reviewed commit, full-suite command and artifact SHA-256, all required hotspot percentages, and owned suites.
- Rollback is atomic: a future approved rollback must move both the policy current stage and
pyproject.tomlfloor together; config drift fails the governance check. - Test-debt governance remains fail-closed; review metadata such as
reasonandreview_aftermust stay current for governed skip-policy and mutation-survivor entries. - Detailed CI-gate composition and merge requirements remain documented in
docs/release/ci_regression_policy.mdandtests/TEST_SOP.md.