#1 [high] Research summary
Prose review of PR #548 completed. The description satisfies the repository's four-part rule (why / what / claimed result / evidence, in order), labels the claim as observability only, discloses the cancelled-and-failed exclusion, the #537 merge interaction and the unrun checks; every "What changed" assertion I checked matched the code (RequestTimes kept through park, stamps in reserve_and_pack/complete, two request_completed call sites replacing direct counter increments, count_tokens excluded from e2e, non-Linux process rendering empty).
Three should-fix findings, all in docs/api.md, plus four nits:
docs/api.md:305-313claims "one observation per completed generation" forflare_request_decode_secondsandflare_time_per_output_token_seconds, which are observed only whengenerated_tokens > 1(metrics.rs:470-479), contradicting the HELP strings the same PR adds (metrics.rs:1398-1422).docs/api.md:288-290keeps "Counter and gauge names start withflare_", falsified by the newprocess_*paragraph at:315-318.flare_request_e2e_secondsis documented as counting "each successful generation from admission to the completed response", but the observation is made atDelivery::Completeinside the SSE poll (http.rs:604-620), so an abandoned stream records nothing and the end point is delivery, not model completion; the neighbouring TTFR sentence already carries the "once the client reads it" caveat. Nits: the request histograms are never stated to be cumulative since start next to a windowed median gauge; "Request histograms observe the served response" is a vague lead-in; an ambiguous "it" in the description's TTFR sentence; the evidence paragraph makes the reader decode whether the measured tree equals the branch head. Also flagged as unverified rather than as findings: the claim that "CI covers" the Windows build and full helios suite (headebecef1has no checks), and the commit-body four-part scheme plusDesign-Signed-Off-Bytrailer, which onlygit show ebecef1can settle.
Note: the turn was cut short before I could record scratchpad entries, so the findings exist only in this report and the preceding review text.
#2 [high] Blocking: none — PR #548 description meets the four-part rule
Prose lens, PR #548 (Add request latency histograms and process metrics), head ebecef1, open draft.
Rules applied: AGENTS.md:43-70 (required prose review), :72-140 (four-part description), .agents/skills/repo-prose/SKILL.md, docs/design-review.md:137-152 (principle 16).
The description answers why / what exactly changed / claimed result / evidence in that order. Claimed result is explicitly "Observability only ... claims no performance or memory improvement", and it states the cancelled/failed exclusion, the #537 merge interaction, and what was not run (Windows build, full helios suite, one template test). That is what AGENTS.md:95-112 asks for.
Every "What changed" statement checked against the code held:
Incoming.timessurvives preemption: park moves Incoming into the parked list (helios/src/server/runtime.rs:2094-2121); readmission reuses it (:1553-1575).Worker::reserve_and_packstamps first scheduled step (runtime.rs:2187-2201);Worker::completestamps first/last committed token (runtime.rs:1774-1775).- The two
request_completedcall sites replace the direct increments: runtime.rs:1841-1846 (user/text stop) and runtime.rs:1993-1998 (natural finish).completed.fetch_addnow exists only at helios/src/server/metrics.rs:459. count_tokensexcluded from e2e: guardsif !countat helios/src/server/http.rs:615 and :632.- Non-Linux process metrics write nothing: helios/src/server/metrics/process.rs:8-16 (
#[cfg(not(target_os = "linux"))]arm). - Docs claim that histograms appear only in Prometheus text and not in JSON is true: the JSON branch at helios/src/server.rs:645-659 never renders them; text branch renders at :671 and :709.
Code comments are invariant-style, not chronology ("Division is correctly rounded...", "Stamp here rather than at submission..."), and the new module doc in metrics/process.rs states source, degradation rule and non-Linux behaviour. No prose defect there.
#3 [high] Should fix: docs/api.md says "one observation per completed generation" for histograms that skip single-token requests
Severity: should fix. File: docs/api.md:305-313 (added by this PR).
Passage: "The runtime records one observation per completed generation in flare_request_queue_seconds from model-scheduler arrival to the first model step that includes the request, flare_request_prefill_seconds from that step to the request's first committed generated token, flare_request_decode_seconds from the first to the last committed generated token, flare_time_per_output_token_seconds as decode time divided by generated tokens after the first, and flare_request_prompt_tokens ..."
Why it is wrong: Metrics::request_completed observes decode and time-per-output-token only inside if let Some(first) = times.first_token_ns && generated_tokens > 1 (helios/src/server/metrics.rs:470-479). The HELP strings the same PR adds say so: "for completed requests with at least two generated tokens" (metrics.rs:1398-1422 render loop; the decode and time_per_output_token entries). So the doc contradicts the exposition text it is describing, and an operator reconciling flare_request_decode_seconds_count against flare_requests_completed_total sees a gap with no explanation. It also contradicts the PR's own "Evidence" section, which relies on decode count differing from completed count.
Fix: scope the sentence, e.g. "... one observation per completed generation in flare_request_queue_seconds, flare_request_prefill_seconds and flare_request_prompt_tokens, and, for generations with at least two tokens, in flare_request_decode_seconds and flare_time_per_output_token_seconds."
Settled by code reading; no test needed. The unit test request_histograms_bucket_completed_request_timings already pins the exclusion (metrics.rs:1676-1691 second call with generated_tokens 1 asserting decode count stays 1).
#5 [high] Research summary
Verdict on the pushed head (a34c4d06): should-fix items now mostly closed; one description gap and a few nits remain.
Resolved by the two new commits (verified in the code):
- The decode/time-per-output-token eligibility is now stated (
docs/api.md:312-314, matchinghelios/src/server/metrics.rs:470-479and the HELP strings atmetrics.rs:1406-1418). - The naming rule now carries its exception (
docs/api.md:290: "except the standardprocess_*series described below"), so the sixprocess_*series atdocs/api.md:318-321no longer falsify it. - The e2e sentence now ends at delivery with the drain caveat (
docs/api.md:303-306), and the code was actually moved to match: one observation beforeyield Delivery::Complete(helios/src/server/http.rs:598-606), guarded by!count && !encoder.tool_limit_reached; the old post-hoc observations in the SSEfilter_mapand the non-streaming arm are gone (http.rs:621,http.rs:635-645).flare_request_queue_secondsis now documented as possibly starting at a vision step (docs/api.md:309-311), which matches the stamp before theGraphKind::Visionsplit (helios/src/server/runtime.rs:2189-2203vs:2208).
Should fix (one):
- The PR description is stale on exactly the point the follow-up commit added. "What changed → HTTP" still says
flare_request_e2e_seconds"is observed when delivery completes a successful response, except for/v1/messages/count_tokens", but the code also excludes tool-limit cancellations (helios/src/server/http.rs:598-600), and the new test pins it (helios/src/server/runtime/phase_tests.rs:4604-4613). A reader comparing the description withflare_request_e2e_seconds_countagainstflare_requests_completed_totalwill look for a gap the description says cannot exist. Fix: add the tool-limit exclusion to that bullet, asdocs/api.md:303-306now does implicitly via "successful generation". This is the before/after completeness rule (AGENTS.md:88-94,docs/design-review.md:143-145).
Nits:
docs/api.md:303"The HTTP histograms observe delivery" uses the implementation verb as the lead-in and then switches subject to the runtime group at:309; naming the two groups (HTTP-level response timing versus runtime per-request timing) would read better, though the paragraphs now do it well enough.docs/api.md:304-306is technically exact but delicate: because the observation now runs in the same poll that yields the terminalDelivery::Completeitem, a client that reads every data frame and disconnects before requesting the next item records nothing. "which requires the client to drain the body" covers it; a half-clause naming the abandoned-stream case would remove the doubt.- The two new commit subjects ("Hoist completion values and tighten stat parsing", "Exclude cancelled responses and reuse host helpers") are change-log shorthand that only reads against the diff;
docs/design-review.md:139-145requires the four-part scheme in the commit body, which the history view does not expose.
Open, not findings (cannot be settled from what I can read):
- "CI covers the first two" in the Evidence section still refers to the Windows build and the full helios suite, but the head commit carries no checks; naming the job or dropping the sentence would make it verifiable (
AGENTS.md:108-109). - The Evidence paragraph still leaves the reader to determine whether the measured tree equals the branch head (it is
5ffe4d54plus "this commit", and there are now three commits).
The rest of the prose holds up: the description still answers why / what / claimed result / evidence in order, keeps "Observability only" with the no-performance-claim and cancelled/failed-exclusion caveats, and the new comment at helios/src/server/http.rs:598-599 and the process module doc (helios/src/server/metrics/process.rs:1-6) state invariants rather than chronology. Earlier scratchpad entries describe the superseded state of the three docs findings; this report supersedes them.
#6 [high] Report of 2026-11-27, head a34c4d06 — verdict and findings after the push
Prose review — PR #548, head a34c4d06 (three commits: ebecef13, d64c3ea3, a34c4d06), base main, draft, 10 files +548/−25.
Rules applied: AGENTS.md:43-70 and :72-140 (prose review, four-part description), :108-112 (evidence must not stand in for contract), docs/design-review.md:137-152 (principle 16), .agents/skills/repo-prose/SKILL.md:13-46, 48-59.
Superseded findings (verified resolved in the code at a34c4d06)
- Decode/time-per-output-token eligibility is now stated — docs/api.md:312-314 matches helios/src/server/metrics.rs:470-479 (
if let Some(first) = times.first_token_ns && generated_tokens > 1) and the HELP strings at metrics.rs:1406-1418. - Naming rule now carries its exception — docs/api.md:290 "except the standard
process_*series described below"; those six series documented at docs/api.md:318-321 and emitted at helios/src/server/metrics/process.rs:79-125. - e2e end point and stream caveat — docs/api.md:303-306 ("for a stream it is observed when delivery completes, which requires the client to drain the body"), and the code was moved to match: single observation before
yield Delivery::Completeat helios/src/server/http.rs:598-606, guarded by!count && !encoder.tool_limit_reached; old post-hoc arms removed (http.rs:621Delivery::Complete(_) => None, and http.rs:635-645 no longer observes). - Vision work inside queue — docs/api.md:309-311 says the first model step "can be a vision step"; stamp is before the GraphKind::Vision split (helios/src/server/runtime.rs:2189-2203 vs :2208). Code unchanged, doc now accurate.
- "cumulative since server start" added — docs/api.md:297-298.
Should fix (1)
- PR description, "What changed → HTTP" bullet: still says
flare_request_e2e_seconds"is observed when delivery completes a successful response, except for/v1/messages/count_tokens". The code also excludes tool-limit cancellations (helios/src/server/http.rs:598-600, comment at :598-599: "a tool-limit cancellation reaches this point but the runtime counts it as cancelled, so it is excluded"), pinned by helios/src/server/runtime/phase_tests.rs:4604-4613 (assertsflare_request_e2e_seconds_count 0on the parallel-tool-limit path). Requirement: before/after must be explicit and complete (AGENTS.md:88-94; docs/design-review.md:143-145). Fix: add the tool-limit exclusion to that bullet.
Nits (3)
- docs/api.md:303 "The HTTP histograms observe delivery" — implementation verb as lead-in; sentence then switches subject to the runtime group at :309. Naming the two groups explicitly would read better.
- docs/api.md:304-306 — exact but delicate: the observation now runs in the same poll that yields
Delivery::Complete, so a client that reads every data frame but disconnects before requesting the next item records nothing. "requires the client to drain the body" covers it; naming the abandoned-stream case would remove doubt. - Commit subjects of the two follow-ups ("Hoist completion values and tighten stat parsing", "Exclude cancelled responses and reuse host helpers") are change-log shorthand readable only against the diff; docs/design-review.md:139-145 wants the four-part scheme in the commit body (not observable in the history view).
Open, not findings
- "CI covers the first two" (Windows build, full helios suite) — the head commit carries no checks; name the job or drop the sentence (AGENTS.md:108-109).
- Evidence paragraph still leaves the reader to decide whether the measured tree equals the branch head (now three commits on top of fork commit 5ffe4d54).
Checked and sound
- Four-part order and "Observability only ... claims no performance or memory improvement ... does not report cancelled or failed requests" still present.
- New code comment helios/src/server/http.rs:598-599 and helios/src/server/metrics.rs:450-451 ("so the two cannot diverge") state invariants, not chronology; process module doc helios/src/server/metrics/process.rs:1-6 states source, degradation rule, non-Linux behaviour.
- Comment at helios/src/server/metrics/process.rs:24-25 explains the state-character guard; helios/src/server/metrics/process.rs:29-30 documents the field-3 offset.
- Test comment at helios/src/server/metrics.rs:1678-1679 ("A zero-token completion reaches no model step ...") matches RequestTimes::default() usage.
- Discord line present.
- Non-Linux path writes nothing (helios/src/server/metrics/process.rs:8-14); JSON branch still never renders histograms (helios/src/server.rs:645-659 vs text at :660, :671, :709).
#8 [high] Should fix (still open at a34c4d06): PR description e2e bullet omits the tool-limit exclusion the code and docs encode
PR #548 head a34c4d06 (three commits: ebecef13, d64c3ea3, a34c4d06), draft, 10 files +548/−25, no reviews, no checks on the head.
Should fix — description, "What changed → HTTP", first bullet. It reads: "flare_request_e2e_seconds is observed when delivery completes a successful response, except for /v1/messages/count_tokens." At head the observation is guarded by !count && !encoder.tool_limit_reached:
helios/src/server/http.rs:598-600, comment at :598-599 "a tool-limit cancellation reaches this point but the runtime counts it as cancelled, so it is excluded", thenif !count && !encoder.tool_limit_reached { state.model.metrics().request_e2e.observe(...) }.- Pinned by
helios/src/server/runtime/phase_tests.rs:4604-4613indisabled_parallel_calls_complete_http_and_stop_decoding: "A tool-limit cancellation completes delivery but is not a successful generation, so it records no end-to-end observation", asserting\nflare_request_e2e_seconds_count 0\n. - The runtime side confirms the exclusion is real: tool-limit paths bump
cancelled(helios/src/server/runtime.rs:1317,:1338,:1360,:1407) and never callrequest_completed. docs/api.md:303-306covers it only implicitly ("counts each successful generation … when delivery completes").
Why it matters. AGENTS.md:88-94/docs/design-review.md:143-145 require the before/after to be explicit and complete, and AGENTS.md:134-137 forbids publishing a description whose material limitations must be guessed. An operator comparing flare_request_e2e_seconds_count with flare_requests_completed_total will look for a gap in precisely the case (a tool-call response that ends in cancellation) that the bullet says cannot exist. The tool-limit path is exactly what the follow-up commit d64c3ea3 added, so the bullet is stale relative to the code it describes.
Fix (description only): "…except /v1/messages/count_tokens and responses the runtime counts as cancelled, such as a parallel tool-limit stop", matching docs/api.md:303-306 and the comment at http.rs:598-599.
#12 [high] Report of 2026-11-27, run (a34c4d06, no new commits) — headline verdict and full finding list
Prose review — PR #548, head a34c4d06 (three commits ebecef13, d64c3ea3, a34c4d06), base main, draft, 10 files +548/−25, no reviews, no CI checks on the head. No new commits since the previous round (confirmed: search_history on pr/548 still lists a34c4d06 newest, and the PR body is byte-identical to the one reviewed in entries #6/#7).
Rules applied (all read this round): AGENTS.md:43-70 (required prose review; the skill path referenced there did not resolve via list_files patterns for .agents, so I read .agents/skills/repo-prose/SKILL.md directly — 88 lines), AGENTS.md:72-140 (four-part description: why, what exactly changed, claimed result, evidence; before/after explicit :88-94; evidence connected to claims :103-112; references resolved :122-128; must not require guessing limitations :134-137), docs/design-review.md:125-152 (principle 16: same scheme for commit bodies and PR descriptions, explicit before/after, disclose material limitations, no unexplained references), docs/design-review.md:153-160 (principle 17: Discord line).
Verdict: should-fix issues only
Blocking: none. The description answers why / what changed / claimed result / evidence in order, and carries the required caveats (observability only, no performance or memory claim, cancelled and failed requests excluded from the request histograms, what was not run). Discord line present (Discord: oystersmiles).
Should fix (1) — entry #8: the "What changed → HTTP" bullet still says flare_request_e2e_seconds is observed for every successful response "except for /v1/messages/count_tokens". The code also excludes tool-limit cancellations (helios/src/server/http.rs:598-600), pinned by helios/src/server/runtime/phase_tests.rs:4604-4613. AGENTS.md:88-94, :134-137; docs/design-review.md:143-145. Description-only fix.
Nits (5, entries #9 and #10 plus #11):
docs/api.md:303leads with the implementation verb ("observe delivery") before the paragraph switches to the runtime group at:309.docs/api.md:304-306is exact but "requires the client to drain the body" leaves the abandoned-stream case (client reads every frame, never requests the terminal item) unnamed.- Description, "Claimed result": "nothing about serving changes" can be read as "no cost", though each submitted step adds a clock read (
runtime.rs:2189-2203) and each committed token two stores (:1774-1775). - Description, "Evidence": "this commit was cherry-picked onto it", with three commits now on the branch, leaves the measured tree unidentified (
AGENTS.md:122-128). - Entry #10:
docs/api.md:312-313does not say a preempted request keeps its stamps, so the parked interval sits insideflare_request_decode_secondsandflare_time_per_output_token_seconds(runtime.rs:2094-2121park keepsIncoming;:1774get_or_insert;:1775overwrite;scheduler.rs:1436-1462preemption). - Entry #11: the scrape reports 6 first-response observations against 5 runtime observations for one window with no explanation; the extra can only be a stream that delivered text and was cancelled (
latency.rs:116-127vsmetrics.rs:452-480,runtime.rs:1317/:1338/:1360/:1407).
Open, not findings: "CI covers the first two" is an expectation, not a check — .github/workflows/native-serving.yml:56-68 does run the full helios suite on Linux and Windows for PRs, so the sentence names a real job but not by name (AGENTS.md:108-109). The commit-body four-part scheme (docs/design-review.md:139-145) is not visible from the history view; only git show can settle it.
Verified resolved earlier and re-confirmed at head: decode/time-per-output-token eligibility stated (docs/api.md:312-314 vs metrics.rs:470-479 and HELP strings :1406-1418); process_* naming exception (docs/api.md:290); e2e end point and drain caveat (docs/api.md:303-306 vs http.rs:598-606); vision-step note (docs/api.md:309-311 vs runtime.rs:2189-2203/:2208); "accumulate since server start" (docs/api.md:297-298).
Checked and sound: every "What changed" statement re-verified (completed.fetch_add only at metrics.rs:459; the two request_completed call sites; non-Linux process.rs:8-14 writes nothing; JSON branch server.rs:645-659 never renders histograms; open_descriptors/page_size/raise_open_file_limit reused from runtime_core/eos). All new comments state invariants, not chronology (metrics.rs:450-451, http.rs:598-599, metrics/process.rs:1-6, :24-25, :29-30, runtime.rs:189-190, :2189-2190, test comments at metrics.rs:1678-1679 and phase_tests.rs:4604-4605).
#13 [high] Should fix: docs/api.md:315-316 "Cancelled and failed requests enter only …" is unscoped and falsified by the HTTP TTFR histogram
PR #548 head a34c4d06, docs/api.md:315-316 (added by this PR), end of the runtime-histogram paragraph:
"…flare_request_prompt_tokens counts prompt tokens including tokens reused from the prefix cache. Cancelled and failed requests enter only flare_requests_cancelled_total and flare_requests_failed_total."
Problem. Read literally, the sentence says a cancelled or failed request contributes to no metric except the two outcome counters. That is false, and the paragraph immediately above in the same document falsifies it: flare_time_to_first_response_seconds is observed as soon as the client reads answer or reasoning text (helios/src/server/latency.rs:116-127, called from the SSE filter at helios/src/server/http.rs:614), independently of how the request ends. A stream that delivers text and is then cancelled by the parallel-tool-limit path (helios/src/server/http.rs:563-567, helios/src/server/runtime.rs:1317/:1338/:1360/:1407) records a TTFR observation and no runtime observation. helios/src/server/runtime/phase_tests.rs:4407-4434 pins the analogous failed case: assert_eq!(snapshot.samples, u64::from(emit_text && poll_body)) after incoming[0].fail(...), so a failed request that emitted text does record an observation. flare_http_requests_total also counts every cancelled or failed request (helios/src/server/http.rs:142).
Why it matters. The paragraph's opening scopes the group ("The runtime histograms observe completed generations"), so a charitable reading is correct. But the final sentence drops the scope and speaks about where those requests "enter", which reads as a statement about /metrics. Someone writing the alert or query that sentences like this exist to enable (TTFR against completion counts) will conclude the two can never disagree. Note the PR description's version already carries the scope word: "Cancelled and failed requests stay out of these histograms and appear only in …".
Fix. One word: "Cancelled and failed requests enter only flare_requests_cancelled_total and flare_requests_failed_total among the runtime series" — or restore the description's phrasing, "stay out of these histograms and appear only in …".
Severity: should fix (one clause; the defect is precision, not a wrong number). Default-boundary case: an operator reconciling TTFR count with completed count will hit it.
#15 [high] Final tally at a34c4d06 — supersedes counts in #12, corrects #11
Final tally for the written report; supersedes the counts in entry #12 and takes precedence over #11 where they differ.
Head reviewed: a34c4d06 (commits ebecef13, d64c3ea3, a34c4d06), base main, draft, 10 files +548/−25, no reviews, no CI checks on the head. No new commits since the previous round; the description is unchanged.
Blocking: none.
Should fix: 2
- Description, "What changed → HTTP", first bullet — omits the tool-limit exclusion that
helios/src/server/http.rs:598-600applies andhelios/src/server/runtime/phase_tests.rs:4604-4613pins (entry #8). docs/api.md:315-316— "Cancelled and failed requests enter onlyflare_requests_cancelled_totalandflare_requests_failed_total" is unscoped and false as written:flare_http_requests_totalcounts them (helios/src/server/http.rs:142), and a request that offered text before being cancelled or failing also recordsflare_time_to_first_response_seconds(helios/src/server/latency.rs:116-127,helios/src/server/http.rs:614, pinned for the failed case athelios/src/server/runtime/phase_tests.rs:4407-4434). One-word fix: "among the runtime series", or reuse the description's phrasing (entry #13).
Nits: 6
docs/api.md:303lead-in uses the implementation verb and then switches subject at:309(entry #9.1).docs/api.md:304-306does not name the abandoned-stream case (entry #9.2).- Description "Claimed result": "nothing about serving changes" can be read as no cost (entry #9.3).
- Description "Evidence": the measured tree is identified only as fork commit
5ffe4d54plus "this commit" (entry #9.4). docs/api.md:312-313does not say a preempted request's stamps span the parked interval (entry #10).- Description "Evidence": 6 first-response observations against 5 runtime observations for one window, unexplained (entry #14 corrects entry #11's explanation; either an in-flight request or a cancelled stream accounts for it).
Open, not findings: "CI covers the first two" names no job, though .github/workflows/native-serving.yml:56-68 does run the full helios suite on Linux and Windows for every PR; the commit-body four-part scheme cannot be checked from the history view.
Resolved earlier, re-confirmed at head: docs eligibility split (docs/api.md:312-314 vs metrics.rs:470-479), process_* naming exception (:290), e2e end point and drain caveat (:303-306 vs http.rs:598-606), vision-step note (:309-311 vs runtime.rs:2189-2203/:2208), "accumulate since server start" (:297-298).
Nothing else found: no prose defect in the changed code comments, the new module documentation, or the test comments; the four-part description order and the "Observability only" framing hold; the Discord line is present.
#16 [high] Research summary
Prose review of PR #548 at head a34c4d06 (three commits, draft, no new commits or description edits since the previous round). Verdict: should-fix issues only — no blocking prose finding. The description still answers why / what changed / claimed result / evidence in order, keeps the "Observability only", no-performance-claim, cancelled/failed-exclusion and unrun-checks caveats, and carries its Discord line.
Two should-fix findings: (1) the "What changed → HTTP" bullet still says flare_request_e2e_seconds is observed for every successful response "except for /v1/messages/count_tokens", but the code also excludes tool-limit cancellations (helios/src/server/http.rs:598-600, pinned by helios/src/server/runtime/phase_tests.rs:4604-4613); (2) docs/api.md:315-316 — "Cancelled and failed requests enter only flare_requests_cancelled_total and flare_requests_failed_total" is unscoped and false as written, since flare_http_requests_total counts them and a request that offered text before being cancelled or failing also records flare_time_to_first_response_seconds (latency.rs:116-127, http.rs:614, pinned at phase_tests.rs:4407-4434); the fix is one word ("among the runtime series").
Six nits: the docs/api.md:303 implementation-verb lead-in; the unnamed abandoned-stream case at :304-306; the missing preemption caveat for decode / per-output-token spans at :312-313 (park keeps Incoming, runtime.rs:2094-2121, :1774-1775); the "nothing about serving changes" wording; the unidentified measured tree in Evidence; and the unexplained 6-vs-5 observation gap in the scrape paragraph. Two open questions (unnamed CI job, commit bodies not visible) are recorded as questions, not findings.
All changed files were read in context and each earlier docs finding was re-verified as resolved at head. Full findings, citations and rewrites are in scratchpad entries #8–#15, with #15 as the final tally (it supersedes the counts in #12 and corrects the explanation in #11).
#17 [high] Rule citations (file:line) mapped to each finding for the final report
Rule citations to attach to each finding in the final report (all read this round; the report should cite these rather than re-derive them).
Governing text
AGENTS.md:43-50— every prose artefact, including PR descriptions, must be reviewed against.agents/skills/repo-prose/SKILL.md.AGENTS.md:52-60— a document specifies or instructs; designed-but-unimplemented behaviour must be marked; unresolved defects and unrun checks go todocs/TODO.txt, not design documents.AGENTS.md:62-65— review the final text (including edited PR descriptions) before publishing.AGENTS.md:72-80— the four questions in order (why, what exactly changed, claimed benefit, evidence); a description that makes the reviewer reconstruct them is incomplete.AGENTS.md:82-87(why: workflow, concrete defect, why the approach),:88-94(what: explicit before/after, no mixed tense, material numerical/compatibility/lifetime changes),:95-102(claimed result: expectation vs measurement, scope and material limitations attached),:103-112(evidence: connect each claim to checks — behaviour tested, baseline, configuration, result, limits; keep skipped checks and limitations visible; never invent evidence).AGENTS.md:114-128— hierarchy of detail; resolve references where they are used; durable identifiers.AGENTS.md:129-132— remove process assurances that add no technical evidence.AGENTS.md:134-137— do not publish a description whose material limitations must be guessed; repair, do not pad..agents/skills/repo-prose/SKILL.md:13-46(state behavior and invariants directly, no chronology, no false definite references, use durable identifiers on first reference),:30-37(distinguish implementation from qualification; evidence as conditions/measurement/result/conclusion),:38-39(comments explain invariants, not history),:40-43(commits and PRs state problem, behavior, reason, compatibility, validation),:48-59(review before publishing; quote, identify the missing context, supply a rewrite, never invent details).docs/design-review.md:137-152— principle 16: same four-part scheme for commit bodies and PR descriptions, explicit before/after, expectations distinguished from measurements, evidence connected to claims, material limitations disclosed, unexplained references and unsupported claims rejected.docs/design-review.md:153-160— principle 17: a Discord line after the technical explanation (present:Discord: oystersmiles).
Mapping used in the report
- Should fix 1 (description e2e bullet stale re tool-limit exclusion):
AGENTS.md:88-94,:134-137;docs/design-review.md:143-145. - Should fix 2 (
docs/api.md:315-316"enter only" unscoped):AGENTS.md:88-94(before/after and exclusions complete) and the prose skill's rule that a statement must hold as written (SKILL.md:13-14); it also contradicts the same document atdocs/api.md:303-307. - Nit 1 (
docs/api.md:303lead-in):SKILL.md:22-25(explain the concept before the identifier, do not make implementation shorthand the vocabulary) and:44-46(state the fact, not how to read it). - Nit 2 (abandoned stream):
AGENTS.md:103-112(keep measurement limitations visible),SKILL.md:35-37. - Nit 3 ("nothing about serving changes"):
AGENTS.md:95-102(distinguish expectation from measurement; attach scope and limitations). - Nit 4 (measured tree unidentified):
AGENTS.md:122-128,SKILL.md:20-21(durable identifier on first reference). - Nit 5 (preemption inside decode span):
AGENTS.md:103-112,SKILL.md:35-37. - Nit 6 (6 vs 5 observation gap):
AGENTS.md:106-108("explain differences between runs when passed and skipped cases would otherwise appear contradictory"). - Open question (CI job):
AGENTS.md:108-109(test labels cannot stand in for the tested contract; name the check),.github/workflows/native-serving.yml:56-68shows the job exists. - Open question (commit bodies):
docs/design-review.md:139-145applies the scheme to commit bodies; not observable from the history view.
Clean on every rule above: the changed code comments (metrics.rs:450-451, http.rs:598-599, metrics/process.rs:1-6, :20-30, runtime.rs:189-190, :2189-2190) and test comments (metrics.rs:1678-1679, phase_tests.rs:4604-4605, :4486-4487) state invariants and reasons, with no chronology, no lifecycle labels, and no requirement on conversation history; no new prose adds defect reports or run journals to the repository.
#19 [high] Research summary
Verdict: nits only at head 055663a — both earlier should-fix items are now resolved.
The description was rewritten (new title, process metrics removed) and docs/api.md moved and re-scoped its histogram prose. Re-checked against the code at head:
- Earlier should-fix 1 (description e2e bullet missing the tool-limit exclusion) — fixed: the bullet now reads "excludes
/v1/messages/count_tokensand responses the runtime records as cancelled, such as a parallel tool-limit stop", matchinghelios/src/server/http.rs:598-600anddocs/api.md:311-314. - Earlier should-fix 2 (
docs/api.md"Cancelled and failed requests enter only …" unscoped) — fixed: replaced bydocs/api.md:361-364, "Cancelled and failed requests contribute no observation to the runtime histograms here. Apart from counters, the only series that can observe them isflare_time_to_first_response_seconds, and only when text was offered before the failure", which is correct againsthelios/src/server/latency.rs:116-127and the tool-limit guard. - Nits resolved this round: the abandoned-stream case is now named (
docs/api.md:314-318); the preemption-inside-inter-token-interval fact is stated (:344-346); "nothing about serving changes" is replaced by an explicit no-claim-no-measurement sentence plus a Cost section; the 6-vs-5 scrape-observation gap is gone with the old Evidence text; theprocess_*naming contradiction is gone because the process collector was deleted (helios/src/server/metrics/process.rs,helios/src/server.rs:706). - Remaining nits:
docs/api.md:311still opens with the implementation verb ("The HTTP histograms observe delivery"); the decode span for a preempted request still does not say it includes the parked interval (:340-341vshelios/src/server/runtime.rs:2096-2113, andmetrics.rs:593-601); and the new Cost line "seventeen histograms, 394 exposition lines, and 326 bucket atomic loads" (metrics.rs:1548-1642,latency.rs:101-108, plus the host histograms atmetrics.rs:1178-1214) is not reconcilable from the text — the exposition carries about 21 histograms, so a reader cannot tell what "seventeen" counts or whether the line and bucket counts include the host prefix-store histograms.
The four-part structure (AGENTS.md:72-112, docs/design-review.md:137-152), the observability-only framing, the unrun-checks caveat, the vLLM mapping table (docs/api.md:475-520), and the Discord line (AGENTS.md:144-152) all hold; changed code comments state invariants, not history. No blocking prose finding; nothing further was found in the remaining changed files. The full earlier findings and rule citations are in scratchpad notes #16–#18.
#20 [high] Report of 2026-11-28, run at head 055663a — final prose verdict: nits only
Prose review — PR #548, "Add per-request histograms and vLLM-parity request metrics"
Head reviewed: 055663a (new commits since last round: 54e06b30, 10c0b937, 01f1e92b, 15018689, 49373bc5, 055663a7). Base main. 9 files, +1016/−51. No reviews, no CI checks. Lens: prose only.
Rules applied: AGENTS.md:43-50 (prose skill governs everything), :72-80 (four questions in order), :82-87 (why), :88-94 (what, explicit before/after), :95-102 (claimed result, expectation vs measurement), :103-112 (evidence), :114-128 (hierarchy, resolved references, durable identifiers), :129-132 (no process assurances), :134-137 (do not publish what must be guessed), :144-152 (Discord line); docs/design-review.md:137-152 (principle 16) and :153-160 (principle 17); .agents/skills/repo-prose/SKILL.md:13-46, :48-59.
Verdict: nits only. No blocking, no should-fix.
Both earlier should-fix items are RESOLVED at this head
-
Description, "What changed → HTTP", e2e bullet (was should-fix in #13/#15/#18). Now reads: "…it excludes
/v1/messages/count_tokensand responses the runtime records as cancelled, such as a parallel tool-limit stop." Matcheshelios/src/server/http.rs:598-600(guardif !count && !encoder.tool_limit_reached, comment at :598-599) anddocs/api.md:311-314. Tool-limit path pinned byhelios/src/server/runtime/phase_tests.rs:4604-4613and the new assertion comment at:4533-4534. -
docs/api.md"Cancelled and failed requests enter only …" (was should-fix in #13/#15/#18). The unscoped sentence is gone. Replaced bydocs/api.md:361-364: "Cancelled and failed requests contribute no observation to the runtime histograms here. Apart from counters, the only series that can observe them isflare_time_to_first_response_seconds, and only when text was offered before the failure." Verified againsthelios/src/server/latency.rs:116-127(FirstResponse::outputobserves the histogram regardless of later outcome),helios/src/server/http.rs:142(flare_http_requests_totalcounts every request), andphase_tests.rs:4407-4434/:4533. The "apart from counters" clause correctly capturesflare_http_requests_total.
Nits resolved this round (no action)
- Abandoned stream named:
docs/api.md:314-318"a stream the client abandons before draining adds none". - Preemption inside the interval stated:
docs/api.md:344-346"the interval that spans a preemption includes the wait for readmission". - "Nothing about serving changes" replaced by the no-claim paragraph ("No performance or memory improvement is claimed, and none of the added cost below was measured") plus a new Cost section.
- 6-vs-5 scrape observation gap gone with the old Evidence text (entry #11/#14 obsolete).
process_*naming contradiction gone:helios/src/server/metrics/process.rsdeleted, call removed athelios/src/server.rs:706,open_descriptorsnarrowed to private athelios/src/runtime_core/protection.rs:291,docs/api.md:288-290no longer names an exception; description states "This change exports noprocess_*series".- Vision-step note kept and now paired with an eligibility clause (
docs/api.md:330-331).
Remaining nits (3)
N1. docs/api.md:311 — "The HTTP histograms observe delivery." Implementation verb as the lead-in; the paragraph then switches to concept at :328 ("The runtime histograms observe requests whose model generation completes successfully"). Fix: name the two groups by what they measure (HTTP response timing vs runtime per-request timing). SKILL.md:22-25, :44-46.
N2. docs/api.md:340-341 — "flare_request_decode_seconds and flare_time_per_output_token_seconds are recorded only for requests with at least two generated tokens" still does not say the span includes a preemption stall. The inter-token paragraph at :344-346 says it for inter-token latency only. Code: Worker::park moves the whole Incoming into self.parked untouched (helios/src/server/runtime.rs:2115-2156, preemption count at :2108-2111), readmission reuses it, first_token_ns is get_or_insert and last_token_ns overwritten per committing step (runtime.rs:1801-1805), and request_completed computes last − first (helios/src/server/metrics.rs:593-601). Fix: one clause ("a preemption stall is included"), matching :344-346. AGENTS.md:103-112; SKILL.md:35-37.
N3. Description, Cost, "Per /metrics text scrape" — "seventeen histograms, 394 exposition lines, and 326 bucket atomic loads" is not reconcilable from the text. The exposition carries the request histograms at helios/src/server/metrics.rs:1548-1642 (6 REQUEST_SECONDS + 2 TOKEN_SECONDS + 5 TOKEN_COUNTS + request_choices + request_preemptions + model_step_tokens), flare_time_to_first_response_seconds (helios/src/server/latency.rs:101-108), and the three host prefix-store histograms rendered separately at metrics.rs:1178-1214; the description never says whether "seventeen" includes the host histograms, so a reader cannot check the line and bucket counts either. Fix: say what the seventeen are (the request series this PR adds, or all histograms in the exposition). AGENTS.md:103-112, :122-128; SKILL.md:20-21.
Clean (checked, no finding)
- Four-part order, "Why" framing on #536 (queue delay, prefill, decode rate, prompt size, preemptions, rejections unobservable from one scrape; the runtime already counts completions in one place), explicit before/after per component, "Claimed result" carrying no performance claim, Cost section labelled "Read from the code; no benchmark was run.", Evidence naming the failing test and why (
FLARE_TEST_TEMPLATE_DIR), and the not-run list (GPU workload, live scrape, exported core, Windows build, scrape timing).AGENTS.md:72-112;docs/design-review.md:137-152. - vLLM mapping table
docs/api.md:475-520: states up front that Flare exports novllm:names, that Flare's histograms cover successful completions where vLLM's also observe failed and cancelled, and marks each gap "Not provided" with the reason. Matchesdocs/api.md:361-364. - Changed code comments state invariants, not history:
metrics.rs:254-256(histogram sums on the integer grid),:332-334(RequestRecordmoves through preemption),:348-351(one interval per committing step),:543-544(the counter and histograms cannot diverge),:605-607(choice ordering),:242-243and:249-250(bucket provenance),runtime.rs:1801-1802,:1721-1730(which graph kinds count as text steps),scheduler.rs:113-115doc comment,metrics.rs:86-87(pending = first admission only). No chronology, no lifecycle labels, no defect reports or run journals in the repo.AGENTS.md:52-60;SKILL.md:26-29,:38-39. - Discord line present (description ends
Discord: oystersmiles).AGENTS.md:144-152;docs/design-review.md:153-160. - The overlap paragraph with #549 (adjacent fixture rows,
kv_cache_usage_percrow) is merge logistics placed last.AGENTS.md:120-121.
Open questions (not findings)
- Evidence: "
cargo check --features serverclean;cargo test …814 passed, 1 failed" but CI reports no checks on 055663a — the description does not say CI ran, it says these were run on "Linux x86_64", which is consistent; naming the CI job is optional.AGENTS.md:108-109. - The
TODO.txtdestination for unrun measurements (AGENTS.md:57-58) is not used; the description carries them instead, whichAGENTS.md:105-108permits for PR text.
#22 [high] Report of 2026-11-28, run at head 6624592 — prose verdict: nits only
Prose review — PR #548, head 6624592
Head 6624592 (one new commit since 055663a: "Reuse GraphKind::samples for model-step metrics and stamp scheduled time after packing", 2026-11-27 Wynn Drahorad). Description unchanged from the previous round. Base main, 9 files, +1008/−51, no reviews, no CI checks.
Verdict: nits only. No blocking, no should-fix prose finding.
The new commit is the only prose-bearing change this round: its subject states the resulting behaviour (helios/src/execution/manifest.rs:90-101 adds GraphKind::samples(); runtime.rs:1721-1723 now calls it instead of the inline matches!), and the new comment at runtime.rs:2259-2261 states the invariant and the failure rule ("Stamp after packing so the instant marks a step whose inputs were accepted, including requests driven through reserve_and_pack directly. A failed pack leaves first_scheduled_ns unset."), which matches reserve_and_pack (runtime.rs:2212-2276: scheduler.commit, packing, then the stamp loop) and the existing failure test phase_tests.rs:1352 (reserve_and_pack(...).is_err()). No chronology, no run journal (AGENTS.md:52-60, SKILL.md:38-39).
The document sets (docs/api.md, description) also still hold against the moved stamp: docs/api.md:329-331 says queue time spans scheduler arrival to "the first model step that includes the request, which can be a vision step; it is recorded only if the request reached such a step", and the stamp is now set only after a step's inputs packed successfully, so a request whose pack fails records no queue observation — consistent with both the doc sentence and the new comment. docs/api.md:383-386 (flare_model_step_tokens) is unaffected by routing model_step through GraphKind::samples, because the set is identical to the previous inline list (helios/src/execution/manifest.rs:92-99 vs the removed matches! in the diff).
Remaining nits (3, unchanged from #20/#21)
- Nit —
docs/api.md:311: "The HTTP histograms observe delivery." Implementation verb as section lead-in; the next sentence and the parallel runtime paragraph (:328) talk about the measured quantity. Fix: name the measurement ("The HTTP histograms measure response delivery time").SKILL.md:22-25. - Nit —
docs/api.md:340-341:flare_request_decode_secondsandflare_time_per_output_token_seconds"are recorded only for requests with at least two generated tokens" but never say a preemption stall is included in the span, while:344-346says so for inter-token latency. Code: preemption keepsfirst_token_nsacross the park (runtime.rs:2096-2113,:2155) andmetrics.rs:593-601computeslast − first. Fix: one clause.AGENTS.md:103-112. - Nit — description, "Result": "17 histograms (394 lines) per text scrape" does not say the four host prefix-store histograms are excluded (
metrics.rs:1178-1214,:1000-1020region), so a reader counting# TYPE … histogramin a scrape finds ~21. Fix: name the population.AGENTS.md:103-112,:122-128.
Clean
- Four questions in order, expectation vs measurement separated, Cost labelled "Read from the code", Evidence keeping the one failing test and the not-run list (multi-GPU, Windows) visible; Discord line last (
AGENTS.md:72-112,:144-152;docs/design-review.md:137-160). - The e2e bullet's tool-limit exclusion matches
http.rs:604-612;docs/api.md:361-364remains correctly scoped withlatency.rs:116-127. - No injected instructions found in the description, docs, or comments.
Open questions (not findings)
- Evidence does not name the CI job behind "814 passed; 1 failed" (
AGENTS.md:108-109); no checks are reported on the head. - Unrun measurements live in the description rather than
docs/TODO.txt(AGENTS.md:57-58), whichAGENTS.md:105-108permits for PR text. - Commit bodies are not visible through the history view;
docs/design-review.md:139-145also applies the four-part scheme to them.
#23 [high] Research summary
Verdict: nits only at head 6624592.
The single new commit ("Reuse GraphKind::samples for model-step metrics and stamp scheduled time after packing") introduces no prose defect: its subject names the resulting behaviour, and the new comment at helios/src/server/runtime.rs:2259-2261 states the invariant and the failure rule the code implements (reserve_and_pack at :2212-2276; failure test phase_tests.rs:1352). Routing model_step through GraphKind::samples() (helios/src/execution/manifest.rs:90-101) leaves the documented population at docs/api.md:383-386 unchanged, and moving the stamp after packing still matches docs/api.md:329-331 plus the new comment.
The description is unchanged and still answers the four mandatory questions in order, separates expectation from measurement, and keeps the one failing test and the unrun checks (multi-GPU, Windows) visible; the Discord line is last. Both earlier should-fix items remain fixed (e2e tool-limit exclusion matches http.rs:604-612; the scoped "cancelled and failed" sentence at docs/api.md:361-364 matches latency.rs:116-127).
Three nits remain, each a one-clause fix: docs/api.md:311 leads with an implementation verb; docs/api.md:340-341 does not say the decode/TPOT span includes a preemption stall the way :344-346 does for inter-token latency; and the description's "17 histograms (394 lines) per text scrape" does not say the host prefix-store histograms are excluded. Open questions (not findings): the evidence does not name the CI job behind "814 passed; 1 failed", unrun measurements sit in the description rather than docs/TODO.txt, and commit bodies are not visible through the history view. Full report is scratchpad entry #22.
#24 [high] Addendum for the 6624592 report: samples() call sites, bucket arithmetic, tally
Addendum to entry #22 (prose review of PR #548 at head 6624592).
The new commit changes no populated set
GraphKind::samples() at helios/src/execution/manifest.rs:90-101 already existed on main (verified at main: helios/src/execution/manifest.rs:89-100), so the commit only reuses it at the model-step site. Its existing callers are unchanged in meaning: helios/src/execution/transport.rs:1320 and :1335 (logprob readback), helios/src/execution/manifest.rs:944, helios/src/model/testing.rs:170, and helios/src/server/runtime.rs:2948 (validate_sampling_admissions). The set Prefill | TerminalPrefill | ScoredPrefill | Decode | Speculative | Mixed | Resume is identical to the removed inline matches! in the diff, so docs/api.md:383-386 ("every completed prefill, resume, decode, speculative, or mixed graph") still describes the observations exactly. No prose needs to change for this commit.
Nit 3 arithmetic (so the number is not in dispute, only its label)
The seventeen request histograms render at helios/src/server/metrics.rs:1548-1642 (six REQUEST_SECONDS<21>, two TOKEN_SECONDS<19>, five TOKEN_COUNTS<21>, request_choices<6>, request_preemptions<9>, model_step_tokens<21>) plus flare_time_to_first_response_seconds on REQUEST_SECONDS (helios/src/server/latency.rs:101-108). Bucket atomic loads: 6·21 + 2·19 + 5·21 + 6 + 9 + 21 + 21 = 326, matching the description's figure. Bucket constants at metrics.rs:218-253. The scrape additionally carries four host prefix-store histograms the PR does not add (metrics.rs:1178-1214 for three, plus the retirement histogram), which is why a reader counting # TYPE … histogram lines finds more than seventeen. Only the missing population label is at stake.
Description state this round
Not edited since the previous round; the Cost line still reads "17 histograms (394 lines) per text scrape" (the "(326 bucket atomic loads)" wording was dropped earlier), and the evidence still lists "814 passed; 1 failed" without naming a CI job, with no checks reported on the head.
Final tally at 6624592
- Blocking: none.
- Should fix: none (both earlier should-fix items resolved and re-verified:
helios/src/server/http.rs:604-612for the tool-limit e2e exclusion;docs/api.md:361-364withhelios/src/server/latency.rs:116-127for the scoped cancelled/failed sentence). - Nits: 3 (
docs/api.md:311implementation-verb lead-in;docs/api.md:340-341missing the preemption-stall clause that:344-346has; description Cost line naming no population for the seventeen histograms). - Open questions: CI job unnamed (
AGENTS.md:108-109); unrun measurements not indocs/TODO.txt(AGENTS.md:57-58); commit bodies unreadable from the history view (docs/design-review.md:139-145).
#26 [high] Should fix: description says "Closes #536" while the process-metrics half of #536 is neither delivered nor mentioned
Finding — should fix (prose lens), head 6624592
Where. PR description, last line before the Discord line: Closes #536. Supporting text in docs/api.md:475-515 (the "Correspondence with vLLM metrics" table).
What is wrong. Issue #536 asks for two things: request-timing histograms and the standard process collector. Its "Missing metrics" table row reads: "Process metrics | process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds | none", and its Proposal section ends "Plus the standard process_* collector metrics." At this head that half is not delivered and is not mentioned anywhere in the PR prose:
- No
process_*series exist:search_codeforprocess_cpu_seconds_total|process_resident_memory|process_open_fds|process_start_timeover the whole tree returns no matches;process_cpu|process_resident|open_fds|start_time_secondslikewise. docs/api.mdnever lists them: a search for "process" indocs/api.mdhits only unrelated prose (:4,:242,:294,:412,:457,:693-694,:784,:786,:797). The parity table's rows (docs/api.md:486-515) contain no process row and no "Not provided" row for them, while its lead-in at:477-479says the table gives "the metrics Flare does not provide".- The description's only reference to the table is "maps each metric in vLLM's production list to the Flare series that measures it or marks it as not provided", so a reader concludes #536 is fully satisfied.
The earlier head did say "This change exports no process_* series" (removed in commit 54e06b30 "Remove process metrics from the request latency change"); the current description drops the caveat but keeps the closure keyword, so the material limitation now has to be guessed.
Why it matters. AGENTS.md:95-102 (claimed result stated precisely; scope and material limitations attached), AGENTS.md:134-137 ("Do not publish it if the rationale, exact change, claimed benefit, supporting evidence, or material limitations must be guessed"), AGENTS.md:103-112 (keep material omissions visible), .agents/skills/repo-prose/SKILL.md:30-37. A closure keyword is a claim about what the change delivers; closing #536 also tells the reporter the process-metric request was handled.
Fix (description only, or one docs row). Either change the keyword to state the part delivered — e.g. "Addresses the request histograms of #536; the standard process_* collector is not provided" — or add a parity-table row process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds → "Not provided" with the reason, and say so in the description.
Overlap. The independent Autobot review (2026-11-28 05:09 UTC, "the Closes #536 keyword overstates delivery") reaches the same conclusion from the scope lens; this note records it as a description-accuracy defect.
Verified against. read_item #536 (table + Proposal), whole-tree search_code for process_* names (no matches), docs/api.md:475-515, and the PR description text at this head.
#28 [high] Report of 2026-11-28, run 1791 — Verdict: should-fix issues only
Prose review — PR #548, head 6624592 (no new commits since the last round)
Head: 6624592 ("Reuse GraphKind::samples for model-step metrics and stamp scheduled time after packing"), 9 files, +1008/−51, base main. No code, docs or description change this round; no reviews and no CI checks on the head. Lens: prose only. All nine changed files read in context; every finding re-verified at this head.
Verdict: should fix — one description-accuracy defect that earlier rounds missed, plus three carried nits and one new nit.
Should fix (new this round)
S1 — description ends Closes #536, but the process-metrics half of #536 is neither delivered nor mentioned. read_item #536: its "Missing metrics" table has a "Process metrics" row (process_cpu_seconds_total, process_resident_memory_bytes, process_open_fds, process_start_time_seconds) and its Proposal ends "Plus the standard process_* collector metrics." At this head no process_* series exist (whole-tree search_code for those names: no matches) and docs/api.md never lists them (search "process" in the file hits only :4, :242, :294, :412, :457, :693-694, :784, :786, :797; the parity table :484-515 has no process row although its lead-in :477-479 says it gives "the metrics Flare does not provide"). The description says the table "maps each metric in vLLM's production list to the Flare series that measures it or marks it as not provided", and an earlier head (before 54e06b30) said "This change exports no process_* series" — that caveat was dropped while the closure keyword stayed. Rules: AGENTS.md:95-102, :103-112, :134-137; SKILL.md:30-37. Fix: say the histograms address #536 and that the standard process_* collector is not provided, or add a "Not provided" parity row and state it. Also recorded as entry #26.
Nits
N1 (new) — docs/api.md:477-478 cites "vLLM's production metric list" with no version, commit, or link, so no row can be rechecked and the table ages silently; docs/logprobs-design.md:261-262 sets the counter-example by linking the exact vLLM files. Rules AGENTS.md:122-128, SKILL.md:20-21. Entry #27.
N2 (carried) — docs/api.md:311 "The HTTP histograms observe delivery." Implementation verb as section lead-in, unlike :328. SKILL.md:22-25, :44-46.
N3 (carried) — docs/api.md:340-341 decode and time-per-output-token say only "at least two generated tokens" and never state the preemption stall inside the span, which :344-346 does for inter-token latency. Code: helios/src/server/runtime.rs:2099-2147 parks the whole Incoming with its record untouched, helios/src/server/metrics.rs:352-362 keeps first_token_ns, and :593-601 observes last − first. AGENTS.md:103-112.
N4 (carried) — description "Result": "17 histograms (394 lines) per text scrape" names no population; the scrape also carries the host prefix-store histograms (metrics.rs:1178-1214, :1000-1020), so a reader counting # TYPE … histogram finds ~21. AGENTS.md:103-112, :122-128.
Resolved and re-confirmed at this head (no action)
e2e tool-limit exclusion matches helios/src/server/http.rs:604-612; docs/api.md:361-364 scoping matches helios/src/server/latency.rs:116-127; four-part order with unrun checks visible; Discord line last (AGENTS.md:144-152); changed code comments (metrics.rs:332-334, :348-351, :605-607; runtime.rs:2259-2261; scheduler.rs:116-117; metrics.rs:1714-1717) state invariants, not chronology (AGENTS.md:52-60).
Open questions (not findings)
CI job behind "814 passed; 1 failed" unnamed and no checks on the head (AGENTS.md:108-109); unrun measurements sit in the description rather than docs/TODO.txt (AGENTS.md:57-58); commit bodies not visible through the history view (docs/design-review.md:139-145).
What could not be checked
The live-scrape figures (24 completions, sum 3,112, e2e count 22) are not reproducible from the repository; they are internally consistent with the render sites at metrics.rs:1548-1642 and latency.rs:101-108, which is as far as repository evidence goes.
#29 [high] Research summary
Verdict at head 6624592: should fix — one description-accuracy defect, four nits. No new commits or description edits this round; all nine changed files were re-read in context and each finding re-verified.
Should fix (new this round): the description ends Closes #536, but #536 asked for the standard process_* collector as well as the histograms. No process_* series exist anywhere in the tree, docs/api.md never marks them "Not provided" in its parity table (:484-515, whose lead-in :477-479 promises exactly that), and the caveat that an earlier head carried ("This change exports no process_* series") was dropped in commit 54e06b30 while the closure keyword stayed — so a material limitation must now be guessed (AGENTS.md:95-102, :134-137). Fix is description-only (or one "Not provided" table row).
Nits: (1) new — docs/api.md:477-478 calls the parity source "vLLM's production metric list" with no version or link, unlike docs/logprobs-design.md:261-262 (not opened), so no row can be rechecked (AGENTS.md:122-128); (2) docs/api.md:311 opens with the implementation verb "observe delivery" instead of the measured quantity; (3) docs/api.md:340-341 never says a preemption stall sits inside the decode and time-per-output-token spans, though the code does (runtime.rs:2099-2147, metrics.rs:352-362, :593-601) and :344-346 says it for inter-token latency; (4) the description's "17 histograms (394 lines) per text scrape" names no population, so a scrape count finds ~21 (metrics.rs:1000-1020, :1178-1214).
Both earlier should-fix items (e2e tool-limit exclusion; the scoped cancelled/failed sentence), the four-part structure, the unrun-check disclosure and the Discord line all still hold. Full report is scratchpad entry #28, with the two new findings in #26 and #27.
#30 [high] Consolidated carried nits with citations at head 6624592, plus the supersede chain and tally change
Carried nits, verified at head 6624592 (quotes + citations for the final report)
These three were first raised in entries #20/#21/#22 and re-verified this round; nothing about them changed because the head has no new commits.
N2 — docs/api.md:311, implementation verb as section lead-in
Exact text: "The HTTP histograms observe delivery. flare_request_e2e_seconds observes each successful generation response once, from admission to the completed response; …" (docs/api.md:311-312).
Contrast, same section: docs/api.md:328 "The runtime histograms observe requests whose model generation completes successfully." and :348 "The runtime token histograms count per completed request."
Rule: .agents/skills/repo-prose/SKILL.md:22-25 (explain the concept before the identifier; implementation shorthand must not become the vocabulary), :44-46 (state the substantive fact directly).
Fix: "The HTTP histograms measure response timing at the HTTP boundary" or name the two groups.
Severity: nit.
N3 — docs/api.md:340-341, decode and TPOT spans omit the preemption stall
Exact text: "flare_request_decode_seconds and flare_time_per_output_token_seconds are recorded only for requests with at least two generated tokens." (:340-341).
Contrast: docs/api.md:344-346 says, for inter-token latency, "the interval that spans a preemption includes the wait for readmission".
Code proof it applies to decode/TPOT too: Worker::park at helios/src/server/runtime.rs:2106-2147 moves the whole Incoming (which owns record) into self.parked (:2146) after bumping record.preemptions (:2101), and the preemption path is park_if_preempted (:2087-2103); RequestRecord::tokens_committed (helios/src/server/metrics.rs:348-362) sets first_token_ns once and overwrites last_token_ns only; Metrics::request_completed computes decode = times.last_token_ns - first and then decode / (generated_tokens - 1) (metrics.rs:593-601). So the parked interval is inside both histograms and the document states that only for inter-token latency.
Rules: AGENTS.md:103-112 (attach material limitations to the claim), SKILL.md:35-37.
Fix: one clause — "a preemption stall is included in the span."
Severity: nit.
N4 — description "Result", "17 histograms (394 lines) per text scrape" names no population
Exact text: "Added work: one clock read per model step, one store or histogram observation per committing step per request (not per token), about a dozen observations per completed request, and 17 histograms (394 lines) per text scrape. This cost was not measured in isolation."
The seventeen are the request series this PR adds, rendered at helios/src/server/metrics.rs:1548-1642 (six on REQUEST_SECONDS: e2e, queue, prefill, decode, inference, TTFT; two on TOKEN_SECONDS: TPOT, inter-token; five on TOKEN_COUNTS: prompt, prefill-computed, generated, max_tokens, max_choice_generated; plus request_choices, request_preemptions, model_step_tokens) together with flare_time_to_first_response_seconds (helios/src/server/latency.rs:101-108).
The same scrape also renders host prefix-store histograms the PR does not add: flare_host_cache_missing_tokens, flare_host_cache_estimated_transfer_ns, flare_host_cache_estimated_prefill_ns (metrics.rs:1178-1214) and flare_host_cache_retirement_seconds (metrics.rs:1000-1020). A reader counting # TYPE … histogram lines therefore finds ~21, and neither the line count nor the bucket arithmetic can be reconciled from the text.
Rules: AGENTS.md:103-112, :122-128; SKILL.md:20-21.
Fix: name the population, e.g. "the seventeen request histograms this PR adds render as 394 exposition lines per text scrape; host prefix-store histograms are unchanged."
Severity: nit.
Supersede chain and tally change (this run)
- This run's report is entry #28 and supersedes #22, #23, #24, #25.
- Why the verdict moved from "nits only" (#22/#25) to "should fix": #26 is a defect in the description that earlier rounds recorded only as an open scope question (#25, "Open questions" item 4) and which this round verified against issue #536 itself and the whole tree (no
process_*series; no parity-table row; the caveat sentence removed in commit 54e06b30 whileCloses #536stayed). That is description accuracy — this lens — not scope. - Final tally at head 6624592: blocking 0; should fix 1 (#26); nits 4 (#27 new, plus N2/N3/N4 above); open questions 3 (CI job unnamed,
AGENTS.md:108-109; unrun measurements not indocs/TODO.txt,:57-58; commit bodies unreadable,docs/design-review.md:139-145). - Both earlier should-fix items remain resolved and were re-confirmed this round: e2e tool-limit exclusion at
helios/src/server/http.rs:604-612(comment:601-603) matchingdocs/api.md:311-318; scoped cancelled/failed sentence atdocs/api.md:361-364matchinghelios/src/server/latency.rs:116-127.
#9 [medium] Nits at a34c4d06: lead-in verb, abandoned stream, "nothing about serving changes", evidence references
Prose nits, PR #548 head a34c4d06.
-
docs/api.md:303"The HTTP histograms observe delivery." uses the implementation verb as the lead-in and then the paragraph switches subject at:309("The runtime histograms observe completed generations"). Naming the two groups on their own terms (HTTP-level response timing versus runtime per-request timing) would read better; the two paragraphs are otherwise well matched. Prose-skill lead-in rule, low impact. -
docs/api.md:304-306"for a stream it is observed when delivery completes, which requires the client to drain the body". Exact but delicate: the observation now runs in the same poll that yields the terminal item (helios/src/server/http.rs:598-606, thenyield Delivery::Complete(response)), so a client that reads every data frame and disconnects before requesting the next item records nothing. "requires the client to drain the body" covers it; a half-clause naming the abandoned-stream case would remove doubt for someone reading the number. -
Description, "Claimed result": "Observability only: … nothing about serving changes." In the same diff, each submitted step reads one monotonic clock (
helios/src/server/runtime.rs:2189-2203) and each committed token performs two stores (:1774-1775), so a reader can take "nothing … changes" as "no cost". The sentence is about serving behavior and is defensible, but one clause ("no serving behavior changes; each submitted step adds a clock read and each completed request a handful of counters") would keep it from being read as a cost claim. -
Description, "Evidence": "this commit was cherry-picked onto it" and the measured tree is described as fork commit
5ffe4d54plus "this commit", while the branch now has three commits.AGENTS.md:122-128(resolve references where they are needed) and the prose skill (durable identifier on first reference) both want either the SHA that was built or "the branch head". Reproducibility of the numbers, not their accuracy, is what suffers.
#10 [medium] Nit: decode and per-token histograms include preemption stalls, undocumented
Candidate prose finding verified in the code at a34c4d06, not raised in the earlier rounds.
docs/api.md:312-313: "flare_request_decode_seconds and flare_time_per_output_token_seconds are recorded only for requests with at least two generated tokens". Literal endpoints are stated exactly, but neither the docs nor the description's RequestTimes bullet says that a preempted request keeps its stamps, so the parked interval falls inside the decode span and inside the per-token quotient.
Verified path:
Worker::parkmoves the wholeIncomingintoself.parked(helios/src/server/runtime.rs:2094-2121) without touchingincoming.times; readmission reuses thatIncoming(:1391-1400,:1553-1575region).first_token_nsisget_or_insert(runtime.rs:1774), so the first commit before preemption stays;last_token_nsis overwritten on every later commit (:1775).request_completedtherefore computeslast - firstacross the gap (helios/src/server/metrics.rs:470-479).- Preemption of a partially decoded request is real:
Scheduler::preempt_newest→finish_early(handle, preempted = true)(helios/src/scheduler.rs:1436-1462), consumed bypark_if_preempted(runtime.rs:2058-2079).
Consequence for a reader: a "decode rate" or p95 tail derived from these two histograms includes scheduler/preemption stalls, which the surrounding sentences ("decode rate", "tail latency") do not suggest. Fix is one clause, e.g. after "at least two generated tokens": "A request that is preempted and readmitted keeps its stamps, so a pause between those two tokens is included."
Severity: nit. The sentence is not false; the missing caveat only affects interpretation of queued-under-pressure numbers.
#11 [medium] Nit: evidence reports 6 TTFR observations vs 5 runtime observations with no reconciliation
PR #548 head a34c4d06, description "Evidence", live-scrape paragraph.
Nit — the scrape deltas are not reconciled. The paragraph reports "Counts gained 5 for each runtime histogram and 6 for the first-response histogram" for the same window, then says only that "the deltas include them and exceed the three requests below". A reader cannot tell why flare_time_to_first_response_seconds_count exceeds flare_requests_completed_total by one.
The gap is explicable and the code supports the explanation:
flare_time_to_first_response_secondsis observed inFirstResponse::output(helios/src/server/latency.rs:116-127) as soon as the client reads a text frame.- The runtime histograms are observed only through
Metrics::request_completed(helios/src/server/metrics.rs:452-480), called athelios/src/server/runtime.rs:1841-1846and:1996-2001. - A stream that delivers text and is then cancelled (tool-limit or client disconnect) adds a first-response observation and no runtime observation — see
helios/src/server/runtime.rs:1317/:1338/:1360/:1407bumpingcancelledwithoutrequest_completed.
Why it matters (prose lens). AGENTS.md:103-112 requires explaining differences between observations and keeping measurement limitations visible; a bare pair of numbers 6 and 5 in the same window reads as an error in the instrument. One clause fixes it, e.g. "the extra first-response observation is a session stream that delivered text and was then cancelled, which the runtime histograms exclude."
Severity: nit. The numbers themselves are honest and the caveat about the agent session's own traffic is present.
#14 [medium] Correction to #11: the 6-vs-5 gap is explained by in-flight requests, not only cancellations
Correction to entry #11's explanation, keeping the nit itself.
Nit (stands): the Evidence section reports "Counts gained 5 for each runtime histogram and 6 for the first-response histogram" for one window and explains only that the instance "also served this agent session's own requests". A reader cannot tell why the first-response count exceeds the runtime count by one; the two instruments are observed at different points, so the gap is expected and the description should say so once (AGENTS.md:103-112: explain differences when observations would otherwise appear contradictory).
Correct explanation (two mechanisms, either sufficient):
- A request in flight that has already offered answer or reasoning text has a first-response observation and no completion yet:
FirstResponse::outputobserves at the first text frame (helios/src/server/latency.rs:116-127, called fromhelios/src/server/http.rs:614), while the runtime histograms are observed only inMetrics::request_completed(helios/src/server/metrics.rs:452-480, called athelios/src/server/runtime.rs:1841-1846and:1996-2001). Since the scrape was taken while the agent session's own traffic was live, this is the most likely source of the extra observation. - A stream that delivers text and is then cancelled records a first-response observation and no runtime one (
helios/src/server/runtime.rs:1317/:1338/:1360/:1407bumpcancelledonly).
So entry #11's claim that the extra "can only be" a cancelled stream is too strong; an in-flight request explains it equally well, and my suggested wording should be neutral: "the extra first-response observation belongs to requests that had offered text but had not completed when the scrape was taken, which the runtime histograms exclude."
#27 [medium] Nit: docs/api.md:477-478 cites "vLLM's production metric list" with no version or link
Finding — nit (prose lens), head 6624592
Where. docs/api.md:477-478: "Flare exports no vllm: names. The table gives the Flare series that measure each metric in vLLM's production metric list, named here without the vllm: prefix, and the metrics Flare does not provide."
What is wrong. "vLLM's production metric list" is a named artefact with no version, commit, or link, so neither a reviewer nor a future reader can check whether a row is right or whether a vLLM release added a metric the table omits. The document already sets the opposite precedent elsewhere in the same file: docs/api.md:1128 names vLLM's Decisions API by name, and docs/logprobs-design.md:261-262 links the exact vLLM source files it follows. The PR title's own word "parity" makes the reference load-bearing.
Why it matters. AGENTS.md:122-128 ("Resolve references where they are needed… Links may carry supporting detail"; durable identifiers on first reference), .agents/skills/repo-prose/SKILL.md:20-21. A table of "Not provided" claims that cannot be re-verified is a claim about the stated evidence (AGENTS.md:103-112).
Fix. Attach the reference once: "…each metric in vLLM's production metric list (vllm/v1/metrics/loggers.py, vLLM 0.x.y)" or a link to the vLLM metrics doc page at a pinned version.
Overlap. The independent Autobot review calls the same table "unpinned"; this note records the prose defect rather than the scope question.
Verified against. docs/api.md:475-515 read in full; search_code for vLLM|vllm in docs/; the file's other vLLM references above.