Repository navigation
feat(computer-use): computer.act v2 action contract with capability-filtered tool - #123544
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 14, 2026, 5:23 AM ET / 09:23 UTC. ClawSweeper reviewWhat this changesThe PR adds a version-two Computer Use action contract, node capability descriptors, and a computer tool intended to expose only actions supported by the selected node. Merge readiness⛔ Blocked by patch quality or review findings - 12 items remain Keep this protected maintainer PR open: the current head still has four prior action-boundary blockers, including unapproved capability widening and unbounded model-visible output. Priority: P1 Review scores
Verification
How this fits togetherComputer Use routes model tool calls through the Gateway to a paired node-host provider. The provider declares capabilities, the Gateway reconciles them with pairing, and the agent tool exposes actions to the model. flowchart LR
A[Node-host provider] --> B[Capability descriptor]
B --> C[Gateway pairing reconciliation]
C --> D[Live node session]
D --> E[Computer tool schema]
E --> F[Model action]
F --> G[Paired node command]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch can expose newly declared dangerous desktop actions without a durable pairing approval for that descriptor. PR surfaceSource +731, Tests +406, Other +5. Total +1142 across 33 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Make the descriptor a durable pairing-approved authority surface, resolve it before publishing the model tool, bound every serialized result field, and register dangerous invoke policy through the canonical provider helper. Do we have a high-confidence way to reproduce the issue? Yes from source: an already paired node can reconnect with unchanged commands and a wider descriptor, while a valid 64-key arbitrary details record reaches JSON serialization unchanged. Is this the best way to solve the issue? No. The patch updates runtime state after tool publication, does not make descriptor widening an approved authority change, and leaves model-visible result fields unbounded. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8865c2539b19. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
…lements, regen swift protocol
|
Merged via squash.
|
…r.act v2) (#123464) * docs(plan): computer-use campaign plan — two-provider background computer use (CUA + Peekaboo) behind computer.act v2 * docs(plan): resolve W0-PIN — pinned 0.19.3 already contains inherited IPC and consent adapter * docs(plan): W0 complete — parity fixtures landed (#123469) * docs(plan): W1-SEAM landed (#123509) * docs(plan): W1 complete — v2 contract landed (#123544) * docs(plan): W2-CUA landed (#123604) * docs(plan): W2-MAC landed (#123635) * docs(plan): note picker screenshot evidence belongs to W2-UX * docs(plan): avoid inline-html placeholder in tracker note
…iltered tool (openclaw#123544) * feat(computer-use): computer.act v2 action contract with capability-filtered tool * fix(computer-use): break contract import cycle, bound model-visible elements, regen swift protocol * test(computer-use): satisfy curly rule in schema-cap helpers * fix(computer-use): satisfy type-aware lint on contract and tool * test(gateway-protocol): keep connect-params suite under the line cap
…r.act v2) (openclaw#123464) * docs(plan): computer-use campaign plan — two-provider background computer use (CUA + Peekaboo) behind computer.act v2 * docs(plan): resolve W0-PIN — pinned 0.19.3 already contains inherited IPC and consent adapter * docs(plan): W0 complete — parity fixtures landed (openclaw#123469) * docs(plan): W1-SEAM landed (openclaw#123509) * docs(plan): W1 complete — v2 contract landed (openclaw#123544) * docs(plan): W2-CUA landed (openclaw#123604) * docs(plan): W2-MAC landed (openclaw#123635) * docs(plan): note picker screenshot evidence belongs to W2-UX * docs(plan): avoid inline-html placeholder in tracker note
What Problem This Solves
The
computer.actcontract exposes only 13 desktop-coordinate actions, so none of the background window-scoped capabilities both providers (CUA Driver, Peekaboo) now support can reach the model. Campaign:docs/plan/computer-use.md(#123464); builds on the parity fixtures (#123469) and the provider seam (#123509).Why This Change Was Made
Promotes the frozen 40-action v2 union to its owner (
src/plugins/computer-use-contract.ts, re-exported viaopenclaw/plugin-sdk/computer-use), adds discriminated action variants for discovery, window observation (opaquewindowRef/elementRef/observationId), app lifecycle,set_value/invoke_menu/zoom, per-actiondeliveryMode,escalate_scope, a result envelope (effect/observation/escalation, hard-capped), and an additive per-node capability descriptor. The built-incomputertool filters its schema to exactly what the selected node advertises; nodes without a descriptor get today's v1 coordinate family — capability honesty, not a compat lane. The 13 existing wire actions keep byte-identical field encoding, so no Swift changes are needed this wave. Browser/recording families are capability-gated contract members that land with their adapters (W4).User Impact
No behavior change for current nodes: same actions, same wire encoding, same arming/pairing. New v2 actions become reachable only when a node advertises them (W2 adapters). Tool schema token cost: v1-only node 651 tokens, full v2 descriptor 742 tokens (
o200k_base) — well under the 1K budget threshold.Evidence
pnpm check:test-typesexit 0.pnpm plugin-sdk:surface:checkgreen (+6 non-callable exports, documented budget increments).git diff --checkclean; LOC: production/tooling +915/−159, tests/fixtures +409/−52.