Summary
Add coverage threshold enforcement to CI to prevent coverage regressions.
Context
The canonical reference (unbound-force/unbound-force/.github/workflows/ci_local.yml) enforces two coverage ratchets:
- Global coverage >= 80%
internal/backlog package coverage >= 90%
Replicator currently runs go test with -race and -count=1 but does not generate or enforce coverage metrics. The constitution (Principle IV: Testability) states: "Coverage regressions MUST be treated as test failures."
Acceptance Criteria
References
Summary
Add coverage threshold enforcement to CI to prevent coverage regressions.
Context
The canonical reference (
unbound-force/unbound-force/.github/workflows/ci_local.yml) enforces two coverage ratchets:internal/backlogpackage coverage >= 90%Replicator currently runs
go testwith-raceand-count=1but does not generate or enforce coverage metrics. The constitution (Principle IV: Testability) states: "Coverage regressions MUST be treated as test failures."Acceptance Criteria
-coverprofile=coverage.out)internal/org,internal/doctor)References
unbound-force/unbound-force/.github/workflows/ci_local.ymllines 45-61