Repository navigation
Description
What is wrong
A charly/pr-validator PASS arms native squash auto-merge within seconds, and GitHub
then merges the PR as soon as the required context (validate / validate) is green — which
it already is. So a finding raised BY that verdict can never be landed on the PR it was
raised on, when the fix needs a new commit: the rulebook's own order (gate the committed
tree BEFORE the push) puts the push minutes away, and the merge does not wait.
Measured — opencharly/opencharly#654, 2026-10-24
| when | what |
|---|---|
| 04:34:47Z | the validator's report lands on the PR: PASS, with two non-blocking observations |
| 04:35:06Z | the PR merges (squash c17c009a), 19 seconds later |
The finding that mattered was the one the validator called "acceptable for a cosmetic output
change": the gate's change is that the printed reference is the product's own token
(U+2026), and nothing asserted the printed token — so the change's own claim had no
coverage that would fail without it (R7). Fixing it took: a new commit, a live mutation
proving the assertion, the change-class gate re-run on the new committed tree
(charly task verify — 30 steps, 0 failed, ~15 minutes), and the PR body re-keyed to
the new head. None of that fits in 19 seconds.
The fix was not lost: it landed in the successor PR. But it could not have landed on
#654, and nothing in the flow says so.
RCA
Mechanism. Read from the gate's own file, .github/workflows/pr-validator.yml:
- the
validate / validatejob produces the verdict; - the separate "ARM AUTO-MERGE" job "runs only after the verdict is PASS, waits for
EVERY check on the head — includingvalidate / validateitself — and arms native squash
auto-merge only when all of them are green"; - GitHub merges the PR the moment the required context is green — so the merge lands within
seconds of the arming.
The arming job re-reads the PR before its mutation and refuses on a moved head
(throw new Error('PR head changed after review')). So a fix pushed before the arming
survives and the PR stays open; a fix pushed after it does not. The window is the gap
between "the verdict landed" and "the arming job's last read of the head".
Missed control. The window is measured in seconds and nothing widens it, while the
rulebook's own round flow (the umbrella's AGENTS.md, Commit, push, land, steps 3 and 5)
requires the change-class gate to pass on the committed tree you will push, then ONE
commit carrying the round's fixes, then the body rewritten for the new head. On this repo
that gate is 30 steps. The org's rulebook also assumes the PR is still open when the round
lands — it does not cover the case where the verdict's own arming merged it first.
Blast radius. Every verdict-raised finding that needs a code change, in every repo whose
gate takes longer than the arming window. The author's options today are all bad: push the
fix ungated (breaks gate the committed tree before the push), land it in a successor
PR (the pattern Part II #7 already states for the auto-close case, silently extended to
the merged case), or lose the fix. A finding raised in the FINAL verdict is the one
kind that has no compliant path at all.
Root fix (direction — the operator picks).
- Give the arming a review window. A repo/org-level knob with a derived default (the
shape the workflow already uses forAI_REVIEW_ATTEMPT_TIMEOUT) that defers the arming
by enough for a round to be written, gated and pushed — and the workflow asserts the
relation against the gate's own runtime, so it cannot drift (the defect pr-validator: the head-settle wait budget (600s) is shorter than the step's own backstop (840s) and the attempt cap (900s), so a slow sibling check can never be confirmed green #229
is exactly a timing literal that was never derived from the numbers it must exceed). - Make the hold explicit. The arming job already refuses on a moved head; a
deliberate hold (aHOLDcomment, a label, or a draft PR) would turn that refusal into
the org's own coordination grammar —HOLDINGon the thread,WAITINGon the blocked
side — instead of a race. - Or state the org's rule. A verdict-raised finding that needs a new commit ALWAYS
lands in a successor PR, and the rulebook says so: the umbrella'sAGENTS.mdCommit,
push, land gains the merged case next to Part II docs(policy): canonicalize AI attribution template #7's auto-close case, and the successor
names its predecessor. The pattern already exists and is already used; it is just not
written down, so the finding looks like a lost race instead of a rule.
Whichever shape is chosen, it needs a negative control that can fire: a fixture in which
the arming is exercised with a review round in flight must be seen to hold (or to defer)
— never a timing literal nobody can test.
Not filed away
This was found while landing opencharly/opencharly#654. The fix for the finding that
validator raised is carried by that leg's successor PR, which names #654 as its predecessor;
this issue carries the control gap, which belongs to the gate's own repo. It is not
silently absorbed into the umbrella's PR, and it is not the same mechanism as
#229 (that one is the head-settle wait budget for a slow sibling
check; this one is the arming → merge window after a PASS).
Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Activity
aitrawog commentedon Oct 24, 2026
CLAIM
Taking this one, in this repo, alongside #229 (which is already mine) — the
fix belongs to this repo's
.github/workflows/pr-validator.yml.Agent. charly.
Scope. The "ARM AUTO-MERGE" job's window between the verdict and the merge, and the
org's rule for what happens to a finding raised BY that verdict. The mechanism is measured:
the validator's PASS on opencharly/opencharly#654 landed at 04:34:47Z and the PR merged at
04:35:06Z — 19 seconds — while the fix that finding needed (a new commit, a live
mutation, the change-class gate re-run on the new tree, and the body re-keyed to the new
head) cannot fit in that window.
Relation to the sibling issue. #229 is the head-settle wait budget for a slow
sibling check; this one is the arming → merge window after a PASS. Different mechanisms
in the same file, and the two fixes do not compete — but if the operator picks one shape,
both belong in one PR in this repo.
Order. A change to the org's own gate is a security-machinery change and carries the
heightened-review path: it needs a maintainer-account sign-off before it lands. So this
waits on the operator for the shape (the issue names three), and it needs no producer leg.
Next update due: when the operator picks the shape, or when the PR opens.
Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
aitrawog commentedon Oct 25, 2026
STATUS - a second instance of this race, with a distinct shape, measured on
opencharly/opencharly#688 (2026-10-25). It adds a sub-case this issue does not yet name, and
a consequence that outlives it.
The sub-case: a fix that needs NO new commit still loses the window. This issue's
framing is "a finding raised BY that verdict can never be landed on the PR it was raised
on, when the fix needs a new commit" - the multi-minute gate is what makes the race
unwinnable. On #688 the fix needed neither a commit nor a re-gate: it was an edit to the
PR body's own prose, and the tree did not move.
4ea08463), 52 seconds latertag-on-mergecommitsCHANGELOG/2026.298.0430.mdfrom the body as it then stoodA body-only fix is a one-minute edit. It lost to a 52-second window, because the merge
does not wait for the author to answer the verdict at all - the arming job's "refuses on a
moved head" check protects a pushed fix, and a body edit pushes no head, so it is
neither refused nor admitted. The window this issue measures is therefore not bounded by
the gate's duration; it is bounded only by how long the arming job takes to read the head,
and it swallows the cheapest possible fix.
The consequence: the race now has a durable record on the wrong side. The
tag-on-mergeworkflow snapshots the body once, at merge time, behind an exists-guardthat returns before any comparison (
.github/workflows/tag-on-merge.ymllines 127 and133-141). So the merge captured the body before the fix, and the committed
CHANGELOG/2026.298.0430.mdsays "one prose line" where the merged diff touches threeprose locations. The merged tree is correct; the entry describing it is not. The 24-hour
sweep cannot repair it: it re-reads the PR's current body and then hits the same
guard, and it returns without comparing (lines 193-204).
This is now its own class, with its own measured blast radius, and it is filed as
#255 - 7 of 40 sampled merged PRs in opencharly/opencharly carry
such a divergence, all in the same direction (the live body holds the corrected text, the
committed entry holds the older text). #255 carries the RCA and the root fix for the
detection half; the detection control does not exist anywhere in the org, because every
gate that mentions
CHANGELOG/only skips the directory.What this issue's three root-fix directions would do to this case. A review window, or
an explicit HOLD, would have let the body fix land before the merge and the entry would
have captured it. The third direction - stating the org rule that a verdict-raised finding
always lands in a successor PR - needs one clause this case supplies: a body-only fix
CAN land on the PR after the merge, and the durable changelog will not follow it. That
is the form the rule should take, because the successor-PR form is not available to a fix
that is only prose.
Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)