Skip to content

Merge main into next: minimum turn needs a request (#338) - #339

Merged
T-Crypt merged 5 commits into
nextfrom
T-Crypt/main-into-next-min-turn
Nov 15, 2026
Merged

T-Crypt merged 5 commits into
nextfrom
T-Crypt/main-into-next-min-turn

Conversation

@T-Crypt

@T-Crypt T-Crypt commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Brings #338 from main into next. The tree matches main plus the earlier next merge commit. The CHANGELOG lines sit under Unreleased. The full proof passes.

… idle

Busy said "known idle" for any engine that answered, even when its reading
had no way to show a running request. The NInfer build on aphotic answers
/metrics with only ninfer_* counters and serves no /slots, so it read idle
while it served, and so did Ollama. A juggle hands an idle holder's card over
at once, and the minimum-turn change that follows needs a truthful idle.

Each reader now sets EngineMetrics.InFlightReported when its reading carries
a processing or waiting gauge, a /slots list or a job queue. llama-swap
reports only when every ready model on it does.
A lease's minimum turn ran from the grant. When a health probe or a warm-up
started an engine, the lease kept the card for its whole turn although
nobody sent it a request. On aphotic a HADAL warm-up started NInfer, drained
Strata mid-session, and Strata's next request waited out NInfer's five
minutes.

Each tick the broker reads whether an active lease's engine is busy. A lease
read idle with no busy reading since the grant has no turn to keep, and the
status shows none. With no reading (no watcher, an engine still loading, an
engine with no in-flight figure) the turn holds as before.
fix(broker): a minimum turn protects only a lease that served a request
@T-Crypt
T-Crypt merged commit 1c389b0 into next Nov 15, 2026
2 checks passed
@T-Crypt
T-Crypt deleted the T-Crypt/main-into-next-min-turn branch November 15, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant