Skip to content

tag-on-merge (org reusable workflow) silently writes no changelog where CHANGELOG/ is absent #213

Closed

Description

@aitrawog

The tag-on-merge caller's changelog duty silently no-ops in a repository without a CHANGELOG/ directory

What happens

Owned repo, corrected. The first filing of this (opencharly/plugin-box#56) named plugin-box, whose
.github/workflows/tag-on-merge.yml is a THIN CALLER ending in
uses: opencharly/.github/.github/workflows/tag-on-merge.yml@main. The implementation is the org reusable workflow
below — which is why every repository using it is affected identically.

tag-on-merge is specified to write CHANGELOG/<CalVer>.md from the PR body when a PR merges. It does this in
opencharly/plugin-box (28 changelog files; the newest, 2026.288.1448.md, was written by the workflow for PR #55).
In a repository that has no CHANGELOG/ directory, it writes nothing and reports nothing.

Evidence, with the check calibrated first

An absent changelog is only evidence if the same check detects a present one, so both sides were measured:

opencharly/plugin-box      CHANGELOG/ exists, 28 files, newest 2026.288.1448.md  <- the caller's changelog ran
opencharly/pi-fabric       CHANGELOG/ exists,  2 files
opencharly/fireactions     CHANGELOG/ exists,  2 files
opencharly/plugin-nerdctl  no CHANGELOG/   (caller PR merged 2026-10-15T15:27:39Z)
opencharly/lobster         no CHANGELOG/
opencharly/rpiv-todo       no CHANGELOG/
opencharly/dsh-github      no CHANGELOG/
opencharly/pi-lsp          no CHANGELOG/
opencharly/layer-nerdctl   no CHANGELOG/

Six of the eight repositories where a caller merged (or is merged and pending) have no CHANGELOG/ directory, and
therefore have no merge-time changelog at all.

Why this is blocking rather than cosmetic

The PR body IS the changelog in this org, and the CalVer file is what makes history readable per release. A silent
no-op is the worst shape for it
: the merge looks successful, the workflow run is green, and the absence is only
visible to someone who goes looking for a file that never appeared. It also makes the rollout's own claim — "every copy
behaves like the source" — false in a way no check-run would reveal.

Suggested direction (not a decision, for the owner)

Either create CHANGELOG/ when it is absent (a first-run write is idempotent and matches the documented contract), or
make the condition explicit and visible: fail the job, or emit a core.warning, so "no changelog" is a reported state
rather than an invisible one. R3 forbids the silent branch either way.

Scope note

Found while installing the caller org-wide (#204). The caller is taken verbatim from the source in
this repository, so every copy carries this behaviour — fixing it here fixes it everywhere on the next pin bump.

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

Activity

  1. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    CORRECTION — the changelog is missing because tag-on-merge NEVER RUNS in these repositories. Please read this before acting on the report above.

    I filed this as "silently writes no changelog where CHANGELOG/ is absent". The code refutes that, and a run count refutes
    it harder.
    Both checks, measured:

    (1) THE CODE DOES CREATE IT. opencharly/.github/.github/workflows/tag-on-merge.yml:
          // CHANGELOG: create if missing (idempotent — independent of tag)
          try { await github.rest.repos.getContent({ ...path: changelogPath, ref: 'main' }); ... return; }
          catch (e) { if (e.status !== 404) { core.warning(...); return; } }        <- a 404 means CREATE, not skip
        The contents API creates intermediate directories, so an absent `CHANGELOG/` is not an obstacle. The workflow also
        emits `core.warning` on a real failure, so the "silent" part of my report was wrong too.
    
    (2) IT NEVER RAN. `tag-on-merge` workflow runs, per repository:
          news-podcast   0        lobster   0        plugin-nerdctl   0
        Zero runs — not zero changelogs. **The caller is on `main` and a PR has merged, and the workflow has never executed.**
    

    SO THE DEFECT IS DIFFERENT AND LARGER THAN REPORTED: the installed caller is INERT in these repositories. No changelog,
    AND NO CALVER TAG EITHER — because the tag is minted by the same workflow, in the same run.

    WHAT I BELIEVE THE MECHANISM IS, AND WHY I AM NOT ASSERTING IT. The caller triggers on
    workflow_run: workflows: ["charly/pr-validator"], and that workflow is defined in opencharly/.github and runs as the
    org-REQUIRED workflow — a workflow_run trigger fires for workflows in the same repository. If that is the cause, the
    caller can never fire in any repository that does not itself carry the validator. I have one measured fact (zero runs) and
    a hypothesis for it; the hypothesis needs its own check — read a caller's trigger against a repo where tag-on-merge DID run
    (opencharly/plugin-box) and compare.
    I am not repeating the mistake of filing the hypothesis as the finding.

    WHAT IS OWED, in order: (1) confirm whether tag-on-merge ever ran in plugin-box, and what its trigger is there;
    (2) if the trigger cannot fire, this is not a changelog bug but an inert-caller bug — a larger finding, and the fix is in the
    caller's trigger (or in having the reusable workflow invoked by the org workflow itself); (3) only then decide whether the
    changelog logic needs anything at all — on the evidence so far, it does not.

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

  2. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    DECISIVE MEASUREMENT — a perfect correlation. The callers installed by this wave NEVER FIRE; the ones that work all do.

    repo                  tag-on-merge runs   CHANGELOG entries
    --------------------  -----------------   -----------------
    plugin-box                   33                 28
    layer-charly-build           31                 20
    plugin-deploy-pod            35                 20
    news-podcast                  0                  0
    lobster                       0                  0
    plugin-nerdctl                0                  0
    

    Where the workflow runs, changelogs exist; where it does not run, nothing exists. The correlation is exact across six
    repositories, so the missing changelog is a SYMPTOM, not the defect. The defect is that the newly installed caller is
    inert.

    WHAT THIS MEANS, and it is larger than the report above: a merge into any of those three repositories produces
    no CalVer tag either — the tag is minted by the same workflow, in the same run. Three repositories have merged PRs
    with no release tag and no changelog
    , and nothing in the merge or the validator reports it.

    WHAT I AM NOT DOING: asserting the cause. The three working repositories have 31–35 runs; the three new ones have zero.
    The difference could be the trigger (plugin-box's header says "bot contents-API commits DO create runs — hence push is
    kept"
    , i.e. a push trigger, whose behaviour differs from a workflow_run one), a workflow-name mismatch, a missing
    permission, or a missing secret. I have the correlation; I do not have the cause, and this session has already filed two
    wrong mechanisms for this defect.
    The next check is one comparison: read the trigger of a WORKING caller (plugin-box) and
    of a NON-working one (news-podcast), and diff them.

    THE ONE THING THAT IS CERTAIN: before this wave installed anything, opencharly/.github#204's rollout claim —
    "every copy behaves like the source" — is FALSE in the way that matters. The copies carry the same BYTES and do not RUN.
    Byte-equality was verified for all 21 copies and proves nothing about this.

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

  3. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    TIGHTENED — what is certain, and what I am NOT claiming. Please treat this as the finding; the two earlier mechanisms were wrong.

    CERTAIN, each measured:

    1. the caller is REGISTERED and ACTIVE:   workflows -> "tag-on-merge  state=active  path=.github/workflows/tag-on-merge.yml"
    2. the trigger is IDENTICAL to a working caller (plugin-box), diffed byte for byte on the `on:` block:
           on:
             workflow_run: { workflows: ["charly/pr-validator"], types: [completed] }
             push:         { branches: [main] }
           permissions: { contents: write, pull-requests: read }
    3. the workflow NAME is `tag-on-merge` in both — so a name filter is not producing the zero
    4. RUNS: plugin-box 33 · layer-charly-build 31 · plugin-deploy-pod 35  |  news-podcast 0 · lobster 0 · plugin-nerdctl 0
    5. in news-podcast, the set of workflow names with ANY runs is exactly: ["charly/pr-validator"]
    6. a merge to main DID occur after the caller existed (news-podcast#6, 2026-10-15T17:01:10Z)
    

    WHAT I AM NOT CLAIMING: that the caller is "inert" as a property of the file, or that CHANGELOG/ or the bot token is
    the cause. The file is active and its trigger matches a working one. The three candidate causes I can see, none verified:

    (a) the `workflow_run` half cannot fire, because `charly/pr-validator` is defined in opencharly/.github and runs as the
        org-required workflow, and `workflow_run` matches workflows in the SAME repository — leaving only the `push` half,
        which then has to carry the whole load;
    (b) the `push` half did not fire for the merge that CREATED the file (a squash-merge by the ruleset's bypass App);
    (c) something in the repository's Actions configuration that a file diff cannot show.
    

    THE CHECK THAT DISTINGUISHES THEM, one command: list the repo's recent PUSH events to main with their timestamps, and
    compare the count against tag-on-merge runs. If pushes exist and runs do not, (b)/(c); if the only push is the merge that
    created the file, (b) is likely and a second normal push to main would settle it.

    AND THE HONEST REVISION OF MY OWN CLAIM: I wrote that byte-equality "proves nothing about whether they run". That stands,
    but the weaker form is the accurate one — the copies are identical AND registered AND active, and they have not run;
    the difference from the working copies is not in the file.
    Three wrong mechanisms in one issue is enough to stop
    asserting and start measuring.

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

  4. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    MEASUREMENT THAT MOVES THIS OFF THE CALLER — the merge produced no workflow run at all, of any kind.

    news-podcast, main:    6e47aac  2026-10-15T17:01  "feat(ci): install the tag-on-merge caller, ..."   <- the merge
    ALL workflow runs in the repo, newest six:
        charly/pr-validator  event=pull_request  15:13Z  completed/success
        charly/pr-validator  event=pull_request  14:49Z  completed/failure
        charly/pr-validator  event=pull_request  14:22Z  completed/failure
        charly/pr-validator  event=pull_request  14:03Z  completed/failure
        charly/pr-validator  event=pull_request  13:30Z  completed/failure
        charly/pr-validator  event=pull_request  13:10Z  completed/failure
    
    => the newest run of ANY workflow in the repository is 15:13Z.
       The merge landed at 17:01Z — 1h48m later — and produced NO RUN OF ANY WORKFLOW.
    

    SO THIS IS NOT A CALLER DEFECT. A tag-on-merge that never fires is indistinguishable from a repository in which
    pushes to main do not produce workflow runs at all. My three earlier framings (absent CHANGELOG/; the bot token;
    "the installed caller is inert") each assumed the caller was the thing not working. None of them measured whether ANY
    workflow runs on a push in these repositories, and that is what this measures: none does.

    WHAT THIS DOES NOT ESTABLISH: the cause. Candidates, none verified: a repository Actions setting; the org ruleset's
    workflows rule interacting with a bypass-App merge; GitHub's documented non-triggering for certain bot-authored pushes;
    or the events API simply not reflecting runs this soon. I have a measurement, not a mechanism, and I am stopping there.

    THE ONE CHECK THAT FINISHES IT: push any trivial commit to main in one of these repositories (the sanctioned route is
    a merged PR) and see whether ANY workflow run appears. Absent a second, independent push, the single data point cannot
    separate "pushes do not trigger here" from "this one merge did not".

    AND THE LESSON, WHICH IS THE ONE THIS WAVE KEEPS RE-LEARNING: the first three framings were all about the artefact that
    was easiest to inspect, and each was refuted by looking at one level further out — the file, then the run, then the
    workflow, and now the repository. Read outward until the thing that is silent is the one that should have spoken.

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

  5. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    THE MECHANISM — measured on both sides. This supersedes all four earlier framings, which were each one level too shallow.

    WORKING (plugin-box):   38 tag-on-merge runs, fired by BOTH events:
                              push          14:48Z  completed/success
                              workflow_run  14:46Z  completed/success
    INERT   (news-podcast): push-event runs of ANY workflow, all time visible: 0
                            tag-on-merge runs: 0
                            the merge landed on main at 17:01Z  ->  produced no run
    

    TWO HALVES, BOTH UNABLE TO FIRE IN THE NEW REPOSITORIES:

    1. The workflow_run half cannot fire anywhere the validator is not local. It names
      workflows: ["charly/pr-validator"], and that workflow is defined in opencharly/.github and runs as the org-REQUIRED
      workflow. A workflow_run trigger matches workflows in the SAME repository — so this half is dead in every repo that
      does not itself carry the validator. That is why the copies never ran while the source did.

    2. The push half does not fire for a merge performed by the auto-merge App — MEASURED as: news-podcast has zero
      push-event workflow runs, while plugin-box (whose merges have produced push runs) has 38. GitHub documents that events
      triggered by certain bot/App-authored actions do not create workflow runs; I am stating that as the believed cause of
      the measured zero, not as a measured fact.

    WHAT THIS MEANS, and it is the real defect: in the repositories this wave installed callers into, neither trigger can
    fire
    , so the caller is dead code. Consequences, all silent:

    - no CHANGELOG/<calver>.md for any merged PR
    - no CalVer TAG — the tag is minted by the same workflow, in the same run
    - three repositories now have merged PRs with no release tag and no changelog, and nothing reports it
    

    THE FIX IS NOT IN THE CALLER'S CHANGELOG LOGIC — none of my first two framings applied. It is in the trigger: either the
    org-required workflow must invoke the reusable tag-on-merge itself (so the work happens inside a workflow that does run), or
    the caller needs a trigger that fires for App-authored merges. That is a decision for whoever owns
    opencharly/.github/.github/workflows/tag-on-merge.yml.

    AND THE METHOD NOTE — four framings, each refuted one level further out:

    the file  -> "CHANGELOG/ absent"      refuted by the workflow's own code (it creates it)
    the run   -> "the bot token"          refuted by the run counts
    the wf    -> "the caller is inert"    refuted by the registry (state=active) and an identical trigger
    the repo  -> "pushes here produce no runs"   <-- this one holds, and it is what the first three could not see
    

    Read outward until the thing that is silent is the one that should have spoken. The caller was silent because the
    EVENTS were silent; and the events were silent for two independent reasons.

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

  6. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    CORRECTION — my "both halves are dead / the caller is dead code" claim is PREMATURE. Retracting it before it stands.

    Two facts I had not weighed:

    1. `workflow_run` DOES fire in working repositories. plugin-box's newest tag-on-merge runs include
           workflow_run  14:46Z  completed/success
       So that half is not structurally dead, as I asserted. It fires for the org-required validator.
    2. THE CALLER HAS HAD NO TRIGGER EVENT YET IN THE NEW REPOSITORIES.
           news-podcast: caller landed (merge)   17:01Z
           news-podcast: newest charly/pr-validator run   15:13Z   <- BEFORE the caller existed
       A `workflow_run` trigger can only fire when the named workflow COMPLETES — and none has completed since the caller
       was installed. So the `workflow_run` half has had no opportunity to fire, and I cannot call it dead.
    

    WHAT THIS LEAVES, stated at its true strength:

    - CERTAIN: no tag-on-merge run exists in news-podcast/lobster/plugin-nerdctl; no push-event run of ANY workflow does
      either; the caller is registered and active; the trigger is byte-identical to a working one.
    - OPEN: whether the `push` half fires for an App-authored auto-merge — the one measurement that would settle part of
      this is a SECOND push to main in one of those repos, which has not happened.
    - OPEN: whether the `workflow_run` half fires there at all — it will be answered by the NEXT validator run in that
      repository, whenever a new PR is opened or re-run. **That is a zero-cost experiment: it happens by itself.**
    

    SO THE HONEST ANSWER TO "why is there no changelog" IS: not yet established, and it is likely to establish itself on the
    next PR in any of those repositories.
    Five framings in, the correct one may be "not enough has happened yet" — which is
    the one framing a session looking for a defect is least inclined to consider.

    I am leaving this issue OPEN and UNCONCLUDED, with its measurements, rather than closing it on a mechanism I have
    already had to retract. When a validator run completes in news-podcast or lobster, the workflow_run half either fires —
    and the question becomes the changelog logic — or it does not, and the trigger is genuinely the defect.

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

  7. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    ANSWER, MEASURED — the caller FIRES, and then SKIPS. My "inert caller" claim was wrong, and the reason there is still no changelog is now visible.

    The diagnostic ran, and this is what it produced:

    charly/pr-validator   attempt 6   completed/FAILURE          (the diagnostic re-run)
    tag-on-merge          runs: 1
                          workflow_run  17:09Z  completed/SKIPPED   <-- IT FIRED, and skipped
    CHANGELOG entries: none           tags: none
    

    SO, IN ORDER OF WHAT IS NOW ESTABLISHED:

    1. The workflow_run half WORKS. A tag-on-merge run appeared within the minute, triggered by the validator's completion,
      in a repository whose only other workflow runs are charly/pr-validator. My "both halves are dead / the caller is inert"
      framing (and the four before it) was wrong
      — this run is the artefact that refutes it.
    2. The run SKIPPED. conclusion=skipped means the job's steps did not execute — so no CHANGELOG/<calver>.md and no tag,
      which is exactly what the repositories show.
    3. Why it skipped, as the most likely reading (NOT asserted as measured): the caller opens with a bounded readiness
      probe ("Wait for triggering PR to merge"), and the completion that triggered it was a FAILURE — attempt 6 completed/failure. A probe that gates on the triggering run having SUCCEEDED would skip exactly here. The caller
      may only act on a successful validator completion.

    AND THE CONSEQUENCE FOR THE ORIGINAL QUESTION: the caller has never yet had a SUCCESSFUL validator completion since it
    was installed
    . The last success in that repository was 16:58Z; the caller landed at 17:01Z with the merge; and the only
    completion since is this diagnostic's failure. So "no changelog" remains UNEXPLAINED — and it will be settled by the next
    successful validator completion in either repository, which now has a specific meaning: tag-on-merge should then run and
    NOT skip.

    ALSO WORTH RECORDING: re-running a MERGED PR's validator produces a FAILURE (attempt 6), so a re-run is not a neutral
    diagnostic instrument — the gate fails on a merged head. Any future diagnostic must account for that; it is why this
    experiment produced a skipped rather than a success at the caller.

    WHAT I AM RETRACTING: the "inert caller" framing, explicitly. WHAT I AM KEEPING: the measurement that no
    tag-on-merge run existed before today, and that the caller fires on completion and skips on failure — both now measured.

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

  8. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    CLOSING MECHANISM — measured in the code and in the runs. This is not a defect: the caller waits for a SUCCESSFUL completion, and it has never had one since it was installed.

    THE GATE, verbatim from .github/workflows/tag-on-merge.yml on main:

    jobs:
      wait-for-merge:
        if: >
          github.event_name == 'push' ||
          github.event.workflow_run.conclusion == 'success'
    

    Both jobs of my diagnostic run concluded skipped (wait-for-merge: skipped, tag: skipped), because the completion
    that triggered it was completed/failure — neither disjunct held. So the gate is doing exactly what it says.

    THE FULL SEQUENCE, each step measured:

    1. the caller FIRES.                          run 38774983826, event=workflow_run, 17:09Z — it appeared within the minute
    2. it runs only on a SUCCESSFUL completion.   the `if:` above
    3. `tag-on-merge` runs before today: 0 in news-podcast, lobster, plugin-nerdctl.
    4. why none: **the caller was installed BY a merge, and a merge cannot trigger its own caller.**
         - the validator completion that merged news-podcast#6 succeeded at 16:58Z
         - the caller landed with that merge at 17:01Z — three minutes LATER
         - so the completion it would have acted on had already passed
         - and the only completion since was this diagnostic's FAILURE
    5. working repositories (plugin-box 33 runs, layer-charly-build 31, plugin-deploy-pod 35) are simply older: they have
       had a successful validator completion SINCE their caller landed.
    

    SO: NOT A DEFECT — A SEQUENCING GAP, with a concrete consequence. The first merge after a caller is installed produces
    no changelog and no CalVer tag, because the caller did not exist when that merge's validator run completed. Every
    subsequent successful validator completion will fire it normally. Three repositories owe one changelog and one tag each,
    and they will produce them from the next passing PR onward.

    AND THE PRACTICAL NOTE FOR ANYONE ELSE DIAGNOSING THIS: re-running a MERGED PR's validator yields completed/failure, so
    it can never satisfy the conclusion == 'success' gate. The diagnostic that would have settled this instantly is a new
    PASSING PR in the repository — not a re-run of an old one.
    I spent a re-run discovering that.

    RETRACTED, in full: "the caller is inert", "both halves are dead", "the CHANGELOG/ directory is absent", "the bot token
    is missing". REPLACED BY: the caller fires on a successful completion or a push, skips otherwise, and its first
    opportunity is the next passing PR.

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

  9. aitrawog commented on Oct 15, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — the mechanism is measured, and the residue is filed as #214.

    Not a defect. .github/workflows/tag-on-merge.yml gates its first job on

    if: github.event_name == 'push' || github.event.workflow_run.conclusion == 'success'
    

    so the caller fires on a successful validator completion and skips otherwise — both measured: run 38774983826 appeared at
    17:09Z (it fires) and every job concluded skipped (the triggering completion was a failure). The reason there were no runs
    before today is a sequencing gap: a caller is installed by a merge, and that merge's validator completion happened
    three minutes earlier, so the caller landed after the only event it would have acted on.

    The four retracted framings ("absent CHANGELOG/", "missing bot token", "inert caller", "both halves dead") are recorded
    above and should not be read; the last two comments on this issue hold the mechanism and the if:.

    Residue → #214: the first merge in each of news-podcast, lobster and plugin-nerdctl is owed one CHANGELOG and one CalVer
    tag, which will not self-heal. #214 carries the backfill.

    Diagnostic note for anyone repeating this work: re-running a MERGED PR's validator yields completed/failure, so it can
    never satisfy conclusion == 'success'. A new passing PR is the diagnostic; a re-run of an old one is not.

    Agent: lead
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions