Instant Rollback
The Problem
Production breaks at 2:47 PM on Tuesday. A customer reports a bug. Your AI system is giving wrong answers. Traditional approach:How It Works
Edgit uses a 4-level tag format:components/prompts/extraction/production
Environment tags (like production, staging) are mutable - they move to point at different versions. This is why you need --force when pushing: Git requires it to update remote tags that already exist.
Why —force is Required
Environment tags are mutable pointers. When you rollback:productiontag already exists pointing to v1.1.0- You move it to point to v1.0.0
- Git sees this as “rewriting” the tag
--forcetells Git: “Yes, I want to move this tag”
Emergency Rollback Playbook
Step 1: Check Current Deployment
Step 2: Find Last Known Good Version
Step 3: Rollback
Step 4: Monitor
Step 5: Investigate
Partial Rollback
You don’t have to rollback everything. Roll back only what’s broken.Scenario
You deployed 3 components at once:prompts/extractionv1.1.0 Works fineprompts/analysisv2.0.0 BROKENconfigs/validationv1.5.0 Works fine
Time Travel: Recreate Any State
The Problem
Customer reports: “On Tuesday at 2:47 PM, the AI gave me a wrong answer.” You need to reproduce the exact environment that was running at that moment.Solution: Time Travel
Find the Bug
Rollback Strategies
Strategy 1: Immediate Rollback
When: Production is on fire, customers are affectedStrategy 2: Gradual Rollback
When: Not sure if current version is the problemStrategy 3: Targeted Rollback
When: Only affecting specific users/regionsRollback Best Practices
1. Always Have a Rollback Plan
Before deploying:2. Keep Multiple Versions Running
3. Automate Rollback
In CI/CD:4. Test Rollback Regularly
Time Travel Use Cases
Use Case 1: Reproduce Customer Bug
Customer: “I got wrong results yesterday at 3 PM”Use Case 2: Performance Regression Analysis
“Performance was better last week. What changed?”Use Case 3: A/B Test Historical Versions
“Was v1.5.0 actually better than v1.8.0?”Use Case 4: Audit Trail
“Who deployed what and when?”Advanced: Time Travel with Git
Git tags retain the commit history. To see what was deployed at a specific time, use Git directly:Rollback Safety Checks
Before rolling back:Troubleshooting
Rollback Not Taking Effect
Can’t Find Version to Rollback To
Rolled Back But Issue Persists
Next Steps
Deployment Strategies
Canaries, blue-green, progressive rollouts
A/B Testing
Test multiple versions simultaneously
CI/CD Integration
Automate deployments and rollbacks
Versioning Guide
Master version management

