Repository navigation
fix(release): audit tool dependencies and preserve Sandbox failures - #132971
Conversation
Audit committed release-tool locks independently and attribute findings to their source. Keep Vercel pinned while repairing its approved dependency closure, and call Sandbox directly so failed release smoke commands retain their exit status. Refs: #132967
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes notedThis PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of
Security review is still recommended before merge when the dependency graph change is intentional. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 9:26 PM ET / August 30, 2026, 01:26 UTC. ClawSweeper reviewWhat this changesExtends release dependency auditing to both committed npm tool locks and invokes the locked Sandbox executable directly so failed image-smoke commands retain their exit status. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessKeep this member-authored release-tooling repair open for exact-head CI and release-owner verification; the introduced code separates all committed locks and preserves a nonzero Sandbox smoke exit, with no concrete patch defect found. Priority: P2 Review scores
Verification
How this fits togetherRelease automation materializes pinned Vercel tooling, audits its dependency locks, runs a Sandbox image smoke, and promotes container aliases only after that smoke succeeds. The changed gate keeps product and release-tool advisory exposure separately attributable. flowchart LR
A[Committed dependency locks] --> B[Dependency vulnerability gate]
B --> C[Per-lock advisory queries]
C --> D[Release evidence]
E[Vercel tool lock] --> F[Materialized locked executables]
F --> G[Sandbox image smoke]
G --> H[Promotion after success]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +189, Docs +6, Config -58, Other +89. Total +226 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land one independently attributed audit path for the product and both committed release locks, with the direct locked Sandbox executable retaining the smoke command's terminal status. Do we have a high-confidence way to reproduce the issue? Yes at source level: baseline reads only pnpm-lock.yaml while materialization separately consumes the Vercel npm lock; the supplied installed-tool trace reports that the smoke exit changed from process 0 back to 17. Is this the best way to solve the issue? Yes, subject to final owner and CI verification: per-lock parsing avoids conflating product and release-tool exposure, and direct use of the already locked Sandbox executable removes the wrapper's exit-status loss without changing promotion sequencing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e7926e300228. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Landing verification complete for 05ee5c6ef9eb9f31507f9a0d696a0f5033e5f6d9, under the maintainer's explicit landing direction. The exact-head CI run 33285409570 is completed successfully, including ClawSweeper pre-merge checks and rank-up move
The optional rank-up move is complete: exact-head CI is green and the redacted installed-command results are retained here against the revised lock. No source changes were needed in response to the review, and no re-review request is needed for this current-head review. Exact local validation commands95 focused tests passed: node scripts/run-vitest.mjs test/scripts/dependency-vulnerability-gate.test.ts test/scripts/generate-dependency-release-evidence.test.ts test/scripts/pnpm-audit-prod.test.ts test/scripts/vercel-container-registry-publish.test.ts test/scripts/plugin-clawhub-new-workflow.test.tsnode scripts/check-changed.mjs -- .github/release/vercel-cli/package.json .github/release/vercel-cli/package-lock.json .github/workflows/vercel-container-registry-publish.yml scripts/materialize-vercel-cli.sh scripts/dependency-vulnerability-gate.mts test/scripts/dependency-vulnerability-gate.test.ts test/scripts/generate-dependency-release-evidence.test.ts test/scripts/vercel-container-registry-publish.test.ts docs/gateway/security/dependency-locking.mdenv PATH="/opt/homebrew/bin:${PATH}" node --import ./scripts/tsx.mjs scripts/check-workflows.mtsnode --import ./scripts/tsx.mjs scripts/dependency-vulnerability-gate.mtsWorkflow checks used the already-installed compatible Python 3.14.7 after system Python 3.9.6 failed the existing pre-commit >=3.10 prerequisite. The tool pin was unchanged. The initial lint finding and source-backed leaf-fixture issues were corrected before these final passing results; installed package bytes were not patched. Installed proof and limitsAWS baseline This is installed real code against strict mock services, not live authenticated Vercel, a full builder/native/TLS corpus, archive attack-resistance testing, or proof of exploit reachability. Zero advisories covers the committed lock identities, not code already embedded in upstream bundles. No production publishing, deployments, real Vercel credentials, or operator-service changes occurred. Ordinary CI/pre-commit audit expansion and release-tool version-change reporting remain separately flagged follow-ups. Provenance: the release-tool flow was added by PR #120058 — Vercel registry mirroring, authored and merged by @Patrick-Erichsen. The current CLI pin was carried forward by PR #131719 — cooled runtime/tooling refresh, authored and merged by @steipete. This does not establish the original upstream Sandbox defect introduction; original gate introduction is unknown beyond the inspected local history boundary. |
|
Merged via squash.
|
…penclaw#132971) Audit committed release-tool locks independently and attribute findings to their source. Keep Vercel pinned while repairing its approved dependency closure, and call Sandbox directly so failed release smoke commands retain their exit status. Refs: openclaw#132967
Closes #132967 — the dependency gate omits committed release-tool locks.
What Problem This Solves
Resolves a problem where release dependency checks reported success while the separately installed Vercel toolchain retained 35 public npm advisories. The gate audited pnpm only; the root pnpm overrides did not apply to the committed Vercel npm project.
Installed-tool validation also found an existing false success in the same release path:
vercel sandbox runreturned zero when the remote smoke command exited 17, allowing the workflow to treat a failed smoke command as successful.These are release-tooling defects, not a claim of exploit reachability or a product-runtime vulnerability. The product pnpm graph and the separate ClawHub release-tool graph independently had zero advisories.
Why This Change Was Made
Keep Vercel at 59.3.0. Ordinary cooled resolutions of 59.3.0 and 59.4.0 retained exactly the same 35 advisory IDs; 59.4.0 additionally changed builder majors. The maintainer explicitly approved affected-version-scoped npm overrides after that owning-parent route was proven insufficient. The overrides cover eight package families, including tar 7.5.7 → 7.5.22 and the affected Undici 5.x copies → 6.28.0, while preserving safe existing majors and npm aliases.
The materializer retains the original Vercel tarball integrity and binds the refreshed complete lock by SHA-256. The dependency gate now audits pnpm, ClawHub and Vercel independently, preserves the source lockfile on every finding, and applies its existing severity policy within each source. Missing/corrupt expected tool locks fail visibly. No new audit dependency, configuration, exception mechanism, or fallback path is introduced.
For Sandbox, consume its already-locked 4.0.0 executable directly instead of the Vercel wrapper that overwrites its exit status. Declare that existing package as a direct release-tool dependency and expose its validated absolute binary path from the materializer. No additional package/version enters the closure. Auth bindings, smoke arguments, cleanup, image copying/promotion and retry policy are otherwise unchanged.
User Impact
Release maintainers get accurate dependency findings and a smoke-check failure when the remote command fails. Normal OpenClaw runtime dependencies, the ClawHub lock, and the separate SDK update are unchanged; neither release-tool lock is shipped in product packages.
Ordinary CI's
security-fastjob and the production pre-commit audit remain product-only. Extending those enforcement/reporting paths is a separately flagged follow-up, not an implicit policy change here.AI-assisted implementation and validation. The scoped dependency overrides were explicitly approved by the maintainer.
Evidence
Advisory and integrity proof
Fresh full bulk advisory queries and
npm audit --package-lock-only --ignore-scripts --jsonreport zero advisories for the candidate Vercel lock. All 355 non-root lock locations / 343 distinct package-version pairs meet the frozen 2026-08-22T22:23:31Z cutoff, and registry integrity was independently checked for every entry. The final direct Sandbox declaration changes only root metadata, not that resolved closure.Final Vercel lock SHA-256:
85e611c2d409f9ce91f2f85bdfbdf02fdaaead2e2e4ba7dfaaac9c7220d6b021.The gate boundary reproduction fails before repair: safe product tar plus vulnerable tar only in the Vercel lock produces no blocker. After repair it produces a blocker attributed only to that tool lock. Tests cover both tool locks, aliases, nested versions, dev/optional classification, missing/corrupt inputs, transport failures, and CLI artifacts/exits.
Focused source validation
95 tests passed:
The final selected-file
node scripts/check-changed.mjs -- ...plan passed formatting, script/root-test type checks, lint and all selected guards. The initial no-map-spread lint finding was fixed before the passing run. Repository-native workflow sanity passed with compatible installed Python 3.14.7; system Python 3.9.6 could not install the existing pre-commit pin, which requires Python >=3.10. No tool pin was changed.Independent isolated Codex autoreview is clean at its P0 threshold. Exact-head CI and final native landing evidence will be recorded before merge.
Isolated installed-tool proof
Fresh secretless AWS proof used Node 24.19.0 / npm 11.17.0, public networking, no Tailscale or Actions hydration, and an IMDSv2 check proving no instance-role credentials. Processes used fresh homes and synthetic Vercel tokens; real Vercel services and Docker registries were not contacted. The lease has been released.
Baseline run:
run_9029ce52b029. Candidate CLI proof:run_b88b8f6b9ea8(all CLI cases passed; the supplementary leaf harness still needed corrections). Completed leaf proof and evidence retrieval:run_50a915b0bba1. The leaf harness corrections followed inspected Node/Undici contracts; they changed no dependency or production bytes.This is real installed code against strict mock API/loopback fixtures, not live authenticated service or full-builder certification. Zero lock advisories does not certify code already embedded in upstream CLI bundles. No production publishing, deployment, real Vercel credentials, operator-service changes, dependency patches, or vendoring were used.
Size and ownership
Product runtime source delta: 0. Tooling code: +169/-80 (net +89) for the missing npm-lock/provenance boundary and validated direct Sandbox output. Manifest: +12 for approved selectors/direct ownership. Workflow: +2/-2. Tests: +361/-172 (net +189). Generated lock: net -70. Duplicate gate classification/rendering paths and the classifier's test-only export were removed.