Skip to content

Preserve Squad CLI version in compiled action workflows #1884

Closed

Description

@bradygaster

Summary

/squad cast failed in ReadR run https://github.com/bradygaster/ReadR/actions/runs/32900470947 because the compiled workflow lost SQUAD_CLI_VERSION and resolved an older CLI that does not provide health.

Root cause

workflows/shared/squad.md declares SQUAD_CLI_VERSION at job level, but the generated squad.lock.yml does not retain that environment binding. The compiled invocation therefore becomes effectively:

npx --yes "@bradygaster/squad-cli@" health --json

npm resolves latest (0.12.0 at the time of the failed run), which lacks the health command.

This is not fundamentally an npx versus npm install -g problem: either mechanism exposes the features of the resolved package version. Switching to a global install without fixing version propagation would install the same incompatible version.

The source fallback is currently 0.14.0, which is unpublished; the pending release appears to be 0.13.0.

Proposed fix

  1. Set SQUAD_CLI_VERSION using step-level env on every step that consumes it so gh-aw compilation preserves the value.
  2. Pin the highest published release containing health—expected to be 0.13.0.
  3. Recompile and inspect the generated lock workflow.
  4. Rerun /squad cast only after npm and compiled-workflow validation succeeds.

Validation

npm view @bradygaster/squad-cli@0.13.0 version
gh aw compile squad --strict
gh aw audit <new-run-id> --repo bradygaster/ReadR --json

Scope note

Handle this after or in coordination with the active gh-aw/release work; do not patch generated lock files directly.

Activity

  1. added
    squadSquad triage inbox — Lead will assign to a member
    on Aug 25, 2026
  2. github-actions commented on Aug 25, 2026

    @github-actions
    Contributor

    📋 Assigned to Booster (CI/CD Engineer)

    Issue: #1884 — Preserve Squad CLI version in compiled action workflows

    Booster will pick this up in the next Copilot session.

    For Copilot coding agent: If enabled, this issue will be worked automatically.
    Otherwise, start a Copilot session and say:
    Booster, work on issue #1884

  3. added a commit that references this issue on Aug 26, 2026
    2fa4c25
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

    gh-awGitHub Agentic Workflows integrationpriority:p1This sprintsquadSquad triage inbox — Lead will assign to a membertype:bugSomething brokenworkflows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions