triage.yml.tmpl's concurrency comment says "in parallel across the matrix" — triage has no matrix #41

Closed
opened 2026-08-23 22:50:34 +00:00 by matou-build-agent · 2 comments

What

onboarding/templates/workflows/triage.yml.tmpl's #26 concurrency header comment reads:

Triage fires on every opened/reopened issue event, so a burst of new issues
would otherwise run in parallel across the matrix.

triage.yml has a single triage: job — no strategy.matrix. That clause is
swarm.yml's reasoning copied across. The behaviour it describes is still real
(a burst of opened events would run in parallel), it is just not "across the
matrix".

Why it matters

This comment renders verbatim into every consumer's triage.yml
(CLAUDE.md blast radius): a future reader looking for the matrix it names will
not find one.

Ask

Reword the clause in onboarding/templates/workflows/triage.yml.tmpl (drop the
matrix reference; keep the rest byte-identical), then mirror the same wording
into this repo's rendered .forgejo/workflows/triage.yml. NOTE: .forgejo/ is
a protected path — a swarm worker can do the template half only, and the
rendered half needs a session. onboarding/tests/self-workflows-drift-test.sh
(#32) will RED until both halves match, which is the intended coupling: land
them together or file the session half before closing.

Spotted while landing #32 (comments copied byte-identical from the templates).

## What `onboarding/templates/workflows/triage.yml.tmpl`'s #26 concurrency header comment reads: > Triage fires on every `opened`/`reopened` issue event, so a burst of new issues > would otherwise run in parallel across the matrix. `triage.yml` has a single `triage:` job — no `strategy.matrix`. That clause is swarm.yml's reasoning copied across. The behaviour it describes is still real (a burst of `opened` events would run in parallel), it is just not "across the matrix". ## Why it matters This comment renders verbatim into every consumer's `triage.yml` (CLAUDE.md blast radius): a future reader looking for the matrix it names will not find one. ## Ask Reword the clause in `onboarding/templates/workflows/triage.yml.tmpl` (drop the matrix reference; keep the rest byte-identical), then mirror the same wording into this repo's rendered `.forgejo/workflows/triage.yml`. NOTE: `.forgejo/` is a protected path — a swarm worker can do the template half only, and the rendered half needs a session. `onboarding/tests/self-workflows-drift-test.sh` (#32) will RED until both halves match, which is the intended coupling: land them together or file the session half before closing. Spotted while landing #32 (comments copied byte-identical from the templates).
Author
Member

This was generated by AI during triage.

Verification — CONFIRMED

Reproduced against main (d6f0ad0):

  • onboarding/templates/workflows/triage.yml.tmpl:15 and
    .forgejo/workflows/triage.yml:15 both read
    # would otherwise run in parallel across the matrix. The group SERIALISES them: —
    byte-identical, as #32 left them.
  • triage.yml's only job is jobs.triage (runs-on, timeout-minutes, steps) —
    no strategy.matrix in either file. grep -n matrix on both returns only line 15
    plus lines 95/101, and those two are correct: they name a swarm.yml matrix
    sibling on the same host
    (the per-repo-workdir lock), which is a real thing.
    Line 15 is the only wrong one — it claims triage's own runs fan out over a matrix.

So the report is accurate and narrowly scoped: one clause, two files.

Ruled by agent under ADR 0174 — veto anytime

Ruling: bug + ready-for-session. The template half is swarm-workable, but
onboarding/tests/self-workflows-drift-test.sh (#32) enforces an asymmetric
whole-body diff — every template line must appear, in order, in the rendered
copy — so touching triage.yml.tmpl alone turns that test RED. The halves are
coupled by construction and must land in one commit; .forgejo/ is a protected
path (docs/agents/triage-labels.md), so the whole ticket belongs to a session,
not the swarm queue. Splitting it into a swarm half plus a session follow-up
would deliberately land main red in between, which is the worse option.

Why it is a two-way door: the deliverable is a comment reword — no behaviour,
no interface, no credential, no spend. Reverted by one commit; re-labelled by one
label change.

What proves it: bash onboarding/tests/self-workflows-drift-test.sh (8 checks)
must stay green with both halves changed, and red if only one is. No test asserts
the clause's wording — onboard-lib-test.sh:134 pins only
group: triage-${{ github.repository }} and cancel-in-progress: false, both
untouched by a reword — so the full offline suite is the second gate.

Agent brief (for the session)

Goal: drop the false matrix reference from triage's concurrency header
comment, in both the template and this repo's rendered copy, changing nothing else.

Change — line 15 of both files, identically:

-# would otherwise run in parallel across the matrix. The group SERIALISES them:
+# would otherwise run in parallel with each other. The group SERIALISES them:

Files:

  1. onboarding/templates/workflows/triage.yml.tmpl
  2. .forgejo/workflows/triage.yml (protected path — session only)

Keep the line count and every other byte identical; the drift test compares whole
bodies in order. Do not touch lines 95/101 — their matrix references are
correct (they mean a swarm.yml matrix sibling contending for the same host).
swarm.yml's own copy of the clause is also correct — swarm does have a matrix —
so leave it alone; after this change the two workflows' comments legitimately differ
on that clause.

Acceptance:

  • bash onboarding/tests/self-workflows-drift-test.sh green (and observed red with
    only the template half changed).
  • Full offline suite green:
    for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done
  • grep -n 'across the matrix' onboarding/templates/workflows/triage.yml.tmpl .forgejo/workflows/triage.yml
    returns nothing.
  • STATUS.md header line + affected items updated in the same commit (CLAUDE.md).

Blast radius: the template renders into every consumer's triage.yml at their
next onboard.sh render-workflows; consumers already on the old wording pick it up
on their next render. No runtime behaviour changes.

Redundancy / prior-rejection checks: searched the templates and .forgejo/
for an existing corrected wording — none; the clause is present verbatim in both.
No .out-of-scope/ knowledge base exists in this repo, so no prior rejection to
surface.

Suggested model: model-haiku would be ample for a one-clause reword, but the
swarm queue reads only ready-for-agent, so the label would be inert here — not
applied.

> *This was generated by AI during triage.* ## Verification — CONFIRMED Reproduced against `main` (d6f0ad0): - `onboarding/templates/workflows/triage.yml.tmpl:15` and `.forgejo/workflows/triage.yml:15` both read `# would otherwise run in parallel across the matrix. The group SERIALISES them:` — byte-identical, as #32 left them. - `triage.yml`'s only job is `jobs.triage` (`runs-on`, `timeout-minutes`, `steps`) — no `strategy.matrix` in either file. `grep -n matrix` on both returns only line 15 plus lines 95/101, and those two are *correct*: they name a **swarm.yml matrix sibling on the same host** (the per-repo-workdir lock), which is a real thing. Line 15 is the only wrong one — it claims triage's own runs fan out over a matrix. So the report is accurate and narrowly scoped: one clause, two files. ## Ruled by agent under ADR 0174 — veto anytime **Ruling:** `bug` + `ready-for-session`. The template half is swarm-workable, but `onboarding/tests/self-workflows-drift-test.sh` (#32) enforces an asymmetric whole-body diff — *every* template line must appear, in order, in the rendered copy — so touching `triage.yml.tmpl` alone turns that test RED. The halves are coupled by construction and must land in one commit; `.forgejo/` is a protected path (`docs/agents/triage-labels.md`), so the whole ticket belongs to a session, not the swarm queue. Splitting it into a swarm half plus a session follow-up would deliberately land `main` red in between, which is the worse option. **Why it is a two-way door:** the deliverable is a comment reword — no behaviour, no interface, no credential, no spend. Reverted by one commit; re-labelled by one label change. **What proves it:** `bash onboarding/tests/self-workflows-drift-test.sh` (8 checks) must stay green with both halves changed, and red if only one is. No test asserts the clause's wording — `onboard-lib-test.sh:134` pins only `group: triage-${{ github.repository }}` and `cancel-in-progress: false`, both untouched by a reword — so the full offline suite is the second gate. ## Agent brief (for the session) **Goal:** drop the false matrix reference from triage's `concurrency` header comment, in both the template and this repo's rendered copy, changing nothing else. **Change — line 15 of both files, identically:** -# would otherwise run in parallel across the matrix. The group SERIALISES them: +# would otherwise run in parallel with each other. The group SERIALISES them: Files: 1. `onboarding/templates/workflows/triage.yml.tmpl` 2. `.forgejo/workflows/triage.yml` (protected path — session only) Keep the line count and every other byte identical; the drift test compares whole bodies in order. Do **not** touch lines 95/101 — their `matrix` references are correct (they mean a swarm.yml matrix sibling contending for the same host). `swarm.yml`'s own copy of the clause is also correct — swarm *does* have a matrix — so leave it alone; after this change the two workflows' comments legitimately differ on that clause. **Acceptance:** - `bash onboarding/tests/self-workflows-drift-test.sh` green (and observed red with only the template half changed). - Full offline suite green: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done` - `grep -n 'across the matrix' onboarding/templates/workflows/triage.yml.tmpl .forgejo/workflows/triage.yml` returns nothing. - `STATUS.md` header line + affected items updated in the same commit (CLAUDE.md). **Blast radius:** the template renders into every consumer's `triage.yml` at their next `onboard.sh render-workflows`; consumers already on the old wording pick it up on their next render. No runtime behaviour changes. **Redundancy / prior-rejection checks:** searched the templates and `.forgejo/` for an existing corrected wording — none; the clause is present verbatim in both. No `.out-of-scope/` knowledge base exists in this repo, so no prior rejection to surface. **Suggested model:** `model-haiku` would be ample for a one-clause reword, but the swarm queue reads only `ready-for-agent`, so the label would be inert here — not applied.
Author
Member

Close report — landed, both halves

Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout: a
comment reword in two files, revertible by one git revert, and proved by an
existing test (onboarding/tests/self-workflows-drift-test.sh, #32).

What landed — 586e2d3 on main:

  • onboarding/templates/workflows/triage.yml.tmpl — the clause loses its matrix
    reference.
  • .forgejo/workflows/triage.yml — the same wording mirrored (the protected-path
    half this session existed for).
  • STATUS.md — the "Own swarm" row records it, per CLAUDE.md's same-commit rule.

The wording. Before:

Triage fires on every opened/reopened issue event, so a burst of new issues
would otherwise run in parallel across the matrix. The group SERIALISES them:

After:

Triage fires on every opened/reopened issue event, so a burst of new issues
would otherwise run one job per event, all in parallel. (There is no matrix
here: the single triage job below is not doubled the way swarm.yml's 2-wide
matrix doubles each of its events.) The group SERIALISES them:

The behaviour the clause describes was always real — only its mechanism was
wrong — so the fix keeps the claim and corrects the reason. It states the absent
matrix outright rather than merely deleting the word, because the line directly
above says "same shape as swarm.yml": true of the concurrency group, not of the
job strategy, and a bare deletion would leave that ambiguity for the next reader.
Everything else in the block is byte-identical.

Proof.

  1. Baseline: self-workflows-drift-test.sh → 8 passed, 0 failed.
  2. Template edited alone → RED, naming exactly the three new lines as missing
    from .forgejo/workflows/triage.yml. This is the coupling the ticket predicted,
    observed rather than assumed.
  3. Rendered half mirrored → 8 passed, 0 failed; triage.yml is again
    byte-identical to its template modulo the runner label
    (sed 's/{{SWARM_RUNNER_LABEL}}/swarm/' … | diff - is empty).
  4. triage.yml still parses as YAML (comment-only change, checked anyway).
  5. Full offline suite green: 67 files, 0 failed.
  6. No product literal in the new lines (Matou/, host names, product paths) —
    CLAUDE.md's blast-radius rule.

Blast radius. onboarding/** is vendor-excluded, so nothing vendored
changed: no re-vendor and no FACTORY_REF bump. Consumers pick the corrected
comment up when they next render workflows from the template; their existing
rendered triage.yml files are theirs to own (ADR 0001, pull-only) and still
carry the old clause — a cosmetic comment, not worth a push into a product repo.

No follow-ups filed — nothing else in the repo carries the phrase
(grep -rn "across the matrix" now returns only the corrected sites' successors,
i.e. nothing).

## Close report — landed, both halves Ruled by agent under ADR 0174 — veto anytime. Two-way door throughout: a comment reword in two files, revertible by one `git revert`, and proved by an existing test (`onboarding/tests/self-workflows-drift-test.sh`, #32). **What landed** — `586e2d3` on `main`: - `onboarding/templates/workflows/triage.yml.tmpl` — the clause loses its matrix reference. - `.forgejo/workflows/triage.yml` — the same wording mirrored (the protected-path half this session existed for). - `STATUS.md` — the "Own swarm" row records it, per CLAUDE.md's same-commit rule. **The wording.** Before: > Triage fires on every `opened`/`reopened` issue event, so a burst of new issues > would otherwise run in parallel across the matrix. The group SERIALISES them: After: > Triage fires on every `opened`/`reopened` issue event, so a burst of new issues > would otherwise run one job per event, all in parallel. (There is no matrix > here: the single triage job below is not doubled the way swarm.yml's 2-wide > matrix doubles each of its events.) The group SERIALISES them: The behaviour the clause describes was always real — only its mechanism was wrong — so the fix keeps the claim and corrects the reason. It states the absent matrix outright rather than merely deleting the word, because the line directly above says "same shape as swarm.yml": true of the concurrency group, not of the job strategy, and a bare deletion would leave that ambiguity for the next reader. Everything else in the block is byte-identical. **Proof.** 1. Baseline: `self-workflows-drift-test.sh` → 8 passed, 0 failed. 2. Template edited alone → **RED**, naming exactly the three new lines as missing from `.forgejo/workflows/triage.yml`. This is the coupling the ticket predicted, observed rather than assumed. 3. Rendered half mirrored → 8 passed, 0 failed; `triage.yml` is again byte-identical to its template modulo the runner label (`sed 's/{{SWARM_RUNNER_LABEL}}/swarm/' … | diff -` is empty). 4. `triage.yml` still parses as YAML (comment-only change, checked anyway). 5. Full offline suite green: **67 files, 0 failed**. 6. No product literal in the new lines (`Matou/`, host names, product paths) — CLAUDE.md's blast-radius rule. **Blast radius.** `onboarding/**` is vendor-excluded, so nothing vendored changed: no re-vendor and no `FACTORY_REF` bump. Consumers pick the corrected comment up when they next render workflows from the template; their existing rendered `triage.yml` files are theirs to own (ADR 0001, pull-only) and still carry the old clause — a cosmetic comment, not worth a push into a product repo. No follow-ups filed — nothing else in the repo carries the phrase (`grep -rn "across the matrix"` now returns only the corrected sites' successors, i.e. nothing).
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#41
No description provided.