- New scripts/work/bump-updated-timestamps.mjs stamps the `updated:`
frontmatter field to the current ISO 8601 UTC timestamp on every
staged docs/work/**/*.md file. Idempotent; adds the field after
`created:` if missing.
- .husky/pre-commit invokes the bump script as step 2 (before
rebuild-state) so _state.json sees the fresh timestamp.
- Backfill all existing work docs (4 PRDs + 3 epics + 21 stories):
* created: promoted from \`YYYY-MM-DD\` -> ISO timestamp using
git log --diff-filter=A on each file (first-commit date for
stories that had no \`created:\` line, midnight UTC for PRDs
and epics that had date-only created).
* updated: added from \`git log -1 --format=%aI\` on each file
(last-commit timestamp); will be re-stamped to "now" by the
pre-commit hook on this commit.
Stories that had no \`created:\` line now get one.
1.8 KiB
id, prd, title, type, status, features, created, updated
| id | prd | title | type | status | features | created | updated | |||
|---|---|---|---|---|---|---|---|---|---|---|
| 2026-05-14-ci-security-and-supply-chain | docs/work/prds/2026-05-14-ci-security-and-supply-chain.prd.md | CI security + supply-chain enforcement stack | epic | done |
|
2026-05-14T00:00:00Z | 2026-05-14T19:10:35.370Z |
Goal
Implement a four-pillar CI security stack — Renovate-managed bumps + Action SHA pinning, Socket-based supply-chain-behavior detection, continuous trace revalidation extending ADR-022, and baseline GitHub-native gates — composed via a single failure-mode hierarchy that the sandcastle reviewer prompt enforces machine-readably for agent-driven PRs. Codifies ADR-023.
Why
The repo's security posture has zero security tooling. ADR-022 + the library-evaluation epic close the adoption-time gate for new dependencies but not the drift gate. Six post-adoption threats remain uncovered: CVE disclosures, supply-chain behavior compromise, maintainer-account compromise, GitHub Actions supply-chain (major-tag pinning), license drift, and EU-residency drift. This epic closes all six via the four-pillar stack.
Stories
- 01 — Trace schema extensions (socketRisk + lastRevalidated)
- 02 — Socket integration (skill + CI)
- 03 — Renovate adoption
- 04 — Major-bump re-evaluation flow
- 05 — Trace revalidation workflow
- 06 — CodeQL workflow + pnpm audit signatures
- 07 — Gitleaks pre-commit hook
- 08 — Sandcastle reviewer prompt update
- 09 — CI security guide + CLAUDE.md