Skip to content

A PASS verdict reddens the required check when allow_auto_merge is false #211

Closed

Description

@aitrawog

A PASS verdict becomes a RED required check when the repository disallows auto-merge

What happens

charly/pr-validator reaches a PASS verdict and then fails at its own final step, Enable auto-merge. Because the
job fails, the org-required status check validate / validate reports failure on that head — so a PR the reviewer
approved is indistinguishable, to branch protection and to a human reading the checks, from a PR the reviewer blocked.

Evidence (one run, read step by step)

opencharly/news-podcast#6   verdict: `## Review — PASS`   (2026-10-15T15:30Z)
  run 38758443969 attempt 4: completed/failure
    step  7. Auto-close           skipped      <- correct for a PASS
    step  8. Gate (BLOCK)         skipped      <- correct for a PASS
    step  9. Gate (inconclusive)  skipped
    step 10. Post INCONCLUSIVE    skipped
    step 11. Gate (ambiguous)     skipped
    step 17. Enable auto-merge    FAILURE      <- the only non-success step
  check-runs on the head:  validate / validate: failure
  PR: mergeable_state = blocked

The repository has allow_auto_merge = false, so GitHub refuses to arm auto-merge and the step fails. The same
condition is set in opencharly/lobster and opencharly/crabhelm.

Why this is blocking rather than a preference

  • A PASS is the org's definition of "land it". With auto-merge disabled, the PASS cannot land — and here it does
    worse: it reddens the check, so an operator who reads the gate sees a failure rather than an approval.
  • It makes the verdict and the check disagree — the divergence class already recorded in the rollout ledger
    (§178), but with a mechanical cause rather than an engine one.
  • It is invisible in the verdict comment, which says PASS. Only the run's step list shows why the PR cannot merge.

Suggested direction (for the owner)

Either make the auto-merge step non-fatal when the repository disallows auto-merge (skip visibly, per R8's
"live or skip, never fake"), or leave the job green and report "PASS — operator merge required" so the check reflects
the verdict. An approved PR must never present as a failed check. If instead the org wants these repos to
auto-merge, enabling the setting fixes it at the source; either way the current behavior is a silent conversion of
approval into refusal.

Scope note

Found while landing the org-wide caller rollout (#204). Three repositories are known-affected
(news-podcast, lobster, crabhelm); every repository with the setting off has the same behaviour.

Agent: lead
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    CONTROLLED COMPARISON — same workflow, same step, one repository setting apart. This is the proof, not a hypothesis.

    repository          allow_auto_merge   step "Enable auto-merge"   run conclusion   PR outcome
    ------------------  ----------------   -----------------------   --------------   ----------
    plugin-nerdctl      TRUE               SUCCESS                   success          MERGED 15:27:39Z
    news-podcast        FALSE              FAILURE                   failure          blocked
    

    Both PRs reached ## Review — PASS. Both ran the same charly/pr-validator workflow. Both executed the same final
    step. The step succeeded in the repository that permits auto-merge and failed in the one that does not — and that
    single difference decides whether an approved PR merges or presents as a failed check.

    Run references, read directly:

    • positive: opencharly/plugin-nerdctl run 38759920819, head d1d5488, completed/success, step Enable auto-merge -> success.
    • negative: opencharly/news-podcast run 38758443969 attempt 4, head a4027cd, completed/failure, step Enable auto-merge -> failure; check-run validate / validate = failure; mergeable_state = blocked.

    So the mechanism is established by contrast rather than inferred from one run: the repository setting, not the diff
    and not the review, determines whether a PASS is landable in this org
    — and in the disallowing case it additionally
    reddens the required check, which blocks the operator's manual merge as well.

    Agent: lead
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  2. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — fixed at the source, and demonstrated on the two PRs it was blocking.

    The fix. At the operator's explicit direction, allow_auto_merge was enabled on the three known-affected repositories
    (news-podcast, lobster, crabhelm). Nothing in any diff changed.

    The demonstration, end to end:

    before   news-podcast#6  verdict PASS, check validate/validate = FAILURE, mergeable_state = blocked
             lobster#3       verdict PASS, check validate/validate = FAILURE, mergeable_state = blocked
    
    after    news-podcast#6  check = SUCCESS, auto_merge armed -> MERGED 2026-10-15T17:01:10Z
             lobster#3       check = SUCCESS, auto_merge armed -> MERGED 2026-10-15T17:01Z
    

    Both approved PRs, unmergeable for hours, landed by themselves within twenty minutes of the setting change — which
    completes the matched control posted earlier (plugin-nerdctl, setting ON → step Enable auto-merge succeeds → merged;
    news-podcast, setting OFF → the same step fails → the required check reddens on an approved head).

    Two things this leaves behind, and neither is closed by enabling the setting:

    1. A repository that sets allow_auto_merge = false should not have a PASS rendered as a failed check. The desired
      behaviour (per the original report) is that the auto-merge step skips visibly or the job stays green and reports
      "PASS — operator merge required". Enabling the setting removes the SYMPTOM in three repos; the MECHANISM remains for
      every repository that has it off, and for any future repo created without it. That is a workflow change, and this
      issue does not cover it
      — if the org wants it, it needs its own filing against the required workflow.
    2. Enabling it was the operator's decision, recorded here as such. No agent posted a sign-off, and none may.

    Agent: lead
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  3. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    SUCCESSOR — the mechanism residue named above is filed as #212.

    This issue is closed on the fix that removed the symptom in three repositories (the operator enabling
    allow_auto_merge). #212 carries what remains: the required workflow still has no defined behaviour for a repository
    that disallows auto-merge, so a PASS can still be rendered as a failed check there.

    Agent: lead
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

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