Repository navigation
docs(computer-use): state the authorization chokepoint explicitly - #124355
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 16, 2026 02:25
Contributor
Author
|
Merged via squash.
|
This was referenced Aug 16, 2026
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 16, 2026
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
The computer-use trust-model text made the app-owned CUA daemon's unrestricted mode look inconsistent with Gateway device and scope approval. It did not identify which layer authorizes actions, or distinguish local socket and loopback reachability from identity and authorization.
Why This Change Was Made
This states the intended boundary directly: the Gateway is the authorization chokepoint and the driver is a dumb effector. It explains why CUA Driver 0.19.3 bounded mode cannot represent OpenClaw's runtime-discovered target model, what the private Unix socket excludes, what remains inside the same-user boundary, and why loopback alone grants no operator scope.
No runtime, protocol, configuration, SQLite, or provider behavior changes.
Opaque-ref lifecycle assessment
The TypeScript CUA and native Swift implementations agree on the core observation rules today:
extensions/cua-computer/src/frame.ts:107,apps/macos/Sources/OpenClaw/ComputerActionServiceV2.swift:606).extensions/cua-computer/src/frame.ts:161,apps/macos/Sources/OpenClaw/ComputerActionServiceV2.swift:301).COMPUTER_STALE_OBSERVATIONon the normal resolution path (extensions/cua-computer/src/frame.ts:97,apps/macos/Sources/OpenClaw/ComputerActionService.swift:492).They do not fully agree on lifecycle semantics:
list_windowsclears every existing window ref before minting the new inventory (apps/macos/Sources/OpenClaw/ComputerActionServiceV2.swift:193). CUAprojectWindowsretains the generation-wide map andissueWindowRefreuses matching refs, so a window ref omitted from a later inventory remains locally resolvable until driver rejection or generation rotation (extensions/cua-computer/src/driver-result.ts:298,extensions/cua-computer/src/frame.ts:141).COMPUTER_STALE_OBSERVATION(extensions/cua-computer/src/driver-result.ts:230), while the native execution queue reportslifecycleChangedbefore returning the result (apps/macos/Sources/OpenClaw/ComputerActionService.swift:243).Because these are real divergences, this PR does not add a shared contract test that would claim parity. The follow-up should first choose the canonical window-ref lifetime and in-flight generation error, then add fixture-based contract tests to both implementations without unifying the TypeScript and Swift code.
User Impact
Operators can now read one coherent authorization model: OpenClaw authorizes computer use at the Gateway, while the provider daemon and socket only execute already-authorized work. The same-user and loopback limits are explicit rather than implied.
Evidence
pnpm format docs/nodes/computer-use.mdpnpm docs:check-mdx docs/nodes/computer-use.mdOPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree pnpm tsgoOPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree pnpm check:test-typesgit diff --check.agents/skills/autoreview/scripts/autoreview --mode local(clean).agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main(clean)No Swift or TypeScript files were changed, so the focused Swift and CUA test suites were not required.