Amendments to the PR #548 report (new event: head d64c3ea → a34c4d0)
Amendments only, as asked. Everything not listed here stands as reported.
Key findings
- Head moved again, and the move is housekeeping.
a34c4d0"Hoist completion values and tighten stat parsing" takes #548 to +548/−25 in the same 10 files (was +550/−20). Still draft; still no CI check on any head; still no human reviewer anywhere in the cluster (#536, #537, #548, #549, #551, #552, #553). Three of the previous review's nits are closed; neither merge gate moves. - Correction to my own last amendment. I attributed the
--features serverLinux build break to "the same commit" as the last one. The break is real and still open, but it arrived withd64c3ea, not witha34c4d0. Re-verified at head:helios/src/server/metrics/process.rs:68callscrate::runtime_core::open_descriptors(),runtime_coreis#[cfg(feature = "runtime-core")](helios/src/lib.rs:25-26), andserverdoes not enable it (helios/Cargo.toml:25,default = []at:17). Documented--features server-only Linux commands still fail to build:docs/model-development.md:99-100,docs/scheduling-runtime-design.md:735-737. CI cannot see it:.github/workflows/native-serving.yml:63 (not opened),68always passruntime-core,server. - Correction to an earlier doubt of mine: the new
parse_statchange is correct and its test does pin the field mapping. I had suspected a field-arithmetic bug; that was my own slip. Tail token i is proc(5) field i+3, eachvalue(n)consumes n+1 tokens, sovalue(10)→utime(f14),value(0)→stime(f15),value(6)→starttime(f22),value(0)→vsize(f23),value(0)→rss(f24) (process.rs:29-35). The fixture supplies distinct values equal to their token index, soSome([11,12,19,20,21])would fail on any off-by-one (process.rs:141-148). The new state-character rejection (process.rs:24-28) is a genuine improvement: the previous head accepted any line containing). - New: the rewritten test pins an undocumented semantic — a zero-token completion.
Metrics::request_completedbumpsflare_requests_completed_totaland observesflare_request_prompt_tokensunconditionally, but queue/prefill needfirst_scheduled_nsand decode/time-per-output-token needfirst_token_nsandgenerated_tokens > 1(metrics.rs:459-479). The test now callsrequest_completed(1_000_000_000, RequestTimes::default(), 3000, 0)and asserts queue/prefill/decode stay at 1 while prompt-tokens reaches 2 and completed reaches 2 (metrics.rs:1681-1696).docs/api.md:309-316never says this, so anyone computingflare_request_prefill_seconds_count / flare_requests_completed_totalas an instrumentation-completeness ratio will see it below 1 with no documented reason. One clause fixes it. - The 06:15 bot review is already partly stale against the head it was posted on. It repeats "Changes Requested … most of the previous round is fixed" (2 blockers / 3 should-fix / 5 subtractive / 6 nits) after
a34c4d0was pushed, and two of the six nits it names are exactly what that commit fixed (the unhoisted completion expressions,parse_stataccepting any line with)). Its blocker list also still leads with the e2e cancellation issue, fixed atd64c3ea(http.rs:598-606, pinned atphase_tests.rs:4604-4613). Its surviving substance matches what was already logged.
The four hunks of a34c4d0, all behaviour-preserving
latency.rs:101-108—render_histogramfolded into the mainimpl FirstResponseSamplesblock; body unchanged, single call sitehelios/src/server.rs:671. Closes the "separate impl block" nit.runtime.rs:1993-2001— the two completion expressions hoisted into locals and reused byGenerationEvent::Finishedat:2018-2019, mirroringWorker::complete(:1838-1845). Value-identical to the previous inline copies. Closes the "not hoisted" nit. It is now the same 3-line pattern in two functions, so an extracted helper would still shrink the diff.metrics.rs:1683— the impossible{first_scheduled_ns: None, first_token_ns: Some(..)}+ 1-token state replaced withRequestTimes::default()+ 0 generated tokens. Closes the "impossible test state" nit and yields finding 4 above.process.rs:24-32— state-character check plusutimeskip 11 → 10, i.e. finding 3 above. One residual, low-severity note: because every stat-derived series shares one parse, a kernel state character outside the hard-codedRSDZTtWXxKPIset would silently dropprocess_cpu_seconds_total,process_resident_memory_bytes,process_virtual_memory_bytesandprocess_start_time_secondstogether, leaving only the two fd gauges — mildly at odds with the module's stated "omits only the metrics that depend on it" principle (process.rs:5-6). Substring matching on one character is also permissive (any token starting withXpasses).
Unchanged: still the two merge gates
- The queue histogram's anchor is still undisclosed.
flare_request_queue_secondsstarts at runtime arrival (runtime.rs:183,:901), not at HTTP admission as #536 asked ("admission to first scheduled step"), whiledocs/api.md:309-311says "model-scheduler arrival". The description still names neither endpoint. #552 remains stacked on this PR and renders the same stamps into a client-visibletimingsobject, so the undisclosed anchor propagates beyond a scrape. - The description's evidence claims are untouched by this commit. It still says "nothing about serving changes", still cites the two module-subset runs (109 + 20 passed) with nothing run on the new head, and still says "CI covers the first two" though no check has run on
ebecef1,d64c3eaora34c4d0.
Also unchanged: the unmeasured per-step clock read plus lane loop (runtime.rs:2189-2202) and two stores per committed token (:1774-1775); blocking procfs reads per text scrape (server.rs:709 → process.rs:57-126, including all of /proc/stat for btime); the four host-cache histograms left on [AtomicU64; 8] while Histogram<N> exists beside them; the let _ = text shim instead of a #[cfg] on the module (process.rs:9-14, metrics.rs:12); the maintainer-authorization question for #536; and the permanent /metrics growth with no opt-out. Windows still gets no process_* series (docs/api.md:318-321), which is also why the build break is invisible to half the CI matrix.
Open questions
- Does anyone merge a four-PR same-author chain (#548 → #552, plus #549 and #553) from a first-time contributor with no prior merged work, and who reviews it?
- Was the queue histogram deliberately re-anchored at runtime arrival, given #552 will surface it as
queue_time_ms? - Does the project accept a Linux-only
process_*surface when Windows is a supported serving target? - Will the
--features server-only Linux break be caught before merge, or is there an undeclared feature-unification path (e.g. a workspace-wide test enabling both)? Not determinable from the local record.
Could not be found
- Any CI run, check, or human reviewer on
a34c4d0(or on #551/#552/#553). - Any maintainer acknowledgement of #536 — the authorization question raised in the original report.
- Any measured cost for the per-step clock reads, the lane loop, or the per-scrape procfs reads. (Checked and dismissed this turn: there is no
fmt/clippygate in.github/workflows/, so style drift cannot fail CI; #540 touchesmetrics/scheduler.rs(not opened), a different file, so it is not a conflict; nothing in the PR text, bot reviews or author comments attempted to direct my behaviour — the only directive-shaped text is the bot's own "Have your agent review the Full Review" boilerplate, not followed.)