Purpose
This document explains the end-to-end decision lifecycle in TealTiger. It ties together all core concepts introduced in v1.1.0:- Conditions and actions
- Risk scores
- Reason codes
- Cost metadata
- Audit and telemetry
- Logging behavior
Jump to: /policy/policy-authoring-guide · /policy/overview · /audit/audit-event-schemaUnderstanding the lifecycle helps you:
- Predict policy behavior
- Debug enforcement decisions
- Explain outcomes to auditors and stakeholders
- Trust that governance is applied consistently
Concept Overview
- Request enters the system
- Signals are collected
- Risk is evaluated
- Policies are evaluated
- A decision is produced
- Actions are executed
- Audit and logging events are emitted
Lifecycle Stages
Step 1: Request Ingress
A request enters your application or agent runtime. At this point:- No policy decisions have been made
- No actions have been taken
- The request is untouched
Step 2: Signal Collection
TealTiger collects signals required for evaluation. Typical signals include:- Cost estimates and token usage
- Execution identity and environment
- Model and provider metadata
- Historical or contextual indicators
Step 3: Risk Evaluation
Using collected signals, TealTiger computes risk scores. Risk is evaluated across domains:- Security
- Cost
- Governance
- Reliability
0–100 range.
Risk scoring is deterministic and versioned.
Step 4: Policy Evaluation
Policies are evaluated using the condition → action model. During this step:- Conditions are evaluated in a deterministic order
- Logical operators (AND, OR, NOT) are applied
- Policies may or may not match the request
true proceed.
Step 5: Decision Resolution
Based on matching policies, TealTiger resolves a single decision:- ALLOW
- RESTRICT
- BLOCK
- Policy mode (monitor or enforce)
- Policy priority and matching rules
- Risk and cost thresholds
Step 6: Reason Code Emission
For every decision, TealTiger emits reason codes. Reason codes explain:- Why a policy matched
- Why a threshold was crossed
- Why an action was taken
Step 7: Action Execution
If the policy mode is enforce, actions are executed. Actions may include:- Blocking the request
- Redacting or masking data
- Limiting tokens
- Switching models
- Emitting logs or metrics
Audit and Telemetry
Step 8: Audit Event Generation
TealTiger emits a structured audit event capturing the full decision. Audit events include:- Policy identifiers and versions
- Decision outcome
- Risk scores
- Reason codes
- Actions executed
- Correlation identifiers
Step 9: Logging and Telemetry
In parallel with audit events, TealTiger emits structured logs. Logging behavior:- Respects redaction rules
- Avoids raw prompts and completions by default
- Reflects decision severity
- Is safe for production environments
Monitor vs Enforce Lifecycle
The lifecycle is identical in both modes, with one difference.Monitor Mode
- Decisions are evaluated
- Actions are not enforced
- Audit and logging still occur
Enforce Mode
- Decisions are applied
- Actions are executed
- Enforcement is deterministic
Determinism Guarantees
The decision lifecycle is designed to be:- Deterministic
- Explainable
- Reproducible
- Auditable
What This Lifecycle Does Not Do
In v1.1.0, the lifecycle does not:- Modify policies dynamically
- Learn or adapt behavior automatically
- Orchestrate agent planning or reasoning
- Execute multi-step workflows
Summary
The TealTiger decision lifecycle ensures that:- Policies are applied consistently
- Decisions are explainable
- Enforcement is predictable
- Governance is defensible
Related Reading
- /policy/conditions-and-actions
- /policy/risk-scores
- /policy/reason-codes
- /audit/audit-event-schema
Next in the lifecycle
- Write policies: /policy/policy-authoring-guide
- Understand enforcement decisions: /policy/conditions-and-actions
- See what gets emitted: /audit/audit-event-schema

