Decomposer produced 9 stories under docs/work/2026-05-14-ci- security-and-supply-chain/, ordered to land the schema foundation first and the cross-referencing content (reviewer prompt, guide) last: 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 + audit signatures 07 - gitleaks pre-commit 08 - reviewer prompt update 09 - CI security guide + docs Also fixes a one-char status typo in the PRD frontmatter (\`appoved\` -> \`approved\`) that landed with the decompose run. Anchored by ADR-023 + the approved PRD at docs/work/prds/2026-05-14-ci-security-and-supply-chain.prd.md. Sequencing: depends on stories 01/02/04/06 of the in-flight library-evaluation epic landing first.
3.2 KiB
id, epic, title, type, status, feature, depends-on, blocks
| id | epic | title | type | status | feature | depends-on | blocks | ||
|---|---|---|---|---|---|---|---|---|---|
| 02-socket-integration | 2026-05-14-ci-security-and-supply-chain | Socket integration (skill + CI) | technical-story | todo | tooling |
|
|
Goal
Wire Socket.dev into two enforcement layers: (1) the evaluate-library skill gains Filter 9 (supply-chain behavior) using socket-cli, and (2) ci.yml gains a socket-cli scan step that fails on critical severity findings.
Why
CVE databases are lagging indicators — event-stream, ua-parser-js, and tj-actions/changed-files all shipped malware before any CVE existed. Socket detects behavioral signals (new network calls, new post-install scripts, maintainer-account changes) in real time. Placing it as the 9th filter in evaluate-library + as a CI gate closes the behavior-compromise surface that CVE scanning misses.
External dependency: library-evaluation epic story 04 (evaluate-library skill) must be complete — the skill's SKILL.md must exist and have the 8-filter structure. That epic is marked done.
Done when
.claude/skills/evaluate-library/SKILL.mdhas a "Filter 9 — Supply-chain behavior (Socket)" section. The skill's fail-fast logic positions Socket as expensive (network call), running it after the cheap structural filters. The section documents thesocket-cliverification command and the JSON output fields used to classifyclean/flagged/<finding-summary>. The trace'ssocket-riskfield infilter-resultsis set from this output..socket.jsonexists at repo root:{ "issueRules": { "critical": "error", "high": "warn", "medium": "ignore", "low": "ignore" } }.ci.yml'svalidatejob has a step that runssocket-cli scanagainst the lockfile, filtered to PRs that touchpackage.jsonorpnpm-lock.yaml(viapaths:condition). The step exits non-zero on anycriticalfinding.docs/guides/ci-security.mdSocket App install instructions are deferred to Story 09 (the human guide). This story ships only the machine-enforced layers.pnpm typecheck && pnpm lint && pnpm test && pnpm conformance && pnpm fallow:audit && pnpm coverage:diffall pass.
In scope
.claude/skills/evaluate-library/SKILL.md— Filter 9 section addition..socket.json— repo-root config file..github/workflows/ci.yml— one new step in thevalidatejob (withpaths:filter).
Out of scope
- Paid Socket Team plan or server-side PR-block enforcement — explicitly out of PRD scope.
- Socket GitHub App install — consumer-facing instructions live in Story 09's guide.
- Backfilling existing traces with
socket-risk— Story 05 (revalidation cron handles this).
Tasks
- Add
.socket.jsonat repo root and extend.claude/skills/evaluate-library/SKILL.mdwith a "Filter 9 — Supply-chain behavior (Socket)" section: position Socket after cheap filters, documentsocket-clias the verification command, specify howclean/flagged/<finding-summary>maps to the trace'ssocket-riskfield; one commit, all gates pass. - Add a
socket-cli scanstep toci.yml'svalidatejob, scoped to PRs touchingpackage.jsonorpnpm-lock.yamlvia apaths:condition; step exits non-zero on anycriticalfinding; one commit, all gates pass.