Skip to content

pr-intake.yml: synchronize-triggered reclassification bypasses a PR's own status:blocked label #561

Open

Description

@github-actions

Problem

pr-intake.yml's intake job checks for status:blocked in two different
places depending on how a PR expresses "a human parked this":

  • On the linked issue — always checked, for every event type including
    synchronize (.github/workflows/pr-intake.yml's guard step, the
    if [ -n "$ISSUE_NUMBER" ] block).
  • On the PR itself — only checked as a side effect of the general
    "already carries a pipeline status label" idempotency guard, whose regex
    happens to include blocked alongside needs-qa/needs-review/etc.

PR #560 (fixing #558: reclassify risk on every push, not just PR-open)
added pull_request: synchronize as a trigger and, correctly, skips that
idempotency guard on synchronize — its whole point is to redo
reclassification on a PR that's already past initial intake, which is
exactly the state that guard used to treat as "skip, already picked up."

But skipping that guard on synchronize also skips the only check for
the PR's own status:blocked label — the linked-issue check that remains
doesn't cover it, and for an issue-less PR there's no blocked check
performed at all on synchronize.

Per docs/agent-team-pipeline.md: "At any point, applying status:blocked
to an issue or PR stops every agent from acting on it — a per-item
pause." Every sibling workflow (dev-agent.yml, qa-agent.yml,
principal-review.yml) enforces this with a dedicated, unconditional
check of the PR's own labels. pr-intake.yml only enforced it as an
incidental side effect of a guard that PR #560 now conditionally skips.

Concrete failure case

  1. A PR (with or without a linked issue) has status:blocked applied
    directly (not via its linked issue) — e.g. a human notices something
    wrong with this specific PR mid-review and pauses it without touching
    the issue.
  2. Any further push to that PR fires pull_request: synchronize.
  3. pr-intake.yml's intake job's guard step skips the idempotency/blocked
    check (event is synchronize), and — if there's no linked issue, or the
    linked issue isn't itself blocked — finds nothing to skip on.
  4. The job proceeds to mint the pipeline App token and run
    classify_pr_risk.py --apply-label, changing the PR's risk:* label
    even though a human explicitly paused it.

Reproduced locally by extracting the guard step's logic into an isolated
script with gh mocked to report status:blocked as the PR's only label
and no linked issue — skip never gets set to true, and the script
reaches "classify_pr_risk.py --apply-label would run."

Fix sketch

Check the PR's own status:blocked label directly and unconditionally
(same pattern as dev-agent.yml/qa-agent.yml/principal-review.yml's
guard steps), separate from the opened/reopened-only idempotency
guard — so it still applies on synchronize.

Filed per principal-review-agent persona: this is a CONFIRMED finding
(reproduced, not just theorized) surfaced during review of #560, which
otherwise correctly closes #558. Referenced from that PR's review.

Activity

  1. libravault-xyz commented on Aug 26, 2026

    @libravault-xyz
    Collaborator

    Automated pipeline health check: This issue (filed by github-actions[bot], CONTRIBUTOR association) has received zero dev-agent.yml runs and zero explanatory comment of any kind since it was filed.

    Same author-association trust-gate-skip signature already tracked on #469/#475/#479/#388/#408/#433/#437/#441/#544/#558/#582 — but unlike that earlier batch, this issue never got even the explain-trust-gate-skip job's own skip-reason comment, consistent with the regression confirmed on #437/#441 (that job's gh issue comment step has no actions/checkout/--repo, so it fails before posting: fatal: not a git repository).

    Not self-healing: no status label to toggle, and .github/workflows/dev-agent.yml is a sensitive path this routine won't edit.

    This now makes at least 13 open issues sitting with zero pipeline engagement: #469, #475, #479, #487, #504, #523, #534, #556, #557, #559, #561, #581, #589, #611, #626, #639. A tracked issue for the underlying explain-trust-gate-skip checkout/--repo bug has been recommended across at least two prior automated runs (2026-08-23 on #469, 2026-08-24 on #437/#441) but doesn't appear to have been filed yet.

    Action needed: someone with write access can workflow_dispatch triage this issue manually, and/or fix explain-trust-gate-skip's gh issue comment step (add actions/checkout or --repo ${{ github.repository }}) so future instances self-report instead of going silent.


    Generated by Claude Code

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions