Skip to content

fix(workers): ship Windows permission helper in portable archives - #174362

Merged
steipete merged 1 commit into
mainfrom
fix/portable-worker-windows-helper
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/portable-worker-windows-helper

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Portable worker archives omit the Windows permission-inspection executable required when SQLite workers prepare exec authorization state.

User Impact

Windows workers receive the pinned permission helper with the runtime that calls it. The helper is covered by the existing archive manifest, hash, and regular-file checks. Permission checks and authorization policy are unchanged; no dependency update or migration is required.

Why This Change Was Made

The fs-safe update in #169469 introduced windows-security-helper.exe. Sealed workers disable optional native bindings, but still use this required Windows command helper. #173173 correctly preserved that validation path; its executable was never added to the worker artifact inventory.

Emit the pinned helper as a build asset and include it in the existing required artifact manifest. Package closure checks now follow executable new URL(..., import.meta.url) references, and bootstrap validation checks the binary's presence without parsing it as JavaScript. Unowned executable outputs are rejected.

Evidence

  • A new executable-closure regression failed on unchanged main. With that guard enabled, the existing relocated archive failed on four missing helper edges (the exec launcher, SQLite worker, and two shared chunks).
  • The repaired full worker suite passes all 17 cases. The authorization case checks persisted command, path, and timestamp after reopening SQLite, then verifies quarantine explicitly refuses another write. Its original deadlines and assertions remain intact.
  • The extracted helper is byte-for-byte identical to the pinned dependency. The real relocated archive passes its package-closure check.
  • All 37 package/bootstrap-check cases, 34 bootstrap cases, 22 bundle cases, and 13 archive-integrity cases pass. The SQLite asset sibling and three relocated grammar cases pass.
  • Full pnpm build passed (5m20.8s), including runtime closure, bootstrap, SDK exports, and Control UI assets. Scoped core, scripts, gateway and root-test types, lint/format, and independent P2 review pass.
  • Child failures now expose the original managed-runner error and captured output; an explicit commit marker distinguishes progress through authorization from later cleanup.

The originating Windows job returned null status after 46.209 seconds without showing its captured error. Linux ran the same case in 5.958 seconds in the same hourly. This proves a missing Windows runtime asset, but does not conclusively attribute that job's timeout to it. Native Windows execution is unavailable locally; hosted Windows CI must confirm the runtime outcome. No CI dispatch or rerun was requested.

The implementation was rebased without patch changes onto current main. All 57 build-config cases then passed in 29.11s. An unrelated service-relay test inventory failure encountered during broader local proof was already fixed by 3a294a08b284; that fix is included in the base.

fs-safe resolves its Windows permission helper beside the bundled module.
The portable worker manifest shipped only JavaScript, leaving four required
executable edges missing. Emit the pinned helper as an owned asset and carry
it through existing staging, regular-file checks and content hashes.

Follow executable URL edges in the package closure guard. Retain the lazy
native-disabled worker contract and reject unowned executables. Preserve all
authorization persistence and quarantine-refusal assertions while exposing
captured runner errors and the authorization commit milestone.

The new closure test failed on main; the real relocated archive then exposed
four missing helper edges. Repaired worker suite: 17/17. Package/bootstrap
checks: 37/37; bundle/archive suites: 35/35; bootstrap suite: 34/34. Full build,
scoped core/scripts/root types, lint and P2 review passed. Native Windows is
not available locally: this fixes the proven missing asset, without claiming
the original null-status timeout is conclusively explained.
@clawsweeper

clawsweeper Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 16, 2026 15:19
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T15:22:39.065681Z ddd3c6f Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts size: S labels Oct 16, 2026
@steipete
steipete enabled auto-merge (squash) October 16, 2026 15:28
@steipete
steipete merged commit 41bbe9b into main Oct 16, 2026
216 of 220 checks passed
@steipete
steipete deleted the fix/portable-worker-windows-helper branch October 16, 2026 15:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…enclaw#174362)

fs-safe resolves its Windows permission helper beside the bundled module.
The portable worker manifest shipped only JavaScript, leaving four required
executable edges missing. Emit the pinned helper as an owned asset and carry
it through existing staging, regular-file checks and content hashes.

Follow executable URL edges in the package closure guard. Retain the lazy
native-disabled worker contract and reject unowned executables. Preserve all
authorization persistence and quarantine-refusal assertions while exposing
captured runner errors and the authorization commit milestone.

The new closure test failed on main; the real relocated archive then exposed
four missing helper edges. Repaired worker suite: 17/17. Package/bootstrap
checks: 37/37; bundle/archive suites: 35/35; bootstrap suite: 34/34. Full build,
scoped core/scripts/root types, lint and P2 review passed. Native Windows is
not available locally: this fixes the proven missing asset, without claiming
the original null-status timeout is conclusively explained.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant