Explore scratchpad · NVIDIA/hyperflare-inference #637

Raw Markdown for agents: https://autobot.eidonix.com/p/f41b5946-e0a5-4b49-ad2d-234fb43e73c4.md

#1 [high] Change: PR #637 replaces concatenated tool-call IDs with 37-char SHA-256-derived IDs

PR #637 (flare-autobot, COLLABORATOR), head d1508112, base main, 3 files +881/-7, opened+updated 2026-11-30 11:40, no reviews, no comments, CI failed on head.

Actual diff:

No other code paths touched: no change to http.rs request IDs, decode.rs, encode.rs, Cargo.toml, or the parsers.

Description claims the sha2 import is "gated behind #[cfg(feature = "server")] in helios/src/lib.rs" — i.e. the PR relies on an existing gate; it does not add the gate. Verify (see separate note).

#2 [high] Why: issue #447 by shieldstar, 2026-11-21, with maintainer pushback from yatesdr

Issue #447 "Synthesized tool-call ids pass 40 characters once the request counter reaches 100000", by shieldstar, opened 2026-11-21 18:26, updated 2026-11-30, label area:api, still open.

Claim: id = call_chatcmpl-<16 hex run>-<seq>_<choice>_<index>; 40 chars at seq=99999, 41 at seq=100000. Live OpenAI rejects ids >40 with HTTP 400 string_above_max_length, citing only https://github.com/BerriAI/litellm/issues/11392 (a third-party LiteLLM issue). Repro is a CPU-only unit test driving Accumulator at upstream 25b4951 (arm64, rust 1.94.1). Source pointers: helios/src/server/http.rs:316 (prefix), 321-325 (request id {prefix}-{run:016x}-{seq}), protocol/encode.rs:127-129 (Accumulator::new(format!("{id}_{i}"))), output.rs:66 (format!("call_{}_{}")), output.rs:67-69 (only nonempty+unique validation), output.rs:1357 (Responses path same shape).

Discussion:

Connection: PR #637 "Fixes #447"; #447 links back to #637.

#3 [high] Related work: #176 (merged 2026-11-03) created the run+counter ID scheme this PR now hashes

#176 (yatesdr, merged 2026-11-03, +30/-2, commit cc696a6b "Keep request and tool-call IDs unique across server restarts") is the change that introduced exactly the format whose length #447 complains about:

#5 [high] Change detail (verified): sha2 is reachable under the server feature; item_id left unbounded

Verified from code at PR head:

#6 [high] Change accuracy: what is verified vs what the description overstates or omits

#7 [high] Process: CI failed on head, no reviews, commit authored by derek but published by the bot account

#9 [high] Claims and evidence: length property is structurally proven; the 40-char API contract and the green-suite claim are not

Claims → what backs them:

  1. "Every synthesized ID is fixed at 37 chars, matches ^call_[0-9a-f]{32}$, across seq 0..u64::MAX, choices, up to 128 calls, streaming==buffered" — backed by construction (output.rs:31-49: fixed 5+32 chars) and by 4 new tests: output.rs synthesized_tool_call_ids_are_bounded_deterministic_and_distinct (output.rs:1301-1470 approx) and response_output_rejects_invalid_tool_begin_and_unclosed_close_without_partial_mutation (output.rs:~1470-1671); protocol/tests.rs synthesized_tool_call_ids_stay_bounded_across_protocols_modes_and_restarts and synthesized_high_counter_tool_call_ids_round_trip_through_decode_and_template_messages (tests.rs:2665-3119). All CPU-only; the length property is structurally guaranteed, so the tests mainly protect regressions.
  2. "OpenAI/Azure reject >40 chars" — NOT verified by this PR; the only evidence is #447's LitellM issue link and shieldstar's report. The PR adds the number to docs/api.md:448 as fact. No live OpenAI/Azure request was made.
  3. Test counts: 1803 passed / 0 failed / 84 ignored for helios (runtime-core,server); flare 245; flare-cli 227 — matches what the CI workflow would run on Linux, but CI on the head commit is reported failed, so the claim that the tree is green is contradicted by the pipeline result at least on one matrix leg (x86_64 or Windows). The author states x86_64 and Windows builds were never run locally. Case file: this is the single biggest evidence gap.
  4. "Retains full 64-bit per-start run entropy" — the run value is hashed in, but the emitted ID carries only 128 bits of the SHA-256 digest over the whole (scope,index) input; "full 64-bit run entropy" is preserved in the input, not literally recoverable/guaranteed distinct per run after truncation. Cross-host collision probability is ~2^-64 per pair, which is fine, but the phrase overstates.
  5. "Injective over (scope_id, index)" — the hash input encoding is injective (length-delimited + LE u64 index), but the 128-bit truncated digest is not mathematically injective. Within one response the uniqueness check (output.rs:102-104, 1769-1776) catches any collision, so the practical claim holds.
  6. "Previously exported cores load and serve without re-export" — plausible: no core/protobuf/contract code touched; diff is confined to output.rs, protocol/tests.rs, docs/api.md. Not separately tested by the PR.
  7. Unrun and acknowledged by the author: live HTTP SDK suite (tests/server/test_protocols.py, which does exercise tool-call ids end-to-end, see tests/server/test_protocols.py:282-344, 547-567), ignored GPU/core tests, x86_64/Windows builds, scheduling sim, TLA+, Kani.
  8. Not claimed and not tested: no test reproduces issue #447's exact scenario against a live server past seq 100000; the closest is the unit test at seq 100_000.

#4 [medium] Related work: sibling PR #638, and other tool-call-area PRs/issues

#8 [medium] People: derek authored the commit, flare-autobot published it; shieldstar reported; yatesdr is the only maintainer on record

People:

#10 [medium] Reach: opaque IDs for clients, no config/wire change, Responses item.id still unbounded

Reach:

#11 [medium] Coverage check: all ten angles and orientation-packet leads resolved

Six angles summarised; all leads from the orientation packet were followed (this note replaces the failed tool call made on the previous turn):

  1. Change — done (entries 1, 5, 6).
  2. Why — done (entry 2: #447 by shieldstar 2026-11-21; the 40-char client contract is contested by yatesdr).
  3. Related work — done (entries 3, 4: #176 is the predecessor that created the {prefix}-{run:016x}-{seq} format; #638 is a same-day same-author sibling overlapping docs/api.md and the end of protocol/tests.rs; #418 added the strict/pending_strict_calls path the new protocol test exercises; #573, #226746cd, #333 are adjacent tool-call semantics; no competing or duplicate fix for #447, nothing superseded or undone beyond the raw call_{request_id}_{index} format).
  4. Recent activity — done (entries 3, 7): the only main-branch commit since the branch point (c146d7b) touching a changed file is 0a8c20f4 (#626), which edits a different part of docs/api.md, so no textual conflict; the ID scheme itself last changed in cc696a6b (#176, 2026-11-03); output.rs last touched by 8628b7c5 (2026-11-14, Luke Alonso, unrelated).
  5. People — done (entry 8: commit authored by derek, PR published by flare-autobot; issue reported by shieldstar; yatesdr the only maintainer on record; Luke Alonso / Martin Vit / yatesdr own helios/src).
  6. Community — done (entries 7, 8): zero comments, zero reviews, zero reactions; the only cross-reference anywhere is the bot's own comment on #447 announcing the branch.
  7. Project fit — done (entry 7): satisfies the charter's 4-part PR description rule, the "root cause, not truncation" rule, and model-agnostic Helios placement; tensions are "not trying to be a general-purpose production server" and the unestablished client contract.
  8. Claims and evidence — done (entry 9): the 37-char property is structurally guaranteed and unit-tested; the 40-char OpenAI/Azure limit is second-hand (a LitellM issue) and newly asserted as fact in docs/api.md:448; CI on the head commit is reported failed, contradicting the "all suites pass" narrative; "injective" and "full 64-bit run entropy" are imprecise phrasings of a sound mechanism.
  9. Reach — done (entry 10): no config/default/wire/protobuf/core change; response top-level id and x-request-id stay human-readable; tool-call ids become opaque; Responses item.id (encode.rs:268-270) is left unbounded despite the description's "<= 54 characters" claim, whose arithmetic is unexplained (5 + 5 + 16 + 1 + up-to-20 digits + _index = 49 for a single-digit index).
  10. Process — done (entry 7): open, "ready for review", no labels, no reviewers, opened and last updated the same minute on 2026-11-30 (0 days old), CI failed.

Leads checked and found not relevant: #513 (open) touches helios/src/server/output.rs but only the Decoder/logprobs part, no overlapping lines; #191, #170, #67, #167 touch output.rs historically but not IDs; #615/#619/#620/#626 are recent helios/src commits that do not touch the call-ID code.