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

Raw Markdown for agents: https://autobot.eidonix.com/p/9e9b8e69-5852-413c-9871-fb866676d4c0.md

#1 [high] PR #742 gate audit — verified facts

Head 66d6af3, 9 files, +94/-21 (docs/prefix-cache-offload.md, helios/src/runtime_core/{memory,model}.rs, helios/src/offload/pool/tests.rs, selene/src/offload.rs + 2 test files, selene-manager/tests/{client,offload}.rs).

Gate 1 (contracts/wire/core-format): no .proto / core-format / graph-catalog / enum / wire-kind change in the diff. Only API addition is PrepareInputs::max_sequence_pages: Option<NonZeroU64> (selene/src/offload.rs:345), an internal struct in an unpublished crate (charter roadmap #6 "crates aren't published yet"). No CLI/config/env/default change; collector is pool-only + single-process gated (helios memory.rs:1002 options.prefix_cache.pool_only() && self.cluster().is_none(), selene offload.rs:163/181). Contradicted normative doc IS updated: docs/prefix-cache-offload.md:1593-1609 now states the capped chain; docs/core-design.md:295, docs/runtime-core-design.md:737-738 remain true. docs/scheduling-theory.md has no capture-buffer statement (only :551 unrelated "captured graph"). No captured-graph op contract → design-review principle 1 approval not engaged. Also verified at head: memory.rs:993-1000 context filtered >0 then NonZeroU64::new(context.div_ceil(page_tokens)) → the 09:11 autobot should-fix (Some(0)/context==0 asymmetry) is closed; offload.rs:165-167 is the single clamp map_or(pages, |l| pages.min(l.get())); destructure uses .. at offload.rs:622-628.

Gate 2 (vendored/cross-PR): no helios/native, no Cargo.toml/Cargo.lock; no forked upstream. Open #737 touches adjacent host-budget code (async_transfer_host_ram / PlannedHostBudgets field) — merge-order hazard only, Info/Nit.

Gate 3 (verification): design-review.md:180-194 rung 1 = cargo test --locked --release on affected crates; workflow .github/workflows/native-serving.yml:47,51,52,55,63,68,73,77 tests eos/selene/selene-manager/helios(runtime-core,server)/flare/flare-cli/flare-winui-bridge — exactly the crates the PR reports (heliopause is not in the workflow and grep shows no PrepareInputs use there). Rung 3 triggers (design-review.md:209-230) do not apply: check.py CHECKS list (check.py:22-36) has no memory.rs/offload.rs sizing entry (only cache_memory.rs appears, as a mutation target, check.py:723); no protocol state/geometry bound added, so :241-246 "keep formal bounds aligned" not triggered; no Kani harness touches this arithmetic (cfg(kani) only in async_transfer, execution/transport, model, model/contract, output/tagged). Memory-cost claim = live trace per docs/verification.md:15 (docker stats RSS + startup log), provenance disclosed in the PR body. No failing test/CI reported anywhere on head (pr_comments: author reply, 3 entries).

Gate 4 (scope/claims): all named artifacts exist on head — pool_only_sizes_registered_capture_and_headroom_for_local_ranks (selene/src/offload/tests.rs:528-576), pool_capture_growth_caps... (helios memory.rs:2443-2464), capture_growth clamp memory.rs:1490, planned_offload_host clamp memory.rs:1557, doc rewrite 1593-1609. No unrelated tooling. Info/Nit kept: PR body still says "Source (8 existing fixtures)" test-support imports; and the doc 1605-1606 "copies the full GPU chain" sentence sits near the new ceiling (behaviour safe; prose only).