Repository navigation
Observe engine request lifecycle for cancellation idle checks - #397
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The four-protocol proof runner required batched scheduler counters to confirm cancellation cleanup. SimpleEngine exposes the engine-owned request lifecycle without those scheduler counters. Sixteen live Qwen DFlash2 recovery requests succeeded, but every idle check reached the timeout.
The checker now uses the versioned lifecycle snapshot when available. It requires all collectors and queued or running requests to clear, and waits for terminal cleanup. The previous scheduler check remains available for older health responses without lifecycle telemetry.
All 203 contract tests passed. The added regression covers an active request, pending cleanup and final idleness on an engine without legacy scheduler counters.