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.

0031. Contract-driven Digital Twin architecture

Split the AVD Digital Twin into an offline $0 State & Simulation Twin, a spend-gated Ephemeral Execution Twin, and a private-vault Admin Digital Twin.

Parked (2026-12-05, decision 0034): On ice until the core deploy, drift, and recovery runs pass end-to-end.

Context and Problem Statement

Capacity planning, host-drain triage, and blast-radius analysis need a simulation layer across avd-ops without incurring idle Azure spend or leaking tenant data.

More

Running live Azure sandboxes for every what-if question violates never leave the meter running and avd-swarm spec §9a's build order. At the same time, static simulation alone cannot prove OS, Defender, or FSLogix driver behavior, and an unanchored Admin Twin could be poisoned by gradual drift or abused as an auto-approval proxy. How should the Digital Twin compose existing contracts safely?

Considered Options

We weighed two architectures for adding simulation across the toolkit.

  • Single live-Azure digital twin environment kept warm for simulations
  • Two-tier infrastructure twin (offline $0 contract model + spend-gated ephemeral sandbox) plus a private-vault, read-only Admin Twin

Decision Outcome

Chosen option: "Two-tier infrastructure twin (offline $0 contract model + spend-gated ephemeral sandbox) plus a private-vault, read-only Admin Twin".

More

Keeping Tier A 100% offline and deterministic over redacted C11, C25, and C27 contracts delivers host-drain and tp-01 logon-storm envelope checks at $0 Azure spend while respecting avd-swarm spec §9a. Checks that static math cannot prove are explicitly tagged requires-ephemeral-twin and routed to sandbox batches under go batch <id> $<total> approval.

Consequences

  • Good, because capacity, host-drain, and logon-storm envelope checks run deterministically offline at $0 cost.
  • Good, because fail-closed redaction, 7-day C11 TTL enforcement, and Git-reviewed C18/C10 anchoring prevent stale or poisoned simulations from authorizing changes.
  • Bad, because OS, WDOT, Defender, and FSLogix driver regressions still require a spend-gated Ephemeral Execution Twin run.

More Information

See Digital Twin and the Digital Twin specification.

Linked from 5 pages