Skip to content

arc-dind: Copilot CLI copy step emitted regardless of engine.id, breaking non-Copilot engines #51751

Closed

Description

@benissimo

Summary

Under arc-dind topology with the firewall enabled, pkg/workflow/nodejs.go unconditionally emits a step that copies the Copilot CLI binary into the container — regardless of which engine.id the workflow actually uses. For non-Copilot engines (e.g. engine: claude), the Copilot CLI isn't installed, so the copy step fails the job.

Where

pkg/workflow/nodejs.go (main branch, checked 2026-08-10) around line 182:

if isFirewallEnabled(workflowData) && isArcDindTopology(workflowData) {
    // emits: COPILOT_SRC="$(command -v copilot)"; cp "$COPILOT_SRC" ...
}

The condition gates on firewall + arc-dind topology only — there's no check on workflowData.engine.id (or equivalent) before emitting the Copilot-specific step.

Repro

  1. Author a workflow with engine: claude, runner.topology: arc-dind, and the firewall enabled.
  2. Compile and run it.
  3. The generated job includes a step that runs COPILOT_SRC="$(command -v copilot)"; cp "$COPILOT_SRC" .... Since copilot isn't installed for a Claude-engine workflow, command -v copilot resolves to an empty string, cp is invoked against an empty source path, and the step fails the job.

Evidence run (fails for this reason): pexsoftware/test-dev-gh-aw run 31185245877.

Expected

The Copilot-CLI-copy step should only be emitted when engine.id == "copilot" (or whatever the correct identifier is), not unconditionally for every arc-dind + firewall workflow.

Workaround

We're currently working around this locally by shipping a fail-closed stub binary in place of the expected Copilot CLI path, so the copy step no-ops instead of failing. That's a local patch, not a fix.

Related but distinct

Happy to open a PR adding the engine-id check if that's the preferred fix shape — wanted to file the bug report first in case there's a reason it's unconditional that we're missing.

Activity

  1. locked and limited conversation to collaborators on Aug 10, 2026
  2. unlocked this conversation on Aug 10, 2026
  3. lpcox commented on Aug 19, 2026

    @lpcox
    Collaborator

    🔗 AWF tracking issue: filed in github/gh-aw-firewall (labeled awf-triage) — "[awf] arc-dind: Copilot CLI copy step emitted regardless of engine.id, breaking non-Copilot engines". The tool response did not include the created issue number; please check the awf-triage label in that repo for the exact link.

    Generated by Firewall Issue Dispatcher · auto · 25.4 AIC · ⊞ 9.3K · ◷

  4. lpcox commented on Aug 19, 2026

    @lpcox
    Collaborator

    🔗 AWF tracking issue: filed in github/gh-aw-firewall (labeled awf-triage) — "[awf] arc-dind: Copilot CLI copy step emitted regardless of engine.id, breaking non-Copilot engines". The create_issue tool did not return an issue number in its response; please check the awf-triage label in that repo for the exact link.

    Generated by Firewall Issue Dispatcher · auto · 22.9 AIC · ⊞ 9.3K · ◷

  5. lpcox commented on Aug 20, 2026

    @lpcox
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions