0022. Define public CUA and external-executor plumbing across avd-ops
Public avd-ops repositories define generic CUA plumbing (isolated host pools, external-executor plans, and executor-evidence) while keeping private brokers outside the family.
Context and Problem Statement
How should avd-ops support UI-only CUA tasks without coupling public repos to a private broker?
More
avd-swarm and avd-second-brain operate through APIs, read-only MCP tools, and declarative C9 plans approved in GitHub Environments (decision 0012). Some Desktop DevOps tasks have no API—such as legacy line-of-business consoles, portal-only settings, or interactive end-to-end verification—and require a CUA running against an isolated Windows desktop. Previously, all CUA plumbing was excluded from the public family, leaving no contract or extension point for avd-swarm to hand off a bounded UI task or record its outcome. How do we add the minimal public plumbing while preserving decision 0003?
Considered Options
Three options were weighed.
- Keep CUA and external-executor hooks completely out of public repositories, maintaining private forks of
avd-swarm,avd-second-brain, andavd-landing-zone - Build a full CUA broker, host input service, and UI-action policy engine directly inside
avd-swarm - Define minimal, contract-based CUA and external-executor plumbing in the public family (
isolated host poolin the foundation,external-executorplan hook inavd-swarm,executor-evidenceinavd-second-brain), while keeping private broker and policy-engine implementations outside the family
Decision Outcome
Chosen option: "Define minimal, contract-based CUA and external-executor plumbing in the public family, while keeping private broker and policy-engine implementations outside the family".
More
Why: keeping the extension points in the public contracts avoids maintaining divergent forks of avd-swarm, avd-second-brain, and avd-landing-zone, while decision 0003 ensures the public repos never depend on, fetch, or embed an external CUA runtime.
- Foundation (
avd-landing-zone,avd-azure,avd-intune): Provide a standalone isolated host pool flavor (single-session ephemeral hosts, hardened image baseline, per-task egress allowlist fragment, and diagnostics) that is useful on its own and works with noavd-swarm,avd-second-brain, or CUA executor attached. - Execution (
avd-swarm): Adds anexternal-executor(cua) plan type alongsideC9proposals. API-first remains the rule: CUA is proposed only when no API, Graph, ARM, or Bicep path exists. Every CUA plan passes through the same human approval in a GitHub Environment, budget guard, and layered kill switch (halt-actions,halt-agents,halt-all). - Intelligence (
avd-second-brain): Adds anexecutor-evidencerecord linked toC10execution outcomes andC18lifecycle history so completed CUA runs return redacted, hashed evidence (outcome status, scope, timestamps, and artifact hashes—never raw screenshots, credentials, or tenant identifiers). - Outside the family: Any CUA broker, UI-element policy engine, host input/capture service, or commercial policy pack stays outside the public family and integrates solely by reading the published contracts at a pinned version.
Consequences
- Good, because
avd-swarmcan propose and govern UI-only CUA tasks through the same human-approval gate and kill switch as API actions without duplicating public repos. - Good, because the foundation's isolated host pool remains self-contained and testable with no external executor present.
- Bad, because
C9andC10contract extensions andavd-swarm/avd-second-braindocs must land in lockstep. - Bad, because adopters who enable an external CUA executor must supply and govern their own runtime outside the public family.
More Information
Links and related platform decisions.
More
- Full plumbing specification: docs/cua-executor-spec.md.
- Builds on decision 0003, decision 0012, and decision 0017.