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
C11TTL enforcement, and Git-reviewedC18/C10anchoring 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.