Skip to content

feat: wire --analyzer to gaze quality for external test_mapping (GazeCRAP + contract coverage) #229

Description

@yvonnedevlinrh

Background

gaze quality --analyzer was scoped in #95 alongside analyze, crap, and report.
Phase 2 (#178) delivered crap and report but explicitly deferred quality:
the --analyzer / --language flags are registered in cmd/gaze/main.go but
hidden from help and return an error if passed.

With #237 (callAndUnmarshal helper in internal/adapter/) and #238 (safeSSABuild
consolidated in internal/ssaguard/) now merged, the infrastructure blockers are gone.
The protocol is also complete: test_mapping is fully specified in protocol v1.1.0
(response schema, capability handshake, GazeCRAP integration, graceful degradation).
There is no longer a research/feasibility question — this is an implementation issue.

What's missing

Gaze side (this issue)

  1. Unhide --analyzer and --language in cmd/gaze/quality.go
  2. After detecting external-analyzer capability via initialize, wire the adapter to call
    test_mapping using the new callAndUnmarshal helper from refactor: extract generic callAndUnmarshal helper in internal/adapter/ #237
  3. Feed the returned {mappings:[...]} into the GazeCRAP scoring path in place of the
    Go SSA test-pairing output
  4. Fix the inaccuracy in website#227 / website#165 (these pages list quality as
    supporting --analyzer, which has never been true)

Snake-eyes side (separate issue)

Snake-eyes declares test_mapping: false in initialize and returns -32601 for
the method. Implementing pytest assertion → target-function → side-effect mapping
is scoped as a separate snake-eyes issue.

Acceptance criteria

  • gaze quality --analyzer snake-eyes --language python -- ./... runs against a Python
    project and produces a quality report (or a clear graceful-degradation message when
    test_mapping is unavailable)
  • When test_mapping is available (future snake-eyes issue), GazeCRAP scores are
    equivalent in structure to Go-based GazeCRAP scores
  • The --analyzer flag appears in gaze quality --help
  • CI green on existing Go quality tests (no regression)

References

Activity

  1. moved this from Ready 🚀 to Backlog in Unbound Force Planningon Aug 20, 2026
  2. added
    enhancement
    on Aug 20, 2026
  3. added this to the v1.5.0 milestone on Aug 31, 2026
  4. changed the title [-]spike: evaluate --analyzer support for gaze qualit[/-] [+]feat: wire --analyzer to gaze quality for external test_mapping (GazeCRAP + contract coverage)[/+] on Aug 31, 2026
  5. added a commit that references this issue on Aug 31, 2026
    03b510b
  6. moved this from Backlog to In Progress 📋 in Unbound Force Planningon Sep 1, 2026
  7. moved this from In Progress 📋 to Ready for Review 👀 in Unbound Force Planningon Sep 1, 2026
  8. added 4 commits that reference this issue on Sep 1, 2026
    e6b54bf
    ec42519
    ebc2fe5
    8e34cba
  9. added 2 commits that reference this issue on Sep 15, 2026
    1b79206
    c2e61d0
  10. added 2 commits that reference this issue on Sep 21, 2026
    26fd243
    fd2399d
  11. added 2 commits that reference this issue on Sep 21, 2026
    a8255b4
    d150eb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions