feat: add coverage-report.sh with tests#12
Merged
mpawliszyn merged 1 commit intomainfrom Feb 26, 2026
Merged
Conversation
7320b2d to
b3ca3ad
Compare
Shell script to generate a coverage summary from review-tree.md.
Read-only, no file mutations. Output is structured markdown with
a documented format contract for the orchestrator.
Reports:
- Node counts: pending, reviewed, accepted, total
- Progress: decided/total with percentage
- Confidence: examined in detail (reviewed) vs pattern-trusted (accepted)
- Nodes with comments (flag-precise pattern), top-level concept count
- File coverage: files in diff, files mapped, unmapped
- Pending nodes list (only shown if any remain)
Fixes from review:
- Node-counting greps require [0-9] after status to prevent context
block inflation (I1)
- Comment flag pattern uses \{[^}]*comment\} for precision
- File coverage data extracted from tree's Coverage section (E1)
- Progress percentage added (E2)
- Output format documented in script header as contract
18 bats tests covering:
- Status counts, progress percentage, comment count
- Confidence summary, top-level count, file coverage
- Pending nodes (listed when present, hidden when none)
- Section headers, input validation
- Context inflation protection (regression test)
- Edge cases (all pending with 0%, all reviewed with 100%)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
b3ca3ad to
4c58345
Compare
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
Generates a coverage summary from
review-tree.md. Third script in Phase 1.Script interface
Outputs structured markdown with:
Tests (14)
158 total tests across all suites.