Repository navigation
Project improvements: docs, TODO #6 fix, GazeCRAP pipeline wiring - #9
Merged
Merged
Conversation
…tails Add documentation for quality, schema, docscan, and self-check commands. Add missing flags for analyze (--classify, --interactive, --verbose, --config, threshold overrides) and crap (--gaze-crap-threshold). Add P3/P4 tiers to side effect table, missing internal packages to architecture section, and explicit Apache 2.0 license reference.
Specs are project artifacts that should be visible at the top level, not buried inside the .specify dotfile directory. Updates all 17 references across AGENTS.md, reviewer agents, doc-classifier agent, and spec files themselves.
…orce#6) Replace SSA register name matching with types.Object identity bridging. The mapping engine now finds the AST assignment statement containing the target call and maps LHS identifiers to return value side effects by index position. Assertion expressions are matched via TypesInfo.Uses object identity. Also adds closure traversal in FindTargetCall to support table-driven tests with t.Run sub-tests. Mapping accuracy: 0% -> 73.8% (31/42). Remaining unmapped assertions are in helper functions and testify field-access patterns.
Add buildContractCoverageFunc() that runs the quality pipeline (analyze -> classify -> assess) across all target packages and builds a ContractCoverageFunc callback for crap.Options. Both runCrap() and runSelfCheck() now attempt to compute contract coverage before CRAP analysis. If the quality pipeline fails for any package (no tests, config errors), those packages are silently skipped and classic CRAP is used as fallback. The coverage lookup uses compound keys (shortPkg:qualifiedName) to disambiguate across packages. Multiple tests exercising the same target use the maximum coverage value.
Add .markdownlint.json and .yamllint.yml config files so markdownlint and yamllint run with project-appropriate rules instead of overly strict defaults. Fix unlabeled fenced code blocks (MD040) in AGENTS.md and README.md, and exclude specs/ planning docs from markdownlint.
Revive flagged the parameter as unused. It was passed through from MapAssertionsToEffects but never referenced in the function body.
golangci-lint already covers Go linting comprehensively. Revive ran in per-file mode causing false positives for package-comments (Go only requires one package doc comment, not one per file). Removing it aligns CI with the local 'golangci-lint run' command documented in AGENTS.md.
6 tasks
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
- 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
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)
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)
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
Changes by commit
Testing
TODO #6 Technical Details
Problem: matchAssertionToEffect() matched AST variable names (got, err) against SSA register names (t0, t1) -- these domains never intersect.
Fix: Three-part approach:
Bonus: FindTargetCall now traverses MakeClosure instructions, supporting table-driven tests with t.Run sub-tests.
Remaining gap (11/42 unmapped): Helper function assertions and testify field-access patterns. These require parameter-to-argument tracing and selector expression decomposition -- tracked for future improvement.