Holds a single adaptive concurrency cap and mutates it under the AIMD law. Stateless beyond the current cap and its bounds; safe to share across a single RunAdaptive invocation (all calls run on one async thread, so no locking).
RunAdaptive
The live in-flight cap. Always within [Min, Max].
[Min, Max]
Upper bound the cap can never rise above.
Lower bound the cap can never fall below.
Additive increase: a healthy outcome nudges the cap up by 1, clamped to Max.
Multiplicative decrease: a throttle/error halves the cap, floored at Min.
Holds a single adaptive concurrency cap and mutates it under the AIMD law. Stateless beyond the current cap and its bounds; safe to share across a single
RunAdaptiveinvocation (all calls run on one async thread, so no locking).