Repository navigation
chore(coverage): raise TS plugin statements floor to 94% - #790
Merged
jflowers merged 3 commits intoOct 22, 2026
Merged
Conversation
…overage-gate) - Raise .opencode/vitest.config.ts statements threshold from 90 to 94 percent per ts-plugin-coverage-gate design D2 (issue unbound-force#780); the branches floor stays 85 percent - Add OpenSpec change artifacts (proposal, design, specs, tasks) - Store retrospective Dewey learnings from the workflow Assisted-by: glm-5 Generated with AI assistance (glm-5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raises the statements coverage floor for the
.opencode/TypeScriptplugin suite from 90 to 94 percent in
.opencode/vitest.config.ts(issue #780, closing the deferral recorded by the unleash-tier-routing
change). The floor is a static governance-raised floor, not a ratchet:
94 sits just below the lowest recorded baseline (94.58%, round-2 fresh
measurement) and 1.18 points under the current 95.18% (3521/3699)
measurement, leaving headroom for documented cross-platform V8
coverage divergence (macOS local vs ubuntu-latest CI). Enforcement
uses native Vitest thresholds only, wired through the existing
plugin-test/make check/ Local CI chain — no new CI wiring. Thebranches floor (85) is unchanged.
Also ships the OpenSpec change artifacts (proposal, design decisions
D1–D7, ci spec delta, tasks), the CHANGELOG.md entry, the AGENTS.md
Testing Conventions governance note, and 10 retrospective Dewey
learnings from the workflow.
Closes #780
How to Test
Passing mode — the suite sits above the raised floor:
Expected: exit 0, all 39 test files / 1180 tests pass, statements
coverage 95.18% (3521/3699) ≥ 94 floor (branches 87.89% ≥ 85
unchanged).
Failing mode — the gate blocks regressions (scratch check via
CLI override, no shipped changes):
Expected: exit 1 with
ERROR: Coverage for statements (95.18%) does not meet global threshold (96%)— the failure names themetric, measured value, and threshold.
CI parity — the floor rides the existing enforcement chain:
Change validation:
openspec validate ts-plugin-coverage-gate— 0 errors.
How to Demo
Show the gate blocking a regression: run the failing-mode command
above (threshold override to 96) and point to the error naming the
metric, measured value, and threshold; then run
make plugin-testtoshow the suite green at the 94 floor.
Key Files Changed
.opencode/vitest.config.ts— statements floor 90 → 94 withprovenance comment (recorded baselines, issue Add a coverage gate for the TypeScript plugin suite (deferred from unleash-tier-routing) #780, governance
constraint)
openspec/changes/ts-plugin-coverage-gate/— proposal, design,specs/ci spec delta, tasks,
.openspec.yamlCHANGELOG.md,AGENTS.md— governance documentation.uf/dewey/learnings/— 10 retrospective learningsKnown Issues
None blocking. Both review councils returned APPROVE WITH ADVISORIES
(spec review: 4 non-blocking advisories; code review: 3 non-blocking
advisories — including a reminder that spec artifacts, the
vitest.config.ts edit, and Dewey learnings ship with the feature
branch, which this PR does).
This PR was generated by /uf.finale (AI-assisted).