Skip to content

fix: pin shared Bun to signed Windows rebuild - #169532

Merged
steipete merged 2 commits into
mainfrom
steipete/repin-bun-signed-windows
Oct 12, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/repin-bun-signed-windows

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The shared Bun pin predates the signed Windows release assets needed by the desktop runtime.

User Impact

Makes Authenticode-signed Windows x64 and arm64 binaries from the OpenClaw Foundation available through the shared pin, with authenticodeSigned: true and testOnly: false. This PR only repins the runtime; Windows packaging integration is separate.

Why This Change Was Made

Pins openclaw-v1.4.3-20261010-65d94e7156-webkit-01f208ae7a-r2, a same-commit rebuild of Bun 65d94e7156da4b6aca649dac5f19b8294b757570 with the same WebKit 01f208ae7a87661e7503f514c946a37bc76ad1d1. The Darwin hashes change; the Linux archive and executable hashes remain identical. The existing platform-keyed schema accommodates both Windows entries without a reader change.

Regenerated the pin from the release manifest using the documented jq projection, updated the old tag reference, and taught that projection to retain Windows signing fields. Release-note context: desktop runtimes can consume the signed Windows rebuild without changing the Bun or WebKit source revision.

Production code: +0/-0; pin data: +21/-5; docs: +21/-17; tests: +0/-0.

Evidence

  • Cross-checked the release manifest and all 12 runtime/debug archive checksums against SHA256SUMS; checked both Windows signing declarations and the unchanged source identities.
  • Staged the real Darwin arm64 and x64 payloads through scripts/stage-openclaw-bun.sh (the current replacement for the former macOS-only stager). Both passed archive, executable, architecture, and revision validation.
  • Staged Linux x64 through the same owner used by .github/actions/setup-test-bun; hash/ELF verification passed. Native Linux execution is left to CI.
  • Existing staging validator: 11/11 cases passed, 30.63 s command wall time (8.87 s Vitest duration).
  • CI Bun setup routing: 8/8 selected cases passed, 102.72 s command wall time (91.72 s Vitest duration).
  • Old and new Darwin arm64 binaries return identical --revision (1.4.3-canary.1+65d94e715) and Bun.revision (full source commit above).
  • Paired Darwin arm64 smoke: all 121 cases passed identically under both binaries. Each file ran separately through OPENCLAW_VITEST_RUNTIME=bun node scripts/run-vitest.mjs <file> --maxWorkers=1, with a private HOME/TMPDIR and the selected Bun first on PATH.
File Cases Old wall time Rebuild wall time
src/utils/safe-json.test.ts 6 21.91 s 20.43 s
src/infra/process-env.test.ts 12 23.44 s 29.32 s
packages/terminal-core/src/display-string.test.ts 4 41.07 s 54.95 s
src/process/windows-command.test.ts 39 265.38 s 139.45 s
src/infra/node-sqlite.test.ts 60 44.21 s 66.48 s

The command-parser file paid the compiled-worker preparation cost (152.55 s cold, 49.69 s cached); no tests were added or changed.

  • All relevant ratchets passed: max-lines, line-cap, assertion-safety, test-timeout-race, test-mock-exports, config docs, and plugin inventory. Protocol and native locale generators are unaffected.
  • Changed-file guards passed through the pre-lint checks; lint:scripts passed (156.22 s) after installing the omitted, already-locked tools/solid-lint dependencies. The initial attempt failed on a missing tooling package, not a source defect. The remaining full macOS app suite was not run for this requested same-source light gate.
  • Independent autoreview: scoped-clean, with no actionable P0–P2 findings. Formatting and git diff --check passed.

No native Windows execution or Authenticode trust-chain validation was performed in this macOS repin lane; the published signing declarations are pinned and the Windows lane owns platform execution. The requested same-source light gate is used rather than full release qualification.

ClawSweeper follow-up: corrected the guide to describe the Windows entries as available for pending packaging integration. The follow-up changes one documentation sentence only; the tested Bun pin is byte-identical (Git blob 1e5b58d6adbad0985272c1a18e0339048a858d0d). Existing runtime proof remains applicable, and fresh autoreview is scoped-clean.

Final-head checks: CI run passed, including openclaw/ci-gate. ClawSweeper reviewed 1e843e8dd7fa44d5d7f60afc85ae8770d57c8168 with no findings or Before merge items; ready for maintainer review.

@clawsweeper

clawsweeper Bot commented Oct 12, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: macos App: macos scripts Repository scripts size: XS labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR pins the shared Bun runtime to its signed Windows rebuild and updates the artifact documentation.

Example: Windows packaging needs the shared windows-x64 Bun artifact.

  • Before: The shared pin contains only Darwin and Linux artifacts.
  • After: The pin includes bun-windows-x64.zip with archive and executable hashes, authenticodeSigned: true, and testOnly: false.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repin supported by reported production staging, matching published archive digests, preserved source identities, and successful current-head CI.
Proof confidence 🐚 platinum hermit (4/6) The ordinary contributor-proof gate is inapplicable under the supplied maintainer-authored classification; the body records real Darwin arm64/x64 staging and revision validation plus Linux x64 hash/ELF staging, while explicitly leaving native Windows execution to the separate integration.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Desktop packaging cannot obtain signed Windows runtime artifacts from the existing shared pin.
Reason: The maintainer-authored change updates the established shared owner, preserves source revisions, and accurately leaves Windows integration to its separate PR.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR provides a useful, narrowly scoped runtime repin that current main still lacks; no actionable introduced defects remain.

Priority: P2
Reviewed head: 1e843e8dd7fa44d5d7f60afc85ae8770d57c8168

Before merge

None.

Findings

None.

Agent review details

How this fits together

The shared pin supplies release identities and artifact hashes to runtime staging for CI and desktop packaging; Windows packaging integration remains separate.

flowchart TD
  A[Bun release artifacts] --> B[Shared runtime pin]
  B --> C[Darwin and Linux stager]
  C --> D[CI test runtime]
  C --> E[Desktop runtime packaging]
  B --> F[Pending Windows integration]
Loading

Technical review

Best possible solution:

Land the shared same-source repin while keeping Windows packaging and native platform qualification in their owning integration.

Do we have a high-confidence way to reproduce the issue?

This is a runtime artifact update rather than a reproduced product failure; source inspection confirms current main lacks the signed Windows entries.

Is this the best way to solve the issue?

Updating the existing shared pin is the appropriate owner-level solution, preserving independent hashes and avoiding competing desktop or CI pins.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f054d03022e0.

Provenance checked

  • Shared runtime tag and Darwin artifact hashes keeps the original intent (fd1fd2c: The preceding repin admitted the qualified Bun and WebKit revisions with independent archive and executable hashes.)
  • Windows publication deferral changes intended behavior with a stated reason (d812dc2: Windows artifacts were omitted until signed publication became available; the published rebuild now satisfies that stated prerequisite.)
  • Shared pin projection and staging ownership keeps the original intent (d9ccc49: One pin and stager serve CI and desktop consumers; platform integration remains separately owned.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Verified PR scope: The introduced diff changes only the shared artifact pin and its documentation; Bun and WebKit source identities remain unchanged, as do both Linux artifact and executable hashes. (scripts/lib/openclaw-bun.json:2, 1e843e8dd7fa)
  • Current main still needs the repin: Fetched main retains the previous release tag and four-platform pin without Windows entries. (scripts/lib/openclaw-bun.json:2, f054d03022e0)
  • Existing staging boundary preserved: The shared stager admits only Darwin and Linux, validates selected artifacts against independent pins, and downloads from openclaw/bun; the Linux desktop adapter continues to exclude Windows. This establishes the dependency-contract review signal without implying Windows integration is implemented. (scripts/stage-openclaw-bun.sh:14, 1e843e8dd7fa)
  • Published rebuild and signing contract: Release metadata matches all six pinned archive digests and declares Foundation Authenticode signatures for both Windows targets. The pinned release generator places signing fields under executable; Windows packaging requires a valid signature, expected signer, timestamp, and matching byte receipts. Direct manifest download was blocked by the release-assets host allowlist, so executable hashes were not independently downloaded and rechecked here. (scripts/openclaw-release/package-windows.ps1:42, 65d94e7156da)
  • Distinct integration consumer: The same author's open Windows desktop PR explicitly delegates the shared pin update to this PR and keeps platform integration separate: feat: support local Gateways in the Windows desktop app #169522.
  • Prior intent and accepted qualification scope: The previous repin qualified these Bun and WebKit source revisions: chore: update shared Bun pin to 65d94e7156 #169009. The maintainer-authored current body explicitly selects a same-source light gate and records real Darwin staging plus unchanged Linux hashes, rather than claiming new Windows execution coverage. (scripts/lib/openclaw-bun.json:3, fd1fd2ce0ef8)

Likely related people:

  • Peter Steinberger: Raw commit fd1fd2c adds scripts/lib/openclaw-bun.json:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fd1fd2ce0ef8; files: scripts/lib/openclaw-bun.json)

PR surface

Docs +4, Other +16. Total +20 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 2 21 17 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 1 21 5 +16
Total 3 42 22 +20

Labels

Label changes:

No label changes.

Label justifications:

  • P2: A bounded shared-runtime maintenance update enables signed Windows artifacts without introducing an urgent production workflow change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • 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 (3 earlier review cycles)
  • reviewed 2026-10-12T02:16:12.386Z sha 1d6829b :: needs changes before merge. :: [P3] Describe Windows packaging consumption as pending
  • reviewed 2026-10-12T02:26:47.286Z sha 1d6829b :: needs changes before merge. :: [P3] Describe Windows packaging consumption as pending
  • reviewed 2026-10-12T02:36:54.482Z sha 1e843e8 :: needs maintainer review before merge. :: none

Reviewed October 11, 2026, 11:42 PM ET / October 12, 2026, 03:42 UTC (Revision 4).

@steipete
steipete marked this pull request as ready for review October 12, 2026 02:21
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@steipete
steipete merged commit 2f034e8 into main Oct 12, 2026
123 of 125 checks passed
@steipete
steipete deleted the steipete/repin-bun-signed-windows branch October 12, 2026 03:50
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 12, 2026
* fix: pin shared Bun to signed Windows rebuild

* docs: clarify pending Windows Bun integration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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