Repository navigation
ci: default reusable AI report gaze-version to v2.4.0 - #335
Conversation
✅MegaLinter analysis: Success
See detailed reports in MegaLinter artifacts |
uf-divisor
left a comment
There was a problem hiding this comment.
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).
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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]>
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]>
161ace5 to
d2ea0e1
Compare
uf-divisor
left a comment
There was a problem hiding this comment.
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.0requirements 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 commitv2.4.0) and 3.4 (confirm a@v2.4.0caller, then close #313) are correctly left as post-merge steps.
Advisories (details in inline comments):
- MEDIUM
docs/guides/ci-integration.md:163— the availability note and inputs table now sayv2.4.0, but the consumer example (~line 355) still pins@v2.3.0withoutgaze-version; copying it installs the unvalidated adapter path this change closes. One-line fix. - MEDIUM
AGENTS.mdCI/CD section (~line 493) — the Release entry still says "Two local gates" and omitsvalidate-ai-report-default;release.ymlnow says three. The contradiction surfaces exactly when an operator is diagnosing a blocked release. One-line fix. - LOW
.github/scripts/validate-ai-report-default.sh:1—mapfilerequires 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).
- 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]>

Summary
gaze-versioninput default in.github/workflows/reusable_gaze_ai_report.ymlfromv2.2.0tov2.4.0. A comment next to the default says it must equal the release tag that ships the file.docs/guides/ci-integration.md(inputs table and spec 040 note) and adds anAGENTS.mdRecent Changes entry.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.0is tagged while the default is stillv2.2.0, every caller pinned to@v2.4.0that omitsgaze-versionkeeps 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
mainbuilt 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@mainwould fail atgo install. Cut the release right after merging.Refs #313. Close it once a caller pinned to
@v2.4.0is 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 frommain.markdownlint-cli2on the changed docs: 0 issues.go test ./internal/scaffold/: pass. The scaffold goldens already expectv2.4.0.test.ymlusesbuild-from-source: true.🤖 Generated with Claude Code