feat: add ledger digest layer to specflow-watch review section (#183)#185
Merged
skr19930617 merged 1 commit intoApr 25, 2026
Conversation
Extend the specflow-watch TUI's Review section with a ledger-backed digest rendered below the existing snapshot progress lines. The digest reads the family-mapped review-ledger file (design or apply) using a tolerant reader with full-schema validation, and renders decision, counts, open-severity breakdown, and a ranked top-3 of open findings (severity → latest_round DESC → id ASC). Below 80 columns the findings list collapses and other digest lines truncate with an ellipsis. The latest-summary line is omitted per the spec scenario "Latest round summary missing elides the line" because no compliant persisted narrative source exists in the current ledger contract; a future change can extend LedgerRoundSummary. The digest layer is independent from the snapshot progress layer; either can render alone. The watcher remains strictly read-only — no new writes, no orchestration imports, no new observation events. The import-graph guard is unchanged. Issue: #183
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
specflow-watchReview section, rendered below the existing snapshot progress lines without altering snapshot behavior.review-ledger-design.json/review-ledger.jsonwith full-schema validation, decision parity check, and tighterReviewFindingvalidation (id/title/severity/status required).selectActiveReviewLedger) mirrors the snapshot family rule; digest ishiddenfor non-review phases.latest_roundDESC →idASC.…) instead of wrapping.Latest summary:line per the spec scenario "Latest round summary missing elides the line"; a Phase 2 follow-up can add a persisted narrative source.Test plan
npm test— 953 tests passround_summaries/ decision-parity violation / finding-missing-required-fieldcritical→ HIGH, ranking ties, summaryState absentIssue
Closes #183