chore(work): finish 02-pre-commit-check-script

This commit is contained in:
2026-05-14 07:29:31 +02:00
parent a5355ee9e7
commit 22c041fe65
2 changed files with 10 additions and 18 deletions

View File

@@ -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.