Explore scratchpad · NVIDIA/hyperflare-inference #689

Raw Markdown for agents: https://autobot.eidonix.com/p/57bbd999-717a-4be8-af0d-459aa9f8b572.md

#1 [high] Change: what #689 does (verified from diff)

PR #689 (jcartu, opened 2026-12-02, head 2f72e1b, base main, 2 files +442/-23). Files: helios/src/server/http.rs (+86/-23), helios/src/server/runtime/phase_tests.rs (+356/-0).

Verified in code at PR head:

Key behavioral deltas beyond description wording: untyped errors previously wrapped into AdmissionError::Invalid before rejection_details, and are now mapped straight to HTTP 400 with to_string(); explicit AdmissionError::Invalid now yields code invalid_request (was invalid_request_error). No docs file changed.

#2 [high] Why: issue #446 is the sole driver, confirmed by yatesdr

#446 "Request-preparation failures render the generic invalid_request_error code instead of the typed error codes admissions failures use" (shieldstar, opened 2026-11-21 18:26, open, labels area:api, bug; updated 2026-11-21 18:38).

#3 [high] Change: verified producers of typed errors on the preparation path

Verified at PR head vs main:

#5 [high] Related work: no competing PR; same-file neighbours #692, #691, #638, #418

#6 [high] Project fit: docs/core-design.md already promises typed codes; api.md lists no codes

#8 [high] Claims and evidence: verified vs asserted; CI absent

Claims in the description vs what backs them:

  1. "preserve typed error codes ... on preparation failures" — backed by code (http.rs:119-132, 209-291) and two tests. Verified by reading: the mapping is correct for Error::Admission(_) and FrontendError::ImageDecode.
  2. "keeps untyped preparation validation errors on invalid_request_error" — supported: untyped errors are Error::Execution(ExecutionError::State) (error.rs:174-178) -> PreparationError::Http(400) -> Protocol::error -> code = kind = invalid_request_error. Test case at phase_tests.rs:8738-8759 uses max_tokens: 0.
  3. "explicit AdmissionError::Invalid now preserves invalid_request instead of flattening" — a behaviour change not present in issue #446's list of codes; verified in code and covered by test phase_tests.rs:8718-8735 (uses 5 stop sequences, stops.rs:23 etc.). Note this makes code diverge further from type for a common client mistake class.
  4. "no x-request-id and no failure_log for preparation failures" — verified by construction: failure_response does not call with_request_id, and log_failure stays in rejection (http.rs:32-41). Consequence not stated in the description: a preparation failure is also not logged to stderr, so operators lose the stage=admission code=... line for these rejections (previously they were also unlogged via error(), so no regression — it preserves the status quo).
  5. Claimed test totals: helios 1,880 passed / 84 ignored (lib 1,818 + 47 ignored; integration 62 + 37), flare 254, flare-cli 245. Cannot verify from here; note that #692 (same author, same day) reports 1,884 passed / 84 ignored for helios, and #691 reports 1,821 lib passed (47 ignored) + 62 integration (36 ignored) — i.e. the sibling PRs' counts differ from each other by 1-9 tests, consistent with each PR adding different numbers of tests on slightly different bases, but it means these totals are per-branch local runs without a shared commit.
  6. Limitations disclosed: no live GPU serving, no tests/server/test_protocols.py run. Consistent with the fact that every added test is a CPU/axum-level test through http::generate with a Fixture model and a stub mpsc channel, asserting receiver.try_recv().is_err() for zero model-queue admission (phase_tests.rs:8500-8792). Not claimed but true: no CI run exists on head 2f72e1b (orientation packet: "no checks"), so no external verification of the reported numbers. .github/workflows/native-serving.yml:63,68 runs exactly cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server, so CI would cover the new tests once it runs.

#9 [high] Reach: clients, operators, metrics, docs, compatibility

#4 [medium] Process: #689 state — no CI, no reviews, no labels

PR #689 state as of analysis (2026-12-02): open, "ready for review" per orientation packet, no labels, 0 reviews, 0 comments/discussion, no CI checks on head 2f72e1b ("CI on the head commit: no checks"), authored and last updated same day it was opened (fresh; ~0 hours old). Files changed: helios/src/server/http.rs (+86/-23), helios/src/server/runtime/phase_tests.rs (+356/-0). No docs changed. Single commit on branch fix/preparation-typed-error-codes: 2f72e1bb "helios/server: preserve typed error codes on HTTP request preparation failures" (author Joshua Cartu). Description includes "Discord: jcartu".

#7 [medium] People: author history and area ownership

jcartu (Joshua Cartu), GitHub association CONTRIBUTOR, not among the charter's named priority contributors (@voipmonitor, @original-el8, @lukealonso). Activity: 3 merged / 3 closed / 10 open PRs in 180 days; merged work touching docs (3), helios/src (3), heliopause/src, helios, helios/proto. Merged helios/src commits on main: 0b09434d "Constrain strict function-tool arguments in native tool syntax (#418)" (2026-11-22), 85de9eae "Bind core-declared FP32 parameters into text forward graphs" (2026-11-28), 425ab2d4 "Refresh host prefix-cache recency on request completion (#416)" (2026-11-23). Open same-day cluster (all opened 2026-12-02, all with "Discord: jcartu"): #689 (this, 20:48), #691 (20:54), #692 (20:54), #693 (perf scheduler survival-curve caching), plus #687, #688, #690, #686 also 2026-12-02 and #642, #621. This is a broad batch submission; three of them (#689, #691, #692) touch helios/src/server/http.rs simultaneously. Review history for this author: #621 received Autobot reviews (Changes Requested then Ready To Merge after rebase), #638 was an autobot-authored PR. jcartu engages with Autobot review threads (case files opened on their PRs). Who normally works in this area: Luke Alonso (237 commits in helios/src/180d), Martin Vit (52), yatesdr (49). Recent http.rs/server.rs committers: flare-autobot (#638), jedi95 (#317), yatesdr (#176, #167, #333), Luke Alonso (dc0d40e0 hardening of HTTP ingress 2026-11-19). yatesdr confirmed #446 by reading — a signal a maintainer has already endorsed the problem. Notably absent so far on #689: any human review, and no Autobot case-file comment yet (unlike #621/#638 which got one within minutes) — possibly because it is still under 90 minutes old.