Repository navigation
Description
Summary
A first-party fork repo in the org never gets allow_auto_merge (or
delete_branch_on_merge), so on a charly/pr-validator PASS the validator cannot
arm GitHub native auto-merge and the PR sits mergeStateStatus: CLEAN but unmerged.
A human must merge it by hand.
Mechanism (measured 2026-10-08)
scripts/org-ruleset.sh apply sets those two settings per-repo — they have no
org-level default — by looping for repo in "${repos[@]}", where repos is the
discover_repos target set (lib-org.sh): active, non-fork, main-default.
Forks are excluded from the ruleset by design, so they are not in repos and the
settings loop never touches them.
$ gh api repos/opencharly/dsh-github --jq '{allow_auto_merge,delete_branch_on_merge}'
{"allow_auto_merge":false,"delete_branch_on_merge":false} # isFork=true
$ gh api repos/opencharly/pi-subagents --jq '.allow_auto_merge'
false # isFork=true
$ gh api repos/opencharly/crabbox --jq '.allow_auto_merge'
false # isFork=true
$ gh api repos/opencharly/pod-dsh --jq '.allow_auto_merge'
true # isFork=false (target)
Why it now bites (it did not before)
opencharly/.github#177 (merged 2026-10-08, squash 220df6d2) corrected the required
workflow's predicate from head.repo.fork == false to
head.repo.full_name == github.repository, so a same-repo PR in a fork now runs the
validator (previously the required check was skipped, and the PR could never merge at
all — a different, worse failure). With the check now produced, the remaining blocker is
the missing allow_auto_merge: the PASS has nothing to arm.
Measured on opencharly/dsh-github#6: the validator posted PASS, but
mergeStateStatus stayed CLEAN with autoMergeRequest: null because the repo setting
was off. Setting allow_auto_merge=true and re-running the validator armed the merge
(autoMergeRequest non-null), which then landed.
Interim action taken (disclosed)
allow_auto_merge=true was set on opencharly/dsh-github via the repo PATCH API so the
already-PASSed PR could arm native auto-merge — the sanctioned path (the validator arms
the merge; no agent self-merge). That is a local repo setting, not a durable org fix.
Proposed root fix
Extend the settings loop in scripts/org-ruleset.sh to cover the fork subset of the
exclude set (a fork with a main default that participates in the org PR flow), or —
if forks are deliberately meant to be un-armed — document that a fork repo must have
allow_auto_merge set at creation, and have apply assert it. The exact scope decision
(fix vs document) is the operator's.
Agent: dsh-tui-install · session ses_eefd1f32fffeNl8ajvmzJ0hGLk
Assisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (analysed on a live system)
Activity
aitrawog commentedon Oct 8, 2026
CLAIM
CLAIM — I found and measured this while landing
opencharly/dsh-github#6(the first fork PR after#177). The interim unblock (allow_auto_merge=trueondsh-github) is done; the durable fix (extend theorg-ruleset.shsettings loop to the fork subset, or document/assert it at repo creation) is a scope decision I have not taken unilaterally and will implement per your direction.Agent:
dsh-tui-install· sessionses_eefd1f32fffeNl8ajvmzJ0hGLkAssisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 8, 2026
STATUS
Addendum — a design interaction worth deciding before the fix, measured.
discover_excludes(lib-org.sh) filtersisFork == true. So when the operator next runsscripts/org-ruleset.sh apply,dsh-github(a first-party fork withmain) drops OUT of the ruleset's target scope entirely — noworkflowsrule, no requiredvalidate / validate. The required check then applies again to nobody, which is the original deadlock (opencharly/dsh-github#2) returning through the exclude door rather than the skip door.Measured today:
Also measured:
dsh-githubhas notag-on-merge.ymlcaller, so it has no CalVer tags (its only tags are the fork's ownv0.7.x).So
#177fixed the predicate, but the scope is the remaining question: the org's design says first-party forks are un-managed repos, yetdsh-githubis a real maintained plugin the org pins intopod-dsh. Two coherent postures:#177's predicate fix then only matters for the window before the nextapply.isForkfilter for org-owned forks (or add an explicit include-list), so they get the same validator + auto-merge + CalVer as any other repo.#177's predicate fix then makes same-repo PRs validate.This is the scope decision I flagged; I have not taken it. The interim
allow_auto_merge=trueI set ondsh-githubis consistent with (b).Agent:
dsh-tui-install· sessionses_eefd1f32fffeNl8ajvmzJ0hGLkAssisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (analysed on a live system)
Agent:
dsh-tui-install· sessionses_eefd1f32fffeNl8ajvmzJ0hGLkAssisted-by: OpenCode ollama-cloud deepseek-v4.1-flash (analysed on a live system)
aitrawog commentedon Oct 9, 2026
STATUS — mechanism re-confirmed at
main, and the blast radius is now measured instead of asserted: 12 of 14 forks, all 14 ondelete_branch_on_merge.What was measured
opencharly/.github@main,scripts/org-ruleset.sh— both loops iterate the TARGET set only:discover_excludes(:93) is read only to build the ruleset's exclude list — nothing iterates or asserts over it.Live census of the whole org (
gh repo list opencharly --limit 500→ 458 repos, 14 forks), per-repogh api repos/opencharly/<r>:12 of 14 forks have
allow_auto_merge=false; 14 of 14 havedelete_branch_on_merge=false. The twotrues aredsh-github(the hand-patch the issue discloses) andgst-wayland-display(a fork whose default branch isstable, so it is outside the PR flow anyway).Root cause
Mechanism —
allow_auto_merge/delete_branch_on_mergehave no org-level default, so the script must set them per-repo; it sets and asserts them overdiscover_repos, which excludes forks by construction. A same-repo PR in a fork still runs the validator (#177corrected the required workflow's predicate tohead.repo.full_name == github.repository), so the PASS is produced and then has nothing to arm. Missed control — the provisioning loop and the assertion loop are the same set, so the setting is only ever asserted where it was just written; nothing asserts the post-condition over the repos the validator can now be triggered on. Blast radius — measured: 12 forks today, and it grows with every fork the org creates. Root fix — name the participating subset once and use it for both the settings loop and its assertion (a fork whose default participates in the org PR flow), or assert at fork-creation time; either way the loop and the assertion must not be the same derivation, or the assertion can never fail. Deps — needs the operator's fork-scope decision (does the org PR flow cover forks?) before the subset is named.Agent:
org-triage-2026-10-09Assisted-by: dsh deepseek-v4.1-flash (analysed on a live system)
fix(detector): read the non-resolving required check and the DIRTY ha…
aitrawog commentedon Oct 13, 2026
STATUS — a second, adjacent instance of the same scoping mechanism, measured today: a fork that is IN scope when the design says it must be OUT.
opencharly/openclawis a fork ofopenclaw/openclaw, created2026-10-10T21:56:07Z— after the lastorg-ruleset.sh apply— so it never made it into the rendered exclude list. The consequence is not a missing auto-merge; it is a branch that cannot be advanced AT ALL:Two siblings, one ruleset, opposite outcomes, and the only difference is which side of the last apply's timestamp their creation fell on. That makes the artifact measurable rather than speculative:
gh repo list opencharly --limit 500 --json name,isFork,isArchived,defaultBranchRefagainst the renderedconditions.repository_name.excludeof ruleset 23827016 names every repo in this state.The reason it matters here beyond #179's auto-merge case: the ruleset's only bypass actor is the
charly-auto-mergeIntegration (4675576,bypass_mode: always), so no plain push — agent or operator — can advance a fork'smain. A vendored upstream fork whose whole purpose is to track its upstream therefore cannot be kept current while it is in scope. This is what blocksopencharly/opencharly#472(registering the two OpenClaw forks as umbrella submodules), and it is not a defect in that PR.No scope taken here — this comment is evidence for your a/b decision, not a third posture.
Agent: dsh-openclaw-upstream
Assisted-by: DSH DeepSeek V4.1 Flash (analysed on a live system)
aitrawog commentedon Oct 13, 2026
STATUS — at the operator's explicit direction this session (2026-10-13, Europe/Vienna) I am making the ONE-NAME surgical exclusion this issue's evidence calls for, and recording who directed it, because the org ruleset is security machinery (rulebook T1–T4).
The direction, quoted from the operator's answer in the agent session that opened
opencharly/opencharly#472:chosen over the three alternatives offered in that question — the operator applying it themselves, re-running
scripts/org-ruleset.sh apply, or droppingopenclawfrom the cutover.The exact edit —
openclawadded toconditions.repository_name.excludeof ruleset23827016, nothing else:excludebefore: 25 names, sorted,openclawabsentexcludeafter: 26 names, sorted,openclawinserted betweenomarchy-eval-artifactsandopenclaw-enterprisename/target/enforcement/bypass_actors/ theref_nameconditions / the five rules (workflows,required_status_checks,non_fast_forward,deletion,creation): unchanged, sent back verbatim from the GET.It is deliberately NOT the recompute. The staleness is wider than one name, measured live just now (460 repos;
discover_excludesreplayed by hand):Four of those five are the first-party-fork posture THIS issue is about (
dsh-*), andclawsweeperis a fork in the same class. I am not deciding them by side effect; the edit narrows exactly one name.Why the edit is needed at all:
opencharly/opencharly#472registers the two OpenClaw upstream forks as umbrella submodules, and a pin must be the repo's own default-branch HEAD (README "Pinning"), soopencharly/openclawhas to be fast-forwarded to upstream first — which the requiredworkflowsrule blocks on every push while the fork is in scope (gh repo sync→Required workflow 'charly/pr-validator' is not satisfied, rc=1, head unchanged).Agent: dsh-openclaw-upstream
Assisted-by: DSH DeepSeek V4.1 Flash (analysed on a live system)
aitrawog commentedon Oct 13, 2026
STATUS — the directed one-name exclusion is live; the remaining drift is measured and deliberately left to you.
The edit landed on ruleset
23827016, read back from the API afterwards:repository_name.exclude25 -> 26, the delta being exactlyopenclaw;name,target,enforcement,bypass_actors, theref_nameconditions and all five rules identical. Effect:What that bought, and what it did NOT: the umbrella registration of the two OpenClaw upstream forks (opencharly/opencharly#472) is unblocked and its PR opens next. The general drift is untouched — and it MOVES, two measurements minutes apart:
So
org-ruleset.sh's ownverifyexclude comparison still reports a mismatch, deliberately: four of the six remaining names are the first-party-fork posture (a)/(b) this issue leaves open with you, and closing those by side effect would be exactly the unilateral scope decision I declined to take. The recompute stays your action item; the one name I added is the minimum that lets a mirror fork be advanced at all.Agent: dsh-openclaw-upstream
Assisted-by: DSH DeepSeek V4.1 Flash (fully tested and validated)
feat(umbrella): register the two OpenClaw upstream forks as submodules (
aitrawog commentedon Oct 13, 2026
STATUS — the instance measured on this thread is closed; the posture question this thread owns is not.
opencharly/openclaw— the fork no push could advance while the ruleset targeted it — fast-forwarded (head9354a2ca,identicalto its upstream) the moment the single nameopenclawentered ruleset23827016's exclude set, and its umbrella registration landed: opencharly/opencharly#473, squash5f45c82, merge-time tagv2026.286.1143, CHANGELOG2026.286.1143.md. opencharly/opencharly#472 is closed with the same record.Still open HERE, for you: the recompute (
org-ruleset.sh apply) and the first-party-fork posture. Measured after the landing, the in-scope-but-non-target set is unchanged at six names (clawsweeper,crabhelm,dsh-git-worktree,dsh-github,dsh-workspace-enhancement,lobster); my edit touched exactly one name and closed none of those, deliberately — deciding them by side effect is the scope I declined to take.No claim is taken on this thread's scope. This is the close-out of the
BLOCKSI posted on #472.Agent: dsh-openclaw-upstream
Assisted-by: DSH DeepSeek V4.1 Flash (fully tested and validated)
aitrawog commentedon Oct 13, 2026
STATUS — a second directed one-name exclusion, same mechanism, recorded BEFORE the edit as before.
Direction. Asked how to unblock
opencharly/clawsweeper(a second fork created after the lastorg-ruleset.sh apply), the operator chose "Same surgical one-name exclusion" over both the general recompute and pinning a stale head. That is the same class of change as theopenclawexclusion earlier today, extended to a repo named in the same request ("do the same with ... clawsweeper ...").The exact edit —
clawsweeperadded toconditions.repository_name.excludeof ruleset23827016, nothing else: 26 -> 27 names, sorted;name,target,enforcement,bypass_actors, theref_nameconditions and all five rules sent back verbatim from the GET.Still deliberately not the recompute. The in-scope non-target set changes by exactly this one name, so
org-ruleset.sh'sverifyexclude comparison still reports a mismatch and the first-party-fork posture (dsh-git-worktree,dsh-github,dsh-workspace-enhancement) stays yours.Context: part of opencharly/opencharly#474 — registering four OpenClaw-org upstream forks (
clawsweeper,crabbox,crabhelm,lobster) as umbrella submodules, the follow-up to #472.Agent: dsh-openclaw-forks
Assisted-by: DSH DeepSeek V4.1 Flash (analysed on a live system)
feat(umbrella): register the remaining four OpenClaw upstream forks a…
aitrawog commentedon Oct 13, 2026
STATUS — the second instance is closed; the posture question this thread owns is still open.
opencharly/clawsweeper— the second fork no push could advance while the ruleset targeted it — fast-forwarded (head1fa8e7d2, identical to its upstream) the moment the single nameclawsweeperentered ruleset23827016's exclude set (26 -> 27), and its umbrella registration landed together with the other three OpenClaw-org forks (crabbox,crabhelm,lobster): opencharly/opencharly#475, squashf90eb4b, merge-time tagv2026.286.1304, CHANGELOG2026.286.1304.md. opencharly/opencharly#474 is closed with the same record.Measured after this second edit:
Two of those five are the remaining OpenClaw mirrors (
crabhelm,lobster— both currently identical to their upstreams, so nothing is blocked today), and three are the first-party-fork posture (dsh-*) this thread leaves with you. The recompute (org-ruleset.sh apply) stays your action item, soverify's exclude comparison still reports the mismatch — deliberately, since narrowing it to the names that actually block a mirror while leaving the posture alone is the scope I was given.No claim on this thread's scope. This closes out the two instances I measured and edited under your direction.
Agent: dsh-openclaw-forks
Assisted-by: DSH DeepSeek V4.1 Flash (fully tested and validated)
docs(ci): org-wide runner label contract and the standard fork caller (…
feat(fork-gate)!: gate every first-party fork with the org ruleset, n…
aitrawog commentedon Nov 25, 2026
STATUS
STATUS — the durable fix merged in #322 (tag
v2026.329.0923): org ruleset B covers every active fork, andorg-ruleset.sh applynow setsallow_auto_merge/delete_branch_on_mergeoverdiscover_forks.The LIVE setting changes only when the rollout's apply runs (#320), so this issue closes then — not at the merge. The interim hand-patch on dsh-github is superseded by the script.
Agent:
fork-ci-gate· Claude Code sessiona49fdfba-bbc0-403f-90b9-3e298539b848Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
aitrawog commentedon Nov 25, 2026
RESOLVED
RESOLVED — the durable fix is LIVE. #322 (tag
v2026.329.0923) added org ruleset B and the fork settings loop; the rollout applied it on 2026-11-25: every active fork hasallow_auto_merge=trueanddelete_branch_on_merge=true, and theverifyfork loop reports no settings findings. The interim dsh-github hand-patch is superseded.Agent:
fork-ci-gate· Claude Code sessiona49fdfba-bbc0-403f-90b9-3e298539b848Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)