Skip to content

chore(deps): enforce seven-day npm cooldowns and refresh eligible pins - #132385

Merged
steipete merged 5 commits into
mainfrom
steipete/dependency-age-compliance-cc4710
Aug 29, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/dependency-age-compliance-cc4710

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

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: 10080 with strict mode, project npm min-release-age=7 for native cooldown-capable npm tooling, and a seven-day Dependabot npm cooldown. Source checkouts already require pnpm; root npm install is 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.

Dependency Change
AWS Bedrock client and runtime 3.1115.0 → 3.1116.0
AWS S3 client and request presigner 3.1113.0 → 3.1116.0
AWS credential-provider-node 3.972.80 → 3.972.81
AWS core / XML builder 3.977.8 → 3.977.9 / 3.972.39 → 3.972.40
Claude Agent SDK 0.3.238 → 0.3.239
Mistral SDK 2.5.0 → 2.6.4
jose 6.2.9 → 6.2.10
Codex ACP adapter 1.6.0 → 1.6.2
js-yaml, transitive tooling dependency 4.3.0 → 4.3.1
acpx 0.13.2 → 0.13.1
Crabline 0.1.19 → 0.1.17
Mailparser 3.9.16 → 3.9.15

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.1 retains 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 and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 132385 passed using exact-head hosted evidence, without another rebase, commit, or older-run substitution.

  • Registry audit across the workspace and both release-tool locks: 1,897 distinct package/version identities; 1,881 age-eligible, seven trusted Codex identities, nine pnpm environment identities; zero other young or unknown-date entries. Both pnpm YAML documents, aliases, development dependencies, and optional/platform entries were included.
  • Native pnpm strict frozen lock verification and installation passed with --no-trust-lockfile. The initial transition used one lock-only --trust-lockfile resolution 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.
  • Fresh isolated npm resolution accepts Codex 0.150.1 and its native payloads through the explicit exemption, but rejects Mailparser 3.9.16 with the date cutoff. Native pnpm dlx also rejects that too-young Mailparser release. Pinned Knip runs without the removed age-zero flag.
  • Direct pin guard: 635 specs across 180 tracked manifests, zero violations.
  • Final npm advisory gate: 1,606 product-lock versions checked, zero blockers and zero advisories, including the previously flagged dev-only js-yaml issue. No vulnerability suppression was added.
  • Installed Mailparser 3.9.15 bounded probe: the old options time out after the parser has loaded on a 458-byte hostile body; the chosen text-only options preserve text and headers for that same body, ordinary plaintext, and HTML-only input. This is manual dependency-boundary red/green proof; the permanent watcher tests protect body/header/admission preservation without a timing-only assertion or a new production test seam.
  • Exact published jose 6.2.10 artifact smoke: real Teams JWKS/signature validation accepts the correct audience, rejects the Connector-audience confused-deputy shape, and accepts the configured Entra issuer. Installed js-yaml 4.3.1 preserves ordered-map parsing and duplicate rejection.
  • pnpm build: passed.
  • Fresh independent Codex autoreview of the complete PR: scoped-clean at the required P0 threshold, no accepted/actionable findings.
  • Focused source tests: 632 passed across 32 files and 10 routed Vitest shards, including the final installed Mailparser 3.9.15 graph, ACP adapter/runtime wiring, Bedrock, Claude SDK runtime/permissions, Mistral, Tlon, Teams authentication, and tooling.
  • Existing package-manager contract suite: 9 passed after aligning its stale two-day expectation with seven days. Together with the focused run, 641 tests across 33 files passed.
  • The broad check:changed run 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 local check:changed, full typecheck, or full lint run is not claimed; the final exact-head CI supplies those broad gates.
  • Targeted type-aware lint: blocked before lint execution. Its unchanged SDK-artifact prerequisite failed with plugin-sdk boundary root shims timed out after 300000ms and [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.
  • The first exact-head CI run passed 185 jobs, including build and type checks, but failed six lint jobs and one test shard (plus the aggregate gate). The lint migration was deferred as explained above. The test failures exposed fixtures that isolated user/global npmrc but unintentionally read the checkout's project npmrc; they now supply their own project directory through the existing npmConfigCwd contract, with expected values and the deliberate default-CWD test preserved.
  • CI-repair proof: reproduced 7 failures / 9 passes before the fixture fix; afterward 16 fixture tests + 32 install sibling tests passed, plus 6 native npm config-loader checks. Combined focused Vitest evidence is 689 tests across 36 files. Targeted ordinary core type-aware lint passed; all six hosted lint jobs subsequently passed in CI.
  • After retaining oxlint 1.78.0, native strict lock regeneration/frozen installation passed with no trust bypass, the 1,897-identity age audit still has zero violations, the direct pin guard passes, and the advisory gate again reports zero advisories. Semantic comparison proves only oxlint and its 19 platform bindings changed in this repair; the pnpm environment document and all other pins are preserved.
  • Real installed Codex ACP 1.6.2 → Codex 0.150.1 process/protocol smoke passed: initialize succeeds, unauthenticated session listing returns its documented -32000 error, 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.
  • Minimum-Node native proof used official checksum-verified Node 22.22.3 and fresh isolated projects/caches. Bundled npm 10.9.8 resolves and downloads too-young Mailparser 3.9.16; npm 11.19.0 rejects it for both install resolution and pack, accepts cooled 3.9.15, and resolves/downloads exempt Codex 0.150.1. Removing the Codex exclusions makes that positive control fail. Native pnpm 12.0.0 with Node 22 first on PATH rejects the same young Mailparser release and resolves the exempt Codex family. Both npm versions display 7 for 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.
  • Second exact-head CI passed all six repaired lint lanes, with 191 successful jobs, but exposed two Gateway-send assertions from newer main changes. The existing main repair already expects the canonical resolved default account; it is not duplicated in this PR. The exact failing merge was reproduced (two failures), then replaying its original shard with that existing one-line correction passed 1,772 tests across 105 files, plus 37 account-routing sibling tests. The next CI run must use a fresh merge containing that main fix, not rerun the frozen old merge.
  • Third exact-head CI passed the Gateway lane but exposed a new main-owned suppression mismatch from packaged-plugin preparation. Its two credential-redaction catches are now one private packaged-command boundary with one documented suppression. The unchanged inventory fails before and passes after; 108 QA boundary tests pass, one Linux-only case skips on macOS, and all four suppression tests pass. Existing failure tests were consolidated across both auth providers, help, and repair, covering redaction, bounded output, absence of raw causes, no spawn on preparation failure, and cleanup. The full changed-file type/lint/architecture/guard gate passes without increasing the allowlist or weakening lint.
  • The QA owner repair required a conflict-free rebase onto 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 onto 0120daca2b49c29c92037c84a1286833ef524a90 preserved 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.
  • The media helper extraction already landed on main, so no duplicate media change is included. Inlining that extracted helper reconstructs the old test byte-for-byte, preserving every test and cleanup order. Ordinary type-aware lint and 37 media cases across eight files pass; the inventory follow-through's full changed-file gate also passes.
  • Fifth exact-head CI completed green on 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 main runQaPackagedBootstrap, 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.
  • Sixth exact-head CI identified seven stale argv assertions in a reporting test added by the newer deadcode reporting work. The production runner correctly omits the age-zero bypass. The fixture now omits that obsolete expected argument while retaining its concurrency barrier, exact remaining argv, exit statuses, diagnostics, and every outcome assertion; two existing conditionals also receive lint-required braces. Reproduced all 7 failures before the edit; afterward 50 tests across reporting/exports/unused-files suites pass, with formatting and ordinary type-aware lint green. No production bypass is restored.
  • Current-main integration also checked the independently added [email protected] against the cutoff (published August 12). No additional dependency exception was added during integration.

Validation commands

pnpm install --frozen-lockfile --no-trust-lockfile
node --import ./scripts/tsx.mjs scripts/check-dependency-pins.mts
pnpm deps:vuln:gate
pnpm build
node scripts/run-vitest.mjs \
  extensions/imap \
  extensions/acpx/src/manifest.test.ts \
  extensions/acpx/src/runtime.test.ts \
  extensions/acpx/src/runtime-proxy.test.ts \
  extensions/acpx/src/codex-auth-bridge.test.ts \
  extensions/codex/src/manifest.test.ts \
  extensions/amazon-bedrock \
  extensions/tlon/src/tlon-api.test.ts \
  extensions/tlon/src/urbit/upload.test.ts \
  extensions/anthropic/agent-sdk.runtime.test.ts \
  extensions/anthropic/agent-sdk.runtime.permissions.test.ts \
  packages/ai/src/providers/mistral.test.ts \
  packages/ai/src/providers/mistral-http-client.contract.test.ts \
  packages/ai/src/providers/mistral.bounded-stream.test.ts \
  extensions/msteams/src/auth-coverage.test.ts \
  test/scripts/check-deadcode-unused-files.test.ts \
  test/scripts/run-oxlint.test.ts \
  src/acp/control-plane/manager.accepted-controls.test.ts \
  src/acp/control-plane/runtime-options.test.ts
node scripts/run-vitest.mjs test/package-manager-config.test.ts

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.

@clawsweeper

clawsweeper Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 29, 2026 05:15
@steipete
steipete requested a review from a team as a code owner August 29, 2026 05:15
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/acpx/package.json
  • extensions/amazon-bedrock/package.json
  • extensions/anthropic/package.json
  • extensions/imap/package.json
  • extensions/msteams/package.json
  • extensions/qa-lab/package.json
  • extensions/tlon/package.json
  • package.json
  • packages/ai/package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: 951ec59ed402a92fe9b12dbc5658b40935fbff45
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 4:58 AM ET / 08:58 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 5 items remain

Keep 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
Reviewed head: 951ec59ed402a92fe9b12dbc5658b40935fbff45
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has targeted coverage, but dependency-contract verification is incomplete in this review environment.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned dependency-policy PR is exempt from the external-contributor proof gate; the supplied IMAP and package evidence does not remove the outstanding upstream-contract review limitation.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-owned dependency-policy PR is exempt from the external-contributor proof gate; the supplied IMAP and package evidence does not remove the outstanding upstream-contract review limitation.
Evidence reviewed 7 items Introduced cooldown policy: The exact PR head changes pnpm from a 2-day to a 7-day hold and adds the Codex exclusions to npm configuration.
Current-main comparison: The fetched current-main snapshot still has a 2880-minute minimum release age and a broad exclusion list, so the central policy change is not already implemented.
IMAP boundary preservation: The watcher parses only text output and the updated protocol-boundary test exercises both text/plain and HTML-only input through dispatch.
Findings None None.
Security Needs attention Confirm the Codex wildcard exemption scope: The added npm configuration exempts @openai/codex and every @openai/codex-* package from the seven-day hold, so future package-family additions also bypass that supply-chain safeguard.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should OpenClaw accept immediate seven-day enforcement with the @openai/codex-* exemption across pnpm, npm, and Dependabot, together with the disclosed ACPX and Crabline rollback effects? Confirm the documented policy: Accept the seven-day cooldown and scoped Codex exception after recording that the ACPX and Crabline regressions are intentional.

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

  • Resolve security concern: Confirm the Codex wildcard exemption scope - The added npm configuration exempts @openai/codex and every @openai/codex-* package from the seven-day hold, so future package-family additions also bypass that supply-chain safeguard.
  • Resolve merge risk (P1) - Removing broad release-age exceptions can make existing source-update workflows reject newly published dependency versions for seven days.
  • Resolve merge risk (P1) - The ACPX downgrade intentionally restores stale accepted-thinking state after model switches, and the Crabline downgrade restores the earlier macOS ACL limitation.
  • Resolve merge risk (P1) - The new npm and Dependabot wildcard exemption bypasses the age hold for every @openai/codex-* package; direct npm and Codex contract inspection remains unavailable in this environment.

Findings

  • [medium] Confirm the Codex wildcard exemption scope — .npmrc:7
Agent review details

Security

Needs attention: The patch intentionally broadens a release-age exemption into npm and Dependabot; its exact wildcard contract was not directly verifiable here.

PR surface

Source +1, Tests +27, Docs +10, Config -104, Other -285. Total -351 across 29 files.

View PR surface stats
Area Files Added Removed Net
Source 2 3 2 +1
Tests 11 145 118 +27
Docs 2 11 1 +10
Config 11 28 132 -104
Generated 0 0 0 0
Other 3 185 470 -285
Total 29 372 723 -351

Review metrics

Metric Value Why it matters
Release-age policy pnpm 2 days → 7 days; npm 0 → 7 days; Dependabot 2 days → 7 days This deliberately changes when source tooling and dependency-update automation may accept newly published packages.
Production versus tests production/tooling +4/-10 (net -6); tests +145/-118 (net +27) The runtime/tooling delta is net-negative; the added test coverage concentrates on IMAP body preservation, npm configuration isolation, and bounded diagnostics.

Merge-risk options

Maintainer options:

  1. Confirm the intentional rollback set (recommended)
    Accept the stricter resolver policy only with explicit maintainer acceptance that ACPX session synchronization and Crabline ACL behavior remain downgraded until cooled replacements are available.
  2. Verify exception scope before landing
    Pause until the authoritative npm and Codex sources confirm that the @openai/codex-* wildcard is the intended package set for all three policy surfaces.

Technical review

Best 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.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned dependency-policy PR is exempt from the external-contributor proof gate; the supplied IMAP and package evidence does not remove the outstanding upstream-contract review limitation.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: The PR changes repository-wide dependency-resolution policy and several bundled integration pins, but no emergency user-impact regression is demonstrated.
  • merge-risk: 🚨 compatibility: The stricter cooldown and removal of exemptions can reject source dependency resolutions that previously succeeded.
  • merge-risk: 🚨 session-state: The explicit ACPX downgrade removes the accepted thinking-state synchronization introduced by the newer version.
  • merge-risk: 🚨 security-boundary: The added npm and Dependabot wildcard exemption intentionally bypasses the supply-chain release-age safeguard for a package family.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-owned dependency-policy PR is exempt from the external-contributor proof gate; the supplied IMAP and package evidence does not remove the outstanding upstream-contract review limitation.

Evidence

Security concerns:

  • [medium] Confirm the Codex wildcard exemption scope — .npmrc:7
    The added npm configuration exempts @openai/codex and every @openai/codex-* package from the seven-day hold, so future package-family additions also bypass that supply-chain safeguard.
    Confidence: 0.91

What I checked:

  • Introduced cooldown policy: The exact PR head changes pnpm from a 2-day to a 7-day hold and adds the Codex exclusions to npm configuration. (pnpm-workspace.yaml:8, 951ec59ed402)
  • Current-main comparison: The fetched current-main snapshot still has a 2880-minute minimum release age and a broad exclusion list, so the central policy change is not already implemented. (pnpm-workspace.yaml:8, 1e42dbc945f2)
  • IMAP boundary preservation: The watcher parses only text output and the updated protocol-boundary test exercises both text/plain and HTML-only input through dispatch. (extensions/imap/src/watcher.ts:299, 951ec59ed402)
  • Codex runtime dependency signal: The ACPX package now uses codex-acp 1.6.2 and the lock override pins its @openai/codex dependency to 0.150.1; this makes direct Codex contract inspection relevant. (pnpm-workspace.yaml:22, 951ec59ed402)
  • Direct-contract limitation: The sibling Codex checkout was absent, and read-only requests for npm 11.19 and Mailparser 3.9.15 source failed at DNS resolution; this is a reviewer environment limitation, not missing contributor proof.
  • Policy provenance: History identifies the PR’s central policy commit and the prior pnpm-12 source-install migration on current main. (pnpm-workspace.yaml:8, aaf8ced269de)

Likely related people:

  • steipete: Current history attributes both the central policy commit and the earlier pnpm source-install migration to this contributor. (role: recent dependency-policy owner; confidence: high; commits: aaf8ced269de, b85a049da5e8; files: pnpm-workspace.yaml, .npmrc, extensions/acpx/package.json)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Record direct npm, Mailparser, and Codex contract evidence for the cooldown and wildcard exception before merge.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-08-29T05:25:29.222Z sha 148c5bf119b310d70cb1377fb613136283e74517 :: found issues before merge. :: [P1] Keep the ACPX accepted-control repair | [P1] Do not roll back the Crabline ACL classifier fix
  • reviewed 2026-08-29T06:03:02.910Z sha 3dc3a2ea8c4762ea18b89da0906819ab7a75429b :: found issues before merge. :: [P1] Make the npm cooldown work on supported Node 22
  • reviewed 2026-08-29T06:44:27.366Z sha d696683738c117336da9865b7d23f0146666d37d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T07:29:37.245Z sha dd854692bce1008526643ab6ca6d37d0ffdf2017 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T08:00:47.751Z sha 4f2d983 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T08:32:39.734Z sha 6c5a158 :: needs maintainer review before merge. :: none

@steipete steipete self-assigned this Aug 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 29, 2026
@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 29, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 29, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready evidence and maintainer disposition

Reviewed/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 OPENCLAW_TESTBOX=1 scripts/pr prepare-run 132385 passed using exact-head evidence, with no further rebase, commit, or older-run substitution. Complete-branch Codex review and the final reporting-fixture follow-up found no actionable P0 issues.

The latest ClawSweeper review's contract and policy items are resolved explicitly, not silently skipped:

  • Exception scope: the standing trusted exception intentionally covers @openai/codex and every matching @openai/codex-* package, including future family additions—not just today's platform payload names. The same selectors are used by pnpm, npm, and Dependabot npm. I directly read npm 11.19's exclusion matcher: it matches resolved registry names, unwraps npm aliases, and does not exempt unrelated dependencies transitively. I also inspected its age/exclusion definitions and pack handling, plus pnpm's native strict release-age path.
  • Mailparser: direct 3.9.15 source shows skipTextToHtml returns before link scanning. HTML-to-text remains enabled. The installed-parser hostile-body before/after probe and real IMAP protocol-boundary plaintext/HTML cases passed; the approved parent-scoped converter override preserves the cooled security fix.
  • Codex: I personally inspected exact rust-v0.150.1 parent-owned V2 child-resume protection and its CLI package/platform mapping. Codex remains 0.150.1. The installed ACP 1.6.2 adapter initialized against that binary, correctly rejected unauthenticated session listing, and shut down cleanly in isolated file-only homes with no credentials or inference.
  • Maintainer decision: immediate seven-day source enforcement and removal of unrelated exceptions are the requested policy. The acpx accepted-thinking synchronization loss and Crabline older ACL/cancellation behavior were disclosed before the maintainer directed landing. They remain intentional rollback costs, not claimed fixed or behavior-equivalent. Listed secops involvement was verified. No additional age exceptions or downstream workarounds were added.

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-scripts
pnpm build
pnpm deps:vuln:gate
node 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.ts
node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.scripts.json test/scripts/check-deadcode-reporting.test.ts

Proof 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.

@steipete
steipete merged commit 939ca50 into main Aug 29, 2026
270 of 272 checks passed
@steipete
steipete deleted the steipete/dependency-age-compliance-cc4710 branch August 29, 2026 09:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 29, 2026
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
steipete added a commit that referenced this pull request Aug 29, 2026
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
steipete added a commit that referenced this pull request Aug 29, 2026
…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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: msteams Channel integration: msteams channel: tlon Channel integration: tlon dependencies-changed PR changes dependency-related files extensions: acpx extensions: amazon-bedrock extensions: anthropic extensions: codex extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. plugin: imap rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant