---
title: "Engineering log · AGI Plan"
url: https://agiplan.dev/en/engineering
description: "Design trade-offs, invariants, and edge cases behind quota reservation, circuit breakers, and failover."
language: en
markdown: https://agiplan.dev/en/engineering.md
---

Engineering log

# How the system actually works, *written down*

Concrete architecture notes on quota reservation, ledger reconciliation, circuit breaking, and failover edge cases.

1. 2026-08-06Gateway & metering

   ## [When exactly should a streaming request be charged](https://agiplan.dev/en/engineering/quota-reserve-commit)

   You don't know the cost when the request starts, and by the time it ends the money is already spent. This is the easiest thing to get wrong in a metering system. We solve it in two phases.

   [Read the post →](https://agiplan.dev/en/engineering/quota-reserve-commit)
2. 2026-07-24Supply & operations

   ## [Tripping the breaker is easy; where you go next is not](https://agiplan.dev/en/engineering/failover)

   Tripping an unhealthy route is only step one. The real test is whether backup capacity can absorb the shifted traffic and keep billing verifiable.

   [Read the post →](https://agiplan.dev/en/engineering/failover)
