Repository navigation
Description
What happened
The only runtime dependency, the native addon fs-ext-extra-prebuilt, is declared as ^2.2.14, and the published package does not include npm-shrinkwrap.json. package-lock.json is not applied to consumers, so npm i -g codex-unlock installs whatever 2.x is newest at install time.
Properties of that dependency (from npm registry metadata and its repository as of 2026-09-28):
- It runs an install script (
node ./install.js) that loads a prebuilt.nodebinary and falls back tonode-gyp rebuild;nanis also a caret range. - It is published frequently by a single maintainer (2.2.8 → 2.2.14 between 2026-05 and 2026-09). Prebuilt binaries are committed by a scheduled workflow, and its publish provenance attests the committed blobs rather than how the
.nodefiles were built. flockSyncfrom it is loaded into the same process that sendsSIGTERM, and it implements the OS lock probe that the safety invariants depend on.
CI and smoke:package validate only the locked 2.2.14 (package-smoke installs offline from the cache), so a later 2.x that users receive has never been tested against the lock-probe invariants.
What you expected
Users install the exact native dependency version that CI validated, and dependency updates go through the normal reviewed PR and test matrix.
Environment
codex-unlock0.4.0 at6227e6cnpm auditandnpm audit signaturespass for the current tree; this is about future versions.
Source evidence
- Caret range:
Line 83 in 6227e6c
"fs-ext-extra-prebuilt": "^2.2.14" - Published file list without a shrinkwrap:
Lines 16 to 43 in 6227e6c
"files": [ "dist/cli.js", "dist/coordination.js", "dist/doctor.js", "dist/inspection.js", "dist/json-types.d.ts", "dist/lock.js", "dist/options.js", "dist/policy.js", "dist/process.js", "dist/transcript.js", "dist/types.js", "dist/types.d.ts", "dist/unlock.js", "dist/update.js", "dist/util.js", "schemas/codex-unlock-v1.schema.json", "docs/cli-reference.md", "docs/json-v1.md", "docs/platform-support.md", "docs/safety-race-matrix.md", "docs/update-security.md", "docs/upstream-handoff-proposal.md", "docs/v0.2-migration.md", "README.md", "CHANGELOG.md", "LICENSE" ], - Native import sites: ,
Line 3 in 6227e6c
import { flockSync } from "fs-ext-extra-prebuilt"; ,codex-unlock/src/coordination.ts
Line 15 in 6227e6c
import { flockSync } from "fs-ext-extra-prebuilt"; Line 26 in 6227e6c
import { flockSync } from "fs-ext-extra-prebuilt"; - Package smoke installs from the offline cache:
codex-unlock/scripts/package-smoke.mjs
Line 88 in 6227e6c
"--offline",
Acceptance criteria
- The runtime dependency tree is pinned for consumers (publish
npm-shrinkwrap.json, or pin exact versions offs-ext-extra-prebuiltandnan). - Dependabot keeps proposing updates so they pass the full platform matrix before release.
- The package smoke test asserts the installed dependency version matches the pinned version.
Scope and limitations
- No malicious or broken version is known. This reduces exposure to upstream compromise or silent behavior/ABI changes in a dependency that runs install scripts and native code.
Checked
- ci: enable repository security features and protect release tags #63 covers this repository's GitHub security settings and ci: migrate npm publication from NPM_TOKEN to Trusted Publisher OIDC #45 covers publish authentication; neither covers consumer-side dependency pinning.
Activity