docs(work): close pre-commit-hooks-v1 epic

This commit is contained in:
2026-05-13 07:56:33 +02:00
parent a325794309
commit ca006494c5
5 changed files with 50 additions and 18 deletions

View File

@@ -3,22 +3,25 @@ id: pre-commit-hooks-v1
prd: null
title: Pre-commit hooks v1 — husky + fast conformance gates on commit
type: epic
status: in-progress
status: done
features: [tooling]
created: 2026-05-13
---
## Goal
Install husky and wire pre-commit hooks that catch the cheap drift classes
before code leaves the developer's machine. Slow checks stay in CI.
## Why
Slip a manifest update without re-running `pnpm work rebuild-state` and
the committed _state.json drifts from markdown reality. Forget to lint
the committed \_state.json drifts from markdown reality. Forget to lint
and a broken commit lands. Pre-commit hooks shrink the cycle from "wait
for CI" to "wait one second".
## Stories
- [ ] [01 — Install husky + lint-staged](01-husky-install/_story.md)
- [ ] [02Pre-commit hook: lint-staged + state-sync](02-pre-commit-hook/_story.md)
- [ ] [03State-sync guard script + tests](03-state-sync-guard/_story.md)
- [x] [01Install husky + lint-staged](01-husky-install/_story.md)
- [x] [02Pre-commit hook: lint-staged + state-sync](02-pre-commit-hook/_story.md)
- [x] [03 — State-sync guard script + tests](03-state-sync-guard/_story.md)