Skip to content

[2026.10.9] fix(clawhub): pin patched Undici on release - #187255

Merged
RomneyDa merged 4 commits into
release/2026.10.9from
openclaw/brisk-shrimp
Oct 29, 2026
Merged

RomneyDa merged 4 commits into
release/2026.10.9from
openclaw/brisk-shrimp

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Scope

Minimal security adaptation for release/2026.10.8, freshly verified at 5413218d77df39edac0ee99b7838d7bac519002a before publication.

  • Change only the dedicated [email protected] override and node_modules/undici lock metadata from 7.29.1 to 7.30.1.
  • Update the standalone materializer's full-lock SHA-256 to 5f7da1abdfcaf8adcf8a20b609f677cd7a0e9ffe37e078b39d0b742bce5ce6af.
  • Add a canonical Vitest tooling regression for the manifest/lock/hash contract, successful offline materialization, and tampered-lock rejection before npm.

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 is f6c2aeca54e95a6593aec8676034f68aacbcd6f8 (#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. The c79071d0 / #174693 shared materializer is not a prerequisite and is excluded.

Validation

  • Before fix: the new regression fails specifically on 7.29.1 !== 7.30.1; both existing-behavior offline cases pass.
  • After fix: 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.
  • Real standalone materializer in fresh owned scratch: npm ci --ignore-scripts --no-audit --no-fund --omit=dev succeeds (47 packages), preserving ClawHub 0.23.3.
  • Actual CLI smoke: clawhub --cli-version => 0.23.3. The initially attempted --version is unsupported and its failed receipt is retained separately.
  • Dedicated graph 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.
  • Repository-pinned oxfmt 0.71.0 with the base's configuration: passes; bash -n and git diff --check: pass.
  • Full four-file diff inspected; no unrelated lock entries or product paths changed.

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.

shakkernerd and others added 3 commits October 27, 2026 13:12
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
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa
RomneyDa changed the base branch from main to release/2026.10.8 October 29, 2026 04:07
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nostr Channel integration: nostr channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: zalo Channel integration: zalo app: android App: android app: ios App: ios app: macos App: macos gateway Gateway runtime extensions: copilot-proxy Extension: copilot-proxy extensions: diagnostics-otel Extension: diagnostics-otel extensions: llm-task Extension: llm-task extensions: lobster Extension: lobster security Security documentation docker Docker and sandbox tooling channel: feishu Channel integration: feishu channel: irc labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The dedicated toolchain installs Undici 7.29.1.
  • After: It installs Undici 7.30.1 using the matching lockfile digest.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The backport is focused and source-correct, with limited independently inspectable behavioral evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; the body reports fresh standalone materialization and an improved audit result, while the inspected tests execute the materializer with stubbed npm.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release tooling installs an HTTP-client version predating upstream security fixes.
Reason: The maintainer-authored direction applies an existing dependency repair to the release branch without introducing product options or unrelated refactors.

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
Reviewed head: 021b28f27b03fc1440ca1880ecc0615a0f89d21b

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The body reports a real installation and audit comparison, but exposes only CLI-version output rather than inspectable installation and audit receipts.
Agent review details

How this fits together

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

Technical review

Best 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

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit d7a1753 adds .github/release/clawhub-cli/package.json:9 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d7a1753b9f5b; files: .github/release/clawhub-cli/package.json)
  • Vincent Koc: Raw commit 54cc90b adds scripts/materialize-clawhub-cli.sh:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 54cc90b1b1a8; files: scripts/materialize-clawhub-cli.sh)

PR surface

Tests +108, Config 0, Other 0. Total +108 across 4 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 108 0 +108
Docs 0 0 0 0
Config 2 4 4 0
Generated 0 0 0 0
Other 1 1 1 0
Total 4 113 5 +108

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful security dependency backport limited to a dedicated release toolchain, without evidence of an active product-runtime outage.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-29T04:22:28.106Z sha 8543a1f :: needs maintainer review before merge. :: none

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]>
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S 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.

3 participants