Skip to content

B-KP76-backlog-create-rumdl-wrap-heading-corruption

The rumdl@0.2.9 fmt step in apps/sdlc/cli/backlog_cli/create.ts (writeCommitPush) re-wraps body prose; when a token like #1146 lands at a line start after the wrap, it gets promoted to a ## 1146 ... heading — the sentence is split and a bogus H2 is injected. The file still passes schema validation and the CLI exits 0, so the corruption ships silently onto the capture PR. Observed on B-EANZ (captured via sdlc backlog create); repaired by hand on the backlog-capture branch. Recovery trap: re-running create with the same slug would mint a duplicate id, because the slug-reuse probe only scans the main checkout’s docs/planning/backlog/ (the file exists only on the capture branch until merge), and backlog update is frontmatter-only, so there is no CLI path to fix a corrupted body. Suggested fixes: escape or guard line-start ’#’ during the wrap, or run fmt before commit with a post-fmt structural diff check (fail if fmt introduced new headings); additionally make the slug-reuse probe scan the capture branch so re-capture is actually idempotent.


← Back to Backlog