Advanced Concepts
Summary
This page covers advanced topics, planned features, and architectural decisions that affect how AtlasBurn operates at scale.
Monte Carlo Burn Forecasting
AtlasBurn uses stochastic simulation (Monte Carlo) to project future AI spend. The model takes historical usage patterns and generates probabilistic forecasts at three confidence levels:
- P50 — median expected spend. Use for capacity planning.
- P95 — captures 95% of scenarios. Use for budgeting.
- VaR95 / CVaR95 — Value-at-Risk and Conditional VaR at 95%. Use for alerting and guardrail thresholds.
The engine reports p5 / p50 / p95 percentiles plus VaR95 and CVaR95. There is no P99 output — earlier docs cited it in error.
Horizon: the dashboard forecasts over the period you choose — the next 7 days (the default), 14, 30, 60 or 365 days. Click any forecast card to change it; each card states the period it covers. Capital Runway always uses a 12-month run.
Inputs: the forecast uses measured history only — complete days, starting from your first day of activity (up to 90 days back), with idle days counted as $0. It needs at least 7 such days; until then the cards say how many days are missing. Day-to-day volatility is measured from that history, never assumed.
System maturity: Stable
Guardrails and the Kill Switch
The legacy SDK-level Auto Kill (deterministic daily/hourly financial caps) has been superseded by Autonomous Runtime Guardrails — a server-side, 5-layer defense engine with Cloudflare KV edge enforcement. The flow:
- The breach is recorded in the Breaches Ledger.
- Loops (repeated identical calls, runaway context) stop only the feature that looped: it is throttled first (calls spaced 2 seconds apart) and blocked only if the loop is still going 60 seconds later or has cost 2% of the daily budget (minimum $0.25). Budget breaches and request-rate bursts apply to the whole workspace.
- Blocked calls are rejected at the edge until the block expires or you resume it in the dashboard.
Scoped to the feature that looped
atlasburnFeature() in the SDK, the x-atlasburn-feature header through the proxy) and a loop pauses only that feature while the rest of your app keeps running. Untagged calls share one untagged scope. See What gets blocked.Retry Cascade Detection
A retry cascade occurs when a failed AI call triggers automatic retries, which also fail. This can multiply costs 10–50× in minutes. AtlasBurn detects cascades by tracking retryCount on each event and flagging sessions with abnormal retry rates.
FALLBACK_ECONOMICS
When the cost engine encounters an unrecognized model, it applies rates from FALLBACK_ECONOMICS instead of PROVIDER_REGISTRY. These are intentionally conservative (high-margin safety rates) to prevent underreporting.
If you see "Fallback" tags in your Forensic Ledger, it means the model wasn't matched. Update your PROVIDER_REGISTRY or contact support.
Feature Status
| Feature | Status | Notes |
|---|---|---|
| Multi-Org Membership | Available | Workspaces (Production, Staging…) with per-workspace access and team invites; switch from the sidebar |
| Automated Reconciliation API | Planned | Currently manual via dashboard |
| Feature-Specific Hard Stops | Available | Loops throttle, then block, only the feature that looped |
| Per-Feature Budgets | Planned | Daily and hourly budgets apply to the whole workspace today |
| Vector Database Costs | Planned | Not yet in normalization engine |
What This Means in Practice
AtlasBurn's advanced features — Monte Carlo forecasting, the kill switch, and retry detection — are designed for teams running AI at scale where silent cost explosions are an existential risk. These features work together: forecasting predicts the burn, guardrails enforce the budget, and retry detection catches the cascades.
Next Steps
- Cost Engine — pricing formula and reconciliation
- Glossary — full terminology reference
- Troubleshooting — diagnosing issues