chore(work): finish 02-pre-commit-check-script
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user