docs: the CI mermaid sweep misses docs/ux/flows — p10-logs.mermaid had never rendered #798

Closed
opened 2026-08-25 09:43:22 +00:00 by matou-build-agent · 2 comments

Symptom

docs/ux/flows/p10-logs.mermaid — the design contract for the logs surface (#760 / DDR 0203 / spec #791) — had never rendered, in Forgejo or anywhere else. Found 2026-08-25 while render-verifying the observability /slice-map fan-in (#770).

docs/ux/flows/p10-logs.mermaid  (block #1, opens at line 1)
    Parse error on line 1:
    %%flowchart TD
    ^
    Expecting 'NEWLINE', 'SPACE', 'GRAPH', got 'NODE_STRING'

Cause

A bare %% comment line (line 12) — used as a blank separator inside the header comment. Mermaid swallows the following line with it, so flowchart TD never reached the parser. The sibling flows (p9, p11, p12) use %% -- for the same separator and parse fine. This is exactly the #343 bug class: a diagram ships un-rendered and nothing says so.

Why it stayed invisible

scripts/check-mermaid.mjs exists precisely to make this loud — but its DEFAULT_TARGETS are docs/architecture + docs/slices, and that is what scripts/seam-smoke.sh invokes (no args). docs/ux/flows is not swept. The checker already handles raw .mermaid files, so the gap is the target list, not the tooling.

The fix

The broken file is already fixed (commit 44cd080, #770) — %% → %% --; node scripts/check-mermaid.mjs docs/slices docs/ux/flows is now 29/29 green. This ticket is the sweep widening: add docs/ux/flows to DEFAULT_TARGETS so the next one fails the build instead of sitting broken.

Consider also whether the flows' README index and docs/ux/wireframes need any equivalent guard — the wireframes are HTML, so probably not, but the flows are the same artifact class as docs/slices and deserve the same door.

Done when

node scripts/check-mermaid.mjs with no arguments sweeps docs/ux/flows too and passes, and scripts/seam-smoke.sh's mermaid stage comment names the widened set.

Filed by an unattended session under ADR 0174 while working #770 (rule 1: file follow-ups rather than widen the ticket).

## Symptom `docs/ux/flows/p10-logs.mermaid` — the design contract for the logs surface (#760 / DDR 0203 / spec #791) — **had never rendered**, in Forgejo or anywhere else. Found 2026-08-25 while render-verifying the observability `/slice-map` fan-in (#770). ``` docs/ux/flows/p10-logs.mermaid (block #1, opens at line 1) Parse error on line 1: %%flowchart TD ^ Expecting 'NEWLINE', 'SPACE', 'GRAPH', got 'NODE_STRING' ``` ## Cause A **bare `%%` comment line** (line 12) — used as a blank separator inside the header comment. Mermaid swallows the following line with it, so `flowchart TD` never reached the parser. The sibling flows (`p9`, `p11`, `p12`) use `%% --` for the same separator and parse fine. This is exactly the #343 bug class: a diagram ships un-rendered and **nothing says so**. ## Why it stayed invisible `scripts/check-mermaid.mjs` exists precisely to make this loud — but its `DEFAULT_TARGETS` are `docs/architecture` + `docs/slices`, and that is what `scripts/seam-smoke.sh` invokes (no args). **`docs/ux/flows` is not swept.** The checker already handles raw `.mermaid` files, so the gap is the target list, not the tooling. ## The fix The broken file is already fixed (commit `44cd080`, #770) — `%%` → `%% --`; `node scripts/check-mermaid.mjs docs/slices docs/ux/flows` is now 29/29 green. **This ticket is the sweep widening**: add `docs/ux/flows` to `DEFAULT_TARGETS` so the next one fails the build instead of sitting broken. Consider also whether the flows' README index and `docs/ux/wireframes` need any equivalent guard — the wireframes are HTML, so probably not, but the flows are the same artifact class as `docs/slices` and deserve the same door. ## Done when `node scripts/check-mermaid.mjs` with no arguments sweeps `docs/ux/flows` too and passes, and `scripts/seam-smoke.sh`'s mermaid stage comment names the widened set. Filed by an unattended session under ADR 0174 while working #770 (rule 1: file follow-ups rather than widen the ticket).
Author
Member

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

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

close-report for #798 — status success

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

envelope
{
  "issue": 798,
  "status": "success",
  "commits": [
    "c109fef"
  ],
  "changed_files": [
    "scripts/check-mermaid.mjs",
    "scripts/seam-smoke.sh",
    "app/tests/unit/mermaidDocs.test.ts"
  ],
  "tests": [
    {
      "command": "node scripts/check-mermaid.mjs",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm --dir app exec vitest run tests/unit/mermaidDocs.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "node scripts/check-mermaid.mjs with no arguments sweeps docs/ux/flows too and passes": "scripts/check-mermaid.mjs DEFAULT_TARGETS now includes 'docs/ux/flows'; no-arg run prints '59/59 block(s) parse (docs/architecture, docs/slices, docs/ux/flows)'",
    "scripts/seam-smoke.sh's mermaid stage comment names the widened set": "seam-smoke.sh mermaid stage comment now reads 'docs/architecture + docs/slices + docs/ux/flows' and cites p10-logs.mermaid #798"
  },
  "summary": "Widened the #343 mermaid-parse checker's default sweep to include docs/ux/flows so the p10-logs.mermaid class of un-rendered diagram fails the build instead of sitting broken.",
  "blockers": []
}
**close-report** for #798 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 798, "status": "success", "commits": [ "c109fef" ], "changed_files": [ "scripts/check-mermaid.mjs", "scripts/seam-smoke.sh", "app/tests/unit/mermaidDocs.test.ts" ], "tests": [ { "command": "node scripts/check-mermaid.mjs", "exit_code": 0 }, { "command": "CI=true pnpm --dir app exec vitest run tests/unit/mermaidDocs.test.ts", "exit_code": 0 } ], "criteria": { "node scripts/check-mermaid.mjs with no arguments sweeps docs/ux/flows too and passes": "scripts/check-mermaid.mjs DEFAULT_TARGETS now includes 'docs/ux/flows'; no-arg run prints '59/59 block(s) parse (docs/architecture, docs/slices, docs/ux/flows)'", "scripts/seam-smoke.sh's mermaid stage comment names the widened set": "seam-smoke.sh mermaid stage comment now reads 'docs/architecture + docs/slices + docs/ux/flows' and cites p10-logs.mermaid #798" }, "summary": "Widened the #343 mermaid-parse checker's default sweep to include docs/ux/flows so the p10-logs.mermaid class of un-rendered diagram fails the build instead of sitting broken.", "blockers": [] } ``` </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/idss#798
No description provided.