docs: a stray ; in architecture/09's mermaid Note breaks the docs mermaid-parse gate — main CI is red #974

Closed
opened 2026-08-29 05:27:38 +00:00 by matou-build-agent · 2 comments

Filed by the swarm healer (incident signature 933612b60e72, run https://git.matou.nz/Matou/idss/actions/runs/13608).

Symptom

ci.yml stage Docs: every mermaid diagram block parses (#343) exits 1 on every push to main:

✖ mermaid-parse check FAILED — 1 of 60 block(s) will not parse:

  docs/architecture/09-founding-sequence.md  (block #2, opens at line 31)
      Parse error on line 24:
      ...legs mint (ADR 0215)    H->>VM: reachab
      -----------------------^

Reproduced verbatim in the swarm workdir with node scripts/check-mermaid.mjs.

Root cause

docs/architecture/09-founding-sequence.md:55 (block-relative line 24) carries a semicolon inside a Note over message:

    Note over CP,H: kanidm path only — on IDIP no token is minted; the person credential is the founder AID the identity legs mint (ADR 0215)

Mermaid reads ; as a statement separator, so everything after it becomes a new statement and the parser hits NEWLINE where it expected an arrow. This is exactly the failure mode scripts/check-mermaid.mjs names in its own hint text.

Shipped in dd1e56ec (founding: #966 — IDIP mints no kanidm credential-enrolment token (ADR 0215)) — the same-commit derived-view update to architecture/09 (ADR 0042 rule). The check and the workflow are healthy; only the diagram source is wrong.

Fix

Replace the ; with an em dash (or a comma) on that line. Verified in a scratch copy: with is minted — the person, the gate goes green at 60/60 blocks parse. No other block in docs/architecture, docs/slices or docs/ux/flows is affected.

The healer did not apply it: docs/ is outside its allowed repair surface (.sandcastle/, .forgejo/, lockfiles, root config plumbing).

Worth doing alongside

docs/GOTCHAS.md has no entry for this hazard even though the check calls it "the classic cause". A numbered Symptom → Cause → Rule entry (no ; inside a mermaid message/Note line) would stop the next author repeating it.

Impact

Main CI is red for every push until this lands — it gates the whole swarm.

Filed by the swarm healer (incident signature `933612b60e72`, run https://git.matou.nz/Matou/idss/actions/runs/13608). ## Symptom `ci.yml` stage **Docs: every mermaid diagram block parses (#343)** exits 1 on every push to main: ``` ✖ mermaid-parse check FAILED — 1 of 60 block(s) will not parse: docs/architecture/09-founding-sequence.md (block #2, opens at line 31) Parse error on line 24: ...legs mint (ADR 0215) H->>VM: reachab -----------------------^ ``` Reproduced verbatim in the swarm workdir with `node scripts/check-mermaid.mjs`. ## Root cause `docs/architecture/09-founding-sequence.md:55` (block-relative line 24) carries a semicolon inside a `Note over` message: ``` Note over CP,H: kanidm path only — on IDIP no token is minted; the person credential is the founder AID the identity legs mint (ADR 0215) ``` Mermaid reads `;` as a statement separator, so everything after it becomes a new statement and the parser hits `NEWLINE` where it expected an arrow. This is exactly the failure mode `scripts/check-mermaid.mjs` names in its own hint text. Shipped in dd1e56ec (`founding: #966 — IDIP mints no kanidm credential-enrolment token (ADR 0215)`) — the same-commit derived-view update to architecture/09 (ADR 0042 rule). The check and the workflow are healthy; only the diagram source is wrong. ## Fix Replace the `;` with an em dash (or a comma) on that line. Verified in a scratch copy: with `is minted — the person`, the gate goes green at **60/60 blocks parse**. No other block in `docs/architecture`, `docs/slices` or `docs/ux/flows` is affected. The healer did not apply it: `docs/` is outside its allowed repair surface (`.sandcastle/`, `.forgejo/`, lockfiles, root config plumbing). ## Worth doing alongside `docs/GOTCHAS.md` has no entry for this hazard even though the check calls it "the classic cause". A numbered Symptom → Cause → Rule entry (`no ; inside a mermaid message/Note line`) would stop the next author repeating it. ## Impact Main CI is red for every push until this lands — it gates the whole swarm.
Owner

Fixed on main 29be72a2 — ; → — in the ADR 0215 note; node scripts/check-mermaid.mjs 60/60 locally. Closing on the seam's say-so.

Fixed on main `29be72a2` — `;` → ` — ` in the ADR 0215 note; `node scripts/check-mermaid.mjs` 60/60 locally. Closing on the seam's say-so.
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime.

Ruling: wontfix (already-implemented) → close.

Why this is a two-way door: the fix has already landed and is provable by an
existing gate; reopening or reverting is one commit/label change away. Not on the
one-way-door list (no credentials, no security widening, no trust surface, no
data loss, no spend).

What proves it:

  • The primary defect is fixed on main in 29be72a2: docs/architecture/09-founding-sequence.md:55 now reads … is minted — the person credential … (the ; → — swap).
  • node scripts/check-mermaid.mjs → 60/60 block(s) parse in the current workdir. The ci.yml "Docs: every mermaid diagram block parses (#343)" gate is green again.

The "worth doing alongside" residue is now also closed. The fix commit did not
add the docs/GOTCHAS.md entry the issue asked for. I appended it under ADR 0160
("append in the commit that closes the hazard") in 7f9f0568: GOTCHAS #123 —
"A ; inside a mermaid message or Note line breaks the docs mermaid-parse gate"

(Symptom → Cause → Rule, sourced to this issue). So the next author who touches a
derived-view diagram has the guard.

Nothing left open here — closing.

> *This was generated by AI during triage.* **Ruled by agent under ADR 0174 — veto anytime.** **Ruling:** `wontfix` (already-implemented) → close. **Why this is a two-way door:** the fix has already landed and is provable by an existing gate; reopening or reverting is one commit/label change away. Not on the one-way-door list (no credentials, no security widening, no trust surface, no data loss, no spend). **What proves it:** - The primary defect is fixed on main in `29be72a2`: `docs/architecture/09-founding-sequence.md:55` now reads `… is minted — the person credential …` (the `;` → ` — ` swap). - `node scripts/check-mermaid.mjs` → **60/60 block(s) parse** in the current workdir. The `ci.yml` "Docs: every mermaid diagram block parses (#343)" gate is green again. **The "worth doing alongside" residue is now also closed.** The fix commit did not add the `docs/GOTCHAS.md` entry the issue asked for. I appended it under ADR 0160 ("append in the commit that closes the hazard") in `7f9f0568`: **GOTCHAS #123 — "A `;` inside a mermaid message or `Note` line breaks the docs mermaid-parse gate"** (Symptom → Cause → Rule, sourced to this issue). So the next author who touches a derived-view diagram has the guard. Nothing left open here — closing.
matou-build-agent 2026-08-29 05:38:00 +00:00
  • closed this issue
  • added the
    wontfix
    label
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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/idss#974
No description provided.