Version: v1.1.0
This page explains common misuses and how to avoid them.
Anti-Patterns
Even with good intentions, teams can misuse TealTiger in ways that break determinism, hurt performance, or create maintenance nightmares. This page shows you what NOT to do.Why Anti-Patterns Matter
These aren’t bugs in TealTiger - they’re misaligned usage patterns that:- Break deterministic behavior
- Degrade performance
- Make policies unmaintainable
- Destroy trust in the system
Common Anti-Patterns
1. Using TealTiger as a Business Logic Engine
Anti-pattern: Embedding core application logic inside policies.- Business logic changes frequently; policies should be stable
- Increases coupling between governance and domain logic
- Makes both harder to understand and maintain
2. Treating Policies as Frequently Mutating Rules
Anti-pattern: Updating policies on every deploy or runtime event.- Breaks policy stability guarantees
- Makes audit trails meaningless
- Increases risk of unintended behavior
- Destroys determinism
3. Using TealTiger for Real-Time Alerting
Anti-pattern: Expecting TealTiger to generate alerts and page your team.- TealTiger emits events, it doesn’t manage alerts
- Alert fatigue and correlation belong in observability tools
- Mixing governance with incident response creates complexity
4. Passing Secrets Through Policies
Anti-pattern: Storing API keys or credentials in policy metadata.- Violates separation of concerns
- Increases blast radius if policies are leaked
- Creates audit and compliance risks
- Secrets end up in version control
5. Using Policies to Fix Poor Agent Design
Anti-pattern: Compensating for unbounded agents with increasingly complex policies.- Governance can’t replace good design
- Leads to brittle, unmaintainable policies
- Masks root causes
- Performance degrades
6. Encoding Vendor-Specific Logic in Policies
Anti-pattern: Hard-coding provider details into policies.- Reduces portability
- Locks policies to infrastructure decisions
- Makes provider migrations painful
- Policies break when providers change
7. Expecting Policies to Learn or Adapt
Anti-pattern: Assuming policies will automatically adjust based on behavior.- TealTiger is deterministic by design
- Policies don’t learn or adapt automatically
- Creates false expectations
8. Using Audit Logs as Debug Logs
Anti-pattern: Logging verbose debugging information to audit events.- Audit logs must remain structured and stable
- Excessive noise reduces forensic value
- Increases storage and processing costs
- Makes compliance harder
9. Creating Monolithic Policies
Anti-pattern: One massive policy covering everything.- Hard to review
- Hard to test
- Hard to evolve
- Impossible to understand
10. Set and Forget
Anti-pattern: Deploying TealTiger once and never reviewing policies.- AI systems evolve
- Usage patterns change
- Risk profiles shift
- Policies become stale
Summary: The Pattern
Most anti-patterns follow a common theme:| Anti-Pattern | Root Cause |
|---|---|
| Business logic in policies | Mixing concerns |
| Frequently mutating policies | Treating policies as config |
| TealTiger as alerting | Wrong tool for the job |
| Secrets in policies | Security anti-pattern |
| Policies fix bad design | Band-aid over root cause |
| Vendor-specific policies | Tight coupling |
| Expecting learning | Wrong mental model |
| Audit as debug logs | Mixing log types |
| Monolithic policies | Lack of composition |
| Set and forget | Lack of maintenance |

