doc: Forgejo implements cancel-in-progress: false as QUEUE BEHIND, not GitHub's 'at most one pending' (#26 acceptance wording) #38

Closed
opened 2026-08-23 17:27:27 +00:00 by matou-build-agent · 3 comments

What the live reading actually shows

Matou/idss#705 landed the #26 concurrency group in idss and verified it live
on git.matou.nz (Forgejo v15.0.5; workflow-level concurrency landed in
Forgejo v14.0, so this instance supports it).

It works — but #26's acceptance wording ("one running + at most one
queued
") is GitHub's semantics, not Forgejo's.

Forgejo's docs: cancel-in-progress decides "either cancelling previous
workflow runs, or queuing behind them". With false, Forgejo queues every
superseded run — it does not collapse the pending set to one. A burst of three
qualifying events therefore yields one running + TWO queued, not one queued.

Nothing is dropped and nothing runs in parallel, so the storm the group was
bought to stop is gone. The queue is not collapsed.

The evidence (2026-08-23, Matou/idss)

Real swarm workflow, three ready-for-agent label events: runs 9346/9347/9348
ran strictly serially (17:07:29->:32, :32->:35, :36->:39), and across
every post-change swarm run there is zero cross-run overlap — against a
pre-change window where a 22-minute live worker (run 9326) was overlapped by
nine other swarm runs, which is the storm itself.

A/B probe pair on the multi-capacity swarm pool (needed because
matou-workstation's own runner is capacity: 1, which serializes everything
regardless), three workflow_dispatches each fired in the same second:

arm runs
CONTROL (no concurrency block) 9357 17:21:20->:53; 9358 and 9359 both 17:21:54->17:22:27
GROUPED (concurrency-probe-…) 9356 17:21:20->:53; 9360 17:22:28->17:23:01; 9361 17:23:02->:35

Same pool, same second: the control arm proves capacity >= 2 was available; the
grouped arm never used it. All three grouped runs finished success — with
cancel-in-progress: false a later run never kills an earlier one, confirmed.

Ask

Amend #26's acceptance note (and the template comments, which say "queued runs
in the same group collapse to at most one waiting behind the running one") to
state the real Forgejo semantics, so the consumers still owing the change —
Matou/dev-factory#32 and matou-app#79 — do not read "three runs queued" as a
failed verification and chase a phantom.

Filed by an idss session under ADR 0174 while closing Matou/idss#705.

## What the live reading actually shows `Matou/idss#705` landed the #26 concurrency group in `idss` and verified it live on `git.matou.nz` (Forgejo **v15.0.5**; workflow-level `concurrency` landed in Forgejo **v14.0**, so this instance supports it). **It works** — but #26's acceptance wording ("one running + **at most one queued**") is GitHub's semantics, not Forgejo's. Forgejo's docs: `cancel-in-progress` decides "either cancelling previous workflow runs, **or queuing behind them**". With `false`, Forgejo **queues every** superseded run — it does not collapse the pending set to one. A burst of three qualifying events therefore yields **one running + TWO queued**, not one queued. Nothing is dropped and nothing runs in parallel, so the storm the group was bought to stop is gone. The *queue* is not collapsed. ## The evidence (2026-08-23, `Matou/idss`) Real swarm workflow, three `ready-for-agent` label events: runs 9346/9347/9348 ran strictly serially (`17:07:29->:32`, `:32->:35`, `:36->:39`), and across every post-change swarm run there is **zero** cross-run overlap — against a pre-change window where a 22-minute live worker (run 9326) was overlapped by **nine** other swarm runs, which is the storm itself. A/B probe pair on the multi-capacity `swarm` pool (needed because `matou-workstation`'s own runner is `capacity: 1`, which serializes everything regardless), three `workflow_dispatch`es each fired in the same second: | arm | runs | |---|---| | CONTROL (no `concurrency` block) | 9357 `17:21:20->:53`; **9358 and 9359 both `17:21:54->17:22:27`** | | GROUPED (`concurrency-probe-…`) | 9356 `17:21:20->:53`; 9360 `17:22:28->17:23:01`; 9361 `17:23:02->:35` | Same pool, same second: the control arm proves capacity >= 2 was available; the grouped arm never used it. All three grouped runs finished `success` — with `cancel-in-progress: false` a later run never kills an earlier one, confirmed. ## Ask Amend #26's acceptance note (and the template comments, which say "queued runs in the same group collapse to at most one waiting behind the running one") to state the real Forgejo semantics, so the consumers still owing the change — `Matou/dev-factory#32` and `matou-app#79` — do not read "three runs queued" as a failed verification and chase a phantom. Filed by an idss session under ADR 0174 while closing `Matou/idss#705`.
Author
Member

This was generated by AI during triage.

Verification — CONFIRMED

The claim holds up on two independent checks, neither of which needed the cited idss run IDs (the /actions/runs gap makes those unreadable via API):

  1. Primary source. Forgejo's Actions reference, on a workflow-level concurrency.group with cancel-in-progress false: "then any previous invocation of any workflow in the repository with the same concurrency group will be executed before the newer invocation, allowing each workflow to complete in sequence". Executed in sequence — every superseded run runs, the pending set is never collapsed. GitHub's "at most one pending, the rest cancelled" semantics are simply not what Forgejo implements here.
  2. The instance. git.matou.nz reports 15.0.5+gitea-1.22.0, so workflow-level concurrency (Forgejo v14.0+) is supported — the block works, exactly as the report says. The defect is the wording, not the mechanism.

The bad wording is live in this repo in three places, all reachable by content search rather than line number:

  • the swarm workflow template's header comment — "queued runs in the same group collapse to at most one waiting behind the running one, so a burst of qualifying events yields one running + one queued, not a storm"
  • the triage workflow template's header comment — "a burst of new issues would otherwise queue one run per event behind a slow one", which implies the group stops the per-event queueing (it does not; it serialises it)
  • STATUS.md, in the #26 lead: "collapses to one running + at most one queued run instead of a matrix storm"

Not already implemented — searched by domain concept (concurrency group, cancel-in-progress, queue collapse) across templates, STATUS.md, docs and libs. No .out-of-scope/ KB exists in this repo, so no prior rejection to weigh.

The urgency is real and dated: #32 is still open (ready-for-session) and this repo's .forgejo/workflows/{swarm,triage}.yml still carry no concurrency block at all. #32's acceptance line reads "one running + at most one queued swarm run (verify live)" — a criterion Forgejo cannot satisfy. The next session to pick up #32 would see three queued runs and chase a phantom regression. That is precisely the failure this ticket was filed to prevent.

Ruled by agent under ADR 0174 — veto anytime

Three calls I would normally put to Ben, all ruled here:

  1. Scope excludes matou-app#79. ADR 0001 makes the topology pull-only; this repo never pushes to a product repo. That consumer files and works its own correction.
  2. Correct #26 and #32 by comment, not by body rewrite. #26 is closed — its body is the historical record of what was believed at the time, and overwriting it erases the very confusion this ticket documents. A comment reaches the same reader.
  3. This is ready-for-agent, not ready-for-session. The edits land in onboarding/templates/workflows/*.tmpl and STATUS.md. None is a protected path — protected here means .sandcastle/, .forgejo/, and the five prompt skeletons. onboarding/** is additionally listed in vendor-exclude, so these templates are not vendored into any .sandcastle/: no drift check interaction, no pin bump owed (GOTCHAS 4 does not bite).

Why these are two-way doors: every one is undone by a later commit or a label change, and nothing here touches credentials, security posture, a member-facing trust accept, data destruction, or spend. What proves it: bash onboarding/tests/onboard-lib-test.sh is green at 136 passed, 0 failed on main right now, and its two #26 checks assert only the group: and cancel-in-progress: false strings — comment prose is outside what they lock, so a wording change cannot silently alter behaviour, and a behaviour change cannot hide inside a wording commit.

Agent Brief

Category: bug
Summary: Harness comments and STATUS.md state GitHub's concurrency semantics as if they were Forgejo's, so a correct verification of #26 reads as a failure.

Current behavior:
The per-repo workflow-level concurrency group added by #26 works — bursts serialise, nothing runs in parallel, nothing is dropped. But the prose shipped alongside it describes GitHub's model: that queued runs in the same group collapse so at most one waits behind the running one. Forgejo instead queues every superseded run and executes them in sequence. A reader verifying the change against that prose sees three queued runs where the docs promised one, and concludes the group failed.

Desired behavior:
Every statement of the concurrency group's effect in this repo describes Forgejo's actual semantics: with cancel-in-progress: false, superseded runs queue behind the running one and execute strictly in sequence; the pending set is not collapsed. The success signal is zero cross-run overlap, never queue depth ≤ 1. The runtime behaviour is correct and must not change — this is a correction to what the comments claim, nothing more.

Key interfaces:

  • The two workflow templates rendered by onboard.sh workflows (swarm and triage) — their header comments only. The concurrency: blocks themselves, both group keys, and cancel-in-progress: false are all correct and stay byte-identical.
  • STATUS.md — the #26 entry in the header lead, and the #26 milestone-log entry. Per CLAUDE.md, STATUS.md moves in this same commit; this is a semantics correction to shipped text, not a typo commit.
  • The tracker record on #26 and #32.

Acceptance criteria:

  • A content search of the working tree (excluding .git/ and .sandcastle/) for the claim that the queued set collapses to at most one — e.g. at most one queued, collapse to at most one, one running + one queued — returns no hits.
  • The swarm template's comment states that a burst of three qualifying events yields one running + two queued, run strictly in sequence, and names the real success signal (no cross-run overlap; nothing cancelled, nothing dropped).
  • The triage template's comment no longer implies the group prevents per-event queueing; it says the group serialises those runs.
  • grep still finds both group: lines and both cancel-in-progress: false lines unchanged in the two templates — behaviour untouched.
  • bash onboarding/tests/onboard-lib-test.sh reports 136 passed, 0 failed (unchanged — the #26 checks assert the block, not the prose).
  • The full offline suite is green: for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done
  • A comment on #26 records the real Forgejo semantics and supersedes its first acceptance bullet, so the closed ticket no longer reads as an unmet promise.
  • A comment on #32 explicitly retires its acceptance line "one running + at most one queued swarm run (verify live)" and replaces it with the achievable one: one running + N−1 queued for N qualifying events, strictly serial, zero cross-run overlap, no run cancelled. #32 stays open and stays ready-for-session — this ticket only corrects what it asks the session to verify.

Out of scope:

  • .forgejo/workflows/swarm.yml and triage.yml — protected path, and adding their concurrency block is #32's job.
  • .sandcastle/ — the vendored self-copy. onboarding/** is vendor-excluded, so this change owes no pin bump.
  • matou-app#79 — pull-only topology (ADR 0001); that consumer corrects its own copy.
  • Changing cancel-in-progress, the group keys, the if: guard, or the 2-wide matrix. The mechanism is verified correct; only the prose is wrong.
  • Rewriting the body of #26 or #32.
> *This was generated by AI during triage.* ## Verification — CONFIRMED The claim holds up on two independent checks, neither of which needed the cited `idss` run IDs (the `/actions/runs` gap makes those unreadable via API): 1. **Primary source.** Forgejo's Actions reference, on a workflow-level `concurrency.group` with `cancel-in-progress` false: *"then any previous invocation of any workflow in the repository with the same concurrency group will be executed before the newer invocation, allowing each workflow to complete in sequence"*. Executed in sequence — every superseded run runs, the pending set is never collapsed. GitHub's "at most one pending, the rest cancelled" semantics are simply not what Forgejo implements here. 2. **The instance.** `git.matou.nz` reports `15.0.5+gitea-1.22.0`, so workflow-level `concurrency` (Forgejo v14.0+) is supported — the block works, exactly as the report says. The defect is the *wording*, not the mechanism. The bad wording is live in this repo in three places, all reachable by content search rather than line number: - the swarm workflow template's header comment — *"queued runs in the same group collapse to at most one waiting behind the running one, so a burst of qualifying events yields one running + one queued, not a storm"* - the triage workflow template's header comment — *"a burst of new issues would otherwise queue one run per event behind a slow one"*, which implies the group stops the per-event queueing (it does not; it serialises it) - `STATUS.md`, in the #26 lead: *"collapses to one running + at most one queued run instead of a matrix storm"* **Not already implemented** — searched by domain concept (concurrency group, cancel-in-progress, queue collapse) across templates, `STATUS.md`, docs and libs. No `.out-of-scope/` KB exists in this repo, so no prior rejection to weigh. The urgency is real and dated: **#32 is still open** (`ready-for-session`) and this repo's `.forgejo/workflows/{swarm,triage}.yml` still carry no `concurrency` block at all. #32's acceptance line reads *"one running + at most one queued swarm run (verify live)"* — a criterion Forgejo cannot satisfy. The next session to pick up #32 would see three queued runs and chase a phantom regression. That is precisely the failure this ticket was filed to prevent. ## Ruled by agent under ADR 0174 — veto anytime Three calls I would normally put to Ben, all ruled here: 1. **Scope excludes `matou-app#79`.** ADR 0001 makes the topology pull-only; this repo never pushes to a product repo. That consumer files and works its own correction. 2. **Correct #26 and #32 by comment, not by body rewrite.** #26 is closed — its body is the historical record of what was believed at the time, and overwriting it erases the very confusion this ticket documents. A comment reaches the same reader. 3. **This is `ready-for-agent`, not `ready-for-session`.** The edits land in `onboarding/templates/workflows/*.tmpl` and `STATUS.md`. None is a protected path — protected here means `.sandcastle/`, `.forgejo/`, and the five prompt skeletons. `onboarding/**` is additionally listed in `vendor-exclude`, so these templates are not vendored into any `.sandcastle/`: no drift check interaction, no pin bump owed (GOTCHAS 4 does not bite). **Why these are two-way doors:** every one is undone by a later commit or a label change, and nothing here touches credentials, security posture, a member-facing trust accept, data destruction, or spend. **What proves it:** `bash onboarding/tests/onboard-lib-test.sh` is green at **136 passed, 0 failed** on `main` right now, and its two #26 checks assert only the `group:` and `cancel-in-progress: false` strings — comment prose is outside what they lock, so a wording change cannot silently alter behaviour, and a behaviour change cannot hide inside a wording commit. ## Agent Brief **Category:** bug **Summary:** Harness comments and `STATUS.md` state GitHub's concurrency semantics as if they were Forgejo's, so a correct verification of #26 reads as a failure. **Current behavior:** The per-repo workflow-level concurrency group added by #26 works — bursts serialise, nothing runs in parallel, nothing is dropped. But the prose shipped alongside it describes GitHub's model: that queued runs in the same group *collapse* so at most one waits behind the running one. Forgejo instead queues **every** superseded run and executes them in sequence. A reader verifying the change against that prose sees three queued runs where the docs promised one, and concludes the group failed. **Desired behavior:** Every statement of the concurrency group's effect in this repo describes Forgejo's actual semantics: with `cancel-in-progress: false`, superseded runs queue behind the running one and execute strictly in sequence; the pending set is **not** collapsed. The success signal is *zero cross-run overlap*, never *queue depth ≤ 1*. The runtime behaviour is correct and must not change — this is a correction to what the comments claim, nothing more. **Key interfaces:** - The two workflow templates rendered by `onboard.sh workflows` (swarm and triage) — their header comments only. The `concurrency:` blocks themselves, both group keys, and `cancel-in-progress: false` are all correct and stay byte-identical. - `STATUS.md` — the #26 entry in the header lead, and the #26 milestone-log entry. Per CLAUDE.md, `STATUS.md` moves in this same commit; this is a semantics correction to shipped text, not a typo commit. - The tracker record on #26 and #32. **Acceptance criteria:** - [ ] A content search of the working tree (excluding `.git/` and `.sandcastle/`) for the claim that the queued set collapses to at most one — e.g. `at most one queued`, `collapse to at most one`, `one running + one queued` — returns no hits. - [ ] The swarm template's comment states that a burst of three qualifying events yields one running + **two** queued, run strictly in sequence, and names the real success signal (no cross-run overlap; nothing cancelled, nothing dropped). - [ ] The triage template's comment no longer implies the group prevents per-event queueing; it says the group serialises those runs. - [ ] `grep` still finds both `group:` lines and both `cancel-in-progress: false` lines unchanged in the two templates — behaviour untouched. - [ ] `bash onboarding/tests/onboard-lib-test.sh` reports 136 passed, 0 failed (unchanged — the #26 checks assert the block, not the prose). - [ ] The full offline suite is green: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done` - [ ] A comment on **#26** records the real Forgejo semantics and supersedes its first acceptance bullet, so the closed ticket no longer reads as an unmet promise. - [ ] A comment on **#32** explicitly retires its acceptance line *"one running + at most one queued swarm run (verify live)"* and replaces it with the achievable one: **one running + N−1 queued for N qualifying events, strictly serial, zero cross-run overlap, no run cancelled**. #32 stays open and stays `ready-for-session` — this ticket only corrects what it asks the session to verify. **Out of scope:** - `.forgejo/workflows/swarm.yml` and `triage.yml` — protected path, and adding their concurrency block is #32's job. - `.sandcastle/` — the vendored self-copy. `onboarding/**` is vendor-excluded, so this change owes no pin bump. - `matou-app#79` — pull-only topology (ADR 0001); that consumer corrects its own copy. - Changing `cancel-in-progress`, the group keys, the `if:` guard, or the 2-wide matrix. The mechanism is verified correct; only the prose is wrong. - Rewriting the body of #26 or #32.
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=294
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=294 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #38 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 38,
  "status": "success",
  "commits": [
    "71708a4"
  ],
  "changed_files": [
    "onboarding/templates/workflows/swarm.yml.tmpl",
    "onboarding/templates/workflows/triage.yml.tmpl",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "bash onboarding/tests/onboard-lib-test.sh",
      "exit_code": 0
    }
  ],
  "criteria": {
    "content search for collapse-to-one claim returns no hits": "grep -rn 'at most one queued|collapse to at most one|one running + one queued' (excl .git/.sandcastle) returns nothing after commit 71708a4",
    "swarm comment: three events -> one running + two queued, strictly serial, real success signal named": "swarm.yml.tmpl header comment now states 'one running + TWO queued (N-1 for N events)', 'executes them strictly in sequence', 'success signal is zero cross-run overlap ... never a queue depth of 1'",
    "triage comment no longer implies group prevents per-event queueing; says it serialises": "triage.yml.tmpl comment now says 'The group SERIALISES them: ... Forgejo queues every superseded run and executes them in sequence (it does not collapse the pending set to one)'",
    "group: lines and cancel-in-progress: false unchanged in both templates": "grep -F confirms 'group: swarm-${{ github.repository }}', 'group: triage-${{ github.repository }}', and one 'cancel-in-progress: false' per template; onboard-lib #26 assertions green",
    "onboard-lib-test 0 failed (unchanged; #26 checks assert block not prose)": "bash onboarding/tests/onboard-lib-test.sh -> 158 passed, 0 failed (count is 158 not 136: suite grew since ticket filed; my change adds no test and leaves count unchanged from pre-edit baseline)",
    "full offline suite green": "all suites pass except pre-existing tests/policy-lib-test.sh, which fails identically on clean main (a >68-col product-decision trigger-guidance line from #14) — outside this slice, unrelated to #38",
    "comment on #26 records real Forgejo semantics and supersedes its first acceptance bullet": "posted correction comment to #26 superseding the 'at most one queued' bullet",
    "comment on #32 retires its acceptance line and replaces it; #32 stays open/ready-for-session": "posted comment to #32 retiring 'one running + at most one queued swarm run' and replacing with 'one running + N-1 queued, strictly serial, zero cross-run overlap, no run cancelled'; #32 untouched otherwise"
  },
  "summary": "Corrected the swarm/triage concurrency comments and STATUS.md #26 entries to Forgejo's queue-behind semantics (not GitHub's pending-collapse), and corrected #26/#32 by tracker comment.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #38 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 38, "status": "success", "commits": [ "71708a4" ], "changed_files": [ "onboarding/templates/workflows/swarm.yml.tmpl", "onboarding/templates/workflows/triage.yml.tmpl", "STATUS.md" ], "tests": [ { "command": "bash onboarding/tests/onboard-lib-test.sh", "exit_code": 0 } ], "criteria": { "content search for collapse-to-one claim returns no hits": "grep -rn 'at most one queued|collapse to at most one|one running + one queued' (excl .git/.sandcastle) returns nothing after commit 71708a4", "swarm comment: three events -> one running + two queued, strictly serial, real success signal named": "swarm.yml.tmpl header comment now states 'one running + TWO queued (N-1 for N events)', 'executes them strictly in sequence', 'success signal is zero cross-run overlap ... never a queue depth of 1'", "triage comment no longer implies group prevents per-event queueing; says it serialises": "triage.yml.tmpl comment now says 'The group SERIALISES them: ... Forgejo queues every superseded run and executes them in sequence (it does not collapse the pending set to one)'", "group: lines and cancel-in-progress: false unchanged in both templates": "grep -F confirms 'group: swarm-${{ github.repository }}', 'group: triage-${{ github.repository }}', and one 'cancel-in-progress: false' per template; onboard-lib #26 assertions green", "onboard-lib-test 0 failed (unchanged; #26 checks assert block not prose)": "bash onboarding/tests/onboard-lib-test.sh -> 158 passed, 0 failed (count is 158 not 136: suite grew since ticket filed; my change adds no test and leaves count unchanged from pre-edit baseline)", "full offline suite green": "all suites pass except pre-existing tests/policy-lib-test.sh, which fails identically on clean main (a >68-col product-decision trigger-guidance line from #14) — outside this slice, unrelated to #38", "comment on #26 records real Forgejo semantics and supersedes its first acceptance bullet": "posted correction comment to #26 superseding the 'at most one queued' bullet", "comment on #32 retires its acceptance line and replaces it; #32 stays open/ready-for-session": "posted comment to #32 retiring 'one running + at most one queued swarm run' and replacing with 'one running + N-1 queued, strictly serial, zero cross-run overlap, no run cancelled'; #32 untouched otherwise" }, "summary": "Corrected the swarm/triage concurrency comments and STATUS.md #26 entries to Forgejo's queue-behind semantics (not GitHub's pending-collapse), and corrected #26/#32 by tracker comment.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#38
No description provided.