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.

0030. Bounded recursive self-improvement (RSI) loop for avd-ops and AVD estates

Both avd-ops and adopter AVD estates improve through a closed, human-gated loop that scores outcomes before promoting changes.

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

Context and Problem Statement

avd-ops collects facts, benchmarks, and remediation outcomes across repos, but does not yet close the loop between observed results and future plans.

More

Today, avd-current-state (C11/C21), avd-benchmark (C25), avd-remediate (C24), and kb-curator produce rich evidence, while avd-second-brain and avd-swarm (C9) reason and propose changes. Without a standardized fitness-and-outcome loop, human overrides and post-change regressions are not systematically fed back into deterministic checks, playbooks, or future avd-swarm proposals. How should we enable recursive self-improvement (RSI) for both the avd-ops platform and adopter AVD environments without violating "the brain thinks, the swarm acts" or leaking tenant data?

Considered Options

Three options were weighed.

  • Autonomous closed-loop remediation: allow avd-swarm to apply and promote changes automatically based on telemetry
  • Ad-hoc manual curation only: keep kb-feedback, Get-VaultHarvest.ps1, and avd-swarm disconnected
  • Bounded, human-gated RSI loop over existing contracts: pair an estate fitness-and-outcome contract with ring-scoped proposals, mandatory post-change verification, and sanitized KB harvests

Decision Outcome

Chosen option: "Bounded, human-gated RSI loop over existing contracts".

More

Why: it compounds operational learning across both the public platform and private adopter estates while preserving human approval, cost caps, rollback safety, and strict tenant-data boundaries.

  • Platform RSI (avd-ops and avd-second-brain): Human edits to C9/C24 plans, BYO-LLM fallbacks in the unified avd-assistant (decision 0025), and Get-VaultHarvest.ps1 outputs are scrubbed via redact.js and proposed as kb-feedback or known-errors.yaml PRs. scripts/kb/validate.py, tests/*.test.mjs, and kb-freshness act as the fitness gate before kb-accepted.
  • Estate RSI (adopter private companion repo): The adopter's private estate vault scores each avd-current-state, avd-remediate, and avd-benchmark snapshot against a normalized fitness vector (C35 proposal) and records pre/post action outcomes (improved, neutral, regressed).
  • Bounded execution guardrails: Every avd-swarm RSI proposal must target a single-variable delta, start at Canary / Ring 0, carry a cost-delta estimate and pre-built rollback plan (C9/C24), require explicit owner approval (interactive CLI/PIM, ITSM Change-Gate, or optional GitHub Environment), and schedule a post-change verification probe before proposing Ring 1 promotion.

Consequences

  • Good, because deterministic avd-assess checks and Guru playbooks improve from real runs, reducing future LLM reliance.
  • Good, because avd-swarm gains episodic outcome memory in the adopter's private vault without repeating failed remediations.
  • Good, because unapproved cloud mutations, runaway spend, and tenant-data leaks remain blocked by existing gates.
  • Bad, because adopters and maintainers must maintain the C35 fitness-and-outcome schema across avd-assess, avd-second-brain, avd-remediate, and avd-swarm.

More Information

Links to the companion specification and walkthrough.

More
Linked from 8 pages