#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:
- Before (main, helios/src/output/tml.rs:326-345 pre-change): body parsed to
serde_json::Value,object.len() != 2rejected extra keys, thenname/argsread from the map. serde_json's map deserialization keeps the LAST value of a repeated key, so{"name":"lookup","name":"lookup","args":{}}produced a 2-entry map and WAS accepted as a tool call. - After (helios/src/output/tml.rs:330-347): derived
#[serde(deny_unknown_fields)] struct RawCall<'a>rejects repeats with serde's "duplicate field" error, so the call now falls back to visible text. The PR's own test asserts the new rejection: helios/src/output/tml.rs:619-628 (duplicatepayload must surface as content).
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:
-
"
server::protocol::tests::strict:2/2passed" — there is nostrictmodule. 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) andstrict_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. -
"
server::request::tml_tests:::5/5passed 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--ignoredplus the env var. AGENTS.md:104-112 requires explaining passed/skipped differences so they do not look contradictory. -
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:
-
Should fix — the description calls duplicate wrapper-key rejection "prior TMLv0 recovery semantics". It is a new behaviour: the old
serde_json::Valuepath 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 thenamekey now yields visible text instead of a call, which for a strict tool becomes a missing-call failure. -
Should fix — evidence the reader cannot reproduce:
server::protocol::tests::strictnames no such module (the tests are...tests::strict_function_tools_...and...tests::strict_tool_wires_...); the fiveserver::request::tml_testsare all#[ignore]d and need--ignoredplus 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:
- "deserializes the wrapper into a
#[serde(deny_unknown_fields)]struct containingname: Stringand#[serde(borrow)] args: &'a RawValue" — helios/src/output/tml.rs:330-338. - "verifies that
parsed.args.get()starts with'{'" — tml.rs:339-340 (trim + starts_with('{')). - "validates the tool name and optional recipient header, and emits
args.to_owned()verbatim" — tml.rs:341-347 and :351-360. - Claim that the old path rounded >u64 integers: the removed code emitted
args.to_string()from aserde_json::Value, andhelios/Cargo.toml:52enablespreserve_order, float_roundtrip, raw_valuebut NOTarbitrary_precision(grep forarbitrary_precisionfinds only the test name at tml.rs:608), so a 30-digit integer became a binary64 float. Consistent. - Claim that the encoder rejects with "strict tool arguments does not match its grammar": OutputEncoder validates buffered strict args at helios/src/server/protocol/encode.rs:538-541, and grammar.rs:631-653 maps description "strict tool JSON schema" to subject "strict tool arguments" and returns "{subject} does not match its grammar". The string exists.
- Claim "No model core format, Protobuf schema, or re-export is required": the diff touches only output/grammar/server-test code, and helios/src/output is runtime-side, so existing TMLv0 cores are unaffected. Consistent.
- "Discord: woooflet" line present at the end of the description, no leading @, as AGENTS.md:142-153 requires.
- Open question (not a finding without more evidence): docs/api.md:588-605 says TMLv0 strict tools are accepted, but does not say arguments are returned verbatim. The new guarantee is only stated in the PR; TODO.txt:5-8 stays open until the qualification is recorded.
#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:
- AGENTS.md:72-140 (required PR descriptions: why / what exactly changed / claimed benefit / evidence, in that order; resolve references; no process assurances; reproduction commands must identify inputs and configuration; disclose unrun checks), AGENTS.md:142-153 (Discord line), AGENTS.md:43-70 (required prose review), AGENTS.md:512-517 (TODO.txt holds follow-ups).
- docs/design-review.md principle 16 (lines 147-170) restates the four-part scheme and requires explicit before/after; principle 17 (163-169) the Discord line.
- .agents/skills/repo-prose/SKILL.md (whole file): describe the system as it exists, state evidence as conditions/measurement/result/conclusion, distinguish implementation from qualification, no change history or run journals.
- docs/TODO.txt:5-8 is the tracked item this PR addresses ("Qualify
strict: truefunction tools on a TMLv0 core ... Close when a served TMLv0 core passes those checks and the result is recorded"). The PR references it correctly and does not claim to close it. - Voice/scope context: the affected files are runtime output parsing (helios/src/output, helios/src/grammar) and a server test; the change fits the charter's "keep the runtime small and model-agnostic" (no per-model branch added) and requires no core-format compatibility statement beyond what the PR gives.