Skip to content

ci(coverage): ratchet AC-17 merged coverage gate floor 80 -> 84 - #390

Merged
ycpss91255 merged 2 commits into
mainfrom
auto/coverage-ratchet-84
Jul 15, 2026
Merged

ci(coverage): ratchet AC-17 merged coverage gate floor 80 -> 84#390
ycpss91255 merged 2 commits into
mainfrom
auto/coverage-ratchet-84

Conversation

@ycpss91255

Copy link
Copy Markdown
Owner

Summary

Ratchet the AC-17 merged-coverage gate floor from 80 to 84.

Merged unit coverage on main reached 84.53% (measured 2026-07-12 on
the main CI coverage job), so a floor of 84 locks in the gains with a small
margin and does not fail current main. This continues the maintainer's
ratchet-upward-toward-90 policy (prior step 66 -> 80 in #124).

Changes

  • script/ci/ci.sh_assert_coverage_gate default ${COVERAGE_MIN:-80}
    -> :-84; help text + "Gate semantics" ratchet comment block updated to
    record the new 80 -> 84 step (84.53% measured 2026-07-12), keeping the
    existing 66 -> 80 (ci(coverage): flip AC-17 gate to 80% after boost (ratchet from 66) #124) history.
  • justfile.cicoverage / coverage-merge recipe comments default 80
    -> default 84.
  • test/unit/script/ci_spec.bats — boundary specs and header updated to the
    84 default (pass at 84.00, fail at 83.99); the COVERAGE_MIN override
    and COVERAGE_ENFORCE report-only specs are unchanged.
  • doc/TESTING.md — gate note default updated to 84 with the extended
    ratchet history (Chinese doc; number-only change).
  • doc/changelog/CHANGELOG.md — entry under [Unreleased] > Changed.

COVERAGE_MIN and COVERAGE_ENFORCE overrides are unchanged; only the
hardcoded default moved.

Test plan

  • just -f justfile.ci lint — green (Docker).
  • just -f justfile.ci test-unit — green (Docker); updated ci_spec.bats
    boundary specs pass against the new 84 default.
  • PR CI coverage-merge gate now enforces >= 84 — expected to pass
    since main is at 84.53%.

ycpss91255 and others added 2 commits July 15, 2026 18:26
Merged unit coverage on main reached 84.53% (measured 2026-07-12 on the
main CI coverage job), so raise the COVERAGE_MIN default from 80 to 84 to
lock in the gain with a small margin without failing current main.
Continues the ratchet-upward-toward-90 policy (prior step 66 -> 80 in #124).

Updates the hardcoded default in script/ci/ci.sh (_assert_coverage_gate
plus the help + section ratchet comment blocks), the justfile.ci coverage /
coverage-merge recipe comments, the boundary specs in
test/unit/script/ci_spec.bats (80.00/79.99 -> 84.00/83.99), and the
doc/TESTING.md gate note. COVERAGE_MIN and COVERAGE_ENFORCE overrides are
unchanged. lint + test-unit green in Docker.

Claude-Session: https://claude.ai/code/session_01NX5H2vuMTv4mBmjpPYoS3s

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@ycpss91255
ycpss91255 enabled auto-merge (squash) July 15, 2026 10:28
@ycpss91255
ycpss91255 merged commit c3ba70d into main Jul 15, 2026
108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant