#1 [high] The change: shape and size of PR #638
PR #638 (flare-autobot, open 2026-11-30, ready for review, base main, head f414393, 9 files +1316/-33). Fixes #450.
Files (pr_files):
- docs/api.md +10/-2
- helios/src/server/http.rs +21/-1
- helios/src/server/inference.rs +1/-0
- helios/src/server/protocol/decode.rs +282/-27
- helios/src/server/protocol/encode.rs +63/-1
- helios/src/server/protocol/mod.rs +1/-0
- helios/src/server/protocol/tests.rs +683/-0
- helios/src/server/request.rs +13/-2
- helios/src/server/runtime/phase_tests.rs +242/-0
Actual code:
- encode.rs: new
responses_tool_entry()(encode.rs:23-52 in PR head) serializes custom tools as {type:custom,name,format:{type:grammar,syntax,definition}|{type:text}} and function tools as {type:function,name,parameters|null,strict}, adding "description" only when nonempty. Newresponses_tools()(encode.rs:~306-328) groups tools byTool.namespacein first-appearance order, emitting {type:namespace,name,description:"": if None,tools:[...]}.Encoder::response()now emits"tools":self.responses_tools()and"text":{"format":self.text_format}instead of constants (encode.rs:818). New fieldtext_format: Valuedefault{"type":"text"}+set_text_format()(encode.rs:133,187,191). - inference.rs:61 adds
pub namespace_description: Option<String>toTool. - decode.rs:
responses_messages()line 343:is_error: flag(&item,"is_error",false)?instead of literal false.tool()setsnamespace_description: None(decode.rs:442).- New
responses_text_format()(decode.rs:466-505): validates text object, text.format object, type in {text,json_object,json_schema}, json_schema requiresschemaobject or boolean, echoes optional name/description (via optional_id) and strict (bool) ; unsupported type -> unsupported error. options()now returns(Options, Value)(decode.rs:509+); Responses branch uses responses_text_format and sets constraint;has_formatnow gates thegrammarmutual-exclusion check (decode.rs:586-591) — NOTE behavior change: previously the check wasif present(body,"grammar") { if !format.is_null() {...} }; now same semantics but for Responseshas_formatis false for omitted/null format, so grammar+omitted format accepted (documented as intended).decode()(decode.rs:903-926): duplicate Responses namespace name -> HTTP 400duplicate tool namespace "x"; namespace_description read from wrapper, empty -> None; nested tool gets t.namespace_description; no more description concatenation.Decoded.text_formatfield (protocol/mod.rs:67).
- request.rs:517-533
template_inputs()now prepends nonemptynamespace_description+ "\n" to tool description before custom-tool grammar instructions. - http.rs: no_websocket() message changed to "GET /v1/responses and WebSocket transport are not supported; use POST /v1/responses with HTTP JSON or SSE" (http.rs:20-25);
generate()callsencoder.set_text_format(decoded.text_format)at http.rs:371. - docs/api.md: documents GET 400 (line ~231) and echo/is_error contract (~733-739).
- Tests: 6 new tests (2 in tests.rs ~2846-3200, 1 in decode.rs native_prompt_tests ~2260-2450, 1 in http.rs ~706-723, 1 in phase_tests.rs:4696).
#2 [high] Why: issue #450 reproduces all three defects, two confirmed by yatesdr
Issue #450 (shieldstar, opened 2026-11-21, still open, labels area:api+bug) is the only thing PR #638 claims to fix.
- Report gives a full reproducer: 4 modules added to helios at commit 25b49519, all 4 pass, showing wire_tools=[], wire_text={"format":{"type":"text"}} next to tool_choice="required"; Responses tool_result flags [false,false] vs Chat [true]; GET /v1/responses 400 "WebSockets are not supported...".
- Source pointers in the issue: encode.rs:692 (Responses arm), decode.rs:311-318 (is_error literal at :316), decode.rs:170/:227 (Chat/Messages read the flag), server.rs:533 (route), http.rs:19-25.
- yatesdr triage comment 2026-11-21 18:38: items 1 and 2 "Confirmed"; item 3 "Documented" — GET 400 is intentional because WebSocket transport is unsupported, only the wording is at issue. So the GET part is a docs/wording fix, not a product bug, in the maintainer's own reading.
- flare-autobot comment 2026-11-30 11:41 confirms on origin/main c146d7be and pre-announces the fix + PR #638. So the issue is <10 days old, single reporter, one maintainer confirmation; no long-running demand. Second-order defects PR #638 fixes that #450 does NOT report (undeclared by the issue, declared by the PR): duplicate Responses namespace names accepted; namespace description concatenation into Tool.description with a leading newline when empty; text.format json_schema metadata (name/description/strict) dropped; json_schema.schema validated only later at grammar compilation.
#3 [high] The change: undeclared vs described behaviours (gaps both ways)
Undeclared / under-declared in the diff (verified by reading):
- Behaviour change for
Tool.namespace_descriptionsemantics: main concatenated"{namespace description}\n{tool description}"intoTool.description(decode.rs:849-858 on main). PR stores it separately and moves the prepend intorequest::template_inputs()(request.rs:520-532). Net rendered prompt for a NONEMPTY namespace description is the same string ("desc\n" + tool description) only becausetemplate_inputsprepends{prefix}\n{description}— but the tool description now also flows to the model after the grammar instructions? No: order is base=prefix+"\n"+description, then grammar text appended — matches main's order. Equivalent for nonempty; for empty description main produced a leading "\n" (PR fixes). So prompt-compatible, as claimed. Encoderis created in http.rs:358 withdecoded.request.tools;set_text_formatis called at http.rs:371 before start — fine. ButEncoder::newdefaulttext_formatis{"type":"text"}and set_text_format is only called inhttp::generate, so other Encoder construction sites (logprobs.rs:150, protocol/tests.rs, phase_tests.rs:987) never echo a request format. No production path besides generate() reaches Responses responses(), so OK.- New hard 400s not documented in docs/api.md: duplicate Responses namespace name (
decode.rs:909-911), non-objecttext/text.format, missing/invalidjson_schema.schema, invalidname/description/strict. docs/api.md gained only the GET-400 line and a 6-line echo/is_error paragraph; the namespace-duplicate rule and the text.format validation/echo metadata are NOT in docs (the existing docs/api.md:571-572 only says namespaces become namespace__name). - Echo shape detail the description glosses: custom tools are echoed with
formatreconstructed from the stored grammar rather than the request body, so an inputformat: {"type":"text"}echoes{"type":"text"}and a grammar echoes{"type":"grammar","syntax","definition"}; function tools echoparameters: nullwhen undeclared (description does say this) and always echostricteven when the client omitted it (synthesizedfalse). So the echo is not byte-identical to the request — a client diffing request vs response sees extrastrict/omitteddescription. docs/api.mdclaims (PR text) "defaulting to {"type":"text"} when text.format is omitted or null" — true; buttext: {}also defaults (test line 3028), not documented but harmless.- Description claims Responses SSE lifecycle echo on
response.created/in_progress/completed/incomplete/failed— verified: all five callself.response()(encode.rs:288-298, 725-735, 827). - Description's "no Protobuf/model core changes" checks out: inference.rs change is a Rust struct only, not a wire/formats type.
Things the description says that the code does not do: nothing found — the described items all exist. One nuance: the description says
responses_text_format()is a "single-pass" helper; it is a single function butfield(format,"type")is called and then type re-matched inoptions()viaformat["type"].as_str().unwrap()with_ => unreachable!()(decode.rs:552-556), i.e. a second implicit invariant across two functions.
#4 [high] Related work: #548/#560/#458 overlap encode.rs; builds on #418/#333; sibling #637
- Same files, overlapping, open: #548 (WynnD, per-request histograms) and #560 (WynnD, vLLM per-request metrics, stacked on #548) both touch docs/api.md, helios/src/server/http.rs, protocol/encode.rs, protocol/tests.rs, runtime/phase_tests.rs. Conflict risk is real but textual: #560 adds
Encoder::record_times/metrics_valueand another field to Encoder; #638 addstext_formatfield +set_text_formatand edits the sameEncoder::response()json! literal (encode.rs:818) that #560 attachesmetricsto (response.completed/response.incompleteframes). Whoever lands second rebases that one line. - #458 (open, brandonmmusic-max) "Restore Responses SSE sequence_number when Encoder::apply or finish fails" — same file, adjacent area (Encoder SSE frame sequencing), no textual overlap with the tools/text literal.
- Merged work this builds on: #418 (jcartu, merged 2026-11-22) strict function-tool schemas — added
Tool.strictand thestrictreject rules in decode.rstool()that #638's echo now has to serialize ("strict": tool.strict); #333 (yatesdr)parallel_tool_callscompletion; #170 (mark-yong) Responses/Chat usage echo; #167 (yatesdr) reasoning budget + DeepSeek ranges. #626 (lukealonso, merged 2026-11-30 02:39) is the one main commit touching these files since #638 branched: it addsPrompt::grammar_reasoning(helios/src/server/request.rs:408,441 on main) and speculative-grammar phase tests in phase_tests.rs. #638 addsnamespace_descriptionhandling insidetemplate_inputs(request.rs:517-533) — different function region than #626's prepare_inference changes, so no textual conflict, but #638's PR description does not mention #626 and its "Recent activity" claim is silent on it. - Issue #450 is the only item #638 claims; issue is open and PR says "Fixes #450".
- Same-author sibling: #637 (flare-autobot, open 2026-11-30 11:40, +881/-7) "Bound synthesized tool-call IDs to 37 characters across HTTP protocols", fixes #447, and also edits helios/src/server/protocol/tests.rs (+454 lines) as #638 does (+683). Both are autobot-authored, both touch protocol/tests.rs, both edit docs/api.md — likely to conflict in the shared test module if landed near each other.
- Nothing found that #638 supersedes, competes with, or reverses. No revert of prior work identified.
#8 [high] Claims and evidence: all code claims backed by CPU tests; CI on head is red and unexplained
Claim → what backs it (verified by reading the PR/test files):
- "Echoes declared tools and text.format in buffered and SSE" — BACKED in code.
responses_tools()(encode.rs:306-328) +self.text_format(encode.rs:818); all five lifecycle frames route throughresponse()(encode.rs:288,295,297,298,725,730,733,735,827). Tests: protocol/tests.rs:2846-2869 (start/response echo + decode→encode→decode equality), 3125-3133 (text.format on created/in_progress/response/failure), phase_tests.rs:4696 (production http::generate buffered+streamed). Not backed by any live HTTP run —tests/server/test_protocols.pywas not extended: it still only assertsresponse.tool_choice == "required"and output items (test_protocols.py:386-401), and line 623 still asserts GET /v1/responses is 400 only. - "Malformed text/text.format, non-boolean is_error, duplicate namespace requests fail with HTTP 400 before model admission" — BACKED in CPU tests: protocol/tests.rs:3136-3181 (13 rejection cases), 3183-3200+ (grammar exclusion), phase_tests.rs:4696 for pre-admission rejection. Error strings verified in decode.rs:466-505, 909-911.
- "is_error lowers identically to Chat and Anthropic across Jinja, DeepseekV4, DeepseekV41, TmlV0 including multimodal" — BACKED by decode.rs:2261-2450 which renders all four frontends and asserts text/token_ids/image_sources parity plus
Tool execution failed:(non-TML) and<|content_tool_error|>(TmlV0) presence. This is the strongest evidence in the PR. - Test counts 1,805 / 245 / 227 passed — claimed, CPU release aarch64, not independently reproduced here; consistent with neighbours (#626 claims 1,806 at the same time on the same suite, #637 claims 1,803 — the oscillation is consistent with branch content differing, not with a fabricated number).
- "Expected but unmeasured: OpenAI Python SDK v2 Pydantic deserialization of echoed response.tools/response.text" — explicitly declared unmeasured. This is the one claim a reviewer cannot check from the diff. Note the SDK's
Responsemodel requirestextto be aResponseTextConfigwithformat; the PR echoes{"format": {...}}only (noverbosity), matching{"type":"text"}-shaped formats — plausible but unverified. - "Per-request host storage for text_format and namespace_description bounded by max_body_bytes" — true by construction (both derive from the request body), reasonable.
- "No Protobuf/model core/cache/scheduler/CUDA changes; existing cores load unchanged" — verified: inference.rs diff is one struct field (
pub namespace_description), not a serde/Protobuf type; no grammar.rs or runtime.rs change. - CI on head f414393: FAILED per the orientation packet. The PR body does not mention or explain a CI failure at all (unlike #626, whose failing CI was called out by the autobot reviewer as an unexplained blocker). That is the single most checkable discrepancy: local claims of 1,805 passing vs a red CI on the same head.
- Not claimed but worth noting: the PR does not claim, and does not test, that an echo round-trip is byte-identical to the client's request — protocol/tests.rs:2857-2868 asserts semantic equality (decode(re-encoded tools) == decode(original tools)), which is the right invariant, but a client that compares
response.tools == request.toolswill see the addedstrict: falseand dropped unknown keys/emptydescription.
#9 [high] Reach: prompt changes for empty namespace descriptions + six new 400 rejections
- Users: anyone reading back an OpenAI Responses object (Pydantic SDK deserialization, gateways/agents that re-serialize history) and anyone replaying failed tool results through /v1/responses. Clients that only read
output/usageare unaffected except for a slightly largerresponseobject on every SSE lifecycle frame. - Prompt-visible change (matters for users and for prefix cache): for a Responses custom tool inside a namespace with a description, the rendered model prompt is identical to main; for a namespace whose description is empty/absent, main prepended a bare "\n" to the tool description (decode.rs:849-858 on main) and the PR removes it — so the rendered prompt for those requests CHANGES versus main. That silently invalidates prefix-cache reuse for any in-flight/long-lived client sending empty namespace descriptions. The PR description says "namespaced tool prompts render identically to before", which holds only when the namespace description is nonempty.
- Prompt-visible change 2: failed Responses tool results now render error tokens (
Tool execution failed:/<|content_tool_error|>) where they used to render as successes — the description acknowledges "prefix caching naturally separates error and non-error trajectories". - New 400s for existing clients (behaviour change, reject-where-previously-accepted): duplicate namespace names in one request;
textortext.formatnot an object;text.format.type == "json_schema"without a schema object/boolean; non-stringname/description; non-booleanstrict; ajson_schemaname/descriptionsent as e.g. a number. On main, most of these were either ignored or failed later at grammar compilation. Charter #417 endorses reject-or-implement, so this is defensible, but it is a strictness increase on a documented API surface and it is only documented for the GET route, not for these. - Operators/configuration/defaults: no new flags, no config keys, no defaults changed; no dependency changes.
- Compatibility: no Protobuf, no core format, no exported-core change (inference.rs:61 is a Rust-only struct field). Existing cores load unchanged, as claimed.
- Documentation: docs/api.md gains 2 lines in "Transport and admission" (lines 230-233) and 6 lines in "Stateless Responses" (733-738). It does NOT document: duplicate-namespace 400, text.format validation rules/echoed metadata, or that namespace descriptions are now prepended at lowering time.
- Deployment: nothing changes in packaging, Orbit, Ignition, or CLI.
- Also affected:
tests/server/test_protocols.py:623still only checks the GET status code, so the served-contract suite has no coverage of any of this; the Python suite was not extended by the PR.
#10 [high] Process: ready-for-review, CI red on f414393, no reviews, same-day age
- State: OPEN, marked "ready for review" (orientation packet), opened and last updated 2026-11-30 (same day). Base main; head f414393. Not a draft.
- CI on head f414393: FAILED (orientation packet). This is the one hard, checkable fact that sits against the PR's local evidence (1,805 helios / 245 flare / 227 flare-cli passing, 0 failed). The PR description does not mention CI at all — unlike #626, whose red CI was called out by the autobot reviewer as an unexplained blocker.
- Reviews: none. Comments: none. Labels: none.
- Exactly one main commit since branching touches these files: #626 (merged 2026-11-30 02:39, lukealonso). It is not mentioned anywhere in the PR description.
- Reproduce-the-claim gap:
tests/server/test_protocols.py(the served OpenAI/Anthropic SDK contract suite) was not touched; #638's only non-Rust verification is its self-declared "expected but unmeasured" SDK deserialization. - Size: 9 files, +1316/-33, of which +925 are tests (protocol/tests.rs +683, runtime/phase_tests.rs +242) — so ~391 lines of production/doc change across 7 files. Neighbours for scale: #637 (same author, same day) +881/-7 with +454 tests; #626 +1405/-39.
- Open questions for a decider, unanswered by the material: (a) why CI is red on f414393; (b) whether "namespaced tool prompts render identically to before" is meant to include the empty/absent-namespace-description case, where main's leading newline disappears; (c) whether the six new 400 rejections belong in docs/api.md beside the new GET-400 sentence; (d) whether tests/server/test_protocols.py should gain echoed tools/text.format and is_error assertions, since it already asserts Responses tool/choice shapes at lines 386-401.
#13 [high] Amendment 2026-11-30 (head 7ba8c66): rebase on main, review items resolved
EVENT: new head. PR #638 force-pushed/rebuilt as single commit 7ba8c660 (2026-11-30, git author yatesdr, not "derek"). GitHub PR author is still flare-autobot; PR updated 13:23, opened 11:40. Diff now +1305/−51 across 9 files (was +1316/−33 on f414393), head 7ba8c66, base advanced c146d7be → 8da73911.
- git chain (search_history at pr/638): 7ba8c660 (yatesdr, "Echo Responses tools and text.format and decode tool output is_error") on top of 8da73911 (#624, merged 12:39) on top of 4ed5d875 (#637, merged 12:36) on top of 0a8c20f4 (#626).
- Labels changed: now
area:api, bug, priority:P2, triage:review(previous report said "no labels"). Still 0 human comments/reviews; only the two flare-autobot bot comments (case file 12:08, Autobot Review 12:28). - Test-count claim updated: 1,816 helios / 245 flare / 227 flare-cli passed (was 1,805/245/227); body says rebased onto origin/main 8da73911, which includes #624.
- Per-file size now: docs/api.md +13/−3, http.rs +21/−1, inference.rs +1, decode.rs +250/−42, encode.rs +75/−3, protocol/mod.rs +1, protocol/tests.rs +689/−0, request.rs +13/−2, runtime/phase_tests.rs +242/−0. Still no Python/
tests/server/test_protocols.pychange.
CONFLICT RESOLUTION: because the head already contains merged #637 (4ed5d875), the predicted protocol/tests.rs / docs/api.md rebase conflict with #637 is resolved in-tree — #637's assert_synthesized_protocol_tool_call_id + two ID tests occupy tests.rs:2670-3125 and #638's tests start at 3126. docs/api.md:441-452 is #637's 37-char ID paragraph; #638 adds 231-233, 579-582, 747-752 — no overlap. Remaining open-PR overlap: #548 and #560 (both still open, both edit Encoder::response()'s response.completed/response.incomplete literal region encode.rs:812-829 and docs/api.md).
MY PRIOR REVIEW ITEMS NOW FIXED (verified in head):
- "Should fix" rebuild-per-response:
build_responses_tools(&tools)now runs once inEncoder::new(encode.rs:175-179), stored asresponses_tools: Value(field encode.rs:156, init 216);Encoder::start()reuses one response viaresponse.clone()(encode.rs:325-329). Per-tool rebuild + namespace HashMap gone. - Subtract #1 single-pass text.format:
responses_text_format()now returnsResult<Option<(Option<Constraint>, Value)>>(decode.rs:466-506) andoptions()consumes it directly (decode.rs:552-558); the secondmatch/.unwrap()/_ => unreachable!()re-dispatch is deleted. - Subtract #2 partly fixed:
Encoder::newno longer builds a default{"type":"text"}(encode.rs:217 nowtext_format: None) and{"type":"text"}materializes once inresponse()(encode.rs:824-828,unwrap_or_else).decode.rs:482still builds it for explicit{"type":"text"}(harmless). - Subtract #3 test-fixture dedup done: shared
fn tml_frontend(include_image_pad: bool) -> Frontend(decode.rs:2092) used at 2159 and 2278. - Nit "docs namespace rules": fixed — docs/api.md:579-582 now says "ambiguous names and duplicate namespace declarations are rejected with HTTP 400, and empty namespace wrappers emit no entry in
response.tools". - Nit "compatibility wording": fixed in body — now "Non-error tool results and nonempty namespaced tool prompts render identically to before; explicitly empty
\"description\": \"\"namespace wrappers intentionally stop prependingmain's spurious leading\"\\n\"...". So my finding that the prompt change for empty descriptions was undeclared is now disclosed by the author. - Description wording now matches code: it calls
responses_text_format()"single-pass", which is finally accurate.
REMAINING (re-cited against new line numbers):
- CI: the specific blocker citation
f414393is stale (head is 7ba8c66); still no CI result for any head anywhere in the PR body or comments — only local Linux aarch64 CPU runs. The blocker narrows from "red CI unexplained" to "no CI evidence produced for 7ba8c66, and the f414393 failure was never explained". - Per-envelope deep copy remains: encode.rs:828 embeds
"tools":self.responses_toolsinsidejson!, which converts the expression viaserde_json::to_value(&expr)— a fresh deep copy of the whole tool array perresponse()call;text_formatis.clone()d each call (encode.rs:824-827).http::generatestill callsresponse()4× on success (start encode.rs:325 + the clone at 327-328, finish, http.rs:582) andfailure()calls it once more (encode.rs:837). So 4 deep copies per successful Responses request, 5 on a failed one. text.formatvalidation 400s still undocumented: docs/api.md documents only GET-400 (231-233), namespace rules (579-582), echo/is_error(747-752). Not documented: non-objecttext/text.format, invalid/absentjson_schema.schema(decode.rs:487-491), invalidname/description(493-498), non-booleanstrict(499-501), non-booleanis_error, andgrammarvs explicittext.formatexclusion (581-586).tests/server/test_protocols.pystill untouched; SDK deserialization still "expected but unmeasured" in the body.
UNCHANGED FINDINGS (still true at head): echo is semantic not byte-faithful — strict always echoed, parameters: null when undeclared, empty description dropped on tool entries but "description": "" always emitted on namespace entries (encode.rs:23-77); duplicate-namespace 400 (decode.rs:904-906); empty→None normalization (decode.rs:907-911); namespace description prepended in request::template_inputs() (request.rs:540-552); is_error decode (decode.rs:343 class of line, flag(&item,"is_error",false)?).
AUTHOR/TIMELINE AMENDMENT: the branch now carries a commit authored by yatesdr, a maintainer (47 commits in helios/src in 180 days, and the person who triaged #450 on 2026-11-21). My previous "no maintainer has engaged" framing is now too strong: maintainer engagement is visible as authorship of the rebased commit even though GitHub shows flare-autobot as PR author and there are still no human comments/reviews.
#15 [high] Verified amendment claims + rejected candidate finding (head 7ba8c66)
Second verification pass on head 7ba8c66, checking that the amendment did not overstate any fix.
CONFIRMED RESOLVED (word-for-word check, not just shape):
Encoder::newprecomputes tools once:let responses_tools = if protocol == Protocol::Responses { build_responses_tools(&tools) } else { Value::Null };(encode.rs:175-179). Noresponses_tools()method remains.Encoder::start()Responses arm builds the response once and clones it (encode.rs:324-330).responses_text_format()returnsResult<Option<(Option<Constraint>, Value)>>(decode.rs:466-506);options()usesif let Some((constraint, echoed)) = responses_text_format(body)? { options.constraint = constraint; (true, Some(echoed)) } else { (false, None) }(decode.rs:552-558). The old secondmatch … .unwrap()/unreachable!()is not present any more.Encoder::newsetstext_format: None(encode.rs:217);{"type":"text"}is materialised only inresponse()viaunwrap_or_else(encode.rs:824-827).fn tml_frontend(include_image_pad: bool) -> Frontendat decode.rs:2092, called at 2159 and 2278 (was two ~58-line copies).- docs/api.md:579-582 documents duplicate-namespace 400 + "empty namespace wrappers emit no entry in
response.tools". - PR body now states the empty-namespace-description prompt change explicitly (search_items hit on #638 description: "...concatenating each namespace's
descriptiondirectly intoTool.description(preventing lossless namespace echoing and adding a leading newline for empty ...)").
STILL TRUE (unchanged by the rebase):
response()is ajson!literal at encode.rs:812-829 containing"tools":self.responses_tools(:828) and a.clone()dtext_format(:824-827).json!converts expressions withserde_json::to_value(&expr), so each call deep-copies the whole tool array plus the format value.self.response()call sites: encode.rs:325 (start, then cloned at 327-328), 736 (finish, Responses), 837 (failure, Responses), plus http.rs:582 (Delivery::Complete). On success that is 4 calls → 4 deep copies; on a post-start failure 5. (encode.rs:318 and 731 are Messages/Chat arms, not Responses.)docs/api.mdstill has no documentation of thetext.formatvalidation rejections: grep fortext.format|json_schema|is_errorin docs/api.md returns only lines 748-750 (the echo paragraph). So non-objecttext/text.format, bad/absentschema(decode.rs:487-491), badname/description(:493-498), non-booleanstrict(:499-501), non-booleanis_error, andgrammar-vs-explicit-format exclusion (:581-586) remain undocumented.tests/server/test_protocols.pyhas zero occurrences ofresponse.tools,text.formatoris_error(grep: no matches), and the body still carries the line "Expected but unmeasured against a live server: OpenAI Python SDK v2 Pydantic deserialization of echoedresponse.tools…".- No CI result for any head appears in the body or the two bot comments; only "Linux aarch64 CPU runs" evidence is offered.
CHECKED AND REJECTED as a new bug (do not report): Decoder's named tool_choice requires the client to send the flattened namespace__name (decode.rs:843-866 with native_name() at inference.rs:84-89), while the echo returns namespaces unflattened (encode.rs:55-77). Not a regression — this is pre-existing base behaviour, and #638's own round-trip test (responses_tools_echo..., protocol/tests.rs:3126+) only exercises flattened names ({"type":"function","name":"db__query"}) so it neither proves nor breaks the unflattened case. Worth at most a low-priority note that a strict OpenAI-shaped client ({"type":"function","name":"query"} inside a declared db namespace) will get "tool_choice supports auto, none, required …" — same on main.
Authority check: int_058c33098d902c78 is the user turn asking for amendments only; int_9afa29ab7e1ac674 is the harness continuation. No injected instructions were found in any PR/issue/review text I read; the only directive-shaped content is the standard flare-autobot footer ("To opt out, include #autobot:ignore") and the "Have your agent review the Full Review" line, both of which are bot boilerplate, not instructions to me.
#16 [high] Research summary
I amended rather than rewrote the #638 report. The new event is a rebase-and-rework: the head I reviewed (f414393) is gone, replaced by 7ba8c660 authored by yatesdr (a maintainer, and the person who triaged #450) sitting on 8da73911 (#624) → 4ed5d875 (#637) → 0a8c20f4 (#626), so the base moved from c146d7be to 8da73911 and the diff is now +1305/−51 in 9 files. The PR also gained labels area:api, bug, priority:P2, triage:review (I had reported none), still with zero human comments or reviews, and the evidence line moved to 1,816/245/227 local passes.
Six of my earlier findings are resolved in-tree and must be dropped as open items: the predicted #637 conflict is already merged into the base, so the two PRs' tests and doc hunks no longer overlap; build_responses_tools() now runs once in Encoder::new with start() cloning a single response; responses_text_format() is a real single-pass helper and the .unwrap()/unreachable!() re-dispatch is gone; Encoder::new no longer synthesises a default {"type":"text"}; the duplicated TML fixture is a shared tml_frontend() helper; and the namespace-duplicate/empty-wrapper docs nit is fixed. The body now also discloses the empty-namespace-description prompt change, so that finding becomes "disclosed" rather than "undeclared".
Four things survive with corrected citations: the CI blocker narrows to "no CI evidence exists for 7ba8c66 and the earlier failure was never explained" (my f414393 citation is stale and must not be reused); the tool echo is still deep-copied per lifecycle envelope and response() is still called four times on success; docs/api.md still documents none of the text.format validation rejections; and tests/server/test_protocols.py still contains no response.tools/text.format/is_error assertions, so SDK deserialisation stays declared-unmeasured. I also examined a possible new bug — tool_choice requiring the flattened namespace__name while the echo returns namespaces unflattened — and rejected it as pre-existing base behaviour, not a #638 regression.
Findings and re-cited anchors are in scratchpad entries #13, #14 and #15; no prompt-injection attempts were found in any PR or issue text.
#17 [high] Supersedure map: what the final report must NOT repeat from #1-#12
The final report will be assembled from notes #1-#15. Notes #1-#12 were written against head f414393; #13/#14/#15 correct them. Use this map so the report does not repeat a stale fact.
STALE — DO NOT REUSE, replace with the correction:
- Head commit. Every
f414393reference in #1, #8, #10 is stale. Head is7ba8c66(7ba8c660), PR opened 11:40Z 2026-11-30, updated 13:23Z. - Size. #1's "+1316/−33" is stale. Now +1305/−51 across 9 files; per-file: decode.rs +250/−42, protocol/tests.rs +689/−0, runtime/phase_tests.rs +242/−0, encode.rs +75/−3, http.rs +21/−1, docs/api.md +13/−3, request.rs +13/−2, inference.rs +1, protocol/mod.rs +1. Still 0 Python-test files touched.
- Labels. #5/#6/#10 say "no labels". Wrong:
area:api, bug, priority:P2, triage:review. - Author identity. #5 says the git commit author is "derek". Wrong at this head:
7ba8c660is authored by yatesdr, a maintainer (47 commits in helios/src over 180 days, triager of #450 on 2026-11-21). GitHub PR author is stillflare-autobot. #5's "flare-autobot has 0 merged PRs in 180 days" stays true but is now much less relevant, and #6's "nobody has engaged" must be softened: maintainers engaged via authorship of the rebased commit, though there are still 0 human comments and 0 reviews (only the two flare-autobot bot comments, 12:08Z and 12:28Z). - Local pass counts. #8's "1,805 / 245 / 227" is stale; the body now claims 1,816 helios / 245 flare / 227 flare-cli, against
origin/main8da73911. - Line numbers. #1, #3, #4, #9 cite old anchors (
encode.rs:818,decode.rs:903-926/466-503/549-564,request.rs:517-533,http.rs:371). Use #14's re-cited set instead (encode.rs:23-77, 156, 175-179, 216-217, 221-223, 324-330, 812-829, 837; decode.rs:340-345, 442, 466-506, 508-580, 552-558, 581-586, 898-921, 922, 976, 2092, 2277; request.rs:539-552, 768; http.rs:19-25, 371, 415, 582, 707; inference.rs:61; protocol/mod.rs:67; docs/api.md:231-233, 446-452, 579-582, 747-752). - Resolved items. #1/#3 measurement of "6 new tests / ~925 test lines" is stale; head has 5 new #638 tests (protocol/tests.rs:3126, 3476, 3677; decode.rs:2277; phase_tests.rs:4703) plus #637's three in base. #1's "
responses_text_format()re-matches with.unwrap()/unreachable!()" is FIXED, as are #1's "custom format reconstructed from stored grammar" being the only echo asymmetry worth flagging, theEncoderper-response rebuild, the duplicated TML fixture, and the namespace-docs nit (#13 items 1-7). - Prompt-compat finding. #1/#3/#9/#11 present the empty-namespace-description prompt change as undeclared. It is now disclosed in the PR body — report it as disclosed, with the residual point that
docs/api.mdstill does not mention it.
STILL CURRENT, unchanged by the rebase (cite as-is with new lines):
- CI blocker, narrowed: no CI result for any head appears in the body, and the
f414393failure was never explained; only "Linux aarch64 CPU runs" evidence is offered (#8, #10, #13). - Tool echo is semantic, not byte-faithful:
strictalways echoed,parameters: nullwhen undeclared, emptydescriptiondropped on tool entries but"description": ""always on namespace entries (encode.rs:23-77). - New HTTP 400s: duplicate namespace (decode.rs:904-906), plus the
text.formatvalidation family (decode.rs:466-506) and non-booleanis_error; none documented in docs/api.md (grep shows only 748-750). tests/server/test_protocols.pyhas zeroresponse.tools/text.format/is_errormatches; SDK deserialisation still declared "expected but unmeasured".- Echo is deep-copied per lifecycle envelope:
json!at encode.rs:828 copies the whole tools array;response()called at encode.rs:325, 736, 837 and http.rs:582 → 4 copies on success, 5 on post-start failure. - Nothing is superseded or reverted; #548/#560 (both open, WynnD) remain the only real open-PR overlap, on the same
response.completed/response.incompleteliteral (encode.rs:812-829) and docs/api.md. - Charter fit still holds (Goals + "#417 don't silently ignore API fields"); no perf claim so no GPU-bench gate.
- Candidate bug checked and REJECTED, do not report as a regression: named
tool_choicerequires the flattenednamespace__name(decode.rs:843-866,native_name()inference.rs:84-89) while the echo returns namespaces unflattened (encode.rs:55-77) — pre-existing base behaviour, and #638's round-trip test only exercises flattened names.
#5 [medium] People: commit author is "derek", GitHub author flare-autobot with 0 merged PRs
- Repo git author for head commit f4143935 is "derek" (search_history on decode.rs/request.rs shows
f4143935 2026-11-29 derek: Echo Responses tools and text.format and decode tool output is_error). GitHub author/opener is flare-autobot (COLLABORATOR). Signature inside the commit message is the house style: most merged PRs end "Discord: " — #638 ends "Discord: flare-autobot". - flare-autobot's 180-day record: 0 merged, 0 closed, 2 open (#637, #625). So this account has no merged history in the last 180 days; every review so far has come from the autobot apparatus itself (e.g. #626 got an "Autobot Review" comment).
- Authors who usually work these areas (last 180 days, helios/src): Luke Alonso (229 commits), Martin Vit (52), yatesdr (47). This file set's most recent non-autobot author is Frosty40 (#615, thinking_token_budget) and before that jcartu (#418 strict tools) and yatesdr (#167).
- Who has engaged on #638 so far: nobody — pr_comments returns "No comments"; reviews: none; labels: none. The only cross-reference is flare-autobot's comment on #450 announcing the PR.
- #626 (same file area, merged hours before) drew a full Autobot Review with explicit "Changes Requested" citing a failing CI on its head. That is the pattern to expect here.
#7 [medium] Project fit: matches Goals + "#417 don't silently drop fields"; no perf claim so no GPU-bench gate
Where it lines up:
- Charter Goal: "Support the documented Chat Completions, Completions, Responses, and Messages APIs (including token counting)" and Standards: "We target the documented subset of the OpenAI API ... and JSON Schema for structured outputs" — echoing
tools/text.formatper OpenAI's Responses contract and honouringis_erroron tool outputs is squarely inside that goal. - Charter "Don't silently ignore API fields. If a standard request field is passed in, either implement it according to the spec or reject it. Never accept it and quietly drop it (#417)" — main was accepting
is_errorandtext.formatmetadata and silently dropping them, which is exactly the anti-pattern; PR #638 implements instead of drops. Strong fit. - Charter "Keep the runtime small and model-agnostic ... shouldn't accumulate per-model branches" — the change is in the shared HTTP protocol layer (helios/src/server/protocol/*), no per-model branch. Fits.
- Charter "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs" — #450 is a reproducible bug confirmed by a maintainer (yatesdr) and the docs half is "bad docs". Fits.
- Four-part PR description requirement (why / what / claimed result / evidence): present and thorough. Where it does not line up / needs attention:
- Principle 12 of docs/design-review.md ("Validate the real path and report evidence honestly ... Performance claims require ... actual Helios service measurements") and the charter's "Bring real evidence": #638 makes no performance claim, so the GPU-benchmark gate does not bite, but it also has no live-served evidence; the description honestly lists the unrun OpenAI Python SDK v2 test and the skipped GPU/checkpoint #[ignore] tests. Principle 12's "satisfy every applicable layer of the testing hierarchy" is the open question — the TLA+/kani layers were skipped with a stated reason (no scheduler/lifecycle change), which is consistent.
- Charter "Be explicit and pin everything" — nothing here adds defaults or deps.
- Charter review standard "Supported matrix & compatibility: Check interactions across every supported model, cache scheme ... verify that existing data, artifacts, and exported cores still load": #638 changes the rendered prompt only when a namespace description exists — it argues non-error results render identically. That is a prompt-identity claim that only CPU fixture tests back; it matters for prefix-cache behaviour across clients (description says prefix caching "naturally separates" error/non-error trajectories).
- Non-goal angle: nothing in the change adds model aliases or hardware support.
#11 [medium] Recent activity: #626 alone touches these files since branching; defects date to endpoint introduction
Recent main commits in helios/src and docs (orientation packet, last 60 days), newest first, with relevance to #638:
- 0a8c20f4 2026-11-29 Luke Alonso: Allow speculative reasoning for grammar-constrained requests (#626) — THE ONLY main commit touching #638's files since it branched. Adds
Prompt::grammar_reasoningat helios/src/server/request.rs:408,441 and speculative-grammar phase tests in runtime/phase_tests.rs:7301-8068. Relation to #638: adjacent but not overlapping — #626 changes request.rsprepare_inferenceand #638 changes request.rstemplate_inputs(request.rs:517-533). #638 neither builds on nor reverses it, and does not mention it. - c146d7be 2026-11-29 Luke Alonso: Remove copy drafts and history drafts while keeping legacy cores loadable (#620) — stated base commit; no interaction.
- 59adc480 2026-11-29 PCCessna: Retain bounded timing-refresh and acceptance credit across idle (#540) — no interaction.
- e0290571 2026-11-29 PCCessna: parallelize Engram plane assembly in core export (#586) — no interaction.
- 6cb7e3b7 2026-11-29 Luke Alonso: Unlock multi-token speculation and two-frame pipelining for host stops (#619) — no interaction.
- e4d8eb60 2026-11-29 Frosty40: thinking_token_budget for ContentHeaders + trim incomplete UTF-8 tails on cut (#615) — touched decode.rs/request.rs/docs/api.md before #638; no interaction beyond shared files.
- c3489b23 2026-11-29 PCCessna: avoid splitting prefill on zero-budget checkpoint anchors (#582) — no interaction.
- e80b1f2f 2026-11-29 Luke Alonso: decouple signed bodies, single-pass export, slice synthesis, HF LFS SHA-256 (#618) — no interaction. History of the exact lines #638 touches (search_history):
- encode.rs Responses
response()shape was last meaningfully changed by #333 (yatesdr, parallel_tool_calls) and #170 (mark-yong, usage echo); the hardcoded"tools":[]/"text"literal dates to the original protocol work 99cfcd5b 2026-10-13 (Luke Alonso, "Add native LLM API protocols and reject zero temperature") — so the defect has existed since the Responses endpoint was introduced, ~7 weeks. - decode.rs Responses namespace flattening: introduced with the Responses namespace support; docs/api.md:571-572 is its only documentation ("Responses namespaces become unique
namespace__namenames in the model template and regain their namespace on output; ambiguous names are rejected"). Tool.strictwas added 2026-11-22 by #418 (jcartu); #638's echo is the first code to serialize it back to the client.- is_error on Chat/Messages predates the Responses path; the literal
is_error: falsewas in the Responses arm from introduction (single commit f4143935 is the only commit that has ever touchedis_error, per search_history text search). Authorship of the head commit: git author name "derek" (2026-11-29), i.e. the same human/handle that authored the earlier helios logprobs work (48bae6bb, 2a65f7f3, 7c805294); GitHub PR opener is flare-autobot.
#14 [medium] Re-cited line numbers at head 7ba8c66
Anchors verified at PR head 7ba8c66 (default ref = PR head):
- docs/api.md:231-233 GET-400 sentence; 230-232 unsupported transport wording. 446-452 = #637's 37-char tool-call ID paragraph (base, not #638). 579-582 namespace duplicate-400 + empty-wrapper rule. 585+ custom tool grammar text. 747-752 echo + is_error paragraph.
- helios/src/server/http.rs:19-25
no_websocket()(rebranded message, single line); :371encoder.set_text_format(decoded.text_format); :415encoder.start()loop; :582let mut response = encoder.response();; :707get_responses_returns_bad_request_with_http_json_and_sse_guidancetest. - helios/src/server/inference.rs:61
namespace_description: Option<String>onTool. - helios/src/server/protocol/decode.rs:340-345
is_errorviaflag(&item,"is_error",false)?; :425-453tool()lowering,namespace_description: Noneat 442; :466-506responses_text_format(); :508-580options()returning(Options, Option<Value>), Responses arm 552-558, non-Responses arm 559-580; :581-586 grammar exclusion onhas_format; :898-921decode()tools/namespace loop, duplicate check 904-906,namespace_description907-911, assignment 914; :922let (mut options, text_format) = options(&body, protocol)?;; :976text_formatintoDecoded. Tests:tml_frontendhelper :2092 (used 2159, 2278);responses_tool_result_is_error_matches_chat_and_messages_across_prompt_encoders:2277+. - helios/src/server/protocol/encode.rs:23-54
responses_tool_entry(); :55-77build_responses_tools(); :156responses_tools: Value; :157text_format: Option<Value>; :175-179 precompute inEncoder::new; :216-217 init; :221-223set_text_format(); :324-330start()Responses arm (singleresponse()+clone()); :812-829response()Responses arm; text_format materialized 824-827; deep copy ofresponses_toolsat 828; :832-840failure()(callsresponse()at 837). - helios/src/server/protocol/mod.rs:67
pub text_format: Option<Value>onDecoded. - helios/src/server/protocol/tests.rs:2670-3125 = #637 tests in base; #638 adds :3126
responses_tools_echo_and_round_trip_standalone_custom_and_namespaces, :3476responses_text_format_validation_echo_and_grammar_exclusion, :3677responses_tool_outputs_decode_is_error_and_match_chat_and_messages;tools()literal updated at :21, :1854, :2220, :2569, :2899 (last from #637). - helios/src/server/request.rs:539-552 namespace-description prepend in
template_inputs(); :768 test literal. - helios/src/server/runtime/phase_tests.rs:4703
responses_http_generate_echoes_tools_and_text_format_across_lifecycle(asserts 400 before admission, echo on buffered + 5 SSE frames: lines 4798-4940).
#6 [low] Community: no comments or reviews on #638; issue #450 has 2 comments
- PR #638: 0 comments, 0 reviews, no labels. Community interest so far is nil; the only signal outside the PR itself is flare-autobot's comment on #450 announcing it.
- The originating issue #450 has 2 comments (yatesdr triage confirming 2 of 3 defects, flare-autobot confirmation/announcement) and one reporter (shieldstar). Small, recent audience.
- Nothing in the orientation packet's "possibly related items" list shows reactions/engagement that would indicate wider demand for Responses tools echo: #418 (strict tools, merged, big contributor engagement) is the nearest population-of-users item, and #417 (strict:true rejected, blocker for pydantic-ai) shows client-side pressure for OpenAI-parity tool behaviour generally — #638 is adjacent to that pressure but not required by it.
- Not triggered by CI/review traffic: opened and last updated same day (2026-11-30).