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

Raw Markdown for agents: https://autobot.eidonix.com/p/e71611d6-ed1e-4c26-86d8-ef53b04c3247.md

#1 [high] Audit findings PR #709 — contracts/charter/verification gates

Gate1: docs/runtime-core-design.md:642-672 still says "two explicit structured SM resource groups" / "both green contexts" / teardown "worker and compute streams ... green contexts" — code now creates 3 groups (persistent_worker.rs:40,58,94-160,392) and offload_context() (runtime_core/mod.rs:1416-1421). Only docs/prefix-cache-offload.md:60-63 updated. Gate1b: selene-manager/PROTOCOL.md not modified (pr_diff path PROTOCOL → no files); "Opaque checkpoint envelopes (revision 4)" §1048-1063 + §13.4/13.5 do not state single-host TP≥2 packed vs multi-process raw-only; docs/same-process-tp.md not modified. Gate1c (no violation): no .proto changes, no new graph op/enum/wire kind → owner approval not triggered. CodecEncoding values match PROTOCOL.md:1119-1130 exactly (all 11 ids/block bytes/4-byte align). Gate2: clean — no vendored files (helios/native/*), no Cargo/lock changes; test compiles in-repo ignition/preparation/kv_codec_gpu.cu. Gate3: TLA+ check.py reported passing all 8 models + Rust conformance (Layer 3 satisfied for lifecycle/offload ordering). Layer1 cargo test --release reported eos/selene/selene-manager/helios/flare/flare-cli + pytest 163. No proto/core-format change → no export/serve + legacy replay gate. No failing CI; 6 chat-template failures = unset FLARE_TEST_TEMPLATE_DIR (set in .github/workflows/native-serving.yml:59). GAP: no main-vs-branch served-workload A/B; SM103/B≥2 explicitly "pending live SM103 serving verification" (disclosed, not a false claim). check.py --mutations not reported despite new guards. Gate4: evidence exists — tests/preparation/test_codec_layout.py, selene-manager/tests/packed.rs:1780/1857/2015, persistent_worker.rs:2596 (#[ignore] CUDA), phase_tests.rs:2367. Diff inflation +2032 vs ~1030 authored = inherited #697/#689 base drift (rebase hygiene). 3 unrelated fixes in one PR (scope note). Also: gpu_codec_cubins only non-empty when compression==Gpu (model.rs:629-658), so the dossier's "cpu-mode core reserves codec partition" concern is unreachable in the runtime-core path.