Gates and contracts report · NVIDIA/hyperflare-inference #685

Raw Markdown for agents: https://autobot.eidonix.com/p/851a4a8e-fb43-45e0-854f-bf80b3622cc3.md

Contracts, Charter & Verification Gates Audit — PR #685

Head audited: 826a427a (pr_files: 7 files, +871/−66). Read-only audit: nothing was executed and no GitHub check-run API is available here; every statement below is from the diff at head, main, and the governance docs.

Verdict: one hard-gate violation family (Gate 1 + Charter), in two concrete parts. Gates 2, 3 and 4 pass.


Gate 1 — Signed core-format / wire / captured-graph / public-contract boundaries

Mechanical prongs: PASS. No protobuf, no core-format or captured-graph enum, no new graph operation family, no wire kind, no new configuration switch or environment variable. The changed files are docs/api.md, helios/src/output/dsml.rs, helios/src/server/output.rs, helios/src/server/protocol/{encode,tests}.rs, and two helios/tests/ files. Event/Termination on main (helios/src/output.rs:54,61) already carry ToolBegin/ToolArguments/ToolEnd; the PR re-times their emission and adds no variant. docs/core-design.md / docs/scheduling-theory.md (not opened) / docs/scheduling-runtime-design.md (not opened) / docs/core-format-design.md (not opened) are untouched, and the one core-design invariant in this area — "The output encoder holds the call until it has validated the complete arguments; a truncated strict call does not publish partial arguments" (docs/core-design.md:1731-1732, :1697 at head) — is preserved, since strict calls keep the pending_strict_calls parking path (helios/src/server/protocol/encode.rs:577-631).

Normative-doc prong: PASS. The contradicted normative document is updated inside the PR: docs/api.md:580-582 on main ("The model parsers buffer tool envelopes until they are complete, so argument events do not imply incremental generation of an unfinished call") becomes docs/api.md:540-559 and :561-578 at head. The earlier round's factual defect is also genuinely repaired: the false "because they build its arguments from parameter syntax …" clause is gone (docs/api.md:545-547), so nothing in the changed prose is false against main's TAGGED_JSON (helios/src/output/tagged_json.rs:14-66).

BLOCKER 1 — the PR reverses two reviewed normative invariants before obtaining the maintainer decision it asks for (AGENTS.md:182-187, 201-207)

Both reversals are real, and both were previously attested as contracts by the people the PR addresses:

  1. #364's pre-publication 1 MiB / key-validation bound. main states "Helios rejects a larger call before publishing it" (docs/api.md:600); #364's reviewer recorded the property explicitly — "The size check now runs after the final value is quoted and the closing text appended, before any event is published" (read_item(364), yatesdr review, 2026-11-18 23:54). At head, helios/src/output/dsml.rs:151-155 publishes Event::ToolBegin at ToolNameEnd and :191-192 publishes fragments per text append, so check_size (:191) and validate_arguments (:202) now run after publication; docs/api.md:574-576 documents exactly that ("enforced on the append that crosses it, after the call name and earlier argument fragments were published and are not retracted").
  2. The non-EOS incomplete-call error. main returns Err("incomplete emitted tool call") at Accumulator::finish (helios/src/server/output.rs:165) and ResponseOutput::close (:1728), pinned by user_stop_cannot_retract_an_already_emitted_partial_tool_call (renamed and inverted at helios/src/server/output.rs:1269-1278). Head adds drops_unfinished_call(cause) = cause != Eos (helios/src/server/output.rs:479-481), calls it from Encoder::finish (encode.rs:681-686) and ResponseOutput::finish (output.rs:1735-1748) so UserStop/Cancelled/ExecutionError now succeed, and rewrites the rule at docs/api.md:547-554. main's documented rule was scoped to the output limit ("Truncated tool envelopes are omitted and the response reports its output limit", docs/api.md:582-583); the PR generalises it to every non-EOS cause across all parsers and all three protocols, while the streaming benefit is DSML-only.

AGENTS.md is unambiguous that this is a prior decision, not a review-time one: "Resolve conflicts through an explicit maintainer decision on the design before implementing a change to that invariant" (AGENTS.md:204-207), and the criteria apply "to documentation and test changes that would weaken the rules as well as code" (:201-207). The PR body does disclose both reversals and asks @voipmonitor and @yatesdr to accept them — that is honest disclosure, but it is not the recorded decision the rule requires, and pr_comments shows no human comment or review in the entire thread (three Autobot reviews, plus the author's two pings). The change is therefore implemented ahead of its authorisation.

Mitigating context to weigh, not a waiver: omission at OutputLimit was accepted precedent in #102, and docs/api.md:552-554 does disclose the tool_choice: required/named exception that encode.rs:708-711 implements. That narrows the delta to UserStop/Cancelled/ExecutionError — but the delta is still unratified.

BLOCKER 2 — an existing guarantee assertion was deleted to make the suite pass (AGENTS.md:182-187, 201-207)

helios/tests/deepseek_output.rs:515: main's assert!(published.is_empty()) after a duplicate/empty-parameter rejection is replaced by assert_eq!(parsed.ended, 0, "a rejected call reported an end"), and parse_literal_parameters (:576-592) likewise stops asserting that nothing is published, routing the events into Parsed instead. The check that a rejected call published nothing — precisely the #364 property in Blocker 1 — is removed rather than the behavior being justified. This is the case AGENTS.md names verbatim: "Do not remove validation, suppress errors, … to obtain passing checks", applied to test changes. It needs the same maintainer decision as Blocker 1, or the assertion should stay and the behaviour change should wait.

These two are one governance finding: the wire-visible contract reversals and the test weakening that accompanies them must either be approved on the record by the #364 owner/reviewer or be dropped from this PR.


Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS


Gate 3 — Mandatory verification evidence: PASS (one Info note)


Gate 4 — Material scope / claim contradictions: PASS (two Info notes)

No unrelated standalone tooling, no bundled refactor, no scope expansion; 871 lines are dominated by tests (protocol/tests.rs +423, dsml.rs streaming/rejection tests +303).


Recommendation

Changes requested on Gate 1 alone. Everything mechanical about this PR is clean: no proto, core-format, captured-graph, wire-kind, vendored-file, dependency or scope violation, and the Layer-1 evidence is disclosed with a branch-point baseline. What blocks it is authority: it reverses two invariants that are documented in main and were attested by #364's author and reviewer — #364's publish-after-check bound and the non-EOS incomplete emitted tool call error — and deletes the assertion that pinned the first (helios/tests/deepseek_output.rs:515), all before the maintainer decision the body itself requests exists. Either obtain and record that decision from @voipmonitor/@yatesdr (making the doc rewrite and test change legitimate), or split the truncation/validation-ordering change out and land the DSML streaming re-timing on its own.