Agent Versioning & Change Management
Why Agent Change Management is Needed
Differences from Traditional Software Changes
In traditional software, change management targets code, configuration, and infrastructure changes. Agent systems add probabilistic components:
Table 1. Change management comparison between traditional and agentic systems
| Change Type | Traditional System | Agentic System |
|---|---|---|
| Output Determinism | Same input → Same output | Same input → Probability distribution |
| Regression Detection | Unit tests, integration tests | Statistical evaluation (BLEU, Exact Match, LLM-as-Judge) |
| Rollback Criteria | Feature failures, performance degradation | Accuracy decline, increased hallucination, latency P99 |
| Change Unit | Code commits, binaries | Prompt versions, model replacement, parameter tuning |
Agentic systems still keep deterministic unit and integration tests. Statistical evaluation (BLEU, Exact Match, LLM-as-Judge) does not replace them; it is an additive layer that handles probabilistic output.
Why Prompts and Models Should Be Managed Like Code
-
Prompts Are Core Logic
Changing one line from "You are a financial analysis expert" → "You are a conservative investment advisor" transforms the entire output pattern. -
Model Replacement Is Runtime Replacement
When switching GPT-4 → Claude 3.5 Sonnet, even the same prompt produces different response styles, token usage, and latency. -
No Tracking Means No Rollback
When receiving reports like "it worked yesterday but is strange today," recovery is impossible without knowing who changed which prompt and when. -
Regulatory Requirements
Linking prompt and model versions to change records helps explain which configuration produced a response. Include this in the organization's audit-policy proposal, then determine what to collect and how long to retain it from the duties that apply to the jurisdiction, regulated role or system, and record type. NIST AI RMF GOVERN 1.1 also recommends identifying and documenting applicable requirements. This guide does not set legal duties or retention periods for every financial, medical or public-sector system.
3-Tier Change Management System
Agent change management consists of three layers:
1. Prompt & Model Registry
Central repository managing prompt and model versions like code. Uses Langfuse, Bedrock Prompt Management, PromptLayer, etc. for version control, labeling, and change history tracking.
View Prompt & Model Registry Details →
2. Deployment Strategies
Progressive deployment strategies including Shadow Testing, Canary Rollout, A/B Testing, Blue-Green Deployment, and Feature Flag-based rollout approaches.
View Deployment Strategies Details →
3. Governance & Automation
Regression detection, automatic rollback, approval workflows, audit trails, and AIDLC stage-specific application approaches.
View Governance & Automation Details →
Core Principles
- All Changes Are Version Controlled: Prompt, model, and parameter changes must be traceable like Git commits.
- Progressive Deployment: Don't change all traffic at once. Canary → gradual expansion.
- Automatic Regression Detection: Detect performance degradation through Golden Dataset evaluation and real-time metric monitoring. Detection time depends on the evaluation cycle and the metric aggregation interval, so “immediate” detection cannot be guaranteed. Set how many minutes after deployment detection must happen as a design target, and verify that target with a test that injects a regression on purpose.
- Fast Rollback: Set a recovery objective, such as “within 1 minute,” and test it. Measure from the label or configuration change through application and traffic recovery, including requests in progress and fallback behavior. One minute is an example target in this guide.
- Audit Evidence: Use 7 years as an example to review when setting an organizational retention policy. Do not apply it as a universal statutory period. Define the authority for each record's retention, minimum collection, access, deletion and legal-hold requirements in the audit-evidence policy.
Related Documents
Prompt & Model Registry
Comparison and implementation guide for Langfuse, PromptLayer, Braintrust, AWS Bedrock Prompt ManagementDeployment Strategies
Progressive model replacement strategies and Feature Flag-based prompt rollout approachesGovernance & Automation
Regression detection, automatic rollback, approval workflows, audit trails, and AIDLC stage-specific application approachesAIDLC Related Documents
- Evaluation Framework — Golden Dataset-based regression detection
- Agent Monitoring — Real-time observability
Next Steps
Once you've established the change management process:
- Prompt & Model Registry — Select and build Langfuse/Bedrock PM
- Deployment Strategies — Choose appropriate strategy among Canary/Shadow/A-B
- Governance & Automation — Build automatic regression detection and rollback system