Repository navigation
chore(deps): enforce seven-day npm cooldowns and refresh eligible pins - #132385
Conversation
|
🦞👀 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, 4:58 AM ET / 08:58 UTC. ClawSweeper reviewWhat this changesThe branch raises npm release-age cooldowns to seven days, removes most exemptions, refreshes eligible dependency pins, and updates IMAP parsing and QA tests for the resulting dependency graph. Merge readinessKeep open for maintainer handling: the protected maintainer PR intentionally changes supply-chain policy and rolls back ACPX/Crabline behavior, while direct upstream npm, Mailparser, and Codex contract inspection was unavailable due DNS failure. No introduced P0–P2 implementation defect was proven. Priority: P2 Review scores
Verification
How this fits togetherThe workspace release-age policy controls which registry versions source installs and repository tools may resolve. The locked graph then supplies bundled provider, ACP, IMAP, and QA plugins. flowchart LR
A[Package registries] --> B[Release-age policy]
B --> C[Source installs and tooling]
C --> D[Locked dependency graph]
D --> E[Bundled plugins]
E --> F[Provider and email behavior]
Decision needed
Why: This is an intentional supply-chain and compatibility tradeoff rather than a mechanical defect, and direct upstream contract verification is unavailable to this reviewer. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch intentionally broadens a release-age exemption into npm and Dependabot; its exact wildcard contract was not directly verifiable here. PR surfaceSource +1, Tests +27, Docs +10, Config -104, Other -285. Total -351 across 29 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after the responsible maintainer confirms the three policy surfaces share the intended Codex exception scope and accepts the documented ACPX and Crabline rollback effects. Do we have a high-confidence way to reproduce the issue? Not applicable: this is dependency-policy maintenance, not a report of an existing user-visible defect. Is this the best way to solve the issue? Unclear: using the package managers’ native controls is the narrowest design, but the npm 11.19 and Codex wildcard contracts could not be directly verified in this environment. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1e42dbc945f2. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What 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
HistoryReview history (6 earlier review cycles)
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub. |
Land-ready evidence and maintainer dispositionReviewed/source/native-prepared head: 951ec59. CI 33243864694, attempt 1 is complete and green: 193 successful jobs, 11 skips, zero failed or pending jobs, including the required openclaw/ci-gate. Workflow Sanity also passed on that exact head. Native stamped review artifacts validated, and The latest ClawSweeper review's contract and policy items are resolved explicitly, not silently skipped:
Minimum-runtime acquisition proof used checksum-verified Node 22.22.3: pinned pnpm 12 and npm 11.19 reject the young non-exempt package and accept the trusted Codex family; bundled npm 10 does not enforce the setting. The source workflow already requires pnpm, and comments/setup docs now state the native npm 11.19 tooling prerequisite. Node support and published/global/managed-install contracts are unchanged. A permanent registry/time-dependent test was not added merely to re-test upstream behavior; the real positive/negative acquisition controls and existing policy contract tests provide the recorded proof. The audit covered 1,897 distinct identities, with zero non-exempt young/unknown-date entries; the product-lock advisory gate checked 1,606 versions with zero advisories. The full local build and focused suites passed. CI repairs preserved assertions and gates: isolate npm fixture project scope, defer oxlint's separate policy migration, reuse the already-landed Gateway/media/QA owner repairs, and align the newly integrated reporting fixture with removal of the age-zero argument. The exact repaired reporting lane is green. Final production/tooling delta is −6, tests +27; no production helper competing with main remains. Selected exact local proof commands (additional commands and earlier failed attempts are retained in the PR body): pnpm install --frozen-lockfile --no-trust-lockfile --ignore-scriptspnpm buildpnpm deps:vuln:gatenode scripts/run-vitest.mjs test/scripts/check-deadcode-reporting.test.ts test/scripts/check-deadcode-exports.test.ts test/scripts/check-deadcode-unused-files.test.tsnode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json test/scripts/check-deadcode-reporting.test.tsProof limits are unchanged: no authenticated provider inference, real mailbox, operator Gateway, desktop, or cross-platform package claim. The Teams source-test hoisting issue has separate exact-version artifact proof and a named follow-up; oxlint migration and exception owner/expiry metadata remain separate. No release version is bumped or published. |
|
Merged via squash.
|
pnpm owns source dependency versions and workspace links. Remove both source pruning owners, isolate npm bundle staging, preserve importer trees in CI caches, and keep the Bun Undici workaround importer-relative. Source tests now exercise declared plugin versions after install and build. Packaged runtime cleanup remains unchanged; no dependency pins change. Related: #132385
pnpm owns source dependency versions and workspace links. Remove both source pruning owners, isolate npm bundle staging, preserve importer trees in CI caches, and keep the Bun Undici workaround importer-relative. Source tests now exercise declared plugin versions after install and build. Packaged runtime cleanup remains unchanged; no dependency pins change. Related: #132385
…2811) pnpm owns source dependency versions and workspace links. Remove both source pruning owners, isolate npm bundle staging, preserve importer trees in CI caches, and keep the Bun Undici workaround importer-relative. Source tests now exercise declared plugin versions after install and build. Packaged runtime cleanup remains unchanged; no dependency pins change. Related: #132385
openclaw#132385) * chore(deps): enforce seven-day npm cooldowns * fix(ci): preserve lint policy and isolate npm config fixtures * docs(deps): clarify source cooldown toolchain requirements * refactor(qa): share credential-safe setup error boundary * test(deps): align reporting fixture with cooldown policy
…nclaw#132811) pnpm owns source dependency versions and workspace links. Remove both source pruning owners, isolate npm bundle staging, preserve importer trees in CI caches, and keep the Bun Undici workaround importer-relative. Source tests now exercise declared plugin versions after install and build. Packaged runtime cleanup remains unchanged; no dependency pins change. Related: openclaw#132385
What Problem This Solves
Resolves a mismatch between the seven-day npm dependency policy and repository enforcement: pnpm still allowed two-day-old releases, npm had no project cooldown, a large historical exemption list bypassed the pnpm guard, and the Knip commands explicitly disabled release-age checks.
Blame was checked before editing. Crabline 0.1.19 and its exact age exception came from the macOS QA artifact-publication fix. Mailparser 3.9.16 was introduced with the inbound IMAP plugin, rather than a later dependency bump. The acpx 0.13.2 adoption came from the ACP model-selection and reply-completion repair.
Why This Change Was Made
Use the package managers' existing controls: pinned pnpm
minimumReleaseAge: 10080with strict mode, project npmmin-release-age=7for native cooldown-capable npm tooling, and a seven-day Dependabot npm cooldown. Source checkouts already require pnpm; rootnpm installis unsupported. npm tooling that reads the project configuration needs npm 11.19+ for the full install/pack age-and-exclusion behavior; this does not change Node runtime support or published/global installation. Other Dependabot ecosystems retain their existing policy. Codex is explicitly trusted and exempt in all three npm update paths; its runtime remains 0.150.1. pnpm 12 and its separate environment lock document remain unchanged as the agreed standalone-toolchain exception. All other historical pnpm age exclusions and ordinary Knip age-zero flags are removed. No custom version resolver or new release-gate implementation is added.The refresh selects releases published no later than 2026-08-22T01:41:38Z, seven days before the audit instant. Exact direct pins, paired root/plugin pins, and existing AWS overrides stay aligned.
A plain Mailparser downgrade would restore expensive untrusted link scanning and pull the vulnerable deepmerge-ts 7 branch. IMAP now requests only the text output it actually consumes (
skipTextToHtml), without disabling HTML-to-text conversion. The explicitly approved, parent-version-scoped override[email protected]>html-to-text: 10.0.1retains the already-cooled converter security fix and deepmerge-ts 8.0.2. Remove this override when Mailparser is upgraded past 3.9.15; the text-only parsing contract remains useful independently.User Impact
Source dependency updates obey the seven-day default while trusted Codex can update without waiting. The normal source dependency workflow no longer silently exempts unrelated packages. The Mailparser rollback preserves readable plain-text and HTML-only email bodies and avoids generating unused HTML before sender admission.
Intentional rollback tradeoffs: acpx 0.13.1 loses the newly added accepted model/thinking snapshot synchronization, so a model change can leave a stale thinking preference. Crabline 0.1.17 restores older macOS ACL and recorder-cancellation behavior, including rejection of normal deny-only ancestor ACLs and the older ACL-detection limitation. No consumer workaround, ACL stripping, fabricated control response, or test weakening masks these losses. The canonical host-side accepted-control support remains for a later cooled acpx upgrade. Keeping trusted Codex 0.150.1 preserves its upstream parent-owned child-resume protection, personally checked against the exact tagged source and paired published binaries.
Compiler, logging, audio, formatter, linter-policy, UI, and peer-contract migrations are not forced into this refresh. oxlint remains 1.78.0: its eligible 1.79.0 release intentionally changes rule behavior, producing 55 diagnostics across 33 existing files. Verified published-binary comparisons and the upstream changes account for all 55. The separate migration must decide the type/value collision policy and preserve intentional browser evaluation; this PR neither weakens lint rules nor rewrites unrelated APIs to silence them. Web Awesome, oxfmt, patched Vitest, TypeScript, tslog, jsdom, Arrow/LanceDB, and the other reviewed major-migration candidates retain their eligible current versions. The separate Convex broker deployment is also deferred. ClawHub and Vercel release-tool pins were already latest-cooled; their locks are unchanged. The fs-safe platform-package migration remains separate and must account for the new seven-day policy when its packages are published.
Review disposition
The August 29 ClawSweeper review identifies the same ACPX and Crabline losses disclosed above. The maintainer directed landing this PR after those tradeoffs were presented. The selected policy is immediate seven-day enforcement, not temporary additional exemptions; the rollback findings remain documented as intentional costs, not falsely claimed fixed or behavior-equivalent. Listed secops ownership was verified live. The repaired upstream versions can return once age-eligible.
The subsequent Node 22/npm finding correctly identifies that bundled npm 10 ignores the setting, but Node runtime support is separate from source package-manager support. The existing README and setup guide already require pinned pnpm for source checkouts. Comments and the source setup guide now explicitly state the npm feature prerequisite and avoid promising protection for old npm or global/managed installs. Native acquisition on checksum-verified minimum Node 22.22.3 confirms pnpm 12 and npm 11.19.0 enforce the intended policy without a Node floor bump or a custom npm compatibility shim. The requested minimum-runtime regression proof was performed against real published executables; no permanent registry/time-dependent test was added merely to re-test upstream package-manager implementation.
The review environment could not independently inspect upstream contracts. That evidence was obtained here: exact acpx tagged source and published declarations, integrity-verified Crabline 0.1.17/0.1.19 source, direct Codex tagged-source inspection, and real published-binary probes. No downstream shim, fabricated accepted-control response, or ACL stripping was added.
Related: exception-governance request. This PR removes the historical exception accumulation but does not implement that separate request for owner/expiry metadata, so it is not claimed closed by this work.
Evidence
Final pre-merge checkpoint: source and native prepared head
951ec59ed402a92fe9b12dbc5658b40935fbff45; CI 33243864694, attempt 1 is complete/green with 193 successful jobs, 11 skips, zero failures or pending jobs, including the required gate. Workflow Sanity also passed on that head. Native review artifacts validated andOPENCLAW_TESTBOX=1 scripts/pr prepare-run 132385passed using exact-head hosted evidence, without another rebase, commit, or older-run substitution.--no-trust-lockfile. The initial transition used one lock-only--trust-lockfileresolution to replace the already-audited old violations; it did not relax the resolver's age floor or persist a trust bypass. All final verification and installation runs used the normal strict policy.dlxalso rejects that too-young Mailparser release. Pinned Knip runs without the removed age-zero flag.pnpm build: passed.check:changedrun passed conflict/max-lines/assertion guards, attribution and deprecation checks, import-boundary/coercion/pin checks, changed-file formatting, and all 94 generated npm lock validations. It was deliberately stopped during its later doctor-test phase on a heavily overloaded shared host. A completed full localcheck:changed, full typecheck, or full lint run is not claimed; the final exact-head CI supplies those broad gates.plugin-sdk boundary root shims timed out after 300000msand[oxlint] FAILED (exit 1)on the overloaded local host. No timeout increase or preparation bypass was used; later exact-head CI passed those lint lanes. The local timeout remains a failed attempt, not retroactively a pass.npmConfigCwdcontract, with expected values and the deliberate default-CWD test preserved.-32000error, and shutdown exits zero. HOME/CODEX_HOME were isolated with file-only auth storage, no credentials inherited, and no inference requested. This is not an authenticated-inference claim.7for the setting, so config display alone is not treated as enforcement proof. Feature boundaries were checked directly: age starts in npm 11.10, install exclusions in 11.17, and pack exclusions are fixed in 11.19.214d55e99b374f4fadc4a6bfae0fb8d25c99e1ca; range-diff verified all three original commits remained patch-identical. Fourth exact-head CI then encountered two later-main changes: an inventory update now expected two suppressions, while the reviewed cleanup correctly leaves one, and a media test exceeded the line limit. A targeted integration rebase onto0120daca2b49c29c92037c84a1286833ef524a90preserved all four prior commits and all dependency/policy/QA blobs. The only follow-through edit decreases the inventory 2 → 1, recording removed debt without expanding the allowlist. Its exact failure was reproduced; all four inventory tests pass afterward.4f2d9836c15c9de4484638c887666d2a2525ac3b: 193 jobs passed, 11 skipped, zero failures, including the required gate. While it ran, main independently landed the same QA redaction consolidation, creating one real content conflict. The final reconciliation adopts canonical mainrunQaPackagedBootstrap, removes this branch's competing production helper, and drops the already-upstream inventory reduction. All dependency/policy/docs intent and the complete stronger QA tests are preserved. The final QA source and inventory are byte-identical to main; 112 boundary/inventory tests pass, one Linux-only case skips, and the full changed-file gate passes against that canonical owner. The older green run is not substituted for fresh final-head CI.[email protected]against the cutoff (published August 12). No additional dependency exception was added during integration.Validation commands
Proof limits and follow-up
No live provider inference, real mailbox, operator Gateway, desktop capture, or cross-platform package run was used. The exact-version jose artifact probe is intentional: normal source-checkout postinstall pruning removes Teams' local jose 6.2.10 directory, so its source test import still resolves hoisted 6.2.9. Named follow-up: source-test dependency resolution after bundled-plugin pruning. Repair that at the install/test-loader owner rather than adding a root dependency, test-only alias, or another override here. The artifact-level probe above exercises the target package against the real Teams validators and does not pretend the hoisted source import changed.
Final production/tooling LOC is net −6; tests are net +27, with manifests, policy settings, and lockfile changes counted separately. Main independently landed the canonical QA redaction owner, so this PR does not introduce a competing helper or repeat its ratchet change; it retains the stronger boundary tests. No custom dependency resolver, public API, or configuration option is introduced.
AI-assisted maintainer change. No OpenClaw release version is bumped or published.