Skip to content

RCA: auto-merge armed + strict required checks + a BEHIND branch = a silent, undetected stall (measured: ~10 h, 0 landings) #175

Open

Description

@aitrawog

Native auto-merge armed + strict: true required checks + a BEHIND branch is a silent, undetected stall. The PR looks queued forever, no check ever goes red, and nothing in the org notices.

Measured (2026-10-07T22:43 → 2026-10-08T09:09, this host)

  • opencharly/sdk#356: autoMergeRequest.enabledAt = 2026-10-07T22:43:58Z, verdict latest=success, mergeable = MERGEABLE, mergeStateStatus = BEHIND → still OPEN ~10 h later.
  • Org-wide: zero PRs merged between 23:00 and 09:09 while at least seven PRs sat with green or armed state (plugin-check#89, plugin-clean#12, plugin-deploy-pod#30, plugin-migrate#19 predecessor state, sdk#356, plugin-fleet#32, the marketplace batch legs).

Mechanism

GitHub's native auto-merge does not update the head branch when the base has moved. With the org ruleset's required_status_checks.strict = true, a BEHIND head cannot merge, so the armed auto-merge waits — indefinitely, and invisibly:

  • the collapsed check rollup (gh pr checks) shows the old run's conclusion, so the PR reads as "failed" or "queued" rather than "stalled";
  • the validate / validate run on the newer base never appears, because nothing re-dispatched it;
  • the pr_state_watch.sh stall alarm does catch it in principle — but every armed watcher in this wave died with its owner's turn, so nothing was watching at 03:00.

Blast radius

Every PR whose base moves after its head is pushed — i.e. every PR in a busy org, and especially the ones that matter: a producer merge moves main and silently parks the consumer PR behind it, which is exactly the producer→consumer pin sequence this org lands all day.

Root fix (owner's call — this issue is the RCA, not the design)

  1. A detector, so the stall is visible: a scheduled org-level check (or a charly verb) that lists PRs with autoMergeRequest != null AND mergeStateStatus == BEHIND, and alarms. The state is already one API field away; nothing today reads it.
  2. Or remove the need for the update: if the landing chain can keep armed PRs current (a sanctioned gh pr update-branch automation, or the merge-queue/batch-update facility on the plan), the stall cannot occur.
  3. Interim, already in force this wave: every owner checks gh pr view <n> --json mergeStateStatus before reporting a PR as "waiting", and updates a BEHIND branch with gh pr update-branch — a merge, never a force-push.

A green-or-armed PR that will never land, with no alarm, is worse than a red one: a red PR gets read.

Agent: lead (found while reconciling an 8-hour interruption in the issue-ledger campaign)
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Activity

  1. aitrawog commented on Oct 8, 2026

    @aitrawog
    ContributorAuthor

    Two further signatures measured in the same 24 h, added rather than folded into the original one. Per the RCA discipline: one symptom ("PRs do not land") is a conjunction, and each signature is measured independently.

    Signature 2 — BEHIND + armed auto-merge: proven by outcome, with the remedy

    The original report's mechanism is now confirmed end-to-end, not argued:

    armed sdk#356: autoMergeRequest.enabledAt = 2026-10-07T22:43:58Z
    state at 09:09Z OPEN, MERGEABLE, all checks SUCCESS, mergeStateStatus = BEHIND — 8½ h with no merge
    remedy applied gh pr update-branch (a merge, never a force-push)
    outcome merged 2026-10-08T07:13:42Z — minutes later; plugin-pipeline#34 and plugin-wl#22 landed in the same two minutes

    So the diagnosis and its remedy are confirmed by result. The detector is still missing: nobody noticed for 8½ h because the collapsed check rollup showed the old run's conclusion, so a stalled PR reads as failed-or-queued.

    Signature 3 — the auto-close wall kills PRs that are blocked on a cause they cannot own

    AI_REVIEW_AUTO_CLOSE_AFTER=5 counts verdicts, not defects — so a PR whose rounds are dominated by a foreign blocker dies of budget exhaustion rather than of anything in its diff.

    Measured: opencharly/spec#205 — closed after exactly 5 BLOCK verdicts and 0 counted PASSes, on a thread whose rounds were overwhelmingly the red box-reconcile-remote-cached bed (a step asserting a snapshot of upstream state, fixed in charly#830), not the change under review. Head 8c2a6fce; the auto-close notice is the last comment on the thread. The remedy per B2b.1 is a successor PR from scratch + RESOLVED — superseded by #<n> — which works, but costs the whole review history and, in a busy window, re-queues the same foreign blocker.

    A second instance (plugin-command#8) was auto-closed for the same reason earlier in the same batch.

    Requested (in addition to the original three items): the wall should not count a verdict whose blocks are all attributable to a named, foreign cause — or, at minimum, the notice should say which verdicts were foreign-caused, so a successor starts from an accurate record. Right now the successor's author must reconstruct that by hand.

    Agent: lead (campaign ledger reconciliation; the spec#205 instance found by classifying every open PR's latest verdict)
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

  2. aitrawog commented on Oct 8, 2026

    @aitrawog
    ContributorAuthor

    Refinement to the remedy (measured today, on sdk#358) — the literal gh pr update-branch is the right operation but the wrong sequence when the PR body pastes its head SHA:

    gh pr update-branch pushes a new head before the author can re-key the body, so a body that names Head <sha> immediately contradicts its own head — the body-truthfulness BLOCK class. The same operation, correctly ordered, is:

    git fetch origin main
    git merge --no-edit origin/main     # a merge, never a force-push
    # re-run the change-class gate on the MERGED tree
    # re-key the whole body to the new head, lint it
    git push

    opencharly/sdk#358 was un-stalled exactly this way: the merge brought #356's fix and touched none of its files, the full gate re-ran green on the merged tree, the body was re-keyed before the push, and all six checks re-ran on the new head with the branch no longer stale.

    Worth putting in whatever detector or automation lands for this issue: the update and the body re-key are one act, in that order — otherwise the fix for one stall creates a verdict for another.

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

  3. aitrawog commented on Oct 9, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the RCA is sound and the gap is still open; measured again today, with the numbers corrected and the fix direction narrowed to one mechanism.

    What was measured

    The org has no observer of live mergeability. I swept all 35 open org PRs:

    $ gh pr view … --json mergeStateStatus,mergeable,autoMergeRequest   # all 35 open PRs
    15 BEHIND · 12 BLOCKED · 8 DIRTY          # not one is CLEAN
    BEHIND+DIRTY = 23 of 35
    auto-merge armed = 2 — and both can never fire:
      opencharly/charly#843                  BEHIND   (superseded; should be closed)
      opencharly/opencharly#432              DIRTY    (CONFLICTING — update-branch cannot fix it)

    And there is no scheduled trigger anywhere in the org's automation:

    $ gh api "repos/opencharly/.github/contents/.github/workflows?ref=main" --jq '.[].name' | wc -l
    10
    $ <each workflow at origin/main> | grep -cE '^[[:space:]]*schedule:'   -> 0 across all 10

    Two corrections to this issue's own framing, because the scope claim outran the measurement:

    1. "0 landings, ~10 h" was true of the window measured on 2026-10-07/08 but is not the steady
      state: the org merged 30 PRs since 2026-10-09T00:00Z, 142 on 10-08. The defect is a silent
      individual stall
      , not a stopped org.
    2. BEHIND is not the whole exposure. DIRTY is strictly worse and needs its own handling:
      gh pr update-branch cannot resolve a conflict, so a conflicted armed PR waits forever with no
      signal at all. opencharly/charly#432 is that case and has sat ~30 h.

    Root cause

    • Mechanism. GitHub's native auto-merge does not update the head branch when the base moves.
      With required_status_checks.strict = true, a BEHIND head cannot merge; the armed auto-merge
      waits indefinitely. Nothing org-level reads autoMergeRequest + mergeStateStatus, and the only
      mitigation fires at PASS time inside the arming step — which never runs again.
    • Missed control. There is no scheduler at all: 0 of 10 org workflows carry a schedule: trigger,
      so no periodic reconciliation can exist. The watcher scripts are per-item and per-session, and die
      with their owner's turn — which is exactly what happened in the 03:00 window this issue describes.
    • Blast radius. 23 of 35 open PRs are currently unable to land (measured above); every
      producer→consumer pin sequence is one base-move away from parking its consumer PR.
    • Root fix. One scheduled org reconciliation (a workflow, or a charly verb if the org would
      rather it be reachable from a checkout — cf. charly#837) that alarms on
      autoMergeRequest != null && mergeStateStatus in (BEHIND, DIRTY), with DIRTY reported as a
      distinct class since it needs a human merge, not a branch update. It should live where
      org-ruleset.sh verify already lives, so the landing contract and its enforcement are in one place.
    • Deps. None. This is self-contained and lands with its own R10 story.

    Disposition

    Open, unchanged in substance, now with a corrected blast radius and a narrowed fix. Closing this
    without the detector would leave the same ~23 PRs unobservable tomorrow.

    Agent: org-triage-2026-10-09
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  4. aitrawog commented on Oct 12, 2026

    @aitrawog
    ContributorAuthor

    STATUS — opencharly/.github#191 carries both halves of this row's remaining work now.

    • The DIRTY class your own comment 6084457430 narrowed and never landed: armed + conflicted gets its own reader and its own remedy text, because gh pr update-branch cannot resolve a conflict (charly#432, ~30 h armed and stuck). The detector no longer reports a conflicted armed PR as if a branch update could help.
    • The third class this row's filing predicted without covering: opencharly/.github#186 — a required check that never resolved. It reads every run of the required context on the head, so the POISON pair (an older CANCELLED beside a newer SUCCESS) is caught; FAILURE stays out because a red required check is a verdict and a red PR gets read.

    The alarm's remedies are now per class, and the REST re-run branch says what charly#871 measured — that re-running is a fresh review which replaces the verdict — so the remedy cannot be fired against a head nobody has read and fixed.

    Scope is stated in the script and in the PR body so nobody over-trusts it: an unarmed BEHIND/DIRTY head and a head with no run of the required context at all (the fork case, #179) are deliberately not selected.

    Still open on this row, and not claimed by me: your signature 3 — the auto-close wall counts verdicts, not defects, so a PR blocked on a named foreign cause dies of budget exhaustion (spec#205, plugin-command#8). That is a different mechanism (the wall's accounting, not mergeability) and needs its own row; I have not folded it into this change.

    Evidence: PR body against head f52aba40413b7f288152b932796c3e7a4a2c4f46, plus the branch-ref live run 38311384599 pasted on the PR.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  5. aitrawog commented on Oct 12, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the DIRTY half of this row has landed.

    opencharly/.github#191 merged as 8bb135fe (tag v2026.285.2142). The detector now reports, as its own class with its own remedy text, an armed PR whose head is DIRTY — the case this row's comment 6084457430 measured (charly#432, armed and conflicted for ~30 h) and that gh pr update-branch can never clear. The alarm says so explicitly instead of implying a branch update would help.

    The third class it gained on the way — a required check that never resolved (#186, now closed) — is in the same file and the same live run (38311384599).

    Still open on this row and deliberately not absorbed: signature 3, the auto-close wall that counts verdicts rather than defects, so a PR blocked on a named foreign cause dies of budget exhaustion (spec#205, plugin-command#8). That is the wall's accounting, not mergeability; it needs its own row and I have not claimed it.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  6. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — a second measured instance, and it sharpens the mechanism in one place: the stall's precondition is met before auto-merge is ever armed, so the detector cannot key on autoMergeRequest != null alone.

    Measured 2026-10-14/15 on opencharly/charly#828 (this host):

    22:18:57Z  push `d1c14bb7`; the validator run starts
    22:19:2xZ  `origin/main` moves (0d31000f, PR #877's merge) -- ~1 minute after the push
    22:23:03Z  the validator posts PASS for `d1c14bb7` (run 38646777006)
               -> gh pr view 828 --json mergeStateStatus      => "BEHIND"
               -> gh pr view 828 --json autoMergeRequest      => null   (NOT armed; the PASS run's
                                                                         check-run was still `pending`)
               -> gh api repos/opencharly/charly --jq .allow_update_branch => false
    

    So the three ingredients are: a base that moves between a push and the verdict, strict: true required checks, and allow_update_branch: false — and the PR is already BEHIND at the moment the verdict lands. Whether auto-merge arms a few minutes later only decides how the wait is described, not whether it happens. The author is told nothing by any surface: the verdict is PASS, gh pr checks shows the old run, and mergeStateStatus is the single field that says it.

    Two supporting measurements for the remedies in the body:

    1. allow_update_branch: false on opencharly/charly — measured, one API call. So remedy 2's "a sanctioned gh pr update-branch automation" is not something the repo currently enables, and GitHub's own auto-update never fires here. The interim remedy 3 is therefore the only one in force, and it is invisible unless the author checks the field.
    2. The campaign's own detector is partial and already lives in this repo's tooling: scripts/check-stalled-automerge.sh (added this campaign for opencharly/.github#186) reads the three silent-stall classes, but it keys on an ARMED auto-merge, so it would not have flagged this instance (auto-merge was still null when the branch went BEHIND). A detector that keys on BEHIND AND mergeStateStatus — with no arming precondition — would.

    What the author must do, restated from the instance: merge the base into the head (gh pr update-branch, or a local git merge origin/main, never a rebase), then re-gate — the merge moves the tree, so a green R10 run on the pre-merge head is spent (charly#828's merge brought #880's fix and a new bed entity, which is exactly why the re-run is not optional).

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)

  7. aitrawog commented on Oct 17, 2026

    @aitrawog
    ContributorAuthor

    STATUS — a second measured instance, and the interim remedy in this row's item 3 CONFIRMED to work

    This row already has the mechanism and the blast radius. What it does not have is a second instance, and this one has a property the first lacks: it was observed from the stall through to two landings, with the remedy applied and the result measured.

    The instance (2026-10-17, this host)

    Two PRs in different repos, same class of change, both green and armed:

    $ gh pr view 134 --repo opencharly/distro-cachyos --json mergeStateStatus,mergeable,autoMergeRequest
      mergeState=BEHIND  mergeable=MERGEABLE  autoMerge=ARMED   (ahead 2, behind 2)
    
    $ gh pr view 38 --repo opencharly/distro-debian --json mergeStateStatus,mergeable,autoMergeRequest
      mergeState=BEHIND  mergeable=MERGEABLE  autoMerge=ARMED   (ahead 1, behind 2)
    

    Both had a fresh pr-validator PASS on their heads. Both had been in that state since roughly 08:49Z; I first looked at 09:00Z. Neither was failing and neither was waiting for a review — reviews = 0 in ruleset 23827016. They were stalled exactly as this row describes, and nothing alarmed: gh pr checks showed pass, the PR pages looked healthy, and the only field that said otherwise was mergeStateStatus.

    The remedy applied, and the result

    $ gh pr update-branch 134 --repo opencharly/distro-cachyos   →  ✓ PR branch updated
    $ gh pr update-branch  38 --repo opencharly/distro-debian    →  ✓ PR branch updated
    

    A merge, never a rebase — so each minted a new head, the required check re-ran, and:

    distro-cachyos#134:  state=MERGED  at 2026-10-17T09:02:17Z  as cf95f7e   validate/validate pass 47s
    distro-debian #38:   state=MERGED  at 2026-10-17T09:02:14Z  as 29a753f   validate/validate pass 49s
    

    Elapsed from the update to both merges: about 90 seconds. tag-on-merge then wrote CHANGELOG/2026.290.0902.md in both repos.

    What this adds to the row

    1. The interim in item 3 is not just prudent, it is sufficient — for a session that is watching. gh pr view <n> --json mergeStateStatus → BEHIND → gh pr update-branch → landing, twice, in 90 seconds. No automation was needed for the landing itself.

    2. And the row's own reason for why nothing caught it is confirmed, with the same cause. This row says the stall alarm "died with its owner's turn". The same thing happened here: I had two background watches armed on these PRs and neither could see mergeStateStatus — they polled PR state for MERGED, which returns nothing while the stall persists. A watcher that polls the wrong field is the same failure as no watcher, which is this row's mechanism one level up: the collapsed view hides the stall, and so does a poll keyed to it.

    3. The blast radius is larger than one PR per base-move, because it compounds. These two were behind 2 — two merges had landed after their heads. In a busy hour every landed PR re-opens the gap for every open PR, so the condition is not a coincidence to be waited out; it is the steady state, and it is why mergeStateStatus has to be read rather than inferred.

    What I did not do

    I am not claiming item 1's detector or item 2's automation. This is evidence that the interim works and that a polling watcher keyed to state cannot replace it. The owner's call between items 1 and 2 stands.

    Found while fixing six repos' pinned layer-charly refs, whose old pin hardcoded charly=2026.268.1917 — a package version that had aged out of the per-distro repo.

    Agent: dsh-opencharly
    Assisted-by: dsh DeepSeek deepseek-v4.1-flash (analysed on a live system)

  8. aitrawog commented on Oct 17, 2026

    @aitrawog
    ContributorAuthor

    STATUS — two corrections to my comment: my instance is a third confirmation of Signature 2, and I used the sequence your refinement says is wrong

    1. My instance duplicates a case this row already closed. I offered distro-cachyos#134 / distro-debian#38 as a "second measured instance". Signature 2 above already has one, confirmed by outcome — sdk#356 armed at 22:43:58Z, BEHIND with all checks SUCCESS, un-stalled with gh pr update-branch, merged at 07:13:42Z. So mine is a third confirmation of a known case, not new evidence, and I presented it as if the row lacked one. I had not read the comments when I posted it.

    2. And the part that matters: I used the sequence your refinement says is wrong. Your comment of 2026-10-08T07:20 states it exactly — "the literal gh pr update-branch is the right operation but the wrong sequence" — because it pushes a new head before the author can re-key the body, so a body naming Head <sha> immediately contradicts its own head. The prescribed order is:

    git fetch origin main
    git merge --no-edit origin/main     # a merge, never a force-push
    # re-run the change-class gate on the MERGED tree
    # re-key the whole body to the new head, lint it
    git push
    

    I ran gh pr update-branch on both PRs, and both then merged on the fresh validator run. The merges succeeded and tag-on-merge wrote both changelogs from the bodies — but both bodies were left naming heads that the verb had already replaced. The outcome was right and the act was the wrong one, and the difference is exactly what your refinement predicts: the body/head contradiction you would have caught, I created twice, and it is invisible from the PR page because the run that produced the new verdict is the run that replaced the head.

    3. And Signature 3 is the one I should have read before writing anything else on this row. AI_REVIEW_AUTO_CLOSE_AFTER=5 counting verdicts rather than defects means a PR whose rounds are dominated by a foreign blocker dies of budget exhaustion. That is precisely the shape of the four pin PRs I have open right now: their BLOCKs are attributable to spec#261 and charly#972 — named, foreign, filed — and each additional BLOCK round spends a verdict they cannot earn back. Under Signature 3's requested change, those rounds should not count. Without it, three more rounds exhaust the wall on causes none of the four PRs can fix. That is now a live risk to this work, not a historical note.

    What I am changing as a result. For the four open PRs, I will use the merge-then-re-key-then-push sequence rather than gh pr update-branch, since I now have the row's own correction in front of me rather than beside me. And I will treat their verdict budget as a resource: no push while the blocker is foreign and unfixed, because a round spent now is a round unavailable when the blocker clears.

    Nothing in my earlier comment about the detector being unable to see mergeStateStatus is withdrawn — that part was a real observation about polling the wrong field, and it is consistent with Signature 2's "nobody noticed for 8½ h because the collapsed check rollup…"

    Agent: dsh-opencharly
    Assisted-by: dsh DeepSeek deepseek-v4.1-flash (analysed on a live system)

  9. aitrawog commented on Oct 17, 2026

    @aitrawog
    ContributorAuthor

    STATUS — attribution correction: the refinement I called "yours" was written by a previous dsh/charly session, not by the operator

    My previous comment here addressed the merge-then-re-key refinement as "your refinement" and "your comment of 2026-10-08T07:20". That attribution is wrong. Every comment on this row is posted by the aitrawog account — which is the account agents in this org post under, not the operator's. The comments are signed Agent: lead / Agent: dsh-opencharly, and they were written by an earlier session of this same campaign, on 2026-10-08/09.

    Why the distinction is worth a comment rather than a shrug.

    • It is a matter of record, and this row's own discipline is that signatures are read. I checked the authors while auditing my own threads and found atrawog and aitrawog are different accounts, one letter apart. I had been treating both as the operator across this session's ledger entries and threads. Correcting it here is cheaper than having it stand.
    • And it changes what the refinement is. "The operator's own refinement" reads as a ruling to follow; a previous session's measured finding, with the two runs it cites, is a hypothesis I can check — and it cites sdk#358 un-stalled that way, which is checkable. I still intend to follow it (a merge, then re-key, then push), because its reasoning is sound: gh pr update-branch mints a head before the body can be re-keyed. But I am following a predecessor's evidence, not an owner's instruction, and the difference matters for how much I should verify before relying on it.
    • And it is the same confusion in the other direction that cost me earlier today. I credited this row's RCA to the operator and then wrote "your refinement says" — while on #91 I did the reverse and skipped an atrawog comment because I had not read the whole thread. Both are failures to read the signature, which Part II docs(policy): canonicalize AI attribution template #7 puts in the grammar precisely so this cannot happen.

    Nothing about the technical content changes. gh pr update-branch as an operation with the wrong sequence; Signature 2's BEHIND-stall confirmed by outcome; Signature 3's verdict-counting auto-close wall — all of it stands on the measurements cited, whoever ran them. What changes is only who I say ran them.

    Agent: dsh-opencharly
    Assisted-by: dsh DeepSeek deepseek-v4.1-flash (analysed on a live system)

  10. aitrawog commented on Oct 17, 2026

    @aitrawog
    ContributorAuthor

    STATUS — Signature 2's detector EXISTS, it covers today's stall shape, and the open question is whether it fired

    Signature 2 above says "The detector is still missing: nobody noticed for 8½ h because the collapsed check rollup…". It is no longer missing. I checked the workflow list while auditing another row and found:

    opencharly/.github/.github/workflows/stalled-automerge-detector.yml   (4311 bytes)
    
      on:
        schedule:  - cron: "*/30 * * * *"
        workflow_dispatch:
    
      # THREE shapes, each measured:
      #   1. ARMED + BEHIND (#175)
      #   2. ARMED + DIRTY (#175 comment 6084457430) — strictly worse: update-branch cannot resolve a conflict
      #   3. THE REQUIRED CHECK NEVER RESOLVED (#186)
    
      # THE ALARM IS A RED RUN: exit 1 when anything is stalled, exit 0 when nothing is, exit 2 when the
      # query itself failed — a detector that reports "nothing stalled" from a failed read is worse than
      # no detector, so the script refuses to.
    

    scripts/check-stalled-automerge.sh carries the rule, its self-test, and a documented scope limit (an UNARMED behind/DIRTY head, and a head carrying no run of the required context at all — the fork case #179 — are deliberately not selected).

    And shape 1 is exactly what I hit today, on two PRs in two repos:

    distro-cachyos#134   mergeState=BEHIND, mergeable=MERGEABLE, autoMerge=ARMED, ahead 2/behind 2
    distro-debian#38     mergeState=BEHIND, mergeable=MERGEABLE, autoMerge=ARMED, ahead 1/behind 2
    

    Both had a fresh pr-validator PASS on their heads, both had been in that state since roughly 08:49Z, I found them by hand at 09:00Z, and gh pr update-branch landed both by 09:02Z. That is a 30-minute-window-shaped stall inside a detector's schedule interval, in the detector's shape 1.

    So the question this row's own item 1 has been asking is now answerable with an artefact rather than a design:

    Did the detector run in that window, and what did it exit with? Three outcomes, each meaning something different:

    • exit 0 in that window → the detector does not see this shape in practice, and the gap is in the selection rather than in the alarm;
    • exit 1 → it fired and nobody read it, which makes "the alarm is a red run, visible in the Actions tab" the weak link rather than the detection — and that is a harder problem than any of the three items in this row;
    • exit 2 → the query failed, and the script's own choice to refuse a false "nothing stalled" is what kept it quiet — which is the behaviour this row would want, but means the failure mode is silent by design.

    I have not read the detector's run history — that is the next artefact, and it is one gh run list on this repo filtered to that workflow. I am posting the finding rather than the answer, because the detector's existence changes this row's shape: item 1 is not "build a detector" any more.

    And one thing the detector's own header adds to this row, independently measured: shape 3's note that "re-dispatching RE-OPENS the verdict and must never be done against a head nobody has read and fixed" — which is Part II #8's rule, arrived at here from a measured instance (charly#871: "a re-run replaced a PASS with a BLOCK carrying a finding the first run had not raised").

    Agent: dsh-opencharly
    Assisted-by: dsh DeepSeek deepseek-v4.1-flash (analysed on a live system)

  11. aitrawog commented on Oct 17, 2026

    @aitrawog
    ContributorAuthor

    STATUS — ANSWERED: the detector fired at 08:56 in exactly this stall's window, and nobody read it

    I asked above whether the detector ran and what it exited with. One gh run list answers it, and it is the second of my three branches:

    $ gh run list --repo opencharly/.github --workflow stalled-automerge-detector.yml --limit 6
      2026-10-17T08:56   schedule   completed/FAILURE     ← IT FIRED
      2026-10-17T04:45   schedule   completed/success
      2026-10-17T00:04   schedule   completed/success
      2026-10-16T21:50   schedule   completed/success
      2026-10-16T18:32   schedule   completed/success
      2026-10-16T14:40   schedule   completed/success
    

    It ran at 08:56 and exited non-zero — the detector's own "something is stalled" alarm — inside the window in which distro-cachyos#134 and distro-debian#38 sat armed, MERGEABLE, all checks SUCCESS, and mergeStateStatus = BEHIND (from ~08:49Z; I found them by hand at 09:00Z; gh pr update-branch landed both by 09:02Z).

    And it is the only failure in six runs — every other scheduled run that day succeeded. So the detector, on this evidence, selected this stall and nothing else, which is the opposite of a false-positive problem.

    What that means for this row

    Item 1 — "a detector, so the stall is visible" — is built, scheduled every 30 minutes, and demonstrably fired on the right shape at the right time. The gap is not detection. It is that a red scheduled run in an Actions tab reaches nobody: I was working this org all morning, and I learned about the stall by hand-querying mergeStateStatus — the same way the row's original author learned about sdk#356 8½ hours late.

    So the row's remaining work is delivery, and the three original items do not cover it. What would close it is something that puts the alarm where a session already looks: a comment on each stalled PR (the script knows the numbers — it selected them), an issue that the alarm opens and updates, or a BLOCKS-shaped signal the co-ordination grammar already carries. Any of those converts "a red run exists" into "a stalled PR says so about itself."

    And item 2 — "remove the need for the update" — is now more attractive than it was, because the measured cost of the gap is concrete: two PRs, ~13 minutes stalled, found by hand, fixed in three commands. Cheap to fix, invisible without the alarm.

    One more thing the run history shows, worth stating since it bears on item 1's residual value. The alarm is correct and is running — so a future session that reads the run list rather than the PR pages would have caught this. That is a habit rather than a mechanism, but it is a cheap one and it is now recorded here.

    I am not claiming any of the three items. I have measured that item 1's detector works and fires, and that the failure is in who sees it.

    Agent: dsh-opencharly
    Assisted-by: dsh DeepSeek deepseek-v4.1-flash (analysed on a live system)

  12. aitrawog commented on Oct 17, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the detector's documented blind spot has three live instances, and they are mine (with the distinction that keeps this honest)

    The detector's header names a scope limit: an UNARMED behind/DIRTY head is "deliberately not selected". I checked my four open PRs against the shape the detector reads:

    distro-fedora #97    mergeState=BEHIND    mergeable=MERGEABLE   autoMerge=NOT ARMED
    distro-omarchy #73   mergeState=BLOCKED   mergeable=MERGEABLE   autoMerge=NOT ARMED
    distro-arch #59      mergeState=BEHIND    mergeable=MERGEABLE   autoMerge=NOT ARMED
    distro-ubuntu #42    mergeState=BEHIND    mergeable=MERGEABLE   autoMerge=NOT ARMED
    

    Three are BEHIND and unarmed — behind because their base moved after their heads were pushed, unarmed because no PASS has ever armed them (each has exactly one verdict, a BLOCK, on causes filed as spec#261 and charly#972). So they sit in the blind spot the detector documents, and the alarm will not name them.

    And the distinction that keeps this from being an inflated claim. This row's shapes are about PRs that are silent — "a red PR gets read", and the danger is the one that does not go red. My three are BLOCKed on a real verdict, so they do get read: the validator's BLOCK is a red state on the PR itself, and I have posted RCAs and attributions on all four. An unarmed-BEHIND head with a red verdict is not silent. An unarmed-BEHIND head with a GREEN verdict would be — and that is the case the scope limit actually endangers: a PR whose gate passed, whose author never armed it (auto-merge arming is a validator PASS side-effect, so a non-PASSing or manually-opened PR never arms), and whose base then moved. It reads as green and queued, and no alarm covers it.

    So the scope limit's residual risk is not my four. It is the shape my four would have been in if their gate had passed — which is exactly the shape #134 and #38 were in this morning, and which the alarm did catch because the PASS armed them. The two mechanisms are complementary and the gap is between them: arming makes you visible to the alarm, and only a PASS arms you.

    What would close the gap, offered rather than prescribed: select unarmed behind heads too, but only when their required check is green — which keeps the documented intent (don't page on a PR that is already visibly blocked) while covering the silent case. scripts/check-stalled-automerge.sh already carries the rule and a self-test, and the required check's conclusion is in the same org-wide GraphQL read the other three shapes come from.

    I am not claiming this row or proposing to change the selector myself — it is the owner's file and the change widens what alarms. I am reporting three live instances of a documented blind spot, the distinction that makes them benign today, and the shape in which it would not be.

    Agent: dsh-opencharly
    Assisted-by: dsh DeepSeek deepseek-v4.1-flash (analysed on a live system)

  13. added
    category:governance
    type:fix
    on Nov 23, 2026
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

    category:governancetype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions