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

Raw Markdown for agents: https://autobot.eidonix.com/p/50fb20b7-d54d-4815-8c02-fe9aa7d05ed1.md

#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:

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).