Prose scratchpad · NVIDIA/hyperflare-inference #575

Raw Markdown for agents: https://autobot.eidonix.com/p/ebe5be51-4138-4bb1-8434-cd7a2405d84b.md

#1 [high] Should fix: PR says duplicate wrapper keys keep prior semantics, but that behaviour is new

PR body (What Changed bullet 1): "Unknown or duplicate wrapper keys fail deserialization and fall back to visible text, matching prior TMLv0 recovery semantics."

Verified wrong for the duplicate-key half:

So duplicate keys are a behavior change, not prior semantics, and it is user-visible for TMLv0 cores: a model that repeats a wrapper key now yields prose instead of a tool call (for a strict tool, that becomes the "no completed call" failure rather than a call). Fix: state it as a change ("wrapper keys that repeat now fail deserialization, which the previous map-based check accepted"), or drop the "matching prior semantics" clause and keep it only for the fallback-to-text path. Rules: AGENTS.md:88-94 (make before/after explicit, identify compatibility changes) and docs/design-review.md principle 16 (lines 147-160).

#2 [high] Should fix: evidence section cites test paths/commands a reader cannot reproduce

Supporting Evidence bullets vs the repository:

  1. "server::protocol::tests::strict: 2/2 passed" — there is no strict module. The two strict protocol tests are plain functions in helios/src/server/protocol/tests.rs: strict_function_tools_decode_and_gate_streaming_and_buffered_output_across_protocols (line 1751) and strict_tool_wires_reach_encoder_only_after_parser_completion (line 2026), i.e. server::protocol::tests::strict_.... search_code "mod strict" in helios/src/server finds nothing. A reader cannot map "tests::strict" to a runnable filter.

  2. "server::request::tml_tests::: 5/5 passed against the Inkling 2 checkpoint tokenizer" — all five tests in helios/src/server/request/tml_tests.rs are #[ignore = "requires FLARE_INKLING2_TEST_SNAPSHOT with the Inkling 2 tokenizer"] (lines 102-103, 160-161, 246-247, 263-264, 312-313). The stated command (cargo test ... --features runtime-core,server) reports them as ignored, not passed; they only pass with --ignored plus the env var. AGENTS.md:104-112 requires explaining passed/skipped differences so they do not look contradictory.

  3. Nothing in the inventory says the 35/35 live suite came from a driver outside the repository. The only in-repo test added is tests/server/test_inkling2.py:121-209, which is gated by FLARE_RUN_CUDA_TESTS=1 and FLARE_INKLING2_TEST_URL (lines 23-26) and asserts far fewer cases than the listed 35 (one buffered, one streamed, two truncation cases, one Responses case). AGENTS.md:110-112 ("Reproduction commands must identify the required inputs and configuration directly or through a precise reference") and 194-199 (identify missing inputs/unrun checks).

Fix: name the two protocol test functions or a path filter, state that the tml_tests were run with --ignored and FLARE_INKLING2_TEST_SNAPSHOT pointing at the Inkling 2 tokenizer, and say which live checks came from the out-of-repo qualification driver versus tests/server/test_inkling2.py.

#3 [high] Research summary

Reviewed PR #575 for prose: description, commit message, and the comments/tests it adds, against AGENTS.md (required PR description scheme, lines 72-140, and contact rules 142-153), docs/design-review.md principle 16, and .agents/skills/repo-prose/SKILL.md (not opened).

The description largely follows the required four-part order (Why / What Changed / Claimed Benefit / Supporting Evidence), states the before/after on the changed function, separates implementation from qualification, discloses the live-run hardware, and carries a Discord: line. I read the changed code in context (helios/src/output/tml.rs call/call_or_text/finish, the RawValue + deny_unknown_fields struct, the two new tests, the test_inkling2.py addition, OutputEncoder strict validation at server/protocol/encode.rs:517-553, TextGrammar::validate at grammar.rs:631-656, and the strict.rs test harness). Factual claims about raw-token preservation, key order, and the encoder's strict re-validation all check out.

Two prose findings, both recorded in the scratchpad:

  1. Should fix — the description calls duplicate wrapper-key rejection "prior TMLv0 recovery semantics". It is a new behaviour: the old serde_json::Value path kept the last value of a repeated key and accepted the call, while the derived struct now rejects it (the PR's own test at tml.rs:619-628 asserts the new fallback). A TMLv0 model that repeats the name key now yields visible text instead of a call, which for a strict tool becomes a missing-call failure.

  2. Should fix — evidence the reader cannot reproduce: server::protocol::tests::strict names no such module (the tests are ...tests::strict_function_tools_... and ...tests::strict_tool_wires_...); the five server::request::tml_tests are all #[ignore]d and need --ignored plus FLARE_INKLING2_TEST_SNAPSHOT, which the stated command does not report as passing; and the live 35/35 suite does not say which cases came from the out-of-repo driver versus the far smaller in-repo test added here.

Nothing else in the description, comments, or added test prose exceeded its evidence.

#4 [medium] Verified-accurate description claims for PR 575

Checked each material claim in the PR body against the code; these hold:

#5 [medium] Rules applied: AGENTS.md description scheme, design-review principle 16/17, repo-prose skill

Read the project rules that govern prose before reviewing: