Skip to content

ci: tag-on-merge on pr-validator completion (corrected RCA — auto-merge commits are run-suppressed) - #9

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/tag-on-merge-workflow-run
Aug 22, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/tag-on-merge-workflow-run

Conversation

@atrawog

@atrawog atrawog commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Corrects the tag-on-merge trigger design. PR #8's push-only trigger was based on a false premise; this PR replaces it with the one event whose delivery is proven in this repo — workflow_run on the pr-validator run that arms the auto-merge — plus push as a secondary path for human/bot pushes. No cron.

RCA — why the merge itself cannot be the trigger (measured):

The merge-into-main cannot be a GitHub Actions trigger for auto-merged PRs. Native-auto-merge squash merges (actor app/github-actions) do fire their webhook events — visible in the public event stream:

$ gh api repos/opencharly/opencharly/events -q '.[] | select(.type=="PushEvent") | ...'
2026-08-22T21:35:01Z sha=e222762 by=github-actions[bot]   <- PR #8 merge push
2026-08-22T21:08:34Z sha=f5d8a3c by=github-actions[bot]   <- PR #7 merge push
2026-08-22T17:36:32Z sha=fc6c603 by=github-actions[bot]   <- PR #6 merge push

…but GitHub Actions creates zero workflow runs for them (platform-level run suppression for auto-merge commits):

$ gh api repos/opencharly/opencharly/actions/runs -q '.workflow_runs[] | select(.head_sha=="e222762")'
(empty — no push run, no closed run, no run of any kind for the merge commit)

This is the same mechanism that made pull_request: closed never fire (0 pull_request-event runs in the workflow's entire history across 7 merges) and is why PR #8's on: push trigger produced nothing for PR #8's own merge. Human merges (PRs #1–#2) and bot contents-API commits (the changelog commits) do create runs — hence push is retained as a secondary trigger for those paths.

The cron was also unreliable: measured 21–44 min gaps vs the configured 15, PR #3's tag 4+ h late. This design has no cron.

The working design: the pr-validator run is the last actor before the merge (its final step arms native auto-merge). Firing workflow_run on its completion and waiting (bounded 5 min readiness probe) for the squash to land makes the merge the effective gate for tagging. The org's reusable sweep is idempotent and scans 24 h of merged PRs, so any timeout self-heals on the next validator completion. The rulebook's add-only backfill remains the documented failure path.

How tested

  1. Workflow structure (YAML, parsed):
on: {'workflow_run': {'workflows': ['charly/pr-validator'], 'types': ['completed']}, 'push': {'branches': ['main']}}
jobs: ['wait-for-merge', 'tag']
tag: {'if': "github.event_name == 'push' || github.event.workflow_run.conclusion == 'success'", 'needs': 'wait-for-merge', 'uses': 'opencharly/.github/.github/workflows/tag-on-merge.yml@main'}
  1. R10 — gates on the committed tree (feat/tag-on-merge-workflow-run @ 3af8b49):
$ task verify
verify-pins: OK — 23 submodules, policy B holds
OK: .../.pi/extensions/umbrella-gates.ts parses (node type-strip pass)

$ task harness
check-harness-parity: OK — 6 shared harness files identical to charly/
  1. Live end-to-end (post-merge): the next pr-validator completion after this merges fires the workflow_run trigger → the sweep backfills the two pending tags — v2026.234.2108 (PR fix: escape backticks in umbrella-gates rules template (pi extension parse error) #7) and v2026.234.2135 (PR ci: tag-on-merge via push-to-main (replace dead closed trigger + flaky cron) #8) — plus their CHANGELOGs, and tags this PR. Verified after merge; watched for startup_failure (the historical 12:12–12:51Z failures died on a workflow-file issue at startup — logs were unavailable retroactively, so the first live event is the proof).

Rulebook compliance

Rule Applicability
R1 — RCA every anomaly Corrected RCA above: PR #8's premise (verify push runs = merge pushes) was disproven by head-SHA correlation; the missing tags were root-caused to platform run-suppression for auto-merge commits
R2 — no deferral The pending v2026.234.2108/v2026.234.2135 tags are fixed by this design (backfilled on the first validator completion after merge)
R3 — no duplication One canonical trigger set in the dispatcher; the org reusable remains the single tag/changelog implementation
R4 — no workarounds No sleeps/retries — the wait is a bounded readiness probe for a guaranteed state (auto-merge armed by the same run); the cron workaround is deleted
R5 — delete legacy completely PR #8's misleading push-only trigger + its false header claim removed/corrected in the same commit
R6 — git safety git status checked before branching; no force-push, no direct push to main
R7 — prove the gate task verify + task harness green (pasted above)
R8 — harness parity .github/workflows/ not in the parity map; task harness confirms the 6 shared files unchanged
R9 — artifact rebuild N/A — no deployed binary / target-image rebuild; the changed artifact is the CI workflow itself, exercised live on the next validator completion
R10 — fresh disposable proof Gates re-run on the committed tree; live proof deferred to the post-merge validator completion (item 3 above)

Change classification

  • Change class: bugfix (CI workflow — tag-on-merge dispatcher triggers)
  • Verification gate: task verify (R7) + live event evidence (public PushEvent vs zero runs) + post-merge self-validation
  • Attribution tier: analysed on a live system — trigger behavior measured live (event stream + runs API, output retained); the full end-to-end gate (merge → tag → changelog) completes after merge, so fully tested and validated is claimed once the backfill is observed

Assisted-by: pi deepseek/deepseek-v4-flash (analysed on a live system)

…aky cron

RCA: tag delivery was driven entirely by GitHub's best-effort cron
(measured 21-44 min gaps vs the configured 15; PR #3's tag 4+ h late;
PR #7's tag still missing 30 min after merge). The pull_request:closed
trigger added in PR #4 never fired a single run (0 runs across 7 merges,
API-confirmed), and the earlier workflow_run design died 15x in a row
with startup_failure. The one trigger that demonstrably fires at merge
time is the push to main that IS the squash-merge (verify.yml push runs
arrive ~20s after each merge). Re-trigger on push: branches: [main];
the org reusable workflow is idempotent, so the CHANGELOG bot push
re-trigger is a cheap no-op sweep.
The push-only trigger shipped in #8 was based on a false premise: the
verify.yml 'push' runs cited were changelog-bot commits, not merge pushes.
Measured reality: native-auto-merge merges (actor app/github-actions) fire
their webhook events (visible in the public event stream) but GitHub Actions
creates ZERO workflow runs for them — platform-level run suppression. The
pull_request:closed trigger never fired either (0 runs in history). The only
trigger whose event delivery is proven is workflow_run on the pr-validator
run — the run that arms the auto-merge. This fires on its completion, waits
(bounded) for the squash merge to land, then runs the org's idempotent
tag-on-merge sweep. push remains as a secondary trigger for human/bot pushes
(which do create runs). No cron: measured delivery was 21-44 min late.
Keep the workflow_run + push design (this PR's corrected RCA); PR #8's
push-only trigger was based on a disproven premise and is superseded.
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: daf87f62278bf6b67773460705512d7daa0cacf0 (branch: feat/tag-on-merge-workflow-run)

Security screen: PASS — single-file CI workflow change; no scope mismatch vs body; actions/github-script@v7 is the official action (no unexpected refs); the JS only lists/gets PRs (no egress, no secrets); no guardrail weakening (tag-on-merge is not a security gate, and the sweep is add-only/idempotent so fork-triggered workflow_run events cannot mint spurious tags). The end-to-end proof (trigger fires → tag lands) is unobservable pre-merge by construction (the trigger only activates once the workflow is on main) — per the self-gating ground rule I verified the mechanism statically instead: trigger name/event match the proven-delivery workflow, if: conditions evaluate correctly for both event types, the wait is a bounded 5-min readiness probe with a documented add-only backfill failure path, and the body's parsed YAML matches the current diff exactly. The only evidentiary wrinkle (gate output labeled at 3af8b49 while head is the conflict-resolution merge daf87f6) is immaterial: the merge touched only tag-on-merge.yml, which task verify/task harness do not read, and the repo's own validate/verify checks are running on the head.

Checklist: All applicable rules PASS or NA (R1 RCA'd with live event-stream/runs-API evidence and no forbidden framing; R2 pending tags routed to this PR's mechanism; R4 probe is a bounded wait for a guaranteed state, not a retry-on-flake; R5 push retained only as a justified secondary path; R10 evidence internally consistent and reconcilable from the diff; tier analysed on a live system is honest, not inflated; ADE/SDD/architecture placement N/A — thin dispatcher at the repo layer with the implementation remaining in the org reusable, placement: CORRECT).

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 22, 2026 21:59
@github-actions
github-actions Bot merged commit b594879 into main Aug 22, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: daf87f62278bf6b67773460705512d7daa0cacf0 (branch: feat/tag-on-merge-workflow-run)

Security screen: PASS — single-file CI workflow change, fully accounted for in the body; actions/github-script@v7 is the official action (no unexpected refs); the JS only lists/gets PRs (no egress, no secrets, no eval); permissions: pull-requests: read retained and sufficient; fork-triggered workflow_run events cannot mint spurious tags (head-branch filter scoped to context.repo.owner, sweep is add-only/idempotent); no guardrail weakening.

Checklist: All applicable rules PASS or NA.

  • R1: corrected RCA with internally consistent measured evidence (event stream SHAs line up with the PR's base e222762 = PR ci: tag-on-merge via push-to-main (replace dead closed trigger + flaky cron) #8 merge; runs API empty for auto-merge commits); no forbidden framing. R2: pending tags routed to this PR's backfill mechanism. R4: the 5-min wait is a bounded readiness probe for a guaranteed state (auto-merge armed by the same run) with a documented self-heal + add-only backfill path — not a retry-on-flake. R5: false premise removed, push retained only as a justified secondary path. R10: workflow-class gate (task verify + task harness) pasted green; CI validate + verify green on the head; end-to-end live proof is unobservable pre-merge by construction (self-gating) — mechanism verified statically, and the body honestly claims only analysed on a live system, not a higher tier. ADE/SDD/architecture placement N/A (thin repo-layer dispatcher; implementation stays in the org reusable — placement: CORRECT).
  • Comment intake: the single prior github-actions[bot] PASS comment was independently re-derived against the current diff/body/CI — all its claims reproduce (diff shape, YAML parse, gate-output SHA vs conflict-merge head immaterial, bounded probe) — verified-non-blocking.

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

charly-auto-merge Bot added a commit that referenced this pull request Aug 22, 2026
@atrawog
atrawog deleted the feat/tag-on-merge-workflow-run branch August 22, 2026 22:06
atrawog added a commit that referenced this pull request Aug 30, 2026
`task sync`, not a hand-pin. Three gitlinks advance, and only three:

  charly           a8875f4b -> 0e4d026d   (its default branch, rolling)
  distro-omarchy   2f5e5c1b -> db2199a9   (policy B: exactly what charly pins)
  marketplace      db0593e5 -> 11380419   (its own default branch)

Policy B verified independently of the script rather than taken on trust: the new charly
pin's own box/omarchy gitlink is db2199a9, and that is what distro-omarchy is staged at. The
invariant is that a distro pin equals THE COMMIT CHARLY PINS — not that submodule's latest
main, which is a different and wrong comparison.

## What it brings in

  distro-omarchy #8  the omarchy beds assert through typed verbs, not shell
                 #9  upstream's system and cups acceptance suites, ported
  charly        #497 the plugin-vm pin that made `vm build omarchy-vm` possible at all
                #498 repins the four check verbs that gained fields
                #499 advances box/omarchy to the above
  marketplace   #255 projects the moved wl skills and the new omarchy skills

check-omarchy-iso-vm goes from 28 assertions to 52, and from 43 `command:` shell steps
across three beds to 4 in this one.

## How tested

    $ task verify
    check-policy-b: OK — 6 distro pins equal charly's gitlinks
    verify-pins: OK — 349 submodules, policy B holds
    [exit 0]

One thing worth recording, because it cost time and looks like a defect when it is not:
after `task sync` the umbrella reported `Mm charly` — a DIRTY submodule, which fails verify
and is a review blocker. It was not dirt. charly's own inner `box/omarchy` gitlink had moved
to db2199a9 in #499, while the working checkout was still at 2f5e5c1b, and
`git submodule update --recursive` could not move it until the inner clone had fetched the
new commit. `git -C charly/box/omarchy fetch origin main` then checking the pinned commit out
directly resolves it, after which charly is clean and verify passes.

The bed itself was proven on the exact distro-omarchy commit this pins, in
opencharly/distro-omarchy#9: `check-omarchy-iso-vm` (`disposable: true`) at
`PASS (steps=9)`, with check-live and check-live-rebuild both at
`52 steps: 52 passed, 0 failed, 0 skipped`.

Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3

Co-authored-by: atrawog <[email protected]>
atrawog added a commit that referenced this pull request Aug 31, 2026
…verbs (#92)

Produced by task sync, not hand-pinned. Four gitlinks:

    charly                  a5fdeec1 -> 0f18d857   (its default branch)
    distro-omarchy          2081960d -> 77df17b6   (policy B: exactly what charly pins)
    pod-hyprland            advanced to c29ed062
    layer-cstream-desktop   advanced to 54b47273

Policy B verified independently of the script: distro-omarchy's pin equals THE COMMIT CHARLY
PINS at box/omarchy, not distro-omarchy's latest main.

## What it brings in

    distro-omarchy #12  upstream omarchy's five GUI acceptance suites - session, apps, menu,
                        panels, shell-surfaces - taking check-omarchy-desktop-vm from 16 steps
                        to 99, every assertion a typed check verb
    plugin-wl      #9   wl exec and wl clipboard set never returned for commands that do not
                        exit; both reported failure for operations that had succeeded
    pod-hyprland   #9   with layer-cstream-desktop #11 and layer-omarchy-hyprland #4 - the four
                        ordered repins that kept plugin-wl at ONE version across the closure
    charly         #511 the box/omarchy gitlink and import pin

The wl defects are the substantive ones. exec backgrounded a job but the child inherited
stdout and stderr, so the capture pipe never reached EOF and the verb blocked for its whole
deadline - an app launched, mapped its window and closed on request while the verb that
started it reported DeadlineExceeded. wl-copy does the same, because it stays alive to own the
Wayland selection. A false FAIL for correct behaviour is the worst shape a check verb can take:
it teaches the author to widen the timeout or delete the step.

## Why only four gitlinks and not the 14 task sync moved

task sync advances EVERY submodule to its default-branch HEAD, and this run moved 14. The
other 10 are unrelated to this work and #66 is in flight covering that ground.

The four committed here are the values task sync produced - not hand-picked - and they are
exactly what Policy B requires. The remaining 10 are left to #66 rather than raced.

## How tested

    task verify
    check-policy-b: OK - 6 distro pins equal charly's gitlinks
    verify-pins: OK - 356 submodules, policy B holds
    exit 0

Claude-Session: https://claude.ai/code/session_01YKF2VLqeHHbrBDz8XftaD3

Co-authored-by: atrawog <[email protected]>
aitrawog pushed a commit that referenced this pull request Oct 14, 2026
…rge (v2026.287.2003)

charly-registry#10 (WS3 PART 2, the read-only serving leg) merged at 2026-10-14T20:03:15Z,
squash 848017c778dd52dfb00b269a1583ca8000cf872c, tag v2026.287.2003. This advances the
gitlink from the #9 merge (2b9b55f) to that merge, per Part II #3 — a merged ref, so the
pin stays Policy B-legal.

Self-verifying fence: the tag commit tree is 9c16a212f3d95f537adb961e34eaf7f37b72809f —
the SAME tree the serving leg validated on its own branch. A squash means the branch
commits are not ancestors, so the tree hash is the only fence that proves what landed is
what was proven, and it matches.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Oct 14, 2026
…26.287.2003 merge) + its org-map row (#482)

* chore(umbrella): add the charly-registry submodule at v2026.287.1823 + its org-map row

`opencharly/charly-registry` is not in the umbrella at all (no `.gitmodules` entry, no
directory), so the repo is invisible in the org map. This adds it as the ADDITION it is:

- `.gitmodules`: path `charly-registry`, url https://github.com/opencharly/charly-registry
- gitlink pinned to the MERGED ref 2b9b55f (the merge of charly-registry#9)
- README `### Plugins`: the row, placed by ROLE (it hosts a candy with a `plugin:` block
  serving `command:registry`, like plugin-oci and plugin-vm), the section claim 118 -> 119,
  and the header total 428 -> 429. Rows are NAME-sorted (a `-suffix` row must follow its
  shorter sibling, which is why the insertion was asserted before the gate was run).

Gates: `charly task org-map` PASS (1 step, 0 failed). `charly task verify`: see the PR body.

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

* chore(umbrella): advance the charly-registry gitlink to the PART 2 merge (v2026.287.2003)

charly-registry#10 (WS3 PART 2, the read-only serving leg) merged at 2026-10-14T20:03:15Z,
squash 848017c778dd52dfb00b269a1583ca8000cf872c, tag v2026.287.2003. This advances the
gitlink from the #9 merge (2b9b55f) to that merge, per Part II #3 — a merged ref, so the
pin stays Policy B-legal.

Self-verifying fence: the tag commit tree is 9c16a212f3d95f537adb961e34eaf7f37b72809f —
the SAME tree the serving leg validated on its own branch. A squash means the branch
commits are not ancestors, so the tree hash is the only fence that proves what landed is
what was proven, and it matches.

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

* revert(umbrella): restore the charly gitlink to the base value (R6/T3 scope)

Round-3 BLOCK findings 1 and 2: the branch diff advanced the charly gitlink, which this
PR does not describe. The bump came from a charly task sync PREVIEW run, and while I
unstaged it before the second commit, the FIRST commit had already carried it --
"unstaged" was a claim about the index at a moment, not about the commit.

This restores charly to the base value, so the diff path set is exactly the three paths
this PR is about: .gitmodules, README.md, charly-registry. Any advance of charly belongs
to the wave pin-sync PR, where task sync selects the set.

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

---------

Co-authored-by: Andreas Trawoeger <[email protected]>
github-actions Bot pushed a commit that referenced this pull request Oct 21, 2026
…er (#550)

`charly task sync` on a fresh `origin/main` branch, charly rolling first and its consumers
following in the same wave. Eleven gitlinks advance; `pod-openwebui`, `pod-immich`,
`layer-python` and `marketplace` are the consumer side of this session's merged PRs, and
`charly` carries the two core fixes they depend on.

  charly              42715ee9 -> f326e7c6   (incl. #1002 welded words, #1004 leaf cap)
  docs                d67d25de -> c626e336
  dotgithub           0d89ea5a -> 5103558c
  layer-charly-check  79e6cdde -> cbd44f22
  layer-python        869d9f8c -> 4dc08885   (#9 interpreter floor check)
  marketplace         c0d4003e -> cd0f34f2   (#517 corpus regeneration)
  plugin-box          ac7fa3f5 -> 94749c07
  plugin-migrate      a954fc5a -> 9088eb2b
  pod-immich          65a6b926 -> e3ff38d6   (#10 immich consumer comments)
  pod-openwebui       c131df9f -> dd266822   (#15 entrypoint provider fix + checks)
  sdk                 de254392 -> 7b8c9297

No `distro-*` row moves: they are edges derived from `charly`'s `box/*` gitlinks, and this
bump did not move those, so Policy B is satisfied without touching them.

Two things the wave surfaced, recorded here rather than left for the next reader:

1. The umbrella's OWN pinned binary cannot load the current project. `./charly/bin/charly`
   (2026.281.1057, built from the gitlink this commit advances) fails with
   `plugin_input fails #SkillInput: #SkillInput.description: incomplete value !=""` on
   `layer-openclaw`'s skill entity. The wave was therefore cut with a binary built from
   `charly` main (2026.293.1538). That is precisely the argument for `charly` rolling first
   in a wave — and for rebuilding the umbrella binary once per advance.
2. Four untracked directories exist in this checkout — `layer-charly-openclaw/`,
   `layer-openclaw-full/`, `layer-openclaw-full-ml/`, `pod-openclaw/` — each holding content
   and a `.git`, but absent from `.gitmodules` on `main`. They are NOT staged by this commit;
   adding them would have created four accidental gitlinks.

Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
github-actions Bot pushed a commit that referenced this pull request Nov 25, 2026
… releases land (#1274)

`charly task sync` on a tree current with origin/main (7f11b25): 74 leaf
submodules rolled to their default-branch HEAD (11 moved), 321 leaf pins
advanced in the index (11 moved) — 22 pins total. The five distro-* pin_map
edges were re-pinned from charly's own gitlinks and did not move.

Two of the moves are what this wave is for (#1273):

  sdk                2bfea23e -> dd87eb2c   sdk#640 — a unit never runs as container root
  plugin-deploy-pod  c87f056c -> c10caae    #97 — a CDI device rides a keep-id unit via a
                                            derived devices-only spec; #95 writes the
                                            deploy entry's image before any overlay write

The other 20 travelled on the same mechanism, each a merged upstream PR:
charly #1275, layer-cdi #20, layer-vectorchord #13, marketplace #652,
plugin-enc #11, pod-charly-mcp #15, pod-immich #23, pod-qwen3-tts #15/#13,
spec #440, plus eleven unmaterialized paths advanced in the index
(layer-devops-tools #8, layer-ollama-cuda #11, layer-ollama-rocm #9,
layer-pre-commit #9, layer-versatiles-style #7, pod-airflow #15,
pod-android-emulator-layer #21, pod-appium-server #9, pod-dbus #8,
pod-jupyter-ml #15, pod-pmtiles-viewer #7).

The plugin-deploy-pod advance moved engineDefaultRuntime from engine_ops.go:139-146 to
129-136, out from under the citation DESIGN A.13 records for "containerd namespace per
deployment" (design/dulling.tsv). The row is re-anchored to the construct's new range and
design/cite-baseline.tsv regenerated for that one row; the construct read at the new pin is
the same one, and the regenerated baseline changes no other row.

Agent: `immich-consolidation` · Claude Code session `113f762e-5d70-484a-9ed9-e34c6423c926`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant