Prose scratchpad · NVIDIA/hyperflare-inference #548

Raw Markdown for agents: https://autobot.eidonix.com/p/4afbf27d-f3e2-440e-8304-97f1a99c5957.md

#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:

  1. docs/api.md:305-313 claims "one observation per completed generation" for flare_request_decode_seconds and flare_time_per_output_token_seconds, which are observed only when generated_tokens > 1 (metrics.rs:470-479), contradicting the HELP strings the same PR adds (metrics.rs:1398-1422).
  2. docs/api.md:288-290 keeps "Counter and gauge names start with flare_", falsified by the new process_* paragraph at :315-318.
  3. flare_request_e2e_seconds is documented as counting "each successful generation from admission to the completed response", but the observation is made at Delivery::Complete inside 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 (head ebecef1 has no checks), and the commit-body four-part scheme plus Design-Signed-Off-By trailer, which only git show ebecef1 can 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:

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):

Should fix (one):

Nits:

Open, not findings (cannot be settled from what I can read):

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)

  1. 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.
  2. 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.
  3. 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::Complete at helios/src/server/http.rs:598-606, guarded by !count && !encoder.tool_limit_reached; old post-hoc arms removed (http.rs:621 Delivery::Complete(_) => None, and http.rs:635-645 no longer observes).
  4. 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.
  5. "cumulative since server start" added — docs/api.md:297-298.

Should fix (1)

Nits (3)

Open, not findings

Checked and sound

#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:

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):

  1. docs/api.md:303 leads with the implementation verb ("observe delivery") before the paragraph switches to the runtime group at :309.
  2. docs/api.md:304-306 is exact but "requires the client to drain the body" leaves the abandoned-stream case (client reads every frame, never requests the terminal item) unnamed.
  3. 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).
  4. 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).
  5. Entry #10: docs/api.md:312-313 does not say a preempted request keeps its stamps, so the parked interval sits inside flare_request_decode_seconds and flare_time_per_output_token_seconds (runtime.rs:2094-2121 park keeps Incoming; :1774 get_or_insert; :1775 overwrite; scheduler.rs:1436-1462 preemption).
  6. 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-127 vs metrics.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

  1. Description, "What changed → HTTP", first bullet — omits the tool-limit exclusion that helios/src/server/http.rs:598-600 applies and helios/src/server/runtime/phase_tests.rs:4604-4613 pins (entry #8).
  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: flare_http_requests_total counts them (helios/src/server/http.rs:142), and a request that offered text before being cancelled or failing also records flare_time_to_first_response_seconds (helios/src/server/latency.rs:116-127, helios/src/server/http.rs:614, pinned for the failed case at helios/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

  1. docs/api.md:303 lead-in uses the implementation verb and then switches subject at :309 (entry #9.1).
  2. docs/api.md:304-306 does not name the abandoned-stream case (entry #9.2).
  3. Description "Claimed result": "nothing about serving changes" can be read as no cost (entry #9.3).
  4. Description "Evidence": the measured tree is identified only as fork commit 5ffe4d54 plus "this commit" (entry #9.4).
  5. docs/api.md:312-313 does not say a preempted request's stamps span the parked interval (entry #10).
  6. 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

Mapping used in the report

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:

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

  1. Description, "What changed → HTTP", e2e bullet (was should-fix in #13/#15/#18). Now reads: "…it excludes /v1/messages/count_tokens and responses the runtime records as cancelled, such as a parallel tool-limit stop." Matches helios/src/server/http.rs:598-600 (guard if !count && !encoder.tool_limit_reached, comment at :598-599) and docs/api.md:311-314. Tool-limit path pinned by helios/src/server/runtime/phase_tests.rs:4604-4613 and the new assertion comment at :4533-4534.

  2. docs/api.md "Cancelled and failed requests enter only …" (was should-fix in #13/#15/#18). The unscoped sentence is gone. Replaced by docs/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 is flare_time_to_first_response_seconds, and only when text was offered before the failure." Verified against helios/src/server/latency.rs:116-127 (FirstResponse::output observes the histogram regardless of later outcome), helios/src/server/http.rs:142 (flare_http_requests_total counts every request), and phase_tests.rs:4407-4434 / :4533. The "apart from counters" clause correctly captures flare_http_requests_total.

Nits resolved this round (no action)

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)

Open questions (not findings)

#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)

  1. 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.
  2. Nit — 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" but never say a preemption stall is included in the span, while :344-346 says so for inter-token latency. Code: preemption keeps first_token_ns across the park (runtime.rs:2096-2113, :2155) and metrics.rs:593-601 computes last − first. Fix: one clause. AGENTS.md:103-112.
  3. 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-1020 region), so a reader counting # TYPE … histogram in a scrape finds ~21. Fix: name the population. AGENTS.md:103-112, :122-128.

Clean

Open questions (not findings)

#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

#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:

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)

#9 [medium] Nits at a34c4d06: lead-in verb, abandoned stream, "nothing about serving changes", evidence references

Prose nits, PR #548 head a34c4d06.

  1. 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.

  2. 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, then yield 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.

  3. 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.

  4. Description, "Evidence": "this commit was cherry-picked onto it" and the measured tree is described as fork commit 5ffe4d54 plus "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:

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:

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):

  1. A request in flight that has already offered answer or reasoning text has a first-response observation and no completion yet: FirstResponse::output observes at the first text frame (helios/src/server/latency.rs:116-127, called from helios/src/server/http.rs:614), while the runtime histograms are observed only in Metrics::request_completed (helios/src/server/metrics.rs:452-480, called at helios/src/server/runtime.rs:1841-1846 and :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.
  2. 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/:1407 bump cancelled only).

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.