Pipeline & Workflow
Pipeline & Workflow
Runtime workflow
- Pre-flight event
laravel/aiemits a request event. FinOps builds context and consultsPolicyEngine. - Decision
The engine allows, blocks, requires approval, or returns advisory actions such as downgrade, throttle, or queue. - Provider response
The AI provider returns content and usage. Optional raw response capture stores provider billed cost metadata. - Cost resolution
CostResolutionServicepicks actual, computed, or estimated cost. - Coverage
Active subscription windows can mark the row covered and zero the FinOps cost. - Persistence and fan-out
DatabaseUsageRecorderappends the ledger row. Dashboards, forecasts, alerts, and reports query from it.
Operations workflow
sequenceDiagram
participant Ops
participant API
participant DB
participant CLI
Ops->>API: POST pricing/sync
API->>DB: cache prices and sync status
Ops->>API: POST budgets
API->>DB: store governance model
CLI->>DB: ai-finops:check-alerts
CLI-->>Ops: channel events through host delivery