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-swarmto apply and promote changes automatically based on telemetry - Ad-hoc manual curation only: keep
kb-feedback,Get-VaultHarvest.ps1, andavd-swarmdisconnected - 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-opsandavd-second-brain): Human edits toC9/C24plans, BYO-LLM fallbacks in the unifiedavd-assistant(decision 0025), andGet-VaultHarvest.ps1outputs are scrubbed viaredact.jsand proposed askb-feedbackorknown-errors.yamlPRs.scripts/kb/validate.py,tests/*.test.mjs, andkb-freshnessact as the fitness gate beforekb-accepted. - Estate RSI (adopter private companion repo): The adopter's private estate vault scores each
avd-current-state,avd-remediate, andavd-benchmarksnapshot against a normalized fitness vector (C35proposal) and records pre/post action outcomes (improved,neutral,regressed). - Bounded execution guardrails: Every
avd-swarmRSI 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-assesschecks andGuruplaybooks improve from real runs, reducing future LLM reliance. - Good, because
avd-swarmgains 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
C35fitness-and-outcome schema acrossavd-assess,avd-second-brain,avd-remediate, andavd-swarm.
More Information
Links to the companion specification and walkthrough.
More
- Unified specification and red-team review: Bounded recursive self-improvement (RSI) specification.
- Proposed fitness and outcome contract specification: Estate fitness and outcome contract (C35).
- ITSM and Change-Gate integration spec: ITSM and Change-Gate adapter specification.
- Adopter walkthrough: Run a bounded RSI loop on a lab estate.
- Related decisions: decision 0012 and decision 0025.
Linked from 8 pages
- First principles
- Bounded recursive self-improvement (RSI) specification
- ITSM and Change-Gate adapter specification
- Estate fitness and outcome contract (C35)
- 0032. Decouple adopter-tenant operations from GitHub Actions
- 0034. Consolidate control planes, keep Terraform as the enterprise IaC path, and park premature layers
- Decision records
- Run a bounded RSI loop on a lab estate