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:
- #364's pre-publication 1 MiB / key-validation bound.
mainstates "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-155publishesEvent::ToolBeginatToolNameEndand:191-192publishes fragments per text append, socheck_size(:191) andvalidate_arguments(:202) now run after publication;docs/api.md:574-576documents exactly that ("enforced on the append that crosses it, after the call name and earlier argument fragments were published and are not retracted"). - The non-EOS incomplete-call error.
mainreturnsErr("incomplete emitted tool call")atAccumulator::finish(helios/src/server/output.rs:165) andResponseOutput::close(:1728), pinned byuser_stop_cannot_retract_an_already_emitted_partial_tool_call(renamed and inverted athelios/src/server/output.rs:1269-1278). Head addsdrops_unfinished_call(cause) = cause != Eos(helios/src/server/output.rs:479-481), calls it fromEncoder::finish(encode.rs:681-686) andResponseOutput::finish(output.rs:1735-1748) so UserStop/Cancelled/ExecutionError now succeed, and rewrites the rule atdocs/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
- No vendored file is touched.
helios/native/roce_proxy.c(not opened) and the rest ofhelios/native/are absent from the diff. - No dependency is added, changed or unpinned:
helios/Cargo.toml:35-37pinsdeepseek-recipe*torev = "70be62f30c64400229fcdb233a7f19a03a5e8ed6"identically onmainand at head, and noCargo.toml/Cargo.lockappears inpr_files. The DSML action stream the PR re-times (ToolNameEnd,LabelToolCallArguments,ToolCallArgumentsText,ToolCallArgumentsEnd) is consumed from that pinned dependency, unchanged. - Cross-PR conflicts are textual only and non-blocking:
#670'sdocs/api.mdadditions sit further down the file and itsdsml.rschanges are ingrammar_envelope; the semantic staleness#670introduced is already fixed at head (docs/api.md:545-547). No dependency on an unmerged recipe or external PR.
Gate 3 — Mandatory verification evidence: PASS (one Info note)
- No GPU/CUDA/VMM execution path, scheduler, cache or worker lifecycle is touched. The diff is confined to the parser and the per-request HTTP encoder/accumulator.
- Layer 3 is not triggered for the changed state.
docs/design-review.md:214requiresverification/helios-lifecycle/check.pyfor changes to "response buffering or ownership"; the changed type is HTTP-encoder state, whichverification/helios-lifecycle/README.md:142explicitly places outside the TLA+ projection ("HTTP encoder state is outside the TLA+ projection"), and the model-level producer/reader contract the harness checks is untouched. The corresponding harness test still exists and is unaffected (verification/helios-lifecycle/check.py:335-337→helios/src/server/runtime/response_lifecycle_tests.rs:332(not opened)). Info: if maintainers readAccumulator/ResponseOutputas within "response buffering",check.pywould need a run; nothing inResponseLifecycle.tlacurrently models block or call ordering, so I do not treat this as a violation of the rule as written. - No performance speedup is claimed. The claim is frame-arrival timeliness (2 frames → 566 for a 2.2 KB
write), which is a UX/latency-of-first-argument observation, not a throughput claim, so nomain-vs-branch served-workload A/B benchmark is required by Layer 3. I flag the measurement's provenance only as a limitation already visible in the body (author's own endpoint, one model). - Layer 1 evidence is present and honestly reported. The body reports the exact CI command (
cargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server --no-fail-fast), 1848 passed / 20 failed / 84 ignored on head, the same command at the branch point1fbcc3c9giving 1776/17 plus 3message_boundariesfailures, andflare/flare-cliat 254/245 passed. Per the calibration rule I do not flag the absence of an observable CI run. The 20 failures are disclosed, attributed to environment (RLIMIT_MEMLOCKfor eleven engram tests; missingFLARE_TEST_TEMPLATE_DIRfor nine chat-template tests — the workflow supplies that variable,.github/workflows/native-serving.yml:59 (not opened),67,72,76,80), and the branch-point comparison establishes they are pre-existing rather than caused here. No gate-3 violation.
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).
- Info: the body's "drives a truncated custom call and a truncated function call on all three wire protocols and every termination cause" overstates the custom-call matrix.
a_truncated_custom_call_closes_incomplete_without_failing_the_request(helios/src/server/protocol/tests.rs:4102-4145) is Responses-only and coversOutputLimit/UserStoponly;a_truncated_second_call_keeps_the_completed_first_call(:3960-3966) omitsExecutionError. The function-call matrix does run all three protocols × four non-EOS causes (:3844-3901), so the tests exist — this is imprecise wording about coverage, not a fabricated check, and does not meet the "major contradiction" bar. - Info:
docs/api.md:554-555("A client that received fragments of such a call has already seen a call that cannot complete") is commentary rather than a normative statement; harmless, but it is the only place the streaming/buffered divergence for a truncated Chat call is implied rather than specified.
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.