Document Body Integrity Guard β verifyBodyIntegrity, pre-commit hook, tests
π€ kelly
Created
11 May 2026, 9:48 am
No dependencies. Click "Add" to link a blocking task.
No tasks depend on this one.
Write wiki page for the YAML frontmatter body integrity protection system.
Cover:
- Root cause: fix-broken-yaml.py stripped block scalars (body:|) continuation lines
- lib/body-integrity.ts β post-write verification, re-reads file after write
- verifyBodyIntegrity() in 4 critical paths: delegateTask, updateTaskFields, dismissReview, requestReview
- scripts/validate-yaml-frontmatter.ts β comprehensive validator
- Pre-commit hook at .git/hooks/pre-commit β blocks commits with broken frontmatter
- 4 body-survival tests in tests/actions-core.test.ts
- Rules: always check duplicate keys before writing, quote colon-titled titles
- See: lib/body-integrity.ts, lib/actions.ts, scripts/validate-yaml-frontmatter.ts, .git/hooks/pre-commit
No review requested. Click "Request review" to flag this task for Robbie to check.