Repository navigation
scheduler: record TTFT marks for promoted and multi-chunk prefills (restores 0.4.0's trace hooks) - #306
Merged
Conversation
phase_promote_prefills never called ttft_trace::mark / visible_at_prefill, so promoted and multi-chunk prefills logged pf_sync=- steps=1 first=none. Port the mark site from Enntity/atlas 0f58f7a (0.4.0 9b25f57): the FirstSampled mark and visible_at_prefill land where the promoted sequence's first token is known. Trace hooks only, no behaviour change.
This was referenced Nov 1, 2026
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.
Summary
Our port of the TTFT trace (Enntity
0f58f7a4b, in #285) left out 0.4.0's hooks inphase_promote_prefills.rs. As a result, multi-chunk and promoted prefills never recordedFirstSampledorvisible_at_prefill. On main, every such request'sATLAS_TTFT_TRACEline readspf_sync=- steps=1 first=none, where 0.4.0 shows the prefill timing andsteps=0. That made main's traces impossible to compare with 0.4.0's: I found this while chasing a strict-mode follow-up-turn TTFT difference, which turned out to be just the order in which concurrent conversations' prefills were served.This restores the 8-line hunk exactly as 0.4.0 has it. It's trace hooks only; nothing changes with
ATLAS_TTFT_TRACEunset.Test plan
--tests) is clean.3bd5d7b1e, both built fresh. Receipts are in reiner's~/code/night1027/out/dap-ttft-ad097c2cb/.Generated with Devin