Troubleshooting Guide
This guide covers common issues you might encounter when using TealTiger v1.1.0 and how to resolve them.Policy Evaluation Issues
Policies Not Being Enforced
Symptom: All requests are allowed even though you have deny policies configured. Common Causes:- Wrong policy mode: Check if the policy is in MONITOR or REPORT_ONLY mode instead of ENFORCE
- Policy path mismatch: Verify the policy path matches your request structure
- Default mode override: Check if
defaultModeis set to a permissive mode
Unexpected DENY Decisions
Symptom: Requests are being denied when you expect them to be allowed. Common Causes:- Policy misconfiguration: The policy rule is too restrictive
- Missing context: Required context fields are not provided
- Risk score threshold: Risk score exceeds the allowed threshold
Correlation ID Issues
Correlation IDs Not Propagating
Symptom: Different correlation IDs appear across related operations. Common Causes:- Not using ExecutionContext: Creating new contexts for each operation
- Context not passed: Forgetting to pass context to evaluate()
- Async context loss: Context lost in async operations
Missing Trace IDs
Symptom:trace_id is null in decisions and audit events.
Solution: Trace IDs are optional and must be explicitly provided:
Audit Logging Issues
Sensitive Data in Logs
Symptom: Raw prompts, responses, or PII appearing in audit logs. Common Causes:- Debug mode enabled:
debug_mode: truedisables redaction - Weak redaction level: Using
RedactionLevel.NONEorPARTIAL - PII detection disabled:
detect_pii: false
Audit Events Not Being Written
Symptom: No audit events appear in your output destination. Common Causes:- Output not configured: No outputs specified in TealAudit config
- File permissions: Cannot write to the specified file path
- Async flush pending: Events buffered but not flushed yet
Policy Testing Issues
Tests Failing in CI/CD
Symptom: Policy tests pass locally but fail in CI/CD pipeline. Common Causes:- Environment differences: Different Node.js/Python versions
- Missing dependencies: Test dependencies not installed
- File path issues: Relative paths don’t work in CI
- Timeout issues: Tests timing out in slower CI environment
Test Corpus Not Found
Symptom:Error: Test corpus file not found
Solution:
Performance Issues
Slow Policy Evaluation
Symptom: Policy evaluation takes longer than expected (>10ms). Common Causes:- Complex policies: Too many nested conditions
- Large context: Passing unnecessary data in context
- Synchronous I/O: Blocking operations in policy evaluation
- No caching: Evaluating the same policy repeatedly
High Memory Usage
Symptom: Memory usage grows over time. Common Causes:- Audit buffer not flushing: Events accumulating in memory
- Context leaks: Not releasing ExecutionContext objects
- Large policy objects: Policies contain unnecessary data
Integration Issues
OpenTelemetry Integration
Symptom: Trace IDs not appearing in TealTiger decisions. Solution:LangChain Integration
Symptom: TealTiger not intercepting LangChain tool calls. Solution:Error Messages
Common Error Codes
| Error Code | Meaning | Solution |
|---|---|---|
POLICY_NOT_FOUND | Policy path doesn’t exist | Check policy configuration |
INVALID_CONTEXT | ExecutionContext missing required fields | Add required context fields |
EVALUATION_FAILED | Policy evaluation threw an error | Check policy logic |
AUDIT_WRITE_FAILED | Cannot write audit event | Check output configuration |
REDACTION_FAILED | PII detection/redaction error | Check redaction configuration |
Debug Mode
Enable debug mode for detailed logging (development only):Getting Help
If you’re still experiencing issues:- Check the logs: Enable debug mode and review detailed logs
- Review examples: See Examples for working code
- Try the playground: Test your policies at playground.tealtiger.ai
- Search issues: Check GitHub Issues
- Read the blog: Check blogs.tealtiger.ai for tutorials and guides
- Contact support: Email reachout@tealtiger.ai for enterprise support

