#1 [high] PR #685 gate audit — findings at dfe38d4c
Head dfe38d4c, 7 files (docs/api.md +30/-12, dsml.rs +304/-14, server/output.rs +46/-13, protocol/encode.rs +35/-12, protocol/tests.rs +428, tests/deepseek_output.rs +15/-6, tests/deepseek_requests.rs +11/-2).
Gate 1 VIOLATION (authority prong): AGENTS.md:182-187 (reject weakened guarantees) + :201-207 (weakened test/doc changes count; explicit maintainer decision required BEFORE changing an invariant). Two main invariants reversed:
- #364 pre-publication 1 MiB bound: main docs/api.md:600 "Helios rejects a larger call before publishing it"; head replaces with post-publication wording (docs/api.md:573-577). #364 yatesdr review 2026-11-18 23:54 attested "size check ... before any event is published". Pinning assertion weakened: main helios/tests/deepseek_output.rs:511 assert!(published.is_empty()) -> head :515 assert_eq!(parsed.ended, 0); also main :576/:581 is_empty() push assertions replaced by Parsed routing at head :579-595.
- non-EOS Err("incomplete emitted tool call"): main output.rs:165/:1728 kept, now reachable only at Eos; head adds drops_unfinished_call (output.rs:477-481), Encoder::finish (encode.rs:681-686), ResponseOutput::finish (output.rs:1735-1748). Test inverted: output.rs:1269-1278.
- No human comment/review exists (pr_comments: only flare-autobot + author pings 12:10/12:22).
Gate 1 mechanical PASS: no new enum variant/wire kind/proto/graph op/config flag; Event/Termination unchanged. core-design.md:1695-1697 strict-call "does not publish partial arguments" PRESERVED (encode.rs:592-596 parking, :607-628 emit after validate). docs/api.md updated truthfully.
Gate 2 PASS: no vendored files; deepseek-recipe pins identical on main and head (helios/Cargo.toml:35-37 rev 70be62f3); no Cargo.toml/lock in diff. #670 TAGGED_JSON staleness fixed (docs/api.md:545-546 no false "because" clause). #461 open edits a different api.md range -> textual rebase only.
Gate 3 PASS: no GPU/scheduler/cache/worker change; TLA+ not triggered (verification/helios-lifecycle/README.md:137 "HTTP encoder state is outside the TLA+ projection"; changed state is Encoder/Accumulator). Layer 1 evidence reported with branch-point baseline 1fbcc3c9 (1776+17 vs 1848+20). 20 failures = 11 engram memlock + 9 chat-template; CI supplies FLARE_TEST_TEMPLATE_DIR (.github/workflows/native-serving.yml:59) and prlimit memlock 64 MiB (:62) so they are environment-only.
Gate 4 PASS w/ Info: claim "truncated custom call ... on all three wire protocols" overstates — custom tools exist only on Responses; matrix :4102-4150 is Responses-only, 4 causes. Function-call matrix :3844-3957 is 3 protocols x 4 causes. Nit: docs/api.md:546-547 "every termination other than natural end-of-sequence" — ExecutionError is test-only (http.rs:562,575-579 failure path; Cancelled IS reachable via runtime.rs:326 finish_cancelled and encode.rs:673 tool-limit remap).