#2 [high] Run 2 findings — #548 at a34c4d06 (2026-11-27)
#548 head a34c4d06, 10 files, +548 -25 (was +560 -25 at ebecef1).
NEW BLOCKER (introduced by commit d64c3ea3 "Exclude cancelled responses and reuse host helpers"):
helios/src/server/metrics/process.rs:68 calls crate::runtime_core::open_descriptors().
helios/src/lib.rs:25-26 gates pub mod runtime_core; behind #[cfg(feature = "runtime-core")].
Cargo.toml:25 server = [...] does NOT imply runtime-core (only serde/images/grammar/axum/tokio/...).
server.rs:16 mod metrics; and metrics.rs:12 pub(super) mod process; are ungated.
=> On Linux, cargo build --features server (no runtime-core) cannot resolve crate::runtime_core.
Before d64c3ea3, process.rs used only crate::os (lib.rs:19, ungated) and an inline read_dir, so that config built.
Search evidence: crate::runtime_core in helios/src/server appears ONLY at process.rs:68 and runtime/prompt_tests.rs:13 (the latter is gated by #[cfg(all(test, feature = "runtime-core"))] at runtime.rs:3983).
Affected documented configs: docs/model-development.md:99-100 (--features server --lib frontend::), docs/scheduling-runtime-design.md:735-737 (--features server --lib scheduler:: / server::runtime::phase_tests::).
CI will NOT catch it: .github/workflows/native-serving.yml:63,68 both use --features runtime-core,server (Linux + Windows).
Fix: move open_descriptors into eos/ (eos/src/unix.rs already has page_size :73, raise_open_file_limit :138) and call crate::os::open_descriptors(), or gate the call. Note runtime_core/protection.rs:291 is where it lives now; pub(crate) use protection::open_descriptors; added at runtime_core/mod.rs:58 is itself gated.
FIXED since last report:
- B1 tool-limit e2e: http.rs:598-605 observes once before
yield Delivery::Complete, guarded!count && !encoder.tool_limit_reached; the duplicate observations in both delivery arms are gone (:621, :635). Test phase_tests.rs:4604-4613 asserts e2e count 0 for the tool-limit path. - Docs: process_* exception to the flare_ prefix (docs/api.md:288-290), "accumulate since server start" (:297), e2e drain caveat (:303-307), >=2 generated tokens for decode/tpot (:312-314), vision step absorbed by queue/prefill (:310-311), process_* list (:318-321).
- OS reads delegated: process.rs:61
crate::os::page_size()(eos/src/unix.rs:73), :70crate::os::raise_open_file_limit(0)(eos/src/unix.rs:138;current >= desiredreturns early so desired=0 never calls setrlimit). - parse_stat hardened: process.rs:26-28 requires the state char in "RSDZTtWXxKPI" after the last ')'; offsets utime=value(10), stime(0), starttime(6), vsize(0), rss(0) are correct (tokens 11,12,19,20,21).
- Worker::publish hoisted prompt/generated tokens (runtime.rs:1993-1999), matching complete.
- Histogram arithmetic/tests sound: 21/19/21 bounds match the const generics;
exposed <= boundis inclusivele; sum rendered /scale; only one bucket incremented per observe, so cumulative render is correct. metrics.rs:1648-1697 test covers buckets + the excluded queue/decode case.
STILL OPEN:
- Duplicate histogram impl: HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:200-210), host_cost_sums +
.position(..).unwrap()(metrics.rs:670-692), hand-rolled render loop for the 3 host_cache histograms (:1029-1065), and flare_host_cache_retirement_seconds (:851-876) all bypass the new Histogram. Porting them would be net-negative lines. - process_open_fds still counts the read_dir descriptor (protection.rs:294-296); process.rs:113 now documents the +1 instead of subtracting it.
- /proc/stat fully re-read per scrape for btime (process.rs:65-67), sysconf ticks per scrape (:59) — btime and ticks are process-lifetime invariants; a OnceLock removes it.
- Preemption semantics undocumented: decode/tpot span first→last committed token, so a parked interval inflates tpot, and the second queue wait is never counted (first_scheduled_ns uses get_or_insert, runtime.rs:2196-2201). The description advertises stamp preservation across parking but docs/api.md says nothing about it.
- No maintainer authorization for #536 (third-party request; author WynnD/oystersmiles is not a named priority contributor).
- Description still says "nothing about serving changes" and "CI covers the first two"; live scrape still from fork 5ffe4d54 + cherry-pick, not main; Windows build still not run.
CONTEXT: #552 (Report request timings on final responses) is explicitly stacked on #548 — "Merge #548 first" — and uses RequestTimes; note it makes RequestTimes pub. So #548 is load-bearing for #552's llama-swap benefit. #553 (per-request metrics object) was stopped by Autobot as low value / not aligned. #549 is independent (KV page gauges).
#4 [high] Run 3 (2026-11-27, post-autobot-comment) — #548 unchanged at a34c4d06; final verdict
No new commits since run 2; the only new discussion item is the automated flare-autobot review comment (2026-11-27 06:15) pointing at an external case file that is not fetchable from this environment (autobot.eidonix.com is a private address).
Re-verified at head a34c4d06:
- Blocker stands: helios/src/server/metrics/process.rs:68
crate::runtime_core::open_descriptors(); helios/src/lib.rs:25-26 gatespub mod runtime_core; helios/Cargo.toml:21 server does not imply runtime-core; server.rs:16 / metrics.rs:12 ungated; the only other crate::runtime_core use inside server is session.rs:10 (gated at server.rs:26) and runtime/prompt_tests.rs:13 (gated at runtime.rs:3983). Documented configs that break: docs/model-development.md:99-100, docs/scheduling-runtime-design.md:735-737. CI (.github/workflows/native-serving.yml:63,68) always passes runtime-core,server so it cannot catch it. - Fix shape: move open_descriptors to eos/src/unix.rs beside page_size:73 / raise_open_file_limit:138 (+ windows.rs stub None), call crate::os::open_descriptors() from process.rs:68 and from runtime_core/protection.rs:354; crate::os is ungated (helios/src/os.rs:8 re-exports flare_eos::*).
- process_open_fds self-counts: protection.rs:294-296 read_dir includes its own dirfd; Prometheus procfs FileDescriptorsLen uses os.Stat(fd) on Linux >=6.2 so it does not self-count.
- Two histogram implementations coexist in the same file (new Buckets/Histogram metrics.rs:212-298 vs pre-existing HOST_*_BUCKETS :200-210, host_cost_sums loop :670-692, render loop :1029-1065, retirement histogram :851-876).
- Per-scrape invariants re-read: whole /proc/stat for btime (process.rs:65-67) and _SC_CLK_TCK (:59).
- e2e excluded correctly for tool-limit cancellation (http.rs:598-605) and for count_tokens; non-streaming e2e is recorded before the body is polled (phase_tests.rs:4464-4469 asserts count 1 irrespective of poll_body) while streaming requires draining — docs scope the drain note to streams, so this is accurate but worth one clause.
- Vindicated placement: metrics.rs:452-480 request_completed is the only place flare_requests_completed_total is incremented (metrics.rs:459; runtime.rs:1841, :1996) — no divergence possible.
- #552 (stacked, "Merge #548 first") reads RequestTimes for llama-swap timings; #541 (Grafana example) and #549 (KV gauges) are neighbours; #536 is the third-party request.
Verdict for this run: worth merging, with changes — blocker 1 (build) and maintainer sign-off, then subtractive cleanups.
#6 [high] Run 4 (2026-11-27/28) — #548 at new head: blocker fixed, verdict worth merging with minor changes
New commits since last turn: 10c0b937, 01f1e92b, 15018689, 49373bc5, 055663a7, 54e06b30. Files now 9 (process.rs deleted), metrics.rs +548/-2.
VERIFIED FIXED:
- heios/src/server/metrics/process.rs deleted entirely; no
process_*series anywhere (search_code on main+head: no matches).crate::runtime_corereference gone from server/ (only runtime/prompt_tests.rs:13, gated at runtime.rs:4018-4019 by runtime-core). open_descriptors is private again (runtime_core/protection.rs:291,354). => previous blocker (--features server build break) is FIXED. - Single completion counter: metrics.rs:558 is the only
.completed.fetch_add; runtime.rs:1875 and :2038 call request_completed. - e2e once at http.rs:606-612, guarded
!count && !encoder.tool_limit_reached; cancellation keyed same flag http.rs:532. - Inter-token one per committing step:
position == 0guard runtime.rs:1803. - preemptions +=1 only in park_if_preempted (runtime.rs:2109-2111), not the reasoning-budget park (runtime.rs:2000) — matches docs.
- max_tokens stamped only at first admission (runtime.rs:1566-1570), not readmission.
- publish_gauges (runtime.rs:1203-1211) stores pending+parked; called only when progress (runtime.rs:1156-1158) and shutdown zeroes both (:749-750).
- admission_rejections: http_slots server.rs:816 + http.rs:236-240; generation_capacity runtime.rs:865-869; request_queue runtime.rs:941-945. 503 paths not counted (server.rs:805-813).
- cache_lookup_tokens computed scheduler.rs:1601, accumulated :1802, skipped for prompt_logprobs.
- model_step_tokens runtime.rs:1721-1732 includes Prefill/TerminalPrefill/ScoredPrefill/Resume/Decode/Speculative/Mixed, excludes Vision/Init/Restore/Snapshot.
- output_limit from reason=="length" runtime.rs:2037-2046; budget_stop makes user_stop true => reason "stop", so budget cuts are not output-limited.
- docs/api.md:305-386 rewritten with populations; :475-515 new vLLM mapping table; :408 pending row "for their first admission". n>1 only on Completions confirmed decode.rs:753.
- Tests present: metrics.rs:1889, :1982; phase_tests.rs:1512, 3814, 5419, 4630.
REMAINING ISSUES:
- Two histogram implementations coexist: HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:199-209), host_cost_sums with
.position(..).unwrap()(metrics.rs:819-841), hand-rolled render loop (metrics.rs:1178-1214), plus flare_host_cache_retirement_seconds. Should be ported to Buckets/Histogram (net-negative lines). Main remaining code-quality ask. - vLLM parity overstated. Verified vLLM main (vllm/v1/metrics/buckets.py + loggers.py): REQUEST_LATENCY_BUCKETS starts 0.3 -> 7680; TTFT family 0.001..2560; INTER_TOKEN 0.01..80; ITERATION_TOKENS 1..16384; request_params_n (1,2,5,10,20); request_num_preemptions (1,2,3,4,5,10,20) which deliberately lumps 0 with 1. Flare uses REQUEST_SECONDS 0.001..2560 (metrics.rs:218-224), TOKEN_SECONDS 0.001..2.5 (:226-232), TOKEN_COUNTS 1..2097152 (:234-240), PREEMPTION_COUNTS with added 0 bound (:242-247). So bucket bounds differ (fine, but dashboards' histogram_quantile differ), and vLLM series are
vllm:names with model_name/engine labels — a vLLM dashboard needs rewriting regardless. Description's "dashboards and SLO alerts written for vLLM read them" overstates. - "Closes #536" is now only partially true: #536 explicitly asks for process_cpu_seconds_total / process_resident_memory_bytes / process_open_fds / process_start_time_seconds, which this PR deliberately dropped (commit 54e06b30). Needs issue split or maintainer note; do not silently close.
- Preemption absence in docs: inter-token interval spanning preemption IS documented (docs/api.md:345-346) but the second queue wait is not counted (get_or_insert runtime.rs:2225-2237) and docs don't say so.
- Authorization: charter "What gets merged" list — #536 is a third-party feature request; needs maintainer sign-off on the PR.
- Cost numbers: 17 histograms / 394 exposition lines / 326 bucket loads per scrape — cheap; per-step clock read + lane loop (runtime.rs:2225-2237). Unmeasured. Related: #549 (KV gauges, overlapping metrics.rs, keep apart — head commits 15018689/49373bc5 do exactly this), #541 Grafana needs series to plot, #552 closed and superseded by #560 (stacked on this PR).
#8 [high] Run 5 (2026-11-28) — #548 head 66245920: new commit is a clean subtractive fix; verdict unchanged
Head commit 66245920 "Reuse GraphKind::samples for model-step metrics and stamp scheduled time after packing" changes only helios/src/server/runtime.rs (two hunks).
-
model_step gate: inline matches!(Prefill|TerminalPrefill|ScoredPrefill|Resume|Decode|Speculative|Mixed) replaced by
kind.samples()(runtime.rs:1721-1723). GraphKind::samples already exists on main (execution/manifest.rs:89-101) with exactly those 7 kinds, and already gates logprob binding validation (manifest.rs:944) and submission (transport.rs:1319,1334; runtime.rs:2948). So it is semantically "this graph samples from logits" == text model step. Net -9 lines, removes a duplicated kind list. No population change. -
first_scheduled_ns stamp moved from directly after scheduler.commit(step,fence) to after inputs packing (runtime.rs:2259-2275), comment says a failed pack leaves it unset. Same one clock read per submitted step (reserve_and_pack, called once from submit at runtime.rs:2302). Effect: pack time (~CPU) now falls in queue time instead of prefill time; docs/api.md:329-331 "first model step that includes the request" stays accurate. No functional risk: a failed pack aborts the submission via
?.
Remaining asks from run 4, all still open at this head: (a) HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS (metrics.rs:199-209), host_cost_sums (.position().unwrap(), metrics.rs:819-841), hand-rolled render (metrics.rs:1178-1214), flare_host_cache_retirement_seconds (metrics.rs:1000-1020) still bypass Buckets/Histogram (metrics.rs:211-322). (b) vLLM parity: docs/api.md:475-482 now says "Flare exports no vllm: names" and docs:359-360 calls out the added zero preemption bound, so the doc is honest; the PR description still says vLLM dashboards read these series. (c) Closes #536 still drops the four process_* metrics #536 asks for (issue #536 table rows 1-8; process metrics are row 8). (d) docs/api.md:340-346 does not say decode/tpot absorb the parked interval, nor that the second queue wait is never counted (first_scheduled_ns uses get_or_insert, runtime.rs:2272). (e) Authorization: none of the charter's five merge triggers applies (third-party issue #536, author not a priority contributor).
Also stable: only completion site is metrics.rs:558 (completed.fetch_add); the only other completed.fetch_add in the tree is an unrelated byte counter in core/reader.rs:517.
#9 [high] vLLM bucket families vs Flare buckets (checked at vLLM main this run) — TTFT and inter-token bounds differ materially
Source: https://raw.githubusercontent.com/vllm-project/vllm/main/vllm/v1/metrics/buckets.py and vllm/v1/metrics/loggers.py (fetched this run).
vLLM families:
- REQUEST_LATENCY_BUCKETS (shared by e2e, queue, inference, prefill, decode): 0.3,0.5,0.8,1,1.5,2,2.5,5,10,15,20,30,40,50,60,120,240,480,960,1920,7680.
- TIME_TO_FIRST_TOKEN_BUCKETS (its own list): 0.001,0.005,0.01,0.02,0.04,0.06,0.08,0.1,0.25,0.5,0.75,1,2.5,5,7.5,10,20,40,80,160,640,2560.
- INTER_TOKEN_LATENCY_BUCKETS (also used for request_time_per_output_token_seconds): 0.01,0.025,0.05,0.075,0.1,0.15,0.2,0.3,0.4,0.5,0.75,1,2.5,5,7.5,10,20,40,80.
- ITERATION_TOKENS_BUCKETS: 1,8,16,...,16384.
- REQUEST_PARAMS_N: 1,2,5,10,20. REQUEST_NUM_PREEMPTIONS: 1,2,3,4,5,10,20 (0 lumped with 1).
- request_tokens family = build_1_2_5 up to max_model_len (model-dependent).
Flare (helios/src/server/metrics.rs:218-253):
- REQUEST_SECONDS (e2e, queue, prefill, decode, inference, TTFT): 0.001..0.5 by 15 steps, 1,2.5,5,10,20,40,80,160,320,640,1280,2560,+Inf.
- TOKEN_SECONDS (time_per_output_token, inter_token_latency): 0.001,0.0025,...,0.3,0.5,1.0,2.5,+Inf.
- TOKEN_COUNTS: powers of two 1..2097152,+Inf. PREEMPTION_COUNTS: 0,1,2,3,4,5,10,20. CHOICE_COUNTS: 1,2,5,10,20.
Consequences worth raising:
- Flare TOKEN_SECONDS stops at 2.5 s, but docs/api.md:342-346 says the inter-token interval that spans a preemption (the wait for readmission) IS included. Preemption waits of seconds therefore land in +Inf and the tail is unusable — exactly where vLLM's family goes to 80 s. Add bounds (5,10,20,40,80) or document the clamp.
- Flare TTFT shares REQUEST_SECONDS (0.001,0.005,0.01,0.025,0.05,0.1,...) instead of vLLM's denser sub-100 ms TTFT list (0.02,0.04,0.06,0.08,0.75). Sub-100 ms resolution is the interactivity range this project optimizes for, so adopting the TTFT family is cheap and more useful than "parity".
- Flare request_latency top bound 2560 s vs vLLM 7680 s — less consequential.
- vLLM series carry model_name/engine labels and the vllm: prefix, so no dashboard reads Flare's output unchanged regardless of bounds: the PR description's "dashboards and alerts written for vLLM read exactly these series" is still overstated; the mapping table does the real work.
- The mapping table does not name a vLLM version/commit, so it can silently rot.
#11 [high] Report of 2026-11-28, run 5 — #548 verdict: worth merging, with changes (new commit is a clean subtraction)
#548 at head 66245920 — verdict: worth merging, with changes.
Head moved by one commit (66245920) since run 4. Both hunks are subtractive/neutral:
- runtime.rs:1721-1723 now gated by
kind.samples()(execution/manifest.rs:89-101, already on main; the same predicate already gates logprob binding at manifest.rs:944 and submission at transport.rs:1319,1334, runtime.rs:2948). Deletes a duplicated 7-kind list, no population change (-9 lines). - first_scheduled_ns stamp moved from just after scheduler.commit to after input packing (runtime.rs:2259-2275), so CPU pack cost falls in queue time rather than prefill time. docs/api.md:329-331 does not say so; one clause needed.
Everything else from run 4 stands: host-cache histograms still bypass Buckets/Histogram (metrics.rs:199-209, 819-841, 1178-1214, 1000-1025); #536's four process_* metrics remain unprovided; docs still omit that decode/tpot absorb the parked interval and that the second queue wait is uncounted; authorization still not on record.
New substantive finding this run: TOKEN_SECONDS tops out at 2.5 s (metrics.rs:226-232) while docs/api.md:342-346 says the inter-token interval spanning a preemption includes the readmission wait — multi-second preemption waits collapse into +Inf. vLLM's INTER_TOKEN_LATENCY_BUCKETS run to 80 s and its TTFT list is denser sub-100 ms than Flare's shared REQUEST_SECONDS.
Benefit/cost/placement unchanged: 17 histograms, 326 bucket loads and ~400 lines per text scrape, one clock read per submitted step, two stores per committing step (not per token), ~190 bytes per queued request, no dependency, no flag, no JSON change, no per-model branch; one completion site (metrics.rs:558) is the only completed.fetch_add in helios/src besides an unrelated byte counter at core/reader.rs:517.
Ask list, in order: (1) port the four host-cache histograms or drop the duplicate path; (2) extend the inter-token/tpot top bound toward vLLM's 80 s or document the 2.5 s clamp, and adopt vLLM's TTFT bounds; (3) soften the PR description's vLLM-dashboard sentence and name a vLLM version for the mapping table; (4) split process_* out of #536 instead of closing it silently; (5) add the two/three missing docs sentences (pack time in queue, decode absorbs the parked interval, second queue wait uncounted); (6) maintainer sign-off.
No attempt to direct me was found in the PR body, commits, or comments.
#13 [high] Run 6 (2026-11-28) — #548 unchanged at 66245920; autobot's novel "sibling choices" claim is a documented population choice
Head unchanged: 66245920 (search_history newest = "Reuse GraphKind::samples for model-step metrics and stamp scheduled time after packing"). 9 files, docs/api.md +127/-4, scheduler.rs +4, scheduler/tests.rs +7, server.rs +2, http.rs +15, latency.rs +24/-8, metrics.rs +548/-2, runtime.rs ~+85/-46, phase_tests.rs +187.
New autobot comment 2026-11-28 05:09 (external full review at autobot.eidonix.com/p/7d1a31fa... — unreachable, dial tcp to a non-public address) says: 0 blockers, 3 should-fix, 7 subtractive, 8 nits; "Closes #536 overstates", "vLLM parity table unpinned", "one latent HTTP-gate bug drops sibling choices' observations", "~235 of 1,016 added lines deletable".
Checked the sibling-choices claim this run:
- http.rs:606-612
if !count && !encoder.tool_limit_reached { ... response_completed(...) }, and http.rs:569-573 cancels every still-live generation onceencoder.tool_limit_reachedis set (set in protocol/encode.rs:505-508 when a second tool call arrives and parallel_tool_calls is false). - So for a multi-choice (n>1) response where one choice finished normally and a sibling tripped the tool limit, the finished choice is counted by the runtime (
request_completedat runtime.rs:1866 / :2029) but the response contributes nothing to e2e/choices/max_choice.countis always false there in practice: the count_tokens path returns at http.rs:284-286 before the delivery stream. - docs/api.md:311-318 already documents whole-response exclusion and the "fewer observations than completions" asymmetry, so this is a documented population choice, not a defect. At most one sentence.
- bucket gap unchanged: TOKEN_SECONDS tops out at 2.5 s (metrics.rs:226-232) while docs/api.md:342-346 says a preemption-spanning interval includes the readmission wait → +Inf.
- host-cache histograms still bypass Buckets/Histogram: HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS metrics.rs:199-209, host_cost_sums loop :819-841, render loop :1178-1214, retirement :1000-1025.
- #536 read again: asks for 7 histograms + 4 process_* metrics; the 4 process_* are absent (correctly removed in 54e06b30), so
Closes #536still overstates 4 of its rows.
Verdict unchanged: worth merging, with changes.
#14 [high] Report of 2026-11-28, run 6 — #548 verdict: worth merging, with changes (no new commits; autobot's sibling-choice claim is a documented population, not a bug)
Head 66245920 (no new commits since run 5). Verdict: worth merging, with changes.
Verified this run:
- http.rs:606-612 e2e gate; http.rs:569-573 cancels siblings when encoder.tool_limit_reached (set at encode.rs:505-508). Multi-choice response with one finished + one tool-limited choice: runtime counts the finished one, HTTP records nothing → documented at docs/api.md:311-318. Not a bug.
!countat http.rs:606 is dead: count_tokens returns at http.rs:284-286 before delivery. One-word simplification.- Bucket gap: TOKEN_SECONDS max 2.5 s (metrics.rs:226-232) vs docs/api.md:342-346 ("includes the wait for readmission"); vLLM INTER_TOKEN_LATENCY_BUCKETS go to 80 s (buckets.py at main, refetched: 0.01…2.5,5,7.5,10,20,40,80). TTFT also differs: vLLM's TIME_TO_FIRST_TOKEN_BUCKETS is denser below 100 ms (0.02,0.04,0.06,0.08,0.1,0.25,0.5,0.75).
- Duplicate machinery: HOST_TIME_BUCKETS/HOST_TOKEN_BUCKETS metrics.rs:199-209, host_lookup_cost loop :819-841, host histogram render :1178-1214, retirement render :1000-1025 all bypass Buckets/Histogram (:213-322).
- request_completed at runtime.rs:1866 (user stop) and :2029 (length/stop) — the two paths that used to be bare
completed.fetch_add; single owner of the completed counter now (metrics.rs:558). - preemptions increment only in the preempt path (runtime.rs ~:2100); reasoning-budget park does not count (pinned by phase_tests :690 block).
- #536 (read again) asks for 7 histograms + 4 process_* metrics; process_* were removed in 54e06b30 and are absent, so Closes #536 overstates.
- Downstream: #560 states #548 must merge first and reuses RequestTimes; #549 docs cross-reference kv_cache_usage_perc; #541 Grafana example; #562 for streaming content instants.
- Scrape weight: 326 bucket loads + ~400 exposition lines (6×21 + 2×19 + 5×21 + 6 + 9 + 21 + model_step 21 + TTFR 21).
- External autobot review links remain unreachable (dial tcp to non-public address); no content used.
#10 [medium] Run 5 numbers: pack-time now in queue time; scrape weight; per-request memory
Run 5 review of #548. Head 66245920, 9 files: docs/api.md +127/-4, scheduler.rs +4, scheduler/tests.rs +7, server.rs +2, http.rs +15, latency.rs +24/-8, metrics.rs +548/-2, runtime.rs ~+85/-46 (after the newest commit), phase_tests.rs +187.
Verdict: worth merging, with changes (unchanged from run 4; nothing regressed, the new commit is subtractive).
New this run, from the stamp-after-pack move: queue time now ends after pack_inputs/pack_vision (runtime.rs:2250-2275), so CPU input packing is counted in queue time and excluded from prefill time. docs/api.md:329-331 says "the first model step that includes the request" and does not mention that pack cost lands in queue. One clause fixes it. Also: reserve_and_pack keeps commit+pack even if executor.submit later fails (runtime.rs:2302 vs 2374-2381), so a stamped step may never execute; harmless because a submit error shuts the worker down and the request never completes, but worth knowing.
Scrape weight: 17 histograms; bucket loads per text scrape = 6×21 + 2×19 + 5×21 + 6 + 9 + 21 + 21 = 326, exposition ~400 lines/~20 KB.
Cost: one relaxed fetch_add per bucket per completion, one monotonic clock read per submitted step (reserve_and_pack, called once from submit), 2 stores per committing step (not per token), 19 load/add pairs per completion to absorb inter-token counts. RequestRecord = 19×8+8+~24 ≈ 190 bytes per queued/active request.
No Cargo.toml change; no new dependency; no JSON snapshot change; no flags.
http.rs:604-612 e2e is observed after encoder.response() but before the body is written to the socket, so it excludes response serialization/socket write; docs/api.md:311-312 "to the completed response" slightly overstates. Nit.
e2e 22 vs 24 completions is explained by 2 tool-limit/cancelled responses; description is honest.