Skip to content

Feature: Publish Gaze as standalone CI tool #208

Closed

Description

@trevor-vaughan

Problem

Gaze's contract coverage capability (15,536 LOC production, 21,734 LOC tests) is genuinely unique in the Go ecosystem — it measures what percentage of a function's contractual side effects are verified by test assertions, not just executed. This goes beyond standard coverage tools and has no functional equivalent.

Currently, Gaze is part of the UF stack. Publishing it as a standalone tool would increase its visibility and let teams adopt it independently — especially those who primarily need its CI value (deterministic threshold gates via --max-crapload and --min-contract-coverage) rather than the full UF experience.

Proposed Solution

Package and publish Gaze as an independent Go tool with its own CI/CD pipeline, documentation, and release process. Position it as a CI tool first — threshold enforcement is the core value — with local usage and the optional --ai formatting flag as secondary.

Acceptance Criteria

  • Create standalone packaging (separate go module / repo or clearly independent install path)
  • Position as a CI tool: document threshold gates (--max-crapload, --min-contract-coverage) as primary use case
  • Add CI/CD integration documentation (GitHub Actions, GitLab CI examples)
  • Publish metrics threshold configuration guides
  • Promote as an independent Go tool (README, examples, quickstart)
  • Ensure Gaze continues to work within the UF stack as before
  • Document the distinction between deterministic analysis (always) and AI formatting (optional)

Activity

  1. jflowers commented on Jun 12, 2026

    @jflowers
    Contributor

    Thanks for filing this, Trevor! Great news — Gaze is actually already published as a standalone tool with all of the capabilities described here. Here's a quick rundown:

    Standalone repository & module
    Gaze lives at unbound-force/gaze as its own Go module (github.com/unbound-force/gaze), fully independent from the UF monorepo.

    Installation

    • Homebrew: brew install unbound-force/tap/gaze
    • Go install: go install github.com/unbound-force/gaze/cmd/gaze@latest
    • Binary downloads: Cross-platform binaries (darwin/linux × amd64/arm64) are published via GoReleaser on every release, including macOS code signing and notarization.

    CI threshold gates (the core value)
    All three deterministic threshold flags are available today:

    • --max-crapload — fail if CRAPload exceeds N
    • --max-gaze-crapload — fail if GazeCRAPload exceeds N
    • --min-contract-coverage — fail if contract coverage drops below N%

    These work without any AI dependency — purely deterministic, no API keys needed.

    CI integration documentation
    There's a dedicated CI Integration Guide (~300 lines) covering GitHub Actions examples (minimal threshold-only and full AI report workflows), coverage profile reuse via --coverprofile, threshold tuning guidance, baseline comparison for regression detection, and troubleshooting.

    Self-hosting
    Gaze dogfoods its own threshold gates in its own CI pipeline — you can see this in action in the test workflow.

    AI formatting is optional
    The --ai flag on gaze report is entirely optional. Without it, all analysis is deterministic and runs without external dependencies.

    I think this issue can be closed since the work is already in place. If there's something more specific you had in mind — like a GitHub Actions Marketplace entry, a Docker image, or broader visibility efforts — happy to discuss that as a separate, more targeted issue!

  2. trevor-vaughan commented on Jun 12, 2026

    @trevor-vaughan
    Author

    Closing as addressed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions