Repository navigation
fix(windows): preserve state access when boot probes fail - #178229
Merged
Merged
Conversation
Record the Windows host namespace without the unused PowerShell boot observation, so CLI and portable-worker state admission can verify their own owners. Keep native process-start checks and conservative foreign-owner refusal. Accept validated timestamps from existing lock records. Regression exposed by #178076. Verified 156 ownership tests and 23 portable-worker build tests, targeted types, lint, format, and P2 review. Native Windows execution remains pending.
Contributor
|
🦞👀 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. |
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. |
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 21, 2026
…78229) Record the Windows host namespace without the unused PowerShell boot observation, so CLI and portable-worker state admission can verify their own owners. Keep native process-start checks and conservative foreign-owner refusal. Accept validated timestamps from existing lock records. Regression exposed by openclaw#178076. Verified 156 ownership tests and 23 portable-worker build tests, targeted types, lint, format, and P2 review. Native Windows execution remains pending.
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
Windows CLI commands and portable-worker state operations can reject their own live owner with
GatewayLockNamespaceErrorbefore doing useful work. The Windows failures in hourly 39382483409 affect all three ordinary Claude CLI launch variants and both portable exec/authorization cases. #178076 correctly made unknown namespace records refuse admission, exposing a dependency on an optional PowerShell/CIM boot observation: a failed probe is cached as a null namespace.User Impact
Windows CLI commands and portable workers can access their own state even when the optional boot observation is unavailable. Unknown and foreign owners remain protected.
Why This Change Was Made
Windows ownership already uses the host, PID, and absolute process-start identity; its classifier deliberately ignores boot timestamp differences. Record that host namespace directly instead of running the unused boot probe. Continue validating older boot timestamps when present. Missing or malformed namespaces, foreign hosts, unverifiable process identity, and PID reuse retain their existing checks. The managed-update boot-token reader is unchanged.
Related: #178076.
Evidence
git diff --checkpassed. Independent P0–P2 review found no actionable issues, including a final pass with the complete classifier supplied.Original failures: Windows process job, Windows portable-worker job.