Skip to content

Bound the complete classifier pipeline with one shared deadline - #46

Merged
sarthakagrawal927 merged 7 commits into
mainfrom
agent/meme-lab-compact-ranking-20261005
Oct 5, 2026
Merged

sarthakagrawal927 merged 7 commits into
mainfrom
agent/meme-lab-compact-ranking-20261005

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

A live three-perspective managed batch exceeded the inherited 15-second ranking deadline and returned retrieval_fallback despite successful Gemini key recovery. Allow one bounded 25-second classifier pipeline, shared across the safety gate, parallel viewpoint ranking and any fallback, instead of restarting a timeout for each stage. Caller cancellation remains terminal; the safety gate retains its shorter local timeout.

This gives slower valid completions time to finish while bounding the complete classifier pipeline. It changes neither token/provider budgets nor retry counts and preserves automatic routing. Existing fallback remains explicitly degraded after the shared deadline.

Validation: 79 focused tests pass, covering deadline reuse, in-flight expiration, caller cancellation, original safety behavior, perspective scoring and strict telemetry. The actual Workerd runtime also checks combined AbortSignals in CI. Full tests, package validation and deployment packaging run in exact-source CI because the shared Fleet disk cap blocks another local full run. Refs #30 and sass-maker/free-ai#95. The live gateway advanced independently to 38354865408e51d7ff92c20b8f2f20b18b251706 / version 603d83ab-dd84-479a-a5e3-668e98f42df0; that subsequent release only changes Replay Lab/provider automation diagnostics and retains the key-recovery fix.

@sarthakagrawal927
sarthakagrawal927 merged commit 5d991d5 into main Oct 5, 2026
1 check passed
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