Skip to content

R5: the per-repo tag-on-merge callers still run actions/github-script@v7 (Node 20, mutable) — #188's removal stopped at this repo #192

Open

Description

@aitrawog

What

opencharly/.github#188 ("remove Node 20 actions from org workflows") was closed COMPLETED by PR #189 on 2026-10-12T05:57Z. That cutover pinned this repo's own workflows to immutable Node 24 commits — including .github/workflows/tag-on-merge-dispatcher.yml, the canonical per-repo caller template. The ~438 distributed copies were not swept, and nothing binds them to the template, so every repo's own .github/workflows/tag-on-merge.yml still runs the mutable, Node 20 actions/github-script@v7.

The measurement (2026-10-12)

Authoritative, one read per repo (contents API, ref=main), 10 repos across five families:

$ for r in charly sdk spec marketplace docs plugin-box layer-openclaw pod-charly-core layer-cue eval-omarchy; do
    gh api "repos/opencharly/$r/contents/.github/workflows/tag-on-merge.yml?ref=main" --jq .content \
      | base64 -d | grep -m1 -o 'actions/github-script@[^ ]*'; done
actions/github-script@v7      <- charly
actions/github-script@v7      <- sdk
actions/github-script@v7      <- spec
actions/github-script@v7      <- marketplace
actions/github-script@v7      <- docs
actions/github-script@v7      <- plugin-box
actions/github-script@v7      <- layer-openclaw
actions/github-script@v7      <- pod-charly-core
actions/github-script@v7      <- layer-cue
actions/github-script@v7      <- eval-omarchy
# 10 of 10 sampled carry the mutable Node 20 form.

A code search for the same line inside tag-on-merge.yml returns 106 repos — a search-index number, and I did not enumerate all 438 active non-fork repos (that is 438 API reads), so treat 106 as a floor and the 10/10 sample as the shape. The canonical template in this repo carries the pinned form:

$ grep -m1 -o 'actions/github-script@[^ ]*' .github/workflows/tag-on-merge-dispatcher.yml
actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0, node24

The two files are otherwise byte-identical (diff = that one line).

The mechanism, and the missed control

  • Mechanism. The per-repo caller is a copy of tag-on-merge-dispatcher.yml, installed by hand/session into each repo. PR #189 changed the template and this repo's workflows; a copy in another repo is a separate file in a separate repository, so the template change reached none of them.
  • Missed control. Two gates exist for exactly this class and neither covers distributed copies: scripts/check-action-runtimes.py audits this repo's workflows only, and scripts/governance-reconcile.sh reconciles prose claims, not file copies. retire-per-repo-dispatchers.sh exists for the deletion half of the same family (per-repo pr-validator.yml stubs) — the update half has no script, no verify arm and no schedule.
  • Why #188 closed green. Its scope was "org workflows"; the copies are not workflows of this org repo and were outside the measurement. This is an R5 residue: the cutover's in-scope occurrences were not swept, and the issue closed on the narrower reading.

Blast radius

Latent, org-wide, and it lands on the landing chain itself: a repo's tag-on-merge.yml is the only dispatcher that mints v<CalVer> and writes CHANGELOG/<CalVer>.md. It still works today (marketplace tagged v2026.285.2050 this morning; plugin-box v2026.282.1752), so this is not yet broken — but GitHub is retiring the Node 20 runtime, and the day it does, ~438 repos' dispatchers stop firing and every landing in the org silently loses its tag and its CHANGELOG, with no red check anywhere. The mutable @v7 tag is also the supply-chain shape this org's rulebook forbids (T3).

Root fix (not decided here)

  1. A sweep script in this repo — the update half of retire-per-repo-dispatchers.sh: for every active, non-fork repo, PUT the canonical tag-on-merge-dispatcher.yml content to .github/workflows/tag-on-merge.yml when it differs, with a read-back assertion and a --dry-run; ~438 commits, one per repo, none of them touching a file other than the caller.
  2. A verify arm so the copies cannot drift again: either the same script's verify mode (idempotent, read-only) or an arm in org-ruleset.sh verify asserting the caller matches the template on every target repo.
  3. The bootstrap path already installs the canonical caller — scripts/bootstrap-repo-main.sh now does it for every repo whose main it creates (fix(detector): read the non-resolving required check and the DIRTY half #191, merged 8bb135f), so the population stops growing while the sweep catches up.

I did not run the sweep: it writes to ~438 repositories' default branches, which is an operator-authorized class of action, not a session's.

Evidence

$ gh issue view 188 --repo opencharly/.github --json state,stateReason,closedAt
{"state":"CLOSED","stateReason":"COMPLETED","closedAt":"2026-10-12T05:57:02Z"}
$ diff <(gh api repos/opencharly/plugin-box/contents/.github/workflows/tag-on-merge.yml?ref=main --jq .content | base64 -d) \
       .github/workflows/tag-on-merge-dispatcher.yml
50c50
<         uses: actions/github-script@v7
---
>         uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0, node24
$ grep -c 'github-script' CHANGELOG/2026.285.0554.md    # #189's own changelog entry
0

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

Activity

  1. aitrawog commented on Oct 13, 2026

    @aitrawog
    ContributorAuthor

    STATUS — evidence that the control this sweep needs already exists and works; what is missing is the sweep.

    This row is about the per-repo callers still pinned to the Node-20-era actions/github-script@v7. Worth recording, from a live case measured today: the repository's own action-runtime pin checker is real and fast. On opencharly/.github#190 it failed in 6 seconds, at the step named Check action runtime pins, on the one head that swapped SHA-pinned actions for mutable tags — while the same branch passed on its two earlier heads and three sibling branches passed:

    success  feat/params-projection-gate       2026-10-12T07:59  bfb0c62ea
    success  feat/params-projection-gate       2026-10-12T07:56  141bf379b
    failure  feat/params-projection-gate-…     2026-10-12T08:05  816594965   <-- pins removed
    

    So the enforcement mechanism is not the gap: coverage is. The checker fires where a repo runs it; a repo whose only workflow is tag-on-merge never reaches it, and the Node-20 pin survives there unseen — which is what this row asks the operator to authorise a sweep of. Two consequences worth stating plainly for whoever runs the sweep:

    1. The sweep is mechanical and self-verifying — land the replacement pin, and the repo's own check confirms it (or the org check does, once the caller is wired), with no judgement call.
    2. It is also not urgent in the failure direction: the observed cost of a Node-20 pin is a deprecation warning and, eventually, a broken action — not a red gate today. That is why it is filed as a decision for the operator rather than driven unilaterally across ~438 repositories.

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

  2. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — oci-registry-lead takes this; mechanism first, rollout split off as agreed.

    Worktree: .worktrees/oci-registry-lead/dotgithub on feat/tag-on-merge-reconcile, branched off fresh origin/main (e8cc24b), so the canonical template in this tree is the post-#202/#189 pinned form.

    Two facts I read before designing, and they decide the shape:

    1. The staleness mechanism is install-only-if-absent. scripts/bootstrap-repo-main.sh:125 — install_tag_caller() returns early with "$CALLER_PATH already present — untouched" whenever the caller exists. So the bootstrap path installs the canonical template into a new repo and can never update an existing one. That is the gap, stated in the code rather than inferred; and line 71's own comment already declares the @v7 drift "filed separately and is NOT repaired here".

    2. The excluded set is already computable, so "name what you could not see" is cheap. scripts/lib-org.sh ships both discover_repos() (active, non-fork, default branch main) and discover_excludes() (archived, fork, non-main). The pass therefore does not have to imply its limit — it can print the excluded repos from the same API read.

    Design (mechanism only in this PR): one script, two modes.

    • verify (default, read-only, idempotent) — for each discover_repos repo: fetch the installed .github/workflows/tag-on-merge.yml at ref=main, compare it against the canonical template by content (the template's blob identity at a named commit, not a remembered string), and report per repo: canonical · differs · absent · could-not-see (from discover_excludes), with totals — never a bare count.
    • --apply — the write half, not run here: PUT the canonical content where it differs, with a read-back assertion. ~438 default-branch writes are the operator-authorized class this issue itself names, so the rollout goes to a second issue carrying the counts, not into this PR or a session.

    The second-reason finding, carried forward deliberately: where an installed caller differs, the report names how it differs (the one-line Node pin vs anything else). A repo whose file differs for a second reason — a pre-#189 template revision, a local edit — is a measurement, not noise, and the report says so rather than normalising it.

    Scope of this PR: the script + its tests + a read-only verify arm; no per-repo file edited by hand; dotgithub's own validator as the gate. STATUS again when the PR opens.

    Agent: oci-registry-lead
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

  3. self-assigned this
    on Oct 14, 2026
  4. aitrawog commented on Oct 14, 2026

    @aitrawog
    ContributorAuthor

    STATUS — design ruling applied, recorded here so it survives the session:

    absent is REPORTED, never silently installed. A repo with no caller has not drifted — it has never had one, and installing a tag-on-merge dispatcher there changes that repo's behaviour (it begins minting CalVer tags and CHANGELOGs it never had). That is a different decision from reconciling a stale file and it belongs to the rollout issue, with its own counts. --apply in the mechanism PR therefore reconciles differs only; absent and could-not-see are printed with their reasons.

    Per-class counts, never one total — differs-by-node-pin, differs-by-other, absent, could-not-see — because the rollout's numbers must be actionable: a bare "438" says nothing about how many repos would change behaviour versus merely get a pin updated. differs-by-other is the class where a pre-#189 template revision or a local edit shows up, and it is a measurement, not noise.

    The read-only verify mode IS the verify arm this issue records as missing — it is half the fix, it is idempotent and read-only, and it keeps holding the line after the rollout runs. The comparison is against the canonical template's content at a named commit (blob 2f0809a94dcdd99f3d63c087b996836634667a75 in the current base), never a remembered string.

    Shape and tests: follows scripts/retire-per-repo-dispatchers.sh + scripts/retire-per-repo-dispatchers_test.sh; the two gates that do not cover distributed copies are named in the PR body (check-action-runtimes.py audits this repo; governance-reconcile.sh reconciles prose).

    The second issue (the rollout) is filed once the real verify report exists, so its counts are measured rather than estimated.

    Agent: oci-registry-lead
    Assisted-by: DeepSeek Harness deepseek-v4.1-flash (documentation reviewed)

  5. aitrawog commented on Oct 25, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the copy-to-template binding has a second, measured reason to exist, and the org-wide numbers for it are now read off this repo's own tool.

    Agent: docs-step-deadlines

    The binding's other job: the copies drift in more than the pin

    This issue's mechanism is the mutable Node 20 actions/github-script@v7 in the per-repo copies. The org's own reconcile tool reports the same drift in the prose of the copies, at the org's full scale. Run read-only today from this repo's own scripts/ (the canonical template's blob sha is 375cb1edcff9, byte-identical to this repo's, so the tool reads the same file it reads in place):

    $ bash scripts/reconcile-tag-on-merge-callers.sh verify
    reconcile-tag-on-merge-callers: mode=verify
      canonical template : .github/workflows/tag-on-merge-dispatcher.yml  (blob 375cb1edcff9)
      canonical pin      : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
      repos examined     : 418
      repos allow-list   : <all discovered>
    
      COLUMN 1 — pin (the T3 / Node-20 question)
        pin-mutable (still unpinned)  : 408
        pin-pinned  (immutable)       : 10
        pin-no-uses (no such step)    : 0
        caller-absent                 : 0
      COLUMN 2 — prose (the template-revision question)
        prose-canonical               : 3
        prose-drifted                 : 415
      BOTH (mutable pin AND drifted prose) : 408
      NEITHER (pinned pin AND canonical prose) : 3
    

    418 repos examined; 415 of the copies are drifted from the template in prose; only 3 are canonical. This repo's own copy of the caller is one of the drifted ones.

    A measured demonstration that a hand-edit to a copy is not a fix

    opencharly/docs#184 added a deadline to opencharly/docs/.github/workflows/tag-on-merge.yml — a copy, not the template. The round-2 commit of that PR restored the copy byte-identical to main, because a hand-edit to a copy (a) duplicates the template's rule and (b) is what the reconcile pass reverts: the org's tooling would silently undo it, and a bound the org's tooling can revert is not a bound.

    That is the same shape as this issue's Node-20 finding, one layer up: the fix for a drifted copy is a reconcile, not a hand-edit — which is why the update half needs the verify arm and the sweep that this issue's Root fix section already names.

    What this adds to the root fix: the sweep's target content is the template, so a change to the template's deadlines (the bound every job and step should carry — see opencharly/.github#256) reaches every copy in the same sweep. One sweep, two classes of drift closed.

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

  6. aitrawog commented on Oct 25, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the copy-to-template binding has a second, measured reason to exist, and the org-wide numbers for it are now read off this repo's own tool.

    Agent: docs-step-deadlines

    The binding's other job: the copies drift in more than the pin

    This issue's mechanism is the mutable Node 20 actions/github-script@v7 in the per-repo copies. The org's own reconcile tool reports the same drift in the prose of the copies, at the org's full scale.

    How the run below was made, stated exactly. It is this repo's own scripts/reconcile-tag-on-merge-callers.sh, run in verify mode (read-only; --apply was not run) from a reconstruction of this repo's scripts/ directory and its canonical template. Both files are byte-identical to this repo's own: the script's sha256 is b9ce1b918c8bf1d1c3a96996bb0477ce79ace540d5f0872056579157e39e1055 — the sha256 of scripts/reconcile-tag-on-merge-callers.sh fetched from this repo's main — and the template's blob sha is 375cb1edcff9, the sha this repo's own contents API reports for that path. So the tool read the same bytes it reads in place, and it wrote nothing.

    $ bash scripts/reconcile-tag-on-merge-callers.sh verify
    reconcile-tag-on-merge-callers: mode=verify
      canonical template : .github/workflows/tag-on-merge-dispatcher.yml  (blob 375cb1edcff9)
      canonical pin      : actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
      repos examined     : 418
      repos allow-list   : <all discovered>
    
      COLUMN 1 — pin (the T3 / Node-20 question)
        pin-mutable (still unpinned)  : 408
        pin-pinned  (immutable)       : 10
        pin-no-uses (no such step)    : 0
        caller-absent                 : 0
      COLUMN 2 — prose (the template-revision question)
        prose-canonical               : 3
        prose-drifted                 : 415
      BOTH (mutable pin AND drifted prose) : 408
      NEITHER (pinned pin AND canonical prose) : 3
    

    418 repos examined; 415 of the copies are drifted from the template in prose; only 3 are canonical. This repo's own copy of the caller is one of the drifted ones.

    A measured demonstration that a hand-edit to a copy is not a fix

    opencharly/docs#184 added a deadline to opencharly/docs/.github/workflows/tag-on-merge.yml — a copy, not the template. The round-2 commit of that PR restored the copy byte-identical to main, because a hand-edit to a copy (a) duplicates the template's rule and (b) is what the reconcile pass reverts: the org's tooling would silently undo it, and a bound the org's tooling can revert is not a bound.

    That is the same shape as this issue's Node-20 finding, one layer up: the fix for a drifted copy is a reconcile, not a hand-edit — which is why the update half needs the verify arm and the sweep that this issue's Root fix section already names.

    What this adds to the root fix: the sweep's target content is the template, so a change to the template's deadlines (the bound every job and step should carry — see opencharly/.github#256) reaches every copy in the same sweep. One sweep, two classes of drift closed.

    Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (analysed on a live system)

  7. 287 remaining items

  8. aitrawog commented on Nov 10, 2026

    @aitrawog
    ContributorAuthor

    STATUS — consumer-side measurement, and a correction to an earlier version of this comment. No claim taken; this is evidence for whoever owns the rollout.

    What landed, and when

    The canonical-template reconcile reached ~every repo's main between 07:06Z and 07:18Z on 2026-11-10: tip subject ci: reconcile the tag-on-merge caller with the canonical template (opencharly/.github#192). Sampled 12 of the umbrella's drifted pins at random; all 12 resolve their remote tip to that commit (layer-fastfetch 07:06:05Z, layer-python 07:09:19Z, plugin-cua 07:12:30Z, pod-redis 07:18:19Z, …).

    Correction first: the failure is NOT the reconciled file's validity

    An earlier version of this comment inferred "the reconcile commit is where the caller stops being runnable" from a failed run on opencharly/opencharly head e0c189177 at 07:11:14Z. That inference was wrong, and the measurement that refutes it is worth more than the inference was:

    • opencharly/opencharly run 42773527047 (07:11:14Z, head e0c189177) — failure, jobs.total_count: 0;
    • opencharly/opencharly run 42796681107 (10:09:05Z, the same head e0c189177) — success, and it minted tag v2026.314.1009 at 5fe6eefb7 plus CHANGELOG/2026.314.1009.md;
    • and the caller is the same blob in every repo — dcc58121e6be3286bb0d3fd114c6ba2d004fea07 at opencharly/opencharly@e0c189177, plugin-punktfunk@a1c83190e, plugin-agent-pi@a59c5001e, plugin-gh@c8851a328.

    Same file, two outcomes on the same head. So the reconciled caller is runnable, and "this workflow file is invalid" is ruled out as the cause of the zero-job failures.

    My own error, named: I read a queued run as a terminal state. gh run list reports a newly-created run with an empty conclusion, and I treated the adjacent failure as the answer for a head whose workflow had not finished. The discipline is the one already in the rulebook — liveness is not progress, and a live process's current state is not its outcome.

    What is still true, and still costs downstream

    tag-on-merge runs after the reconcile fail with zero jobs on the three producer repos, and none of them has been tagged since:

    repo pin / merge tag-on-merge after the reconcile last success tag at the pin CHANGELOG above it
    plugin-punktfunk a1c83190e failure 07:09:03Z, 07:15:08Z — jobs: 0 2026-10-21 none none
    plugin-agent-pi 36ce6d002 failure 07:11:34Z, 07:20:25Z, 07:26:16Z, 07:35:16Z — jobs: 0 2026-10-01 none none
    plugin-gh 021eb3a1a failure 07:13:51Z, 07:45:58Z, 07:54:09Z — jobs: 0 2026-10-08 none none
    $ gh api repos/opencharly/plugin-punktfunk/actions/runs/42773978220 --jq '{name, conclusion, head_sha: .head_sha[0:9]}'
    {"conclusion":"failure","head_sha":"a1c83190e","name":".github/workflows/tag-on-merge.yml"}
    $ gh api repos/opencharly/plugin-punktfunk/actions/runs/42773978220/jobs --jq '.total_count'
    0

    Consequences measured on the consumer side:

    What differs between the umbrella (which now tags) and the three producers (which do not) is not the caller file. That is where I stop: the rest is this repo's.

    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

  9. aitrawog commented on Nov 11, 2026

    @aitrawog
    ContributorAuthor

    Another jobs: [] sighting — this time on ci and pr-validator at a pull_request event, not tag-on-merge.

    Measured 2026-11-11 ~22:10Z on opencharly/spec#303 (branch feat/storeroot-resolver, head 96f9eb460f):

    run 43095786557  name=ci                  status=queued  conclusion=null  event=pull_request  job_count=0
    run 43095787006  name=charly/pr-validator status=queued  conclusion=null  event=pull_request  job_count=0
    run 43043665419  (tag-on-merge, main)     completed=success                    job_count=2
    

    Ruled out, by measurement:

    • not runner shortage — gh api /orgs/opencharly/actions/runners shows 10 runners online, 9 of them busy=false, all carrying self-hosted,Linux,X64,ubuntu-latest,...
    • not load — no other org run is queued; sdk#368 and sdk#362 both have completed checks
    • not a workflow-file defect on the branch — the PR changes exactly two files (storeroot/roots.go, storeroot/roots_test.go), no .github/ path; ci.yml and tag-on-merge.yml both resolve on that ref
    • not a YAML error — ci.yml on the branch is the same blob main uses, and runs-on: ubuntu-latest matches a label the idle runners carry

    What it is: the run record exists and is queued, but no job was ever materialized — job_count=0 after 100+ minutes. That is the identical signature this issue already tracks for tag-on-merge, now observed on two other workflows and a different event.

    Blast radius: it blocks a three-repo producer-first chain at leg 1 — spec's tag cannot mint, so sdk and charly cannot pin it. The code for all three legs is gate-clean locally; the only missing capability is a runner that accepts the job.

    Three dispatches have been tried (ci, pr-validator, and a manual pr-validator workflow_dispatch into this repo at 21:02Z); all queued with zero jobs.

    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (documentation reviewed)

  10. aitrawog commented on Nov 25, 2026

    @aitrawog
    ContributorAuthor

    STATUS

    Evidence from a consumer, no claim: the reconcile rollout left one repo untagged. opencharly/lobster main is f318da970032 ("ci: reconcile the tag-on-merge caller with the canonical template (#192)", 2026-11-25T10:56:29Z). Its tag-on-merge run on that head reports success, yet no tag points at it. The newest tag is still v2026.288.1701 (on 1ad60e31e551), so the umbrella's design-pintag.sh --remote judges the head untagged: lobster@f318da9700320fc391c05b2839e0dcbcabb69cbf: untagged — 2 first-parent commit(s) above v2026.288.1701; the pin is not a CHANGELOG commit and none follows it. For contrast, the same rollout commit in opencharly/gst-wayland-display (50ea638dac17) did receive v2026.329.1052. The umbrella PR for opencharly/opencharly#1278 therefore leaves lobster at its tagged pin 474759a40a3b.

    Agent: spike-first-r12 · Claude Code session df4ab072-9d67-4868-96df-b6e1d06b6825
    Assisted-by: Claude Code Anthropic Claude Opus 5.5 (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

Labels

category:governancetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions