Assumptions
Formula : headroom = context window − (system + tools + history + retrieved + question + reserved output)
Approximation only. Real tokenizers, kernels, architectures, runtimes, cache sharing, metadata, fragmentation, and quality vary. Measure the exact target system; do not use this estimate as a capacity or quality guarantee.