The dashboard that quietly rewrites the protocol

Somewhere in an operations centre there is a panel with a number labelled "live streams." It rises when traffic arrives, falls when streams close, and looks for all the world like concurrency. It is not. The instant someone subtracted closed streams from a MAX_STREAMS value, they stopped measuring QUIC and started measuring their own arithmetic.

RFC 9000 is blunt about what a stream limit is: a cumulative authorization. It states how many streams of a given type the peer may open across the life of the connection — not how many are alive at this instant. Think of a book of numbered tickets rather than a turnstile counter. Tear out ticket forty-one and the book does not get shorter. The room can be empty; the ticket is still spent.

Stream IDs already tell you which ledger you are reading

QUIC stream IDs encode both initiator and directionality in the low bits. Bidirectional and unidirectional streams occupy separate number spaces and carry separate limits. A limit for peer-initiated bidirectional streams is not a limit for unidirectional ones, and authority granted to one initiator cannot be quietly transferred to the other. Before any number means anything, it needs two labels stapled to it: stream type and initiator. Strip those off and the figure is decoration.

MAX_STREAMS ratchets one way only

An endpoint advertises its opening authority up front with initial_max_streams_bidi and initial_max_streams_uni. A missing or zero value is not a bug — it means the peer may open nothing of that type until a later MAX_STREAMS frame says otherwise. That transport parameter carries exactly the same cumulative meaning as a MAX_STREAMS frame bearing the same value.

Later frames may raise the matching limit. They may not lower it. A non-increasing MAX_STREAMS is not a reduction in capacity; it is a no-op, ignored by the receiver. Anyone reading a flat or falling MAX_STREAMS as "the peer tightened the budget" has mistaken a ratchet for a valve.

Closed streams never hand the ticket back

The authorized number is cumulative: the highest opening ordinal permitted over the connection's lifetime, not the count open at a sampling instant. It includes streams still running and streams long since finished. Closing a stream changes live state; it does not return an opening to the ledger. No closed stream number is ever recycled as fresh authority.

Which means the fields you actually need are independent of one another: cumulative authorized openings, highest opened ordinal, open and closed and terminal state, application-request concurrency, queued work, worker availability, memory and CPU headroom, downstream capacity, throughput, latency, completion, business outcome. Collapse them into a single "available streams" gauge and you have built an operational fiction with a green light on it. A transport number can bound endpoint state exposure while telling you nothing whatsoever about useful work.

Where the protocol draws a hard line

The boundary is also a safety boundary. Open one stream past the authorized cumulative count and the peer answers with STREAM_LIMIT_ERROR. Push a limit above 2^60 and stream-ID encoding can no longer represent it consistently — that is a connection error, not a capacity estimate. These are validity rules, not forecasts. A stingy limit can strangle an application that genuinely wants many streams; a generous one exposes the endpoint to more peer-created state. The trade-off is resource control, and it gets made on purpose or by accident, never by default.

STREAMS_BLOCKED is a narrow confession

STREAMS_BLOCKED is the most over-read frame in the protocol. It says one thing: the sender wanted a new stream and the current transport limit stopped it. It grants no authority. It does not establish broad application demand, queued workload, worker availability, throughput, successful completion, or business capacity. It is evidence of blocked demand at the transport boundary — and nothing beyond that fence.

Five signals, five different jobs

The separation has to stay explicit, because the neighbouring signals all look temptingly substitutable and none of them are. TR-046 governs byte flow-control permission, not stream-opening authorization. TR-057 tracks final-size accounting for a single stream direction, not whether another stream may open. TR-054 covers STOP_SENDING cancellation of one direction, not the connection-lifetime opening ledger. TR-053 covers connection closure, while this ledger applies only while the connection lives. TR-040 covers connection-ID routing and migration, not stream openings.

Swap any one of them for the ledger and the story you tell about your own network becomes fiction.