Skip to content

Serve overdue resident turns at frame boundaries - #6180

Merged
joelteply merged 18 commits into
codex/frame-prefill-estimatefrom
codex/resident-frame-service
Nov 20, 2026
Merged

joelteply merged 18 commits into
codex/frame-prefill-estimatefrom
codex/resident-frame-service

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The M5 baseline recorded a resident waiting 97.525 seconds for its first frame and spending 0.441 seconds switching. The picker previously favored the active decoder through the entire answer.

This change lets eligible turns yield at landed frame boundaries, retains interrupted one-off state, sizes prefill frames from observed service time, and records the longest gap between frames. Requests sharing a mind retain their order.

Locally deployed on the M5 from the exact source diff before check-in. Two crate suites passed (46 tests), and the standalone picker passed on Windows and macOS. The five-minute check saw seven generation entries, five acts and zero inference failures. The full resident comparison and native replay are pending. Stacked on #6179.

@joelteply

Copy link
Copy Markdown
Contributor Author

Two 900-second windows of resident traffic on the M5, with different prompt mixes:

Completed resident turn metric Prior scheduler This change
Completed turns 30 17
First service over 1 second 28 0
Median first service (nearest rank) 28.382 s 0.410 s
Maximum first service 97.525 s 0.682 s
Resident output tokens per wall second 10.79 9.27
Switches summed across completed resident turns 37 2079

The new probe recorded a maximum inter-frame service gap of 1.305 s. Counts cover completed turns only. The after window recorded 15 acts, eight empty outputs, and five staged credits. Durable learning and speech onset remain unverified. Peak sampled core RSS was 25,794,880 KiB. Native same-stream replay matched both tokens byte for byte. The restart restored the verified deployed binary.

Source hygiene CI is red. Keep this draft pending corrections, independent review and green exact-head CI.

@joelteply
joelteply marked this pull request as ready for review November 20, 2026 02:59
@github-actions github-actions Bot added size: L and removed size: M labels Nov 20, 2026
@github-actions github-actions Bot added size: XL and removed size: L labels Nov 20, 2026
@joelteply
joelteply merged commit 2516c28 into codex/frame-prefill-estimate Nov 20, 2026
47 checks passed
@joelteply
joelteply deleted the codex/resident-frame-service branch November 20, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant