Skip to content

feat(judge): add --summary to print the verdict without the per-finding list - #24

Merged
JorgeOlmosDev merged 1 commit into
mainfrom
feat/judge-summary-flag
Jul 13, 2026
Merged

feat(judge): add --summary to print the verdict without the per-finding list#24
JorgeOlmosDev merged 1 commit into
mainfrom
feat/judge-summary-flag

Conversation

@JorgeOlmosDev

Copy link
Copy Markdown
Contributor

Problem

gavel judge always dumps every finding file-by-file — 213 lines on a 146-finding project — then the verdict. --quick doesn't help: it narrows which checks run (skips coverage + architecture), not the output, so the finding list is just as long. The result buries the verdict and the new-vs-baseline delta, and floods CI logs.

(--quick = analysis scope · output verbosity = a different axis entirely.)

Fix

--summary keeps the verdict, the delta (N new · M fixed · K existing), and the per-dimension rulings, but omits the per-finding list and the coverage-by-directory tree.

$ gavel judge --quick --summary        # 213 lines → 13
⚖  VERDICT: FAIL — 146 findings — api-gateway  (6s)
  1 new · 1 fixed · 145 existing
  ├─ code_quality: FAIL — 1 errors (max 0)
  ├─ coverage: PASS
  ├─ architecture: PASS
  └─ tool_execution: PASS

--quick and --summary are orthogonal and compose. Verdict, exit code, and JSON output (--json) are all unchanged — this only gates the human finding-list render.

Tests (TDD)

  • TestEmitResults_SummaryOmitsFindingList: default output lists findings; --summary omits them but still shows the verdict.
  • Flag added to clispec/v1/clispec.yaml; flags.gen.go regenerated (make clispec-gen); clispec integration tests pass.

…ng list

gavel judge always dumps every finding file-by-file — 213 lines on a
146-finding project — even with --quick, which only narrows *which checks
run*, not the output. That buries the verdict and the new-vs-baseline delta,
and floods CI logs.

--summary keeps the verdict, the delta, and the per-dimension rulings but
omits the per-finding list and the coverage-by-directory tree: 213 lines
collapse to 13. --quick controls analysis scope; --summary controls output
verbosity — orthogonal, composable (`gavel judge --quick --summary`).
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@github-actions

Copy link
Copy Markdown

Gavel verdict

Project Verdict New Fixed Coverage
cli ✅ pass 0 0 94.0%
core ✅ pass 0 0 94.0%
server ✅ pass 0 0 94.0%
tools ✅ pass 0 0 94.0%
web ✅ pass 0 0 94.0%

@JorgeOlmosDev
JorgeOlmosDev merged commit adc97c8 into main Jul 13, 2026
10 checks passed
@JorgeOlmosDev
JorgeOlmosDev deleted the feat/judge-summary-flag branch July 13, 2026 07:31
JorgeOlmosDev added a commit that referenced this pull request Jul 13, 2026
…ng list (#24)

gavel judge always dumps every finding file-by-file — 213 lines on a
146-finding project — even with --quick, which only narrows *which checks
run*, not the output. That buries the verdict and the new-vs-baseline delta,
and floods CI logs.

--summary keeps the verdict, the delta, and the per-dimension rulings but
omits the per-finding list and the coverage-by-directory tree: 213 lines
collapse to 13. --quick controls analysis scope; --summary controls output
verbosity — orthogonal, composable (`gavel judge --quick --summary`).
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