P13. Supply chain of the reference code
A proposal, not part of the specification
Status: Applied in the reference (pinned TypeScript, lockfiles, ephemeral keys); proposed for the spec. Nothing here is normative until it's merged into the specification and listed in the changelog. See all proposals. This note is the site's.
Section numbers in this proposal are those of the draft it was written against; SPEC Appendix D maps them to v0.3.0.
Proposal only; SPEC.md untouched. Drafted 2026-10-26 (PT) from red-team round 2 (C1–C5, H1).
Findings
- s5
engawa/node_moduleswas a symlink intos3/work/01-host/node_modules, andtypescriptwas a caret range with no lockfile (C1/C2). - pilot-server always loaded place keys from the local key directory, so a test harness that spawned it risked reading real key material (C3).
- No
eval/Function/ remoteimport()sinks inengawa/src(C4 held).
What we fixed in s6
- Real
node_modulesdirectory (no cross-stage symlink). typescriptpinned to exact5.9.3.--ephemeral-keys=truemakes fresh in-memory place keys (H1 held; red-team never reads the local key directory).- Build scripts call
node node_modules/typescript/bin/tsc(nonpx, no.binshim).
Proposal
- Every published reference stage MUST ship a lockfile (or npm shrinkwrap) and MUST NOT symlink
node_modulesacross stages. - Test / red-team / dry-run entrypoints MUST support ephemeral keys and MUST document that they never read the local key directory or
state/of a live run. - Record a content hash of
dist/src/host.js(andcrypto.js,trust.js) in the release notes so a swapped build is obvious (C5 canary).
Open questions
- Publish s6 as the next reference stage, or fold these hygiene fixes back into s5 under a new tag?
- Require cosign/sigstore later, or is a lockfile + hash enough for v0.3?