avd-opsDeploy quietly
Community research project. Use at your own risk. No warranty.Use at your own risk
  • Built on my own time for research and learning. Not affiliated with, endorsed by or supported by my employer or Microsoft.
  • Don't run any of it in production or against tenants that matter. Test in a dedicated lab subscription and tenant first.
  • Provided "as is", without warranty of any kind, under each repo's license. You use it at your own risk and own the Azure charges it incurs.
  • Contributions and forks are welcome and encouraged. See Contribute.

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, and avd-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 pool in the foundation, external-executor plan hook in avd-swarm, executor-evidence in avd-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 no avd-swarm, avd-second-brain, or CUA executor attached.
  • Execution (avd-swarm): Adds an external-executor (cua) plan type alongside C9 proposals. 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 an executor-evidence record linked to C10 execution outcomes and C18 lifecycle 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-swarm can 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 C9 and C10 contract extensions and avd-swarm / avd-second-brain docs 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
Linked from 2 pages