Skip to content

pr-merge: post-merge gate refuses every sandbox merge on a missing canary workflow (404) #14059

Closed

Description

@kyle-sexton

Problem

The pr-merge lane refuses every unattended merge in melodic-software/pr-pipeline-sandbox, because its post-merge read asks for runs of a workflow the sandbox does not have.

pr-pipeline-sandbox#150 (pr-merge case D) has been CLEAN with every check green since 2026-10-15. Its body says "The pr-merge lane should enqueue this pull request." The hourly lane run still refuses it. From run 42448013205 (2026-11-08):

unattended merge refused: post-merge:unreadable: post-merge-detect-silent-revert.yml push runs created >=2026-10-15T03:08:22Z: gh: Not Found (HTTP 404)

plugins/source-control/skills/babysit-prs/scripts/babysit_postmerge.py sets CANARY_WORKFLOW = "post-merge-detect-silent-revert.yml" (line 100) and reads its push runs unconditionally (line 2801, _runs(owner, name, CANARY_WORKFLOW, "push", ...)). pr-pipeline-sandbox/.github/workflows/ has no such file, so the listing 404s, the verdict is unreadable, and an unreadable verdict refuses.

The sandbox is where lanes are validated before org rollout (ADR 0085 step 6), so a merge lane that cannot merge there hides any other pr-merge regression.

Decision

Option 1, chosen by the owner on 2026-11-08 in the PR Pipeline Sandbox session ("Go with recommendations"). Fix: #14067.

A 404 on the canary workflow's run listing, together with the workflow file being absent on the default branch, means "this repository has no canary", not "unreadable". Every other read failure still fails closed. The same script already treats a file's 404 as absent elsewhere (line 3119: "path's text on the default branch, or None when it is absent (404)").

Option 1 needs no per-repository setting: any repository without the canary workflow gets the same behavior, so it also covers the org-wide rollout. Options considered and not taken: add the workflow to the sandbox, or make the canary a per-repository resolve-config setting.

Done when

  • The pr-merge lane enqueues pr-pipeline-sandbox#150 on its next scheduled run, or the gate's refusal names a reason other than the missing canary workflow.

Activity

  1. added
    needs-triage
    on Nov 8, 2026
  2. github-actions commented on Nov 8, 2026

    @github-actions
    Contributor

    Proposed work class: none

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded.
    Owner answer, not an agent choice: the owner picked option 1 on 2026-11-08 in the PR Pipeline Sandbox session ("Go with recommendations", in reply to Q1, whose recommendation was option 1).

    A missing canary workflow means "no canary", and every other read failure still fails closed. Implemented in #14067.

    Decision comment: #14059 (comment)

    That decision settles the open question about which option to take. As I understand it, the post-merge gate in the pr-merge lane treats a 404 on the canary workflow's run listing as "unreadable", so it refuses every merge in the sandbox repository. The fix is to treat that 404 as "no canary" when the workflow file is also absent on the default branch. Other read failures still fail closed. The fix is in #14067. No duplicates or other merged fixes found.

    Automated triage. A maintainer reviews it.

  3. added
    needs-owner-decision
    on Nov 8, 2026
  4. melodic-automation-lanes commented on Nov 8, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  5. added
    agent-ready
    on Nov 8, 2026
  6. kyle-sexton commented on Nov 8, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded.
    Owner answer, not an agent choice: the owner picked option 1 on 2026-11-08 in the PR Pipeline Sandbox session ("Go with recommendations", in reply to Q1, whose recommendation was option 1).

    A missing canary workflow means "no canary", and every other read failure still fails closed. Implemented in #14067.

  7. removed
    needs-owner-decision
    agent-ready
    on Nov 8, 2026
  8. removed
    needs-triage
    on Nov 8, 2026
  9. melodic-automation-lanes commented on Nov 8, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: no trusted-human acceptance criteria: a listed human must put the confirmed - [ ] criteria in the body or post them as their own comment, or, on an issue a listed human filed, intake's newest refinement comment must hold them unedited; its body or a criterion names .github/workflows/post-merge-detect-silent-revert.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

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

    Fields

    Work status

    confirmed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions