---
id: 03-state-sync-guard
epic: pre-commit-hooks-v1
title: State-sync guard + tests
type: technical-story
status: done
feature: tooling
depends-on: [02-pre-commit-hook]
blocks: []
---

## Tasks

- [x] `scripts/work/state-sync-guard.mjs` fails when \_state.json differs from rebuild output
- [x] Tests
- [x] Wire into pre-commit
- [x] Final verification + closeout
