Migrating to v1.1.x
This guide covers migrating from TealTiger v1.0.x to v1.1.x with Enterprise Adoption Features.Overview
v1.1.x adds five P0 enterprise features:- Policy Rollout Modes - ENFORCE, MONITOR, REPORT_ONLY
- Deterministic Decision Contract - Stable typed Decision object
- Correlation IDs + Traceability - ExecutionContext for distributed systems
- Audit Schema + Redaction - Versioned audit events with security-by-default
- Policy Test Harness - CLI/library test runner for CI/CD
Backwards Compatibility
v1.1.x is 100% backwards compatible with v1.0.x.- All v1.0.x code continues to work
- New features are opt-in
- No breaking changes
- Gradual adoption supported
Installation
TypeScript
Python
Migration Steps
Step 1: Update Dependencies
Update your package.json or requirements.txt:Step 2: Add Execution Context (Recommended)
Before (v1.0.x):- Correlation IDs for distributed tracing
- Audit log correlation
- Request attribution
Step 3: Configure Policy Modes (Optional)
Before (v1.0.x):- Safe policy rollout
- Production testing without risk
- Gradual enforcement
Step 4: Update Audit Configuration (Recommended)
Before (v1.0.x):- Security-by-default (no raw prompts in logs)
- PII detection and redaction
- Compliance-ready audit logs
Step 5: Add Policy Tests (Recommended)
New in v1.1.x:- Regression testing
- CI/CD integration
- Policy validation before deployment
Feature Adoption Guide
Gradual Adoption Path
- Week 1: Add ExecutionContext (no behavior change)
- Week 2: Enable audit redaction (security improvement)
- Week 3: Add policy tests (quality assurance)
- Week 4: Configure policy modes for new policies (safe rollout)
- Week 5+: Full adoption of all features
Minimal Migration (v1.0.x compatibility)
Recommended Migration (v1.1.x features)
API Changes
New Exports
Updated Interfaces
TealEngineConfig
AuditConfig
Decision (replaces PolicyEvaluationResult)
Method Signatures
TealEngine.evaluate()
TealGuard.check()
TealAudit.log()
Breaking Changes
None. v1.1.x is fully backwards compatible with v1.0.x.Deprecations
None. All v1.0.x APIs remain supported.Performance Impact
v1.1.x features have minimal performance overhead:- Mode resolution: < 1ms
- Context propagation: < 0.5ms
- Decision evaluation: < 10ms (same as v1.0.x)
- Audit redaction: < 5ms for 10KB content
Security Improvements
v1.1.x improves security by default:- No raw prompts in logs (HASH redaction by default)
- PII detection enabled by default
- Debug mode requires opt-in (explicit security trade-off)
- Correlation IDs for security investigations
Testing Your Migration
Unit Tests
Integration Tests
Rollback Plan
If you need to rollback to v1.0.x:- Revert package.json/requirements.txt
- Remove v1.1.x-specific code (optional, it won’t break)
- Redeploy
Support
- Website: https://tealtiger.ai
- Documentation: https://docs.tealtiger.ai
- Playground: https://playground.tealtiger.ai
- Blog: https://blogs.tealtiger.ai
- GitHub: https://github.com/agentguard-ai/tealtiger
- TypeScript SDK: https://github.com/agentguard-ai/tealtiger-typescript-prod
- Python SDK: https://github.com/agentguard-ai/tealtiger-python-prod
Next Steps
- Review Best Practices
- Set up Policy Testing
- Configure Audit Redaction
- Implement Distributed Tracing

