Task — engineering-spec@1

"npm audit + license gate for install tooling"

doneTASK-IMP-001
module improvement · class product · priority p0 · created 2026-07-08 · shipped null
depends on none · blocks TASK-IMP-044

TASK-IMP-001: npm audit + license gate for install tooling

Summary

Reframe R19 from cargo-audit to Node surfaces that ship with the install payload. Add npm audit (high+) and a license/dep allowlist gate in CI for mcp and docs-tools.

Problem

Neither install Node package root had a CI supply-chain gate. R19 cargo-audit is platform-scoped and out of 1.x payload scope.

Proposed Solution

Private zero-dep package.json for docs-tools, check-npm-supply-chain.sh + license allowlist, npm-supply-chain.yml, planted critical/GPL fail fixtures.

Alternatives Considered

Success Metrics

Scope

In scope: npm audit + license allowlist for mcp and docs-tools, workflow, fixtures, tests.

Out of scope / Non-Goals

Dependencies

None blocking. TASK-IMP-044 depends on this gate.

AI Authorship Disclosure

1. Description (normative)

2. Acceptance criteria

3. Edge cases

Audit

§1 — Verdict summary

Reframed R19 stub into complete task@1. PASS for draft→ready_to_implement.

§2 — Findings

ISS-001 — cargo-audit title (RESOLVED)

Now npm audit + license gate.

ISS-002 — TRACE paths (RESOLVED)

new_files declares AC-cited paths.

§3 — Resolution

Score = 9/10. Verdict PASS.