From 99c7a9f1af2eddf21044e1bdfe87093442d36081 Mon Sep 17 00:00:00 2001 From: Danijel Martinek Date: Thu, 14 May 2026 07:13:34 +0200 Subject: [PATCH] chore(work): finish 01-trace-schema-foundation --- .../01-trace-schema-foundation/_story.md | 4 +- docs/work/_state.json | 53 +++++++------------ 2 files changed, 20 insertions(+), 37 deletions(-) diff --git a/docs/work/2026-05-14-library-evaluation-policy/01-trace-schema-foundation/_story.md b/docs/work/2026-05-14-library-evaluation-policy/01-trace-schema-foundation/_story.md index bde5fab..b397f18 100644 --- a/docs/work/2026-05-14-library-evaluation-policy/01-trace-schema-foundation/_story.md +++ b/docs/work/2026-05-14-library-evaluation-policy/01-trace-schema-foundation/_story.md @@ -3,7 +3,7 @@ id: 01-trace-schema-foundation epic: 2026-05-14-library-evaluation-policy title: Trace schema module + docs/library-decisions/ foundation type: technical-story -status: in-progress +status: done feature: scripts depends-on: [] blocks: @@ -46,4 +46,4 @@ All four enforcement layers (skill, pre-commit check, generator templates, sandc ## Tasks -- [ ] Create `scripts/library-decisions/schema.mjs` with Zod frontmatter schema (all fields from ADR-022 §4: `package`, `version`, `tier`, `decision`, `date`, `deciders`, `adr`, `filter-results` nested object with all 8 filter keys and their enum values, `verification-commands`, `accepted-cves` optional), plus `parseTrace(filePath)` and `validateTrace(raw)` exports; write `schema.test.mjs` covering valid round-trip, missing-field rejection, invalid-enum rejection, and optional `accepted-cves`; create `docs/library-decisions/_template.md` with full frontmatter schema + all 11 required headings in ADR-022 order; all gates pass on this single commit. +- [x] Create `scripts/library-decisions/schema.mjs` with Zod frontmatter schema (all fields from ADR-022 §4: `package`, `version`, `tier`, `decision`, `date`, `deciders`, `adr`, `filter-results` nested object with all 8 filter keys and their enum values, `verification-commands`, `accepted-cves` optional), plus `parseTrace(filePath)` and `validateTrace(raw)` exports; write `schema.test.mjs` covering valid round-trip, missing-field rejection, invalid-enum rejection, and optional `accepted-cves`; create `docs/library-decisions/_template.md` with full frontmatter schema + all 11 required headings in ADR-022 order; all gates pass on this single commit. diff --git a/docs/work/_state.json b/docs/work/_state.json index 982495a..83214c6 100644 --- a/docs/work/_state.json +++ b/docs/work/_state.json @@ -1,5 +1,5 @@ { - "updated_at": "2026-05-14T04:52:04.048Z", + "updated_at": "2026-05-14T05:13:36.660Z", "epics": { "2026-05-13-binder-wrap-helper": { "status": "done", @@ -45,10 +45,10 @@ "prd": "docs/work/prds/2026-05-14-library-evaluation-policy.prd.md", "stories": { "01-trace-schema-foundation": { - "status": "in-progress", + "status": "done", "title": "Trace schema module + docs/library-decisions/ foundation", "ac_total": 1, - "ac_completed": 0, + "ac_completed": 1, "depends_on": [], "blocks": [] }, @@ -157,32 +157,31 @@ "ready": [ { "epic": "2026-05-14-library-evaluation-policy", - "story": "01-trace-schema-foundation", - "title": "Trace schema module + docs/library-decisions/ foundation" + "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", "title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge" - } - ], - "blocked": [ - { - "epic": "2026-05-14-library-evaluation-policy", - "story": "02-pre-commit-check-script", - "title": "Pre-commit check script for library trace presence", - "waiting_on": [ - "2026-05-14-library-evaluation-policy/01-trace-schema-foundation" - ] }, { "epic": "2026-05-14-library-evaluation-policy", "story": "04-evaluate-library-skill", - "title": "evaluate-library skill (SKILL.md + supporting files)", - "waiting_on": [ - "2026-05-14-library-evaluation-policy/01-trace-schema-foundation" - ] + "title": "evaluate-library skill (SKILL.md + supporting files)" }, + { + "epic": "2026-05-14-library-evaluation-policy", + "story": "07-generator-pre-shipped-traces", + "title": "Generator templates — pre-shipped traces for optional core packages" + }, + { + "epic": "2026-05-14-library-evaluation-policy", + "story": "08-backfill-traces", + "title": "Backfill library traces for existing feature- and core-tier runtime deps" + } + ], + "blocked": [ { "epic": "2026-05-14-library-evaluation-policy", "story": "05-human-guide", @@ -199,22 +198,6 @@ "2026-05-14-library-evaluation-policy/02-pre-commit-check-script" ] }, - { - "epic": "2026-05-14-library-evaluation-policy", - "story": "07-generator-pre-shipped-traces", - "title": "Generator templates — pre-shipped traces for optional core packages", - "waiting_on": [ - "2026-05-14-library-evaluation-policy/01-trace-schema-foundation" - ] - }, - { - "epic": "2026-05-14-library-evaluation-policy", - "story": "08-backfill-traces", - "title": "Backfill library traces for existing feature- and core-tier runtime deps", - "waiting_on": [ - "2026-05-14-library-evaluation-policy/01-trace-schema-foundation" - ] - }, { "epic": "2026-05-14-library-evaluation-policy", "story": "09-claude-md-update",