Repository navigation
[2026.10.9] fix(clawhub): pin patched Undici on release - #187255
Conversation
Passive macOS Gateway stops now preserve an absent current-profile service definition without invoking uninstall, while explicit low-level ghost recovery remains available. Release adaptation: the 2026.10.8 backport of #180390 removed the absent-plist guard from GatewayLaunchAgentManager's disable path without main's follow-up, so every passive stop with no LaunchAgent plist ran `openclaw gateway uninstall` (mac validation: GatewayProcessManagerTests "pause preserves unretainable services" [absent]). Stable has no migration-pending custody or `.authority` wrapper, so the guard checks `custody.definition.plist` directly. Mac-only post-tag fix; npm, Docker and Linux bytes are unaffected. (cherry picked from commit cb10ec4)
Adapt only the pinned ClawHub CLI's Undici 7.29.1 -> 7.30.1 override, lock entry, and full-lock hash. Keep the standalone materializer and all other package entries unchanged. Add a dependency-free local regression for the pin, successful offline materialization, and changed-lock rejection before npm. Source snapshot: ed4c9d4 (#185194). Snapshot author: RoboClaw <[email protected]>. Git path history identifies the actual 7.30.1 pin change as f6c2aec (#182010), by the same author; ed4c9d4 already contains it but does not change the ClawHub paths. This is a path-scoped release-line adaptation, not either full refresh. The new node:test regression is local adaptation, not source test credit. The c79071d shared materializer refactor is intentionally excluded. Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 021ba7f5-e5be-4beb-8e7f-de16152566e5
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR pins the release branch’s ClawHub toolchain to Undici 7.30.1 and adds dependency-pin and materialization checks. Example: Materialize [email protected] on release/2026.10.8.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored PR open: it provides a focused security backport for the release branch, with no actionable code or security findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRelease workflows pass a dedicated manifest and lockfile to the materializer, which verifies integrity and returns an absolute ClawHub CLI path after npm installation with lifecycle scripts disabled. flowchart LR
A[Release workflow] --> B[Dedicated manifest and lock]
B --> C[Materializer integrity checks]
C --> D[npm ci without lifecycle scripts]
D --> E[Pinned ClawHub CLI]
Technical reviewBest possible solution: Retain the focused dependency backport and the release branch’s existing materializer owner. Do we have a high-confidence way to reproduce the issue? The release base deterministically selects Undici 7.29.1, predating the upstream security repairs in 7.30.1; no exploit or target code was run during this read-only review. Is this the best way to solve the issue? The scoped override, matching lock metadata, and synchronized digest form the smallest complete dependency repair while preserving ClawHub’s version and installation contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3cafc7b80e63. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +108, Config 0, Other 0. Total +108 across 4 files. Added test files: 1. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 29, 2026, 12:47 AM ET / 04:47 UTC (Revision 2). |
Keep the standalone materializer success and tamper checks under the canonical Vitest owner so bounded PR preflight can discover them. Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Scope
Minimal security adaptation for release/2026.10.8, freshly verified at
5413218d77df39edac0ee99b7838d7bac519002abefore publication.[email protected]override andnode_modules/undicilock metadata from 7.29.1 to 7.30.1.5f7da1abdfcaf8adcf8a20b609f677cd7a0e9ffe37e078b39d0b742bce5ce6af.No shared-helper refactor, root lock, workflow, package version, pack/cache/build isolation, or private-export changes. All other dedicated lock entries are unchanged. This does not publish an npm package or release.
Provenance
Fixed metadata is taken from main snapshot
ed4c9d4434495921bc42192fe724f9fd0d5d629b(#185194), authored by RoboClaw [email protected]. Git path history shows the actual 7.30.1 pin change isf6c2aeca54e95a6593aec8676034f68aacbcd6f8(#182010), by the same author: #185194 contains the fix but does not itself modify the ClawHub paths. Neither broad dependency refresh is transplanted. The regression is a new local release-line adaptation. Thec79071d0/ #174693 shared materializer is not a prerequisite and is excluded.Validation
7.29.1 !== 7.30.1; both existing-behavior offline cases pass.node scripts/run-vitest.mjs run --config test/vitest/vitest.tooling.config.ts test/scripts/clawhub-cli-security-pin.test.ts: 3/3 pass, revalidated with the canonical tooling runner. No full repository install or suite was run; hosted CI seconds remain unknown.npm ci --ignore-scripts --no-audit --no-fund --omit=devsucceeds (47 packages), preserving ClawHub 0.23.3.clawhub --cli-version=>0.23.3. The initially attempted--versionis unsupported and its failed receipt is retained separately.npm audit --package-lock-only --json: baseline reports 2 affected packages (ClawHub via Undici); fixed graph reports 0 vulnerabilities. This is scoped audit evidence, not global security clearance.bash -nandgit diff --check: pass.Remaining gates
Ready for standard CI after complete independent canonical source review with no actionable P0–P2 findings. A separately reviewed test-only correction fixes the initial hosted preflight discovery failure, preserving all three cases and every CI gate. Hosted checks/security gates and release qualification have not been cleared. No merge, gate weakening, or release requested.
Independent review update — October 29, 2026
Complete review used canonical autoreview with OpenClaw engine (openai/gpt-6.1-sol), the full scoped diff and all required source context without omitted bytes. This is bounded source-review evidence, not completed hosted CI, owner approval, or full security clearance.
The initial hosted preflight rejected the .test.mjs file because canonical tooling ownership matches .test.ts. The reviewed correction preserves all three tests under Vitest; canonical-wrapper tests (3/3), isolated strict TypeScript checking, formatting, and diff checks pass. Local runner uses installed Vitest 5.0.5 versus branch-declared 5.0.1, so hosted frozen-install proof remains required.