Skip to content

feat: enforce a variant-specific workflow-pin floor for Node/Python CI scaffolding #419

Backlog

Description

@jflowers

Follow-up from the ci-external-analyzer-support review council (iteration 3, MEDIUM advisory).

Problem

gaze init --ci validates the uses:/--gaze-version pin against minWorkflowTag (v2.3.0 — the first release containing reusable_gaze_ai_report.yml) for every variant. But the Node/Python caller templates pass analyzer, packages, setup, node-version/python-version — inputs that only exist from the release shipping external-analyzer support (v2.6.0+).

A user who scaffolds a Node/Python project with an explicit --gaze-version v2.3.0..v2.5.x gets a caller whose with: block names inputs the called workflow does not define. GitHub rejects the whole workflow file at load time (undefined workflow_call input), so the consumer's AI report never runs.

Today only the docs state the requirement (ci-integration.md "External analyzers" section). The validation still answers "does this release contain the workflow file?" and never "does it define the inputs I am about to pass?".

Proposal

  • Add a variant-specific floor constant (e.g. minAnalyzerWorkflowTag) applied when the detected variant is node/python — the first release whose reusable workflow defines the analyzer inputs.
  • Extend .github/scripts/validate-workflow-floor.sh and its tests to cover the second floor (the existing machinery already handles above-floor tags: floor tag must exist and contain the workflow).
  • Add a below-floor rejection test for the variant path (mirror TestRun_CI_GoModDirectiveSubstituted-style flag tests).
  • Document the per-variant minimum in docs/reference/cli/init.md and docs/guides/ci-integration.md.

Notes

  • Same class as the version-pinning learnings from init-ci-scaffold and validate-workflow-floor: validate every pin the generator threads against the called workflow's full input surface, not just its file-version floor.
  • The release shipping the analyzer inputs must decide the floor's concrete value at release time (it is unknowable before tagging).

Activity

  1. added 2 commits that reference this issue on Nov 26, 2026
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