Skip to content

[agent-job-health] Copilot CLI exits 1 (permission_denied) after workflow tool-allowlist denials — 4 workflows failed on 2026-11 [Content truncated #75770

Done

Description

@github-actions

Summary

Between 2026-11-06 23:13Z and 2026-11-07 23:13Z, the agent job of 4 distinct Copilot-engine workflows failed at Execute GitHub Copilot CLI with the same signature. The workflow's tool allowlist rejected one or more bash calls, the Copilot CLI then exited 1, and the harness classified the attempt as permission_denied. No terminal success was recorded.

There is no open issue for this signature. The earlier per-run issue #75475 (Copilot driver crash) auto-expired and closed as not_planned on 2026-11-07.

Fleet context (same window): 620 runs across 209 workflows. 20 had an agent-job failure, a run-weighted rate of 3.23% (workflow-weighted median 0.0%, mean 9.1%). Of those 20, 3 are tracked (15%) and 17 are novel (85%). This cluster is 4 of 20 agent failures (20%): the largest single-signature novel cluster and the main contributor to Execute GitHub Copilot CLI being the top failing step.

Error signature

permission.completed  kind=denied-interactively-by-user
                      feedback="Tool invocation is not allowed by workflow tool permissions."   (3–5 per run)
harness.attempt       layer=harness exitCode=1 failureClasses=["permission_denied"] outcome=failure
failing step          agent / Execute GitHub Copilot CLI

Affected runs

Workflow Run Denied tool calls Created (UTC)
Daily SPDD Spec Planner (daily-spdd-spec-planner) §42388461426 3 2026-11-07 15:52
Daily Formal Spec Verifier (daily-formal-spec-verifier) §42386236531 4 2026-11-07 15:24
PR Specification Reviewer (pr-specification-reviewer) §42382250397 5 2026-11-07 14:34
Daily Community Attribution Updater (daily-community-attribution) §42329115680 5 2026-11-07 02:24

In the representative run §42388461426, simple find ... and cat ... calls were approved. A compound command (cd ...; f=...; find ... > $f; (grep ... | grep ...)) was denied. The session ran 4 turns and the CLI exited 1.

Why this looks like a driver-behaviour problem rather than four separate prompt bugs

  • In the same window, Delight §42382833157 also had a bash call (cat of pre-sampled inputs) denied by the allowlist. There the CLI exited 0 and the agent emitted report_incomplete, so the failure was attributable. The outcome of an allowlist denial is therefore inconsistent: sometimes a clean exit with a terminal safe output, sometimes exit 1 with a failed agent job.
  • Open issue Formal verification handoff is never produced after evidence lookup and bash permission failure #72946 shows the same denial pattern (a bash call rejected by workflow tool permissions) on a different workflow, Daily Work Queue Formal Verification.

Suspected root cause and blast radius

  • Agents generate compound shell commands (cd, ;, redirections, subshells, pipelines) that workflow bash allowlists do not match.
  • After some of those denials the Copilot CLI ends the session non-zero instead of letting the agent recover or finish with a safe output.
  • Blast radius: potentially every Copilot-engine workflow with a restrictive bash allowlist. Today it hit 4 workflows: 3 scheduled, 1 pull_request.

Suggested next steps

  1. Find out why the Copilot CLI exits 1 after allowlist denials in these runs but exits 0 in Delight. If the exit depends on denial count or turn shape, make permission_denied recoverable in the harness, or at least guarantee a terminal report_incomplete.
  2. Align the four workflows' prompts with their bash allowlists. Steer agents toward single-command calls without cd, ;, redirections or subshells, or widen the allowlists where that is safe.
  3. Add a regression fixture: a Copilot session whose compound bash call is denied should not fail the agent job without a terminal safe output.

Detection notes

  • Source: Agent Job Health Monitor daily fleet scan, run §42424063492.
  • The evidence comes from the cached usage/aw_session.jsonl and run_summary.json of each run. All four runs have agent job conclusion failure with failing step Execute GitHub Copilot CLI.
  • GitHub issue search was heavily filtered by the integrity policy while checking for duplicates. If an existing issue already covers this, please link it and close this one as a duplicate.

Generated by 🩺 Agent Job Health Monitor · claude · routed: opus55 xhigh · ~772 AIC · ⌖ ~2 AIC · ⊞ 6.2K · ◷

  • expires on Nov 14, 2026, 3:43 PM UTC-08:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    agentic-workflowsautomationcookie

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions