#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.
#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."