diff --git a/docs/work/2026-05-14-library-evaluation-policy/03-claude-hooks/_story.md b/docs/work/2026-05-14-library-evaluation-policy/03-claude-hooks/_story.md index d94dbea..b4d4a55 100644 --- a/docs/work/2026-05-14-library-evaluation-policy/03-claude-hooks/_story.md +++ b/docs/work/2026-05-14-library-evaluation-policy/03-claude-hooks/_story.md @@ -3,7 +3,7 @@ id: 03-claude-hooks epic: 2026-05-14-library-evaluation-policy title: Claude PreToolUse / PostToolUse hooks for library-policy nudge type: technical-story -status: todo +status: done feature: tooling depends-on: [] blocks: [] @@ -39,4 +39,4 @@ Agents (and developers) running `pnpm add` by reflex bypass the policy before th ## Tasks -- [ ] Investigate how `generator-first-nudge.sh` is registered (read `.claude/settings.json` and the existing hook script) to confirm the env-var names, payload shape, and registration keys; then write `.claude/hooks/library-policy-nudge.sh` + register it in the settings file + write bash smoke tests covering `pnpm add ` (reminder), `pnpm add -D ` (no reminder), Edit on non-package.json (no reminder), Edit on `package.json` (reminder); all gates pass on this single commit. +- [x] Investigate how `generator-first-nudge.sh` is registered (read `.claude/settings.json` and the existing hook script) to confirm the env-var names, payload shape, and registration keys; then write `.claude/hooks/library-policy-nudge.sh` + register it in the settings file + write bash smoke tests covering `pnpm add ` (reminder), `pnpm add -D ` (no reminder), Edit on non-package.json (no reminder), Edit on `package.json` (reminder); all gates pass on this single commit. diff --git a/docs/work/_state.json b/docs/work/_state.json index fc6e5dd..9ff952c 100644 --- a/docs/work/_state.json +++ b/docs/work/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-14T05:29:32.781Z", + "updated_at": "2026-05-14T05:36:46.176Z", "epics": { "2026-05-13-binder-wrap-helper": { "status": "done", @@ -65,10 +65,10 @@ ] }, "03-claude-hooks": { - "status": "todo", + "status": "done", "title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge", "ac_total": 1, - "ac_completed": 0, + "ac_completed": 1, "depends_on": [], "blocks": [] }, @@ -155,11 +155,6 @@ } }, "ready": [ - { - "epic": "2026-05-14-library-evaluation-policy", - "story": "03-claude-hooks", - "title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge" - }, { "epic": "2026-05-14-library-evaluation-policy", "story": "04-evaluate-library-skill",