Skip to content

fix(windows): preserve state access when boot probes fail - #178229

Merged
steipete merged 1 commit into
mainfrom
fix8/windows-lock-identity
Oct 20, 2026
Merged

steipete merged 1 commit into
mainfrom
fix8/windows-lock-identity

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Windows CLI commands and portable-worker state operations can reject their own live owner with GatewayLockNamespaceError before 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

  • Added a regression with an unavailable Windows boot observation. Before the runtime fix it failed with a null namespace (85.12 s wrapper time). After the fix, the full nine-file lock/state-owner group passed 156 tests in 85.25 s including wrapper work. This includes live-owner protection, foreign/missing/malformed namespace refusal, PID reuse, heartbeat lifecycle, recovery, and Windows path aliases.
  • The real portable runtime build and relocated archive suite passed 23 tests in 67.52 s including wrapper work. Both originally failing portable exec-denial and SQLite credential/authorization cases passed. The changed namespace file's case time remains under five seconds; most standalone wrapper time was compiler setup.
  • Targeted infra test-graph typecheck, type-aware lint for both TypeScript files, formatting for all three files, and git diff --check passed. Independent P0–P2 review found no actionable issues, including a final pass with the complete classifier supplied.
  • Native Windows execution remains unverified locally. A Blacksmith Windows Testbox allocation queued and was stopped immediately. The original logs establish the unavailable namespace, but do not expose the exact underlying CIM failure. This fix removes that unnecessary dependency; it does not infer a timeout or change any timeout. No CI rerun was requested.

Original failures: Windows process job, Windows portable-worker job.

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.
@clawsweeper

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-20T07:36:05.186255Z 2a9c777 PR opened
ℹ️ 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 size: S labels Oct 20, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@steipete
steipete merged commit f5275a2 into main Oct 20, 2026
132 of 133 checks passed
@steipete
steipete deleted the fix8/windows-lock-identity branch October 20, 2026 07:43
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation gateway Gateway runtime size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant