Repository navigation
Description
What changed
gaze init --ci now enforces a per-variant minimum version (floor) on the --gaze-version pin instead of applying one floor to every project type. Go repositories (detected via go.mod) keep the v2.3.0 floor — the first release containing the reusable AI-report workflow. Node repositories (package.json) and Python repositories (pyproject.toml) get a v2.7.0 floor — the first release whose reusable workflow defines the external-analyzer inputs their templates pass (analyzer, packages, setup, node-version, python-version).
Previously a pin between the two floors was accepted in a Node or Python repository: gaze init --ci --gaze-version v2.6.0 scaffolded a caller pinned to [email protected], and GitHub rejected that workflow at load time because its with: block names inputs the called workflow does not define. The consumer's AI report never ran, and the failure surfaced far from the command that caused it. That invocation now fails closed at scaffold time, before any file is written, with the variant and both remedies in the error:
gaze version "v2.6.0" cannot pin the Node CI workflow: its analyzer inputs first ship in v2.7.0; install gaze from a release tag (>= v2.7.0) or pass --gaze-version
The Python variant produces the same message with "Python" in place of "Node". Go repositories keep the existing message and floor byte-identical:
gaze version "v2.2.0" cannot pin the CI workflow: the reusable AI-report workflow first ships in v2.3.0; install gaze from a release tag (>= v2.3.0) or pass --gaze-version
Why it matters
The failure moves from GitHub workflow load time — where its connection to gaze init is invisible — to scaffold time, with an error naming the variant's floor and the two fixes: install a release tag at or above the floor, or pass --gaze-version with one. No currently-working invocation stops working. Pins between v2.3.0 and v2.6.x in Node/Python repositories never produced a runnable workflow, the default pin (the binary's own version) is always valid, and Go repository behavior is unchanged for every input.
Pages needing updates
- The
gaze initCLI reference (mirrors gaze'sdocs/reference/cli/init.md): the--gaze-versionflag row and the version-pinning paragraph need the per-variant floors (v2.3.0 Go, v2.7.0 Node/Python) with the analyzer-inputs reason; the fail-closed example section should add the Node rejection above alongside the existing Go example - The CI integration guide (mirrors gaze's
docs/guides/ci-integration.md): the scaffolded-install section needs the enforced per-variant minimum, and the external-analyzer inputs paragraph — previously advisory ("keep theuses:pin at or above the release that introduced the inputs you pass") — should state thatgaze init --cienforces this floor at scaffold time
References
- Upstream epic: Epic: non-Go (external analyzer) follow-ups after v2.7.0 gaze#449
- Pin-validation gap identified in: feat: enforce a variant-specific workflow-pin floor for Node/Python CI scaffolding gaze#419
- External-analyzer inputs, first shipped in v2.7.0: feat: CI support for external analyzers (non-Go repos) in the reusable AI-report workflow and gaze init --ci gaze#375
- Gaze change:
openspec/changes/gaze-init-ci-gaze-version-floor-is-v2-3(branchopsx/gaze-init-ci-gaze-version-floor-is-v2-3)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
feat(init): enforce per-variant --gaze-version floor for Node/Python …