chore(work): finish 01-trace-schema-extensions

This commit is contained in:
2026-05-14 19:06:11 +02:00
parent 3bf6a55481
commit f704cc5a01
2 changed files with 12 additions and 24 deletions

View File

@@ -3,7 +3,7 @@ id: 01-trace-schema-extensions
epic: 2026-05-14-ci-security-and-supply-chain
title: Trace schema extensions (socketRisk + lastRevalidated)
type: technical-story
status: in-progress
status: done
feature: scripts
depends-on: []
blocks:
@@ -46,4 +46,4 @@ Every downstream enforcement layer (the evaluate-library skill's 9th filter, the
## Tasks
- [ ] Extend `scripts/library-decisions/schema.mjs` adding `socketRisk` (union: `"clean" | "flagged" | string`) to the `filter-results` Zod object and `lastRevalidated` (nullable ISO-date string) to the trace frontmatter schema; update `docs/library-decisions/_template.md` to document both fields with their enum values; add test cases to `schema.test.mjs` covering `socketRisk` round-trips (all three variants), `lastRevalidated` ISO + null acceptance, and missing-`socketRisk` rejection; all gates pass on this single commit.
- [x] Extend `scripts/library-decisions/schema.mjs` adding `socketRisk` (union: `"clean" | "flagged" | string`) to the `filter-results` Zod object and `lastRevalidated` (nullable ISO-date string) to the trace frontmatter schema; update `docs/library-decisions/_template.md` to document both fields with their enum values; add test cases to `schema.test.mjs` covering `socketRisk` round-trips (all three variants), `lastRevalidated` ISO + null acceptance, and missing-`socketRisk` rejection; all gates pass on this single commit.