Review inline model misses in the background instead of dropping them #5
Loading…
Reference in a new issue
No description provided.
Delete branch "inline-review"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
In inline mode a model call that missed
CENTINELA_BUDGETwas cancelled and the request failed open with nothing else done: no verdict cached, no shun, no training-log line. With a backend that answers one request at a time this is the common case. A page that fires several escalated requests queues past the budget; in one 30-minute window 117 of 118 model calls ended this way.Change
Inline stays inline: a request is held for up to one budget and blocked if the model says so in time.
On a miss:
CENTINELA_QUEUE_DEPTH(default 1024) bounds how many calls may run past their budget at once. Beyond it a miss is abandoned and reported; the request path is not held any longer. There are no new settings.Sources
review-queuedreviewreview-failedreview-droppedfail-openUnder
CENTINELA_FAIL_OPEN=falsea miss still blocks asfail-closed, and is still reviewed so a retry can be answered from the cache.Dashboards that count
source="fail-open"will see most of that volume move toreview-queued.Not in this change
Tests
review-dropped, does not hold the request, and caches nothing.review-failedand caches nothing.make vet,make buildandmake test(race detector) pass.Merging to
mainrunsbuild-and-push, which tags and publishes the next patch version.🔎 ojo scan results
Details (2)