Prose review — PR #548, head a34c4d06 (three commits: ebecef13, d64c3ea3, a34c4d06), base main, draft, 10 files +548/−25
Rules applied: AGENTS.md:43-70 (required prose review, .agents/skills/repo-prose/SKILL.md (not opened)), AGENTS.md:72-140 (required PR descriptions: why → what changed → claimed result → evidence, in order; before/after explicit, :88-94; evidence must connect to claims, :103-112; Discord line, :142-145), docs/design-review.md:137-152 (principle 16: commit bodies and PR descriptions follow the same scheme, no unexplained references, no unsupported claims), docs/design-review.md:153-157 (principle 17: Discord contact).
Key findings
- No blocking prose problem. The description answers why / what changed / claimed result / evidence in that order and keeps the required caveats: observability only, no performance or memory claim, cancelled and failed requests excluded from the request histograms, and what was not run. Its Discord line is present.
- One should-fix: the description's e2e bullet is now stale relative to the code it describes — it omits the tool-limit exclusion that the follow-up commit added and that
docs/api.mdand a test both encode. - Everything else is a nit or an open question about evidence verifiability, not accuracy.
- The three docs findings from the earlier review round were fixed in the two new commits and verified in the code; they are listed below as resolved so they are not re-raised.
Should fix (1)
1. PR description, "What changed → HTTP", first bullet is stale and now contradicts the code and the docs.
The description says 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 "One observation per successful response: a tool-limit cancellation reaches this point but the runtime counts it as cancelled, so it is excluded." followed byif !count && !encoder.tool_limit_reached { ... request_e2e.observe(...) }.helios/src/server/runtime/phase_tests.rs:4604-4613pins it: "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.docs/api.md:303-306already covers it indirectly ("counts each successful generation ... observed when delivery completes").
Why it matters: AGENTS.md:88-94 and 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 exactly the case (a tool-call response that ends in cancellation) that the description says cannot exist. This is the same defect class the previous round raised against the code and the author fixed; only the description bullet was not updated.
Fix: extend that bullet to "…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.
Nits (3)
2. docs/api.md:303 — "The HTTP histograms observe delivery." The lead-in uses the implementation verb, then the paragraph switches subject at :309 to the runtime group ("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.
3. docs/api.md:304-306 — "for a stream it is observed when delivery completes, which requires the client to drain the body". Technically exact but delicate: the observation now runs in the same poll that yields Delivery::Complete (helios/src/server/http.rs:598-606, then yield Delivery::Complete(response) at :606), 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; naming the abandoned-stream case in a half-clause would remove the doubt for someone reading the number.
4. Two follow-up commit subjects are change-log shorthand. "Hoist completion values and tighten stat parsing" and "Exclude cancelled responses and reuse host helpers" only read against the diff. docs/design-review.md:139-145 requires the four-part scheme in the commit body; the bodies are not visible in the history view I can read, so this is a note to check before merge rather than a demonstrated defect.
Resolved since the previous round (verified in the code at a34c4d06)
- Decode / time-per-output-token eligibility now stated.
docs/api.md:312-314("recorded only for requests with at least two generated tokens") matcheshelios/src/server/metrics.rs:470-479(if let Some(first) = times.first_token_ns && generated_tokens > 1) and the HELP strings atmetrics.rs:1408and:1416. This was the earlier "one observation per completed generation" contradiction; it is gone. - Naming rule exception added.
docs/api.md:290now reads "…except the standardprocess_*series described below", which the six series atdocs/api.md:318-321would otherwise falsify. - e2e end point and stream caveat.
docs/api.md:303-306and the code was moved to match: one observation beforeyield Delivery::Complete(helios/src/server/http.rs:598-606), with the old post-hoc arms removed (Delivery::Complete(_) => Noneathttp.rs:621, and the non-streamingDelivery::Completearm athttp.rs:635-645no longer observes). - Queue histogram may start at a vision step.
docs/api.md:309-311says the first model step "can be a vision step", matching the stamp before theGraphKind::Visionsplit inhelios/src/server/runtime.rs:2189-2203versus:2208. - "accumulate since server start" added at
docs/api.md:297-298, which distinguishes the cumulative histograms from the windowed median gauge they sit beside (helios/src/server/latency.rskeeps its 60-secondSampleswindow andsnapshot).
Checked and sound (prose lens)
- Four-part order intact; the claimed result is still explicitly "Observability only", with "claims no performance or memory improvement" and "does not report cancelled or failed requests in the request histograms".
AGENTS.md:95-102. - Every "What changed" statement I re-checked holds:
Incomingkeeps itsRequestTimesthrough parking and readmission (helios/src/server/runtime.rs:1841-1846and:1996-2001are the only tworequest_completedcall sites;completed.fetch_addexists only athelios/src/server/metrics.rs:459, matching the doc comment at:450-451"so the two cannot diverge");count_tokensis excluded from e2e by the!countguard (http.rs:600); non-Linux process metrics render nothing. - New code comments state invariants, not chronology:
helios/src/server/metrics.rs:450-451,helios/src/server/http.rs:598-599,helios/src/server/metrics/process.rs:1-6(source, degradation rule, non-Linux behaviour),:24-25(state-character guard),:29-30(field offset), and the test comment atmetrics.rs:1678-1679. - Histograms still render only in the Prometheus text: the JSON branch never renders them while the text branch does, which is what
docs/api.md:297-298claims. - Discord line present (
docs/design-review.md:153-157).
Open questions (not findings — cannot be settled from what I can read)
- "CI covers the first two" in the Evidence section refers to the Windows build and the full helios suite, but the head commit
a34c4d06carries no checks.AGENTS.md:108-109wants each material claim connected to a check; naming the workflow/job, or dropping the sentence, would make it verifiable. The sentence is honest about what the author did not run, so it is an evidence-clarity question, not an overstatement. - Whether the measured tree equals the branch head. The Evidence paragraph describes
5ffe4d54plus "this commit", and there are now three commits on top of the fork commit. A one-clause note ("measured atebecef1", or the SHA that was built) would let a reader reproduce the numbers against a commit rather than the branch.
What I could not find
No prose defect in the code comments, the new module documentation, or the test comments; no unsupported claim in the "Claimed result" section; no missing four-part element in the description. The only prose artefact that is demonstrably out of date is the single description bullet in finding 1, and only the commit bodies (not exposed by the history view) could change the commit-message nit into something firmer.