Repository navigation
fix(workers): ship Windows permission helper in portable archives - #174362
Merged
Merged
Conversation
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.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
steipete
marked this pull request as ready for review
October 16, 2026 15:19
Contributor
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
steipete
enabled auto-merge (squash)
October 16, 2026 15:28
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
pnpm buildpassed (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.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.