chore(work): finish 01-trace-schema-foundation
This commit is contained in:
@@ -3,7 +3,7 @@ id: 01-trace-schema-foundation
|
|||||||
epic: 2026-05-14-library-evaluation-policy
|
epic: 2026-05-14-library-evaluation-policy
|
||||||
title: Trace schema module + docs/library-decisions/ foundation
|
title: Trace schema module + docs/library-decisions/ foundation
|
||||||
type: technical-story
|
type: technical-story
|
||||||
status: in-progress
|
status: done
|
||||||
feature: scripts
|
feature: scripts
|
||||||
depends-on: []
|
depends-on: []
|
||||||
blocks:
|
blocks:
|
||||||
@@ -46,4 +46,4 @@ All four enforcement layers (skill, pre-commit check, generator templates, sandc
|
|||||||
|
|
||||||
## Tasks
|
## 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.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"updated_at": "2026-05-14T04:52:04.048Z",
|
"updated_at": "2026-05-14T05:13:36.660Z",
|
||||||
"epics": {
|
"epics": {
|
||||||
"2026-05-13-binder-wrap-helper": {
|
"2026-05-13-binder-wrap-helper": {
|
||||||
"status": "done",
|
"status": "done",
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
"prd": "docs/work/prds/2026-05-14-library-evaluation-policy.prd.md",
|
"prd": "docs/work/prds/2026-05-14-library-evaluation-policy.prd.md",
|
||||||
"stories": {
|
"stories": {
|
||||||
"01-trace-schema-foundation": {
|
"01-trace-schema-foundation": {
|
||||||
"status": "in-progress",
|
"status": "done",
|
||||||
"title": "Trace schema module + docs/library-decisions/ foundation",
|
"title": "Trace schema module + docs/library-decisions/ foundation",
|
||||||
"ac_total": 1,
|
"ac_total": 1,
|
||||||
"ac_completed": 0,
|
"ac_completed": 1,
|
||||||
"depends_on": [],
|
"depends_on": [],
|
||||||
"blocks": []
|
"blocks": []
|
||||||
},
|
},
|
||||||
@@ -157,32 +157,31 @@
|
|||||||
"ready": [
|
"ready": [
|
||||||
{
|
{
|
||||||
"epic": "2026-05-14-library-evaluation-policy",
|
"epic": "2026-05-14-library-evaluation-policy",
|
||||||
"story": "01-trace-schema-foundation",
|
"story": "02-pre-commit-check-script",
|
||||||
"title": "Trace schema module + docs/library-decisions/ foundation"
|
"title": "Pre-commit check script for library trace presence"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"epic": "2026-05-14-library-evaluation-policy",
|
"epic": "2026-05-14-library-evaluation-policy",
|
||||||
"story": "03-claude-hooks",
|
"story": "03-claude-hooks",
|
||||||
"title": "Claude PreToolUse / PostToolUse hooks for library-policy nudge"
|
"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",
|
"epic": "2026-05-14-library-evaluation-policy",
|
||||||
"story": "04-evaluate-library-skill",
|
"story": "04-evaluate-library-skill",
|
||||||
"title": "evaluate-library skill (SKILL.md + supporting files)",
|
"title": "evaluate-library skill (SKILL.md + supporting files)"
|
||||||
"waiting_on": [
|
|
||||||
"2026-05-14-library-evaluation-policy/01-trace-schema-foundation"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"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",
|
"epic": "2026-05-14-library-evaluation-policy",
|
||||||
"story": "05-human-guide",
|
"story": "05-human-guide",
|
||||||
@@ -199,22 +198,6 @@
|
|||||||
"2026-05-14-library-evaluation-policy/02-pre-commit-check-script"
|
"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",
|
"epic": "2026-05-14-library-evaluation-policy",
|
||||||
"story": "09-claude-md-update",
|
"story": "09-claude-md-update",
|
||||||
|
|||||||
Reference in New Issue
Block a user