Skip to content

ci: default reusable AI report gaze-version to v2.4.0 - #335

Merged
uf-divisor merged 6 commits into
mainfrom
bump-ai-report-default-v2.4.0
Nov 14, 2026
Merged

uf-divisor merged 6 commits into
mainfrom
bump-ai-report-default-v2.4.0

Conversation

@jflowers

Copy link
Copy Markdown
Collaborator

Summary

  • Changes the gaze-version input default in .github/workflows/reusable_gaze_ai_report.yml from v2.2.0 to v2.4.0. A comment next to the default says it must equal the release tag that ships the file.
  • Updates docs/guides/ci-integration.md (inputs table and spec 040 note) and adds an AGENTS.md Recent Changes entry.
  • Adds the OpenSpec change openspec/changes/bump-ai-report-default-v2.4.0/.

Why

A tag bakes in its own copy of the workflow's input defaults. If v2.4.0 is tagged while the default is still v2.2.0, every caller pinned to @v2.4.0 that omits gaze-version keeps running the pre-spec-040 adapter. That adapter can publish agent narration as a passing report (runs 41309423609 and 41698377720).

The precondition from #317 is met. Run 43251427781 on main built gaze from source (dev-e53867eda330) and published the full spec 040 report.

This PR's merge commit is the one to tag v2.4.0. Until the tag exists, a caller pinned to @main would fail at go install. Cut the release right after merging.

Refs #313. Close it once a caller pinned to @v2.4.0 is confirmed to install v2.4.0.

Verification

  • yamllint: clean.
  • actionlint: only the two existing SC2086 info findings in the "Run gaze AI report" step, which are unchanged from main.
  • markdownlint-cli2 on the changed docs: 0 issues.
  • go test ./internal/scaffold/: pass. The scaffold goldens already expect v2.4.0.
  • The dogfood job is unaffected, because test.yml uses build-from-source: true.

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

✅MegaLinter analysis: Success

Descriptor Linter Files Fixed Errors Warnings Elapsed time
✅ MARKDOWN markdownlint 2 0 0 0 1.49s
✅ REPOSITORY gitleaks yes no no 4.5s
✅ REPOSITORY git_diff yes no no 0.26s
✅ YAML yamllint 4 0 0 0.9s

See detailed reports in MegaLinter artifacts
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

uf-divisor
uf-divisor previously approved these changes Nov 13, 2026

@uf-divisor uf-divisor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Council verdict: APPROVE WITH ADVISORIES

Summary

This PR bumps the gaze-version input default in reusable_gaze_ai_report.yml from v2.2.0 to v2.4.0 so the imminent v2.4.0 tag bakes in the spec-040 deterministic-reporting adapter for callers pinned to @v2.4.0 that omit gaze-version, and records the keep-equal-to-release-tag rule in a comment beside the default. Docs updates and a complete OpenSpec change (openspec/changes/bump-ai-report-default-v2.4.0/) accompany the one-value change.

The change matches its stated intent exactly, is the necessary precondition for tagging v2.4.0 (this merge commit is the one to tag), and carries no CRITICAL or HIGH findings. All six review personas approved (adversary, architect, curator, entropy, guard: APPROVE; sre: APPROVE WITH ADVISORIES).

Findings

[MEDIUM] Stale consumer example contradicts the new availability note — docs/guides/ci-integration.md:355

The page's only complete consumer example still pins uses: unbound-force/gaze/.github/workflows/[email protected] and omits gaze-version. GitHub resolves input defaults from the workflow file at the pinned tag, and v2.3.0 shipped with the v2.2.0 default — the pre-spec-040 adapter. A consumer who copies this example installs exactly the binary whose opencode adapter can publish agent narration as a passing report (runs 41309423609, 41698377720), the incident this change exists to eliminate. The rewritten availability note (lines 163–167) now warns against the configuration the example demonstrates. Raising the example's pin to @v2.4.0 once tagged, or setting gaze-version explicitly — which matches what gaze init --ci emits and survives re-tagging — resolves the contradiction.

[LOW] Keep-equal rule relies on comment only — inline on .github/workflows/reusable_gaze_ai_report.yml

See the inline comment at the default: block. Filing a follow-up issue for the deferred release-time check would keep the obligation visible once #313 closes.

Verification

  • yamllint on both changed YAML files: clean; repo-wide failures are pre-existing in tool-managed files untouched by this PR
  • actionlint on the changed workflow: only the two pre-existing SC2086 info findings at line 153, unchanged from main
  • go test -race -count=1 -short ./internal/scaffold/: pass (goldens already expect v2.4.0)
  • No CI checks reported on the branch at review time

This review was generated by /uf.review-pr (AI-assisted).

jflowers added a commit that referenced this pull request Nov 13, 2026
Callers pinned to a tag inherit the reusable workflow's gaze-version
default, and the dogfood job builds from source, so CI never notices a
stale default. Add an offline release gate (validate-ai-report-default.sh,
modeled on validate-workflow-floor.sh) that requires the default to equal
the release tag, run it before preflight in release.yml, and test it in
test.yml. Addresses uf-divisor review on #335.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uf-divisor
uf-divisor self-requested a review November 13, 2026 18:19
jflowers and others added 5 commits November 13, 2026 13:20
Callers pinned to @v2.4.0 that omit gaze-version get the default baked
into that tag; with v2.2.0 they would run the pre-spec-040 adapter that
can publish agent narration as a passing report. This commit is the one
to tag v2.4.0. Refs #313.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Callers pinned to a tag inherit the reusable workflow's gaze-version
default, and the dogfood job builds from source, so CI never notices a
stale default. Add an offline release gate (validate-ai-report-default.sh,
modeled on validate-workflow-floor.sh) that requires the default to equal
the release tag, run it before preflight in release.yml, and test it in
test.yml. Addresses uf-divisor review on #335.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@jflowers
jflowers force-pushed the bump-ai-report-default-v2.4.0 branch from 161ace5 to d2ea0e1 Compare November 13, 2026 18:22
uf-divisor
uf-divisor previously approved these changes Nov 13, 2026

@uf-divisor uf-divisor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Council Verdict: APPROVE WITH ADVISORIES

The /uf.review-pr council (6 reviewers: adversary, architect, curator, entropy, guard, sre) reviewed this PR. All six returned approve-level verdicts; three MEDIUM documentation-consistency advisories and one LOW note remain — none block the merge.

What this PR does: bumps the gaze-version input default of .github/workflows/reusable_gaze_ai_report.yml from v2.2.0 to v2.4.0 (the first release containing spec 040's deterministic report rendering) and adds an offline release gate enforcing that the default always equals the release tag: .github/scripts/validate-ai-report-default.sh (awk parser, exact equality including pre-releases, exit taxonomy mirroring validate-module-major.sh), a validate-ai-report-default job in release.yml gating preflight, and a test suite in test.yml.

Verification:

  • CI: all 6 checks pass (Unit + Integration Go 1.24/1.25, E2E both legs, MegaLinter, Gaze AI Report dogfood).
  • Local: shellcheck clean on both new scripts; actionlint reports only the 2 pre-existing SC2086 info notes in the "Run gaze AI report" step (verified identical on the base commit); no Go files changed.
  • Spec: the OpenSpec change bump-ai-report-default-v2.4.0 requirements are met by the diff — default matches the release tag, and the release fails on mismatch (stale-default and unparsable scenarios covered). Tasks 3.3 (tag the merge commit v2.4.0) and 3.4 (confirm a @v2.4.0 caller, then close #313) are correctly left as post-merge steps.

Advisories (details in inline comments):

  1. MEDIUM docs/guides/ci-integration.md:163 — the availability note and inputs table now say v2.4.0, but the consumer example (~line 355) still pins @v2.3.0 without gaze-version; copying it installs the unvalidated adapter path this change closes. One-line fix.
  2. MEDIUM AGENTS.md CI/CD section (~line 493) — the Release entry still says "Two local gates" and omits validate-ai-report-default; release.yml now says three. The contradiction surfaces exactly when an operator is diagnosing a blocked release. One-line fix.
  3. LOW .github/scripts/validate-ai-report-default.sh:1 — mapfile requires bash 4+; macOS system bash is 3.2. The header lacks a minimum-interpreter note (sibling gate scripts share the precedent).

The two MEDIUM items are cheap one-liners worth landing before tagging v2.4.0.

This review was generated by /uf.review-pr (AI-assisted).

Comment thread docs/guides/ci-integration.md Resolved
Comment thread AGENTS.md Resolved
- ci-integration.md consumer example pins @v2.4.0 and passes
  gaze-version explicitly, matching the new default.
- AGENTS.md Release item lists all three pre-preflight gates.
- New gate scripts note their bash 4+ (mapfile) requirement.

Addresses uf-divisor review on #335.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@uf-divisor
uf-divisor merged commit bff29c8 into main Nov 14, 2026
6 checks passed
@uf-divisor
uf-divisor deleted the bump-ai-report-default-v2.4.0 branch November 14, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants