Repository navigation
docs(spec-003): clarify, plan, and tasks for test quality metrics - #3
Merged
Merged
Conversation
- clarify.md: Resolved 6 ambiguities, 6 design decisions, 4 assumptions Key decisions: gaze quality subcommand, call graph inference for test-target pairing, full SSA data flow for assertion mapping - plan.md: 7-phase implementation plan with constitution check - tasks.md: 66 tasks across 7 phases (types, pairing, detection, SSA mapping, metrics, CLI, validation) - Updated Spec 004 T050 to reference quality package integration
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts |
Add internal/quality/ package with SSA-based assertion-to-side-effect mapping, contract coverage computation, over-specification detection, and the gaze quality CLI subcommand. Phases 1-6 complete (57/66 tasks). Remaining: T032 (discarded returns), T052 (CLI integration tests), T058 (multilib fixture), acceptance tests (SC-001/002/003/005/007), and benchmarks. Review council approved after fixing 15 findings: deterministic sorting, per-test threshold semantics, visited-key collision in t.Run detection, DRY violation (HasTestSyntax), QualitySchema validation tests, per-pair Duration timing, and error handling conventions.
jflowers
added a commit
to jflowers/gaze
that referenced
this pull request
Aug 12, 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, unbound-force#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 (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
to jflowers/gaze
that referenced
this pull request
Aug 13, 2026
…nbound-force#4, unbound-force#7) - Align quality zero-result error message to match gaze crap pattern: 'no test-target pairs resolved — cannot evaluate thresholds' (unbound-force#7) - Add TestMergeSummaries_SkippedTestsDivergence to exercise defensive guard when SkippedTests > len(SkippedTestNames) (unbound-force#3) - Add TestMergeSummaries_MultiPackage_AggregatesSkipped for mergeSummaries aggregation coverage - Add TestRunQuality_MixedBDDAndNormalPackages for mixed BDD + normal multi-package scenario (unbound-force#4) - Update 3 existing test assertions for new error message wording
jflowers
added a commit
to jflowers/gaze
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, unbound-force#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 (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
to jflowers/gaze
that referenced
this pull request
Aug 13, 2026
…nbound-force#4, unbound-force#7) - Align quality zero-result error message to match gaze crap pattern: 'no test-target pairs resolved — cannot evaluate thresholds' (unbound-force#7) - Add TestMergeSummaries_SkippedTestsDivergence to exercise defensive guard when SkippedTests > len(SkippedTestNames) (unbound-force#3) - Add TestMergeSummaries_MultiPackage_AggregatesSkipped for mergeSummaries aggregation coverage - Add TestRunQuality_MixedBDDAndNormalPackages for mixed BDD + normal multi-package scenario (unbound-force#4) - Update 3 existing test assertions for new error message wording
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)
jflowers
added a commit
that referenced
this pull request
Aug 13, 2026
- Align quality zero-result error message to match gaze crap pattern: 'no test-target pairs resolved — cannot evaluate thresholds' (#7) - Add TestMergeSummaries_SkippedTestsDivergence to exercise defensive guard when SkippedTests > len(SkippedTestNames) (#3) - Add TestMergeSummaries_MultiPackage_AggregatesSkipped for mergeSummaries aggregation coverage - Add TestRunQuality_MixedBDDAndNormalPackages for mixed BDD + normal multi-package scenario (#4) - Update 3 existing test assertions for new error message wording
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)
em-redhat
pushed a commit
to em-redhat/gaze
that referenced
this pull request
Sep 1, 2026
…nbound-force#4, unbound-force#7) - Align quality zero-result error message to match gaze crap pattern: 'no test-target pairs resolved — cannot evaluate thresholds' (unbound-force#7) - Add TestMergeSummaries_SkippedTestsDivergence to exercise defensive guard when SkippedTests > len(SkippedTestNames) (unbound-force#3) - Add TestMergeSummaries_MultiPackage_AggregatesSkipped for mergeSummaries aggregation coverage - Add TestRunQuality_MixedBDDAndNormalPackages for mixed BDD + normal multi-package scenario (unbound-force#4) - Update 3 existing test assertions for new error message wording
jflowers
added a commit
to jflowers/gaze
that referenced
this pull request
Oct 2, 2026
Wire the Go cognitive complexity provider in the crap Go path, add the --max-cognitive-complexity flag to gaze analyze with exit-code gating, and surface the cognitive gate in printCISummary. Addresses PR unbound-force#294 review feedback from @jflowers (findings unbound-force#3 and unbound-force#4). Signed-off-by: Jay Flowers <[email protected]> Assisted-by: deepseek-v4-pro
jflowers
added a commit
that referenced
this pull request
Oct 2, 2026
Wire the Go cognitive complexity provider in the crap Go path, add the --max-cognitive-complexity flag to gaze analyze with exit-code gating, and surface the cognitive gate in printCISummary. Addresses PR #294 review feedback from @jflowers (findings #3 and #4). 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
clarify.md,plan.md,tasks.mdfor Test Quality Metrics & Reportingquality.ContractCoverageForFunc()integration boundaryKey Decisions
gaze qualitysubcommandSpec Commit Gate
Per AGENTS.md, spec artifacts must be committed and pushed before implementation begins.