Skip to content

Observe engine request lifecycle for cancellation idle checks - #397

Merged
jjang-ai merged 1 commit into
mainfrom
fix/agentic-simple-idle-20261121
Nov 21, 2026
Merged

jjang-ai merged 1 commit into
mainfrom
fix/agentic-simple-idle-20261121

Conversation

@jjang-ai

Copy link
Copy Markdown
Owner

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.

@jjang-ai
jjang-ai merged commit b241c76 into main Nov 21, 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