Explore report · NVIDIA/hyperflare-inference #689

Raw Markdown for agents: https://autobot.eidonix.com/p/4584bae8-f67d-4a0c-abca-de63a78c4d52.md

Case file — PR #689: helios/server: preserve typed error codes on HTTP request preparation failures

https://github.com/NVIDIA/hyperflare-inference/pull/689 · author jcartu · opened 2026-12-02 · head 2f72e1b (single commit 2f72e1bb, branch fix/preparation-typed-error-codes) · base main · +442 / −23 in 2 files · fixes #446 · Discord: jcartu

Key findings

1. The change

Files (per pr_files/diff): helios/src/server/http.rs (+86/−23), helios/src/server/runtime/phase_tests.rs (+356/−0). No docs, no config, no public API.

What it does, verified at the PR head:

Typed-code plumbing this relies on (unchanged by the PR): status (server.rs:733-741) and error_code (server.rs:743-755) — Context→context_length_exceeded, Feature→unsupported_feature, Grammar→invalid_grammar, Image→invalid_image, Invalid→invalid_request, Capacity→capacity_exhausted, Unavailable→server_unavailable; Protocol::failure overwriting error.code (protocol/mod.rs:53-58).

2. The why

Issue #446 (open; labels area:api, bug; shieldstar, opened 2026-11-21; updated 2026-11-21) is the sole driver and is linked as "fixes". Its report is a pure-renderer reproduction at upstream 25b49519 with printed bodies showing Protocol::failure yielding typed codes while http::error/Protocol::error yields code = type = "invalid_request_error", plus source pointers (protocol/mod.rs:33-46, :53-58, server.rs:655 error_code, http.rs:259-267, http.rs:275, http.rs:12-17). Its "Suggested fix" is exactly what #689 implements: return protocol.failure(&error) with status(&error) instead of rejection_details(...) + error(...).

Independent confirmation: yatesdr (49 commits in helios/src over 180 days) commented 2026-11-21 18:38 "Confirmed by reading at main 21a40f05 … Only Protocol::failure uses the typed codes … No test covers the preparation path." The issue has this one comment and no reactions recorded; it is ~11 days old and untouched since, i.e. the problem is newly reported, not long-running community demand.

4. Recent activity in the touched areas

helios/src is busy and owned by a small group: last 60 days of commits include #681, #661, #665, #660 (PCCessna, scheduler), #670, #667 (Luke Alonso), #663 (yatesdr), #666 (Jason Cook). Over 180 days: Luke Alonso 237 commits, Martin Vit 52, yatesdr 49. Recent http.rs/server.rs work: flare-autobot (#638), jedi95 (#317), yatesdr (#176, #167, #333), Luke Alonso's HTTP-ingress hardening (2026-11-19). No commit on main since #689 branched (c513e46) touches its changed files, so no rebase or semantic conflict with main yet.

5. People

6. Community

Nothing to gauge: zero comments, zero reviews, zero reactions, no labels, opened and last updated the same day. There is no expressed interest beyond the linked issue #446 and its single confirming comment by yatesdr.

7. Project fit

8. Claims and evidence

Claim Evidence
Typed preparation failures carry typed code on all five routes Verified in code (http.rs:124-132, 209-291) and by the wire test (phase_tests.rs:8561-8599 context, 8601-8638 feature, 8640-8695 grammar, 8697-8717 image). Backed.
Messages envelope unchanged (no code/param) with context_hint kept Verified: Protocol::failure only overwrites code for non-Messages (protocol/mod.rs:53-58); asserted phase_tests.rs:8526-8537, 8585-8597. Backed.
param: null explicit protocol/mod.rs:48 sets it for non-Messages; asserted phase_tests.rs:8532-8536. Backed.
Buntyp/HTTP errors keep 400/413/415 and invalid_request_error/request_too_large Verified: decode_body statuses untouched (http.rs:73-118); test phase_tests.rs:8761-8791 exercises {, {}, unknown Content-Encoding, 4,200-byte body. Backed.
status(&error) used True, but every reachable preparation admission variant is 400 (server.rs:733-741); no status changes anywhere.
invalid_image on both invalid base64 and corrupt PNG Test uses an image-enabled HttpState (phase_tests.rs:8712) with AAAA PNG stub; backed by construction of describe_images (request.rs:1141, 1194-1230).
No x-request-id on preparation failures Verified by construction (http.rs:26-41) and asserted (phase_tests.rs:8509-8512); consistent with docs/api.md:258 and docs/core-design.md:1119-1121.
Zero model-queue admissions Asserted via receiver.try_recv().is_err() after every case.
Test totals: helios 1,880 passed / 84 ignored; flare 254; flare-cli 245 Unverifiable here; no CI on head 2f72e1b ("no checks"), so nothing independently reproduces them. .github/workflows/native-serving.yml:63 (not opened),68 runs exactly cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server, so CI would cover the new tests once it runs. Sibling PRs from the same day report 1,884 (#692) and 1,821+62 (#691) — branch-local counts.
Limitations disclosed (no GPU serving, no tests/server/test_protocols.py) Honest; the added tests are CPU/axum-level. The Python assertions in reach (test_protocols.py:616-624, test_decisions.py:203-218) check only error["type"], so they would very likely still pass, but they were not run.

Not claimed but true (may matter to a reviewer): preparation failures are still not written to failure_log and not counted in flare_requests_failed_total; both match the old behaviour, so this is not a regression.

9. Reach

10. Process

Open, marked "ready for review", opened and last updated 2026-12-02 (same-day, fresh at time of analysis). 0 reviews, 0 comments, 0 labels, 0 CI checks on head 2f72e1b, single commit on fix/preparation-typed-error-codes. No maintainer has engaged; the only prior signal is yatesdr's confirmation on #446.

Open questions / not found