slices: an unquoted # truncates covers: — 36 slices lose their story ranges in the living map #834

Closed
opened 2026-08-25 11:03:16 +00:00 by matou-build-agent · 2 comments

What

covers: in docs/slices/*.yaml is written unquoted with a bare # in it:

  - id: ui-kit-telemetry-primitives
    covers: spec #769 stories 33–37

YAML strips # and everything after it as a comment, so the parsed value is
the single word spec. render-map.py reads s.get("covers", "") straight into
the living map, so docs/slices/map.html's detail drawer shows covers: "spec"
for those slices — the stories a slice covers are silently lost from the map.

Blast radius (measured 2026-08-25)

36 slices across 2 files parse a covers: different from what the file says:

  • docs/slices/observability.yaml — all 35 slices (covers: spec #769 stories 33–37 → spec).
  • docs/slices/founding.yaml — 1 slice, seed-fleet-authority, truncated mid-sentence at
    ... ordinary node #1 ... → stories 24–26 (gateway enrolled as ordinary node.

The other 123 covers: lines are unaffected (already quoted, or carry no #).

Nothing downstream broke: to-tickets over observability.yaml (#797) read the
covers text back off the raw file rather than the parsed value, so
#799–#833 all carry the real story ranges. This is a map-fidelity defect, not a
data-loss one — the text is still in the files.

Fix

Quote the affected covers: values (covers: "spec #769 stories 33–37"), re-run
python3 docs/slices/render-map.py, and commit yaml + map.html together.
Worth adding a guard so it cannot silently recur — e.g. the CI slices sweep
asserting that no parsed covers is a strict prefix of its own raw line, which
catches an unquoted # in any scalar field, not just this one.

Why it wasn't fixed in #797

Filed as a follow-up rather than widened into #797 (ADR 0174 rule 1): it touches
founding.yaml and the CI sweep, neither of which is that ticket's surface.


Filed by an unattended session under ADR 0174 while working #797.

## What `covers:` in `docs/slices/*.yaml` is written unquoted with a bare `#` in it: ```yaml - id: ui-kit-telemetry-primitives covers: spec #769 stories 33–37 ``` YAML strips `#` and everything after it as a **comment**, so the parsed value is the single word `spec`. `render-map.py` reads `s.get("covers", "")` straight into the living map, so `docs/slices/map.html`'s detail drawer shows `covers: "spec"` for those slices — the stories a slice covers are silently lost from the map. ## Blast radius (measured 2026-08-25) **36 slices across 2 files** parse a `covers:` different from what the file says: - `docs/slices/observability.yaml` — **all 35** slices (`covers: spec #769 stories 33–37` → `spec`). - `docs/slices/founding.yaml` — 1 slice, `seed-fleet-authority`, truncated mid-sentence at `... ordinary node #1 ...` → `stories 24–26 (gateway enrolled as ordinary node`. The other 123 `covers:` lines are unaffected (already quoted, or carry no `#`). Nothing downstream broke: `to-tickets` over `observability.yaml` (#797) read the `covers` text back off the **raw file** rather than the parsed value, so #799–#833 all carry the real story ranges. This is a map-fidelity defect, not a data-loss one — the text is still in the files. ## Fix Quote the affected `covers:` values (`covers: "spec #769 stories 33–37"`), re-run `python3 docs/slices/render-map.py`, and commit yaml + `map.html` together. Worth adding a guard so it cannot silently recur — e.g. the CI slices sweep asserting that no parsed `covers` is a strict prefix of its own raw line, which catches an unquoted `#` in any scalar field, not just this one. ## Why it wasn't fixed in #797 Filed as a follow-up rather than widened into #797 (ADR 0174 rule 1): it touches `founding.yaml` and the CI sweep, neither of which is that ticket's surface. --- *Filed by an unattended session under ADR 0174 while working #797.*
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 #834 — status success

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

envelope
{
  "issue": 834,
  "status": "success",
  "commits": [
    "d9eabfe8ff9546252ea50b0c6cb2a26da8cb5926"
  ],
  "changed_files": [
    "STATUS.md",
    "app/tests/unit/slicesYaml.test.ts",
    "docs/slices/backups.yaml",
    "docs/slices/device-add.yaml",
    "docs/slices/founding.yaml",
    "docs/slices/map.html",
    "docs/slices/observability.yaml",
    "docs/slices/provisioning.yaml",
    "docs/slices/rescue.yaml",
    "docs/slices/shell.yaml",
    "scripts/check-slices-yaml.mjs",
    "scripts/seam-smoke.sh"
  ],
  "tests": [
    {
      "command": "node scripts/check-slices-yaml.mjs",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/unit/slicesYaml.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx eslint scripts/check-slices-yaml.mjs app/tests/unit/slicesYaml.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Quote the affected covers: values (observability.yaml all 35, founding.yaml seed-fleet-authority)": "docs/slices/observability.yaml (35 covers quoted) + docs/slices/founding.yaml:66 quoted in d9eabfe; guard reports 0 truncations",
    "Also quote the 6 note: scalars of the same defect class (the guard catches any scalar field)": "docs/slices/{backups,device-add,provisioning,shell×2,rescue}.yaml note: lines quoted in d9eabfe",
    "Re-run render-map.py and commit yaml + map.html together": "docs/slices/map.html regenerated via a byte-verified Node re-impl of render-map.py (pyyaml absent from the dev shell) and committed with the yaml in d9eabfe; no `\"covers\": \"spec\"` truncations remain in map.html",
    "Add a guard so it cannot silently recur (CI slices sweep asserting no parsed covers is a strict prefix of its own raw line)": "scripts/check-slices-yaml.mjs (lexical YAML-comment-rule check) wired into scripts/seam-smoke.sh after the mermaid stage, seam test app/tests/unit/slicesYaml.test.ts (4 passing); flags an unquoted `#` in any plain scalar, not just covers"
  },
  "summary": "Quoted all 42 slice-map scalars truncated by an unquoted `#`, regenerated map.html, and added a Node CI guard + seam test so the truncation cannot silently recur.",
  "blockers": []
}
**close-report** for #834 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 834, "status": "success", "commits": [ "d9eabfe8ff9546252ea50b0c6cb2a26da8cb5926" ], "changed_files": [ "STATUS.md", "app/tests/unit/slicesYaml.test.ts", "docs/slices/backups.yaml", "docs/slices/device-add.yaml", "docs/slices/founding.yaml", "docs/slices/map.html", "docs/slices/observability.yaml", "docs/slices/provisioning.yaml", "docs/slices/rescue.yaml", "docs/slices/shell.yaml", "scripts/check-slices-yaml.mjs", "scripts/seam-smoke.sh" ], "tests": [ { "command": "node scripts/check-slices-yaml.mjs", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/unit/slicesYaml.test.ts", "exit_code": 0 }, { "command": "npx eslint scripts/check-slices-yaml.mjs app/tests/unit/slicesYaml.test.ts", "exit_code": 0 } ], "criteria": { "Quote the affected covers: values (observability.yaml all 35, founding.yaml seed-fleet-authority)": "docs/slices/observability.yaml (35 covers quoted) + docs/slices/founding.yaml:66 quoted in d9eabfe; guard reports 0 truncations", "Also quote the 6 note: scalars of the same defect class (the guard catches any scalar field)": "docs/slices/{backups,device-add,provisioning,shell×2,rescue}.yaml note: lines quoted in d9eabfe", "Re-run render-map.py and commit yaml + map.html together": "docs/slices/map.html regenerated via a byte-verified Node re-impl of render-map.py (pyyaml absent from the dev shell) and committed with the yaml in d9eabfe; no `\"covers\": \"spec\"` truncations remain in map.html", "Add a guard so it cannot silently recur (CI slices sweep asserting no parsed covers is a strict prefix of its own raw line)": "scripts/check-slices-yaml.mjs (lexical YAML-comment-rule check) wired into scripts/seam-smoke.sh after the mermaid stage, seam test app/tests/unit/slicesYaml.test.ts (4 passing); flags an unquoted `#` in any plain scalar, not just covers" }, "summary": "Quoted all 42 slice-map scalars truncated by an unquoted `#`, regenerated map.html, and added a Node CI guard + seam test so the truncation cannot silently recur.", "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#834
No description provided.