Skip to content

Commit c00a2ec

Browse files
committed
note the 80% statement-coverage target in the roadmap
CI measures ~67% and gates at 65%; the gap is the action hooks, only smoke-tested today. Deferred behind the structural Silver blockers.
1 parent 814c85d commit c00a2ec

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docs/roadmap.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,18 @@ The bar to add an item here is: someone asked, the maintainer thought about it,
5454

5555
**Why deferred**: niche use case (only repo maintainers + plugin authors). Not worth the install.sh complexity until someone other than the maintainer asks for it.
5656

57+
## Raise statement coverage to 80% (OpenSSF Silver target)
58+
59+
**Tracking**: #39
60+
61+
**Status**: CI gates coverage at 65% as of v0.6.2; 80% waits on hook tests.
62+
63+
**Today**: the `coverage` job measures ~67%. It captures the hooks and daemon (which run as subprocesses) via `COVERAGE_PROCESS_START` + `coverage combine`; a plain in-process `--cov` reads 59% because it misses them. Most of the gap to 80% sits in the action hooks (`lib/hook_stop.py`, `lib/hook_post_tool_bash.py`, `lib/hook_pre_tool_bash.py`, `lib/hook_post_tool_edit.py`): `tests/test_hooks_smoke.py` checks only that they run on trivial input, not their branches.
64+
65+
**Proposal**: test each hook with real payloads (transcript parsing, revert detection, redaction, the confidence gate), then step the CI `--fail-under` up to 80.
66+
67+
**Why deferred**: 80% is the Silver `test_statement_coverage80` criterion, and Silver already blocks on the single-maintainer rules (2+ contributors, bus factor >= 2, two-person review). Worth doing regardless, but no rush to hit the exact number while those block the badge.
68+
5769
## Agent Client Protocol (ACP) for Zed and other ACP-aware tools
5870

5971
**Status**: distinct from MCP; tracked separately for a future minor once a real Zed-side use case shows up.

0 commit comments

Comments
 (0)