From 22c041fe6518b22625b2c1b266fee32661f64324 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Thu, 14 May 2026 07:29:31 +0200 Subject: [PATCH] chore(work): finish 02-pre-commit-check-script --- .../02-pre-commit-check-script/_story.md | 4 ++-- docs/work/_state.json | 24 +++++++------------ 2 files changed, 10 insertions(+), 18 deletions(-) diff --git a/docs/work/2026-05-14-library-evaluation-policy/02-pre-commit-check-script/_story.md b/docs/work/2026-05-14-library-evaluation-policy/02-pre-commit-check-script/_story.md index 95ec33c..8bece7e 100644 --- a/docs/work/2026-05-14-library-evaluation-policy/02-pre-commit-check-script/_story.md +++ b/docs/work/2026-05-14-library-evaluation-policy/02-pre-commit-check-script/_story.md @@ -3,7 +3,7 @@ id: 02-pre-commit-check-script epic: 2026-05-14-library-evaluation-policy title: Pre-commit check script for library trace presence type: technical-story -status: todo +status: done feature: scripts depends-on: [01-trace-schema-foundation] blocks: [06-sandcastle-reviewer-prompt] @@ -38,4 +38,4 @@ Human and agent reviewers cannot reliably check trace presence during code revie ## Tasks -- [ ] Write `scripts/library-decisions/check.mjs` (imports schema from Story 01; parses `git diff --cached` output; tier derivation from path; staged-trace presence + `decision: approved` check; exit-1 report with skill pointer); wire into `.husky/pre-commit`; write `check.test.mjs` integration tests with temp git repo fixture covering all 7 cases from Done when; all gates pass on this single commit. +- [x] Write `scripts/library-decisions/check.mjs` (imports schema from Story 01; parses `git diff --cached` output; tier derivation from path; staged-trace presence + `decision: approved` check; exit-1 report with skill pointer); wire into `.husky/pre-commit`; write `check.test.mjs` integration tests with temp git repo fixture covering all 7 cases from Done when; all gates pass on this single commit. diff --git a/docs/work/_state.json b/docs/work/_state.json index 83214c6..fc6e5dd 100644 --- a/docs/work/_state.json +++ b/docs/work/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-14T05:13:36.660Z", + "updated_at": "2026-05-14T05:29:32.781Z", "epics": { "2026-05-13-binder-wrap-helper": { "status": "done", @@ -53,10 +53,10 @@ "blocks": [] }, "02-pre-commit-check-script": { - "status": "todo", + "status": "done", "title": "Pre-commit check script for library trace presence", "ac_total": 1, - "ac_completed": 0, + "ac_completed": 1, "depends_on": [ "01-trace-schema-foundation" ], @@ -155,11 +155,6 @@ } }, "ready": [ - { - "epic": "2026-05-14-library-evaluation-policy", - "story": "02-pre-commit-check-script", - "title": "Pre-commit check script for library trace presence" - }, { "epic": "2026-05-14-library-evaluation-policy", "story": "03-claude-hooks", @@ -170,6 +165,11 @@ "story": "04-evaluate-library-skill", "title": "evaluate-library skill (SKILL.md + supporting files)" }, + { + "epic": "2026-05-14-library-evaluation-policy", + "story": "06-sandcastle-reviewer-prompt", + "title": "Sandcastle reviewer prompt — Library-trace check section" + }, { "epic": "2026-05-14-library-evaluation-policy", "story": "07-generator-pre-shipped-traces", @@ -190,14 +190,6 @@ "2026-05-14-library-evaluation-policy/04-evaluate-library-skill" ] }, - { - "epic": "2026-05-14-library-evaluation-policy", - "story": "06-sandcastle-reviewer-prompt", - "title": "Sandcastle reviewer prompt — Library-trace check section", - "waiting_on": [ - "2026-05-14-library-evaluation-policy/02-pre-commit-check-script" - ] - }, { "epic": "2026-05-14-library-evaluation-policy", "story": "09-claude-md-update",