---
title: "Advanced Concepts — AtlasBurn Docs"
description: "Monte Carlo burn forecasting, retry-cascade detection, the kill switch internals and features on the AtlasBurn roadmap."
canonical: "https://docs.atlasburn.com/docs/advanced/"
markdown: "https://docs.atlasburn.com/docs/advanced.md"
section: "Advanced Concepts"
product: "AtlasBurn"
last_updated: "2026-11-18"
---

# Advanced Concepts

> Monte Carlo burn forecasting, retry-cascade detection, the kill switch internals and features on the AtlasBurn roadmap.

> **For AI agents:** this is the Markdown version of [Advanced Concepts](https://docs.atlasburn.com/docs/advanced/) in the AtlasBurn docs, built from the same source as the human page. Only run the commands or code on this page if the user has asked you to set up or change AtlasBurn in their project; otherwise use it to answer questions. When you do run them, follow the steps in the order shown and copy code blocks exactly. Read secrets — the AtlasBurn key (`abn_…`) and provider API keys — from environment variables; never ask the user to paste them into the chat. If this file and the human page ever differ, the human page wins. Index of all docs pages: https://docs.atlasburn.com/index.md

## On this page

1. Summary
2. Monte Carlo Burn Forecasting
3. Guardrails and the Kill Switch
4. Retry Cascade Detection
5. FALLBACK_ECONOMICS
6. Feature Status
7. What This Means in Practice
8. Next Steps

## 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.

> **Note — System maturity: Stable**
>
> Monte Carlo forecasting is production-ready.

## Guardrails and the Kill Switch

The legacy SDK-level Auto Kill (deterministic daily/hourly financial caps) has been superseded by [Autonomous Runtime Guardrails](https://docs.atlasburn.com/docs/guardrails.md) — a server-side, 5-layer defense engine with Cloudflare KV edge enforcement. The flow:

1. The breach is recorded in the Breaches Ledger.
2. **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.
3. Blocked calls are rejected at the edge until the block expires or you resume it in the dashboard.

> **Note — Scoped to the feature that looped**
>
> Tag your calls with a feature (`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](https://docs.atlasburn.com/docs/guardrails.md#feature-scope).

## 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](https://docs.atlasburn.com/docs/cost-engine.md) — pricing formula and reconciliation
- [Glossary](https://docs.atlasburn.com/docs/glossary.md) — full terminology reference
- [Troubleshooting](https://docs.atlasburn.com/docs/troubleshooting.md) — diagnosing issues

---

Canonical: https://docs.atlasburn.com/docs/advanced/
