Repository navigation
docs(spec-004): retroactive bookkeeping and review council fixes - #2
Merged
Merged
Conversation
Documents the implementation that landed on main via commits 4b37981, 5ea4085, 58b2da5, and 2d67f76 before the Speckit pipeline was established. - plan.md: architecture, design decisions, dependency graph, scope matrix, success criteria mapping, and test coverage summary - tasks.md: 55 tasks across 7 phases; Phases 1–6 complete ([x]), Phase 7 tracks deferred work (GazeCRAP activation, FR-015 warning, self-check command)
…sonnet-4-6@default
- Remove dead Options.MaxCRAPload/MaxGazeCRAPload fields (zero-waste) - Promote testFileRegexp to package-level var (efficiency) - Add ParseCoverProfile stderr param for warning on unparseable files - Add Options.Stderr io.Writer for testable warning path - Add Summary stub-wire fields: AvgGazeCRAP, AvgContractCoverage, WorstGazeCRAP - Fix AvgContractCoverage denominator and WorstGazeCRAP nil filtering - Implement FR-015 stderr warning when GazeCRAP unavailable - Add 21-case TestFormula_BenchmarkSuite (SC-001: 28 total pairs) - Add TestBuildSummary_WithGazeCRAP covering GazeCRAP summary path - Fix import grouping in crap_test.go - Document funcCoverage sorted-blocks assumption - Update plan.md and tasks.md to reflect all changes
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts |
…is packages Handle return values from fmt.Fprintf/Fprintln (display output), os.Remove (best-effort cleanup), file Close (deferred), and types.Signature type assertion to satisfy golangci-lint errcheck.
jflowers
added a commit
that referenced
this pull request
Aug 13, 2026
- Fix skipped test data missing from report pipeline quality JSON: BuildPackageSummary only aggregates report-level data, so SkippedTests/SkippedTestNames are now set post-hoc in runQualityStep and propagated through ReportSummary (#2, #5) - Add combined threshold test for --min-contract-coverage + --max-over-specification both set on empty results (#1) - Add divergence edge case test: SkippedTests > len(SkippedTestNames) verifies defensive guard prevents out-of-bounds (#3) - Extract shared MaxSkippedTestDisplay constant from quality package, replacing duplicate magic 20 in main.go and report.go (#6) - Move totalTestFuncs computation inside text format branch where it is actually used (#8) - Wrap WriteJSON/WriteText errors with context per CS-006 (#9) - Filed follow-up issue #219 for multi-package mixed BDD+normal scenario test (#4)
2 tasks
em-redhat
pushed a commit
to em-redhat/gaze
that referenced
this pull request
Sep 1, 2026
- Fix skipped test data missing from report pipeline quality JSON: BuildPackageSummary only aggregates report-level data, so SkippedTests/SkippedTestNames are now set post-hoc in runQualityStep and propagated through ReportSummary (unbound-force#2, unbound-force#5) - Add combined threshold test for --min-contract-coverage + --max-over-specification both set on empty results (unbound-force#1) - Add divergence edge case test: SkippedTests > len(SkippedTestNames) verifies defensive guard prevents out-of-bounds (unbound-force#3) - Extract shared MaxSkippedTestDisplay constant from quality package, replacing duplicate magic 20 in main.go and report.go (unbound-force#6) - Move totalTestFuncs computation inside text format branch where it is actually used (unbound-force#8) - Wrap WriteJSON/WriteText errors with context per CS-006 (unbound-force#9) - Filed follow-up issue unbound-force#219 for multi-package mixed BDD+normal scenario test (unbound-force#4)
jflowers
added a commit
that referenced
this pull request
Oct 2, 2026
Declare cognitive_complexity and gaze_crap_cc on Score and cognitive_complexity_total/cognitive_complexity_exceeded on Summary so JSON output validates against the schema. Addresses PR #294 review feedback from @jflowers (finding #2). Signed-off-by: Jay Flowers <[email protected]> Assisted-by: deepseek-v4-pro
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
plan.mdandtasks.mdfor Spec 004 (CRAP composite metrics), documenting the already-implemented feature with full traceability to spec requirementsReview Council
The
/review-councilcommand ran 3 iterations before all three reviewers (Adversary, Architect, Guard) returned APPROVE:Iteration 1 — 12 findings across all reviewers:
Options.MaxCRAPload/MaxGazeCRAPloadfields (zero-waste)regexp.MustCompileto package-level var (efficiency)ParseCoverProfilestderr warning on unparseable filesSummarystub-wire fields (AvgGazeCRAP,AvgContractCoverage,WorstGazeCRAP)TestFormula_BenchmarkSuite(SC-001: 28 total hand-computed pairs)funcCoveragesorted-blocks assumptionIteration 2 — 6 findings:
AvgContractCoveragedenominator mismatch (latent accuracy bug)WorstGazeCRAPnil-entry contaminationOptions.Stderr io.Writerfor testable warning path (replaced hard-wiredos.Stderr)TestBuildSummary_WithGazeCRAPcovering the GazeCRAP summary code pathIteration 3 — All three reviewers APPROVE. 5 LOW-priority carry-forward items documented.
Changes
.specify/specs/004-composite-metrics/plan.md— new (retroactive implementation plan).specify/specs/004-composite-metrics/tasks.md— new (retroactive task list)internal/crap/analyze.go— Options cleanup,Stderrfield,buildSummaryfixesinternal/crap/crap.go— Summary stub-wire fieldsinternal/crap/coverage.go—ParseCoverProfilestderr paraminternal/crap/crap_test.go— 21-case formula suite + GazeCRAP summary testcmd/gaze/main.go— FR-015 warning, dead field removal.opencode/agents/reviewer-*.md— model reference updateAll tests pass:
go test -race -count=1 ./...