Skip to content

pre_activation fails closed silently on transient GitHub API error during slash_command permission check — conclusion job never runs, reaction comment stuck forever #59183

Closed

Description

@NadyaDrozdova

Summary

When pre_activation's team-membership/provenance check (check_membership.cjs) hits a transient GitHub API error, it degrades the check to is_team_member=false and logs a warning, but the job itself reports conclusion: success. Because the compiled activation job only runs when pre_activation.outputs.activated == 'true', and the conclusion job's own if: never becomes true when activation itself never ran, the entire downstream chain is skipped — including the step that edits the "🚀 started processing" reaction comment into a terminal ✅/❌ state. The public-facing comment is left stuck on "started processing" indefinitely, with no failure signal anywhere: not on the PR, not in the Actions UI (the job stays green).

This is related to #28149 (closed as not planned) but distinct. #28149 covers a transient failure in the conclusion job's own git checkout step, which hard-fails visibly (red ❌). This report covers a transient failure in pre_activation's REST call, which is silently swallowed (job stays green ✅) and additionally makes conclusion structurally unreachable — so there is no failure signal at all, anywhere.

Environment

  • gh-aw CLI/schema version: 2.1.185
  • Action framework (AWF) version: v0.27.7
  • github/gh-aw-actions pinned at commit 8c7d04ebf1ece56cd381446125da3e0f6896294a
  • Trigger: on: slash_command: with strategy: centralized
  • Engine: claude

Observed behavior (production incident, not reliably reproducible on demand — depends on a transient GitHub API 500)

  1. A slash-command comment triggers the centralized dispatcher, which posts a reaction comment and dispatches the target workflow via workflow_dispatch.
  2. In the target workflow run, pre_activation's Check team membership for command workflow step (check_membership.cjs) calls GET /repos/{owner}/{repo}/pulls/{number} to verify provenance. In the observed run this call returned 500.
  3. The step logs:
    GET /repos/{owner}/{repo}/pulls/{number} - 500 with id ...
    ##[warning]Repository permission check failed: Unable to verify pull request provenance ().
    
    and completes with is_team_member=false. There is no retry.
  4. pre_activation job conclusion: success. Output activated: false.
  5. activation job (if: needs.pre_activation.outputs.activated == 'true'): skipped.
  6. agent, detection, safe_outputs jobs: all skipped (transitively depend on activation).
  7. conclusion job — responsible for editing the reaction comment into a terminal state — has:
    if: >
      always() && (needs.agent.result != 'skipped' || needs.activation.outputs.lockdown_check_failed == 'true' ||
      needs.activation.outputs.stale_lock_file_failed == 'true' || needs.activation.outputs.daily_ai_credits_exceeded == 'true')
    Since agent.result == 'skipped' and none of the three activation-output flags are true (because activation never ran to set them), this condition is false, so conclusion is also skipped.
  8. End state: the run shows conclusion: success overall, no error anywhere in the Actions UI, and the triggering comment is permanently stuck at "🚀 started processing this issue comment" — indistinguishable from a workflow that is still legitimately running.

Expected behavior

A transient infrastructure error during the permission/provenance check should not be indistinguishable from "unauthorized commenter, stay silent." Once a public "started processing" reaction has been posted, every terminal outcome — success, legitimate-auth-rejection (stay silent, as today), or infra error — should be distinguishable, and an infra error should update the comment to a clear failure/retry state instead of leaving it stuck forever.

Suggested fixes (either would resolve this)

  1. Retry with backoff on the provenance check's REST call — same pattern proposed as Option A in [aw-failures] Conclusion job brittle when GitHub returns HTTP 500/DNS errors — cascades to setup_globals.cjs not found #28149 (3 attempts, exponential backoff 5s/15s/30s), applied around the GET /repos/{owner}/{repo}/pulls/{number} call in check_membership.cjs (and/or check_command_position.cjs) before falling back to is_team_member=false. This absorbs a single transient 5xx blip, which appears to be the actual majority case.
  2. Make the failure observable even without a retry: have check_membership.cjs distinguish "checked and not authorized" from "could not verify due to an API/infra error," expose that as a separate pre_activation output (e.g. activation_check_error), and extend the conclusion job's if: to also fire on that flag — so an unretried transient error still results in the reaction comment being updated to a terminal (⚠️) state instead of being silently abandoned.

Impact

Silent, indistinguishable-from-still-running failures erode trust in slash-command workflows: a user who sees "started processing" with no further update for 10+ minutes cannot tell whether the run is slow, stuck, or has already failed — the only signal available today is to guess and re-run the command after an arbitrary wait.

Activity

  1. locked and limited conversation to collaborators on Sep 7, 2026
  2. unlocked this conversation on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions