DCC-CUA — Project UI Control Router
Use this Skill as the canonical route whenever the user explicitly names
dcc-cua, DCC CUA, our dcc-cua, or 我们的 dcc-cua.
Non-substitution contract
An explicit DCC-CUA request is a hard routing boundary, regardless of whether the target is Maya, Chrome, a browser, or another desktop application.
- Use the project-owned
dcc-cuaruntime and DCC-MCPui-controlsurface. - Never load or call generic Codex/OpenAI Computer Use, the
computer-useSkill,@oai/sky, or Browser/Chrome automation plugins for that request. - Never treat a DCC-CUA runtime, binding, readiness, or permission failure as permission to change providers.
- Repair the project route when safely possible. Otherwise report the exact blocker and stop.
- Use a generic provider only after the user explicitly retracts the DCC-CUA requirement or explicitly requests that provider by name.
This boundary is provider selection, not an authorization bypass. DCC-CUA task grants, target binding, interruption, and confirmation policy still apply.
Route attestation
Before the first application-window observation or input, report all four fields:
provider=dcc-cua runtime=<version> pid=<exact-pid> hwnd=<exact-native-hwnd>
The discovery phase is the bounded exception: runtime-advertised
list_apps, list_windows, and capability/health probes may run with
pid=unbound and hwnd=unbound because they return metadata only and do not
capture pixels or send input. Once a specific application window is observed
or acted on, exact PID and HWND are mandatory and the attestation above must
be emitted first.
Runtime preflight
Use the standalone CUA forwarding contract; do not download an arbitrary executable:
dccmcp cua -- manifest
dccmcp cua -- ping
dccmcp cua -- host-ensure
Run host-ensure only when installation or repair is authorized. Read-only
manifest and ping calls inspect the independently released dcc-cua runtime.
The forwarding command preserves the CUA runtime's own versioning and lifecycle.
For semantic application profiles:
dcc-cua profiles
dcc-cua profile --id <profile-id>
Do not invent a profile ID. Runtime-advertised capabilities are authoritative.
For terminal-controlled plans, use the runtime's dcc-cua task-jsonl process.
Agent clients normally keep one dcc-cua mcp-server stdio connection. When
targeting a released runtime, inspect dccmcp cua -- manifest for
manifest.core_bridge.terminal_task before selecting task-jsonl, and report
an absent capability instead of assuming that the binary provides it. Both
entry points use the same scoped task service and exact-window guards. The
terminal wire sends one {id,name,arguments} JSON object per line and returns
an ID-matched MCP tool result or protocol error. Keep start_task, scoped
dcc_cua_task_call calls, and stop_task on one persistent connection. Check
result.isError before consuming result.structuredContent. Never carry task
IDs or private session credentials across connections or entry points.
When the installed runtime advertises dcc_cua_record_task_outcome, report
each completed task attempt once, including failures, with
{"success": <boolean>, "elapsed_ms": <unsigned 64-bit integer>}. The required
duration ranges from zero through 18446744073709551615 milliseconds. Measure
from the start of the agent task through verification, including model calls,
tool execution and waits. An attempt can span multiple start_task leases.
Send its outcome once on the reporting connection. Reports add to counters,
so reconcile an uncertain report before retrying it. Additional fields are
accepted and ignored. Read dcc_cua_metrics from that connection when comparing
transport or observation costs. The outcome tool updates debug counters and
grants no input authority. An unconfirmed effect still requires application
readback.
When the installed runtime advertises dcc_cua_record_model_usage, report
exact Agent Host token counts through it using its usage object.
Protocol-byte token estimates remain separately identified in
dcc_cua_metrics.
Unbound discovery and application launch
When the user gives a broad request without a process target, keep the first stage metadata-only:
- Use the runtime-advertised
list_appsto report installed and running applications. Uselist_windowsto inspect window candidates when the application identity is still ambiguous. Do not take a screenshot, read an application UI tree, or send input in this stage. - If the user asks to open or test an application, call the runtime's
launch_appwith the discovered application identity (or an explicitly supplied path) and the task grant that allows app launch. Keep discovery, launch, and follow-up calls on one persistent Host connection. - Use the returned PID/HWND or a bounded
wait_for_window/list_windowslookup for the launched application. Never choose the first window when the result is ambiguous; refresh discovery or report the ambiguity. - Bind the exact PID/HWND, emit the route attestation, and only then enter the normal observation -> one action -> fresh observation loop.
This supports broad requests such as “列出当前可用的软件,打开看看能不能 用” without widening an application session to the whole desktop. Desktop-wide capture or desktop input remains a separate, explicitly authorized target.
For any application that may require authentication, inspect whether an existing session is usable after binding its exact window. If the flow reaches password, SSO, MFA, CAPTCHA, security, or account-permission UI, stop at that boundary and hand it to the user. Never enter or copy credentials, tokens, recovery codes, or session data through DCC-CUA. If the user completes the login, resume only after a fresh exact-window observation.
Execution order
- Prefer a typed DCC-MCP host tool when it directly expresses the operation.
- Use DCC-CUA only for the UI behavior that typed host tools cannot expose.
- If no target is supplied, complete only the bounded discovery/launch stage above; do not call window observation or input tools without an exact target.
- Bind one exact target with process ID and native window handle before any application-window observation or input.
- Open one scoped session with the minimum task grant required for the work.
- Take a fresh observation before each action that depends on UI state.
- Act using stable semantic control or DOM references when available.
- Wait for a typed state transition and verify the real final state.
- Stop the session on success, failure, interruption, or abandonment.
Continue within the existing task grant until the requested destination state
is verified, or a concrete blocker requires user action. Do not ask again for
authorized steps. An input sent acknowledgement is not completion evidence.
For native application menu bars, prefer the negotiated native_menu_path
route through ui_control__act(action="invoke_menu", menu_path=[...]) when a
semantic menu click or Alt mnemonic cannot prove that a popup opened. A menu
invocation invalidates the current observation; honor verification_required
and verify the popup or resulting application state with a fresh snapshot.
Default execution for complex tasks
Use one bounded decision program for known steps. Read back the result at a dependency, visual decision or commit. Apply this to browser forms, native tools and mixed workflows without waiting for a scripting request. Schedule independent branches concurrently when their target, input and mutable application state are isolated. An app adapter must explicitly support object-bound gestures before sharing a scene across workers. Each worker keeps its binding, connection, and checkpoint. On a shared desktop keep the entire focus-dependent sequence together, including mouse-down through release, selection through shortcut, and IME composition through commit. Resume from verified application evidence and reconcile uncertain effects before replay.
For the three-backpack example use the packaged modeling instructions.
The standalone DCC-CUA plugin exposes the original dcc-backpack-modeling skill and its own installed scripts/run.py.
For a recorded UI run, use cua-cli with the same exact-window binding and readback requirements.
For runtimes advertising response_projection, keep one persistent CLI
host-jsonl or MCP task connection and set "response_projection":"structured_only"
alongside method for snapshot or execute_action when structured application
evidence is sufficient. Reuse the returned observation ID on that connection.
Request full, or omit the field, when a visual decision needs the native image.
This per-request output choice preserves capture validation and input guards.
An explicit CLI --output-dir retains the captured bytes locally.
DCC-host route
For UI in a registered DCC instance, read DCC host commands.
Browser and non-DCC route
For browser or non-DCC application UI, read browser and desktop binding.
Target and evidence invariants
- Preserve PID and native window handle in observations and audit records.
- Treat a changed PID, window handle, tab target, or session owner as a fresh binding that requires a fresh observation.
- Keep
fullreadiness strict. If only an exact-window or typed-browser route is independently ready, report that route-specific degraded readiness. - Honor Escape/user interruption immediately and do not resume without fresh authorization and observation.
- Do not expose local usernames, internal package paths, browser profile data, credentials, tokens, or unrelated window titles in public evidence.
- Verify success by reading the destination state after the mutation.
Failure behavior
When DCC-CUA cannot complete the request, report:
- the exact component/runtime version,
- the exact target identity that was bound,
- the failing readiness, capability, permission, or action stage,
- the last safe observation or typed error, and
- the safe next repair step.
Do not mention a generic Computer Use fallback unless the user asks for one.
