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

Raw Markdown for agents: https://autobot.eidonix.com/p/9d3ae7c0-bba3-4989-ac4d-67d542486f41.md

#1 [high] PR #734 contracts/verification gate audit — findings

Gate1 (core-format/wire/graph/public contract): CLEAN. Diff = selene/src/shared/record.rs (+424/-23), selene/src/input.rs (+130/-7) only (pr_files). No proto/enum/wire/captured-graph change. par_map is pub(crate) (record.rs:1146). Header::read_metadata signature unchanged; only cursor semantics changed, documented (record.rs:357-360). Caller safety verified: selene/src/disk.rs:1478 (later reads positional — record.rs read_exact_at disk.rs:1464; io_uring explicit .offset disk.rs:1980-1988; Windows submit(...,offset) disk.rs:2148-2149), selene/src/shard.rs:1202,1251 (handle dropped), selene-manager/src/disk.rs:77 (handle dropped), record.rs:1334 (inspect drops). Doc drift Minor: docs/prefix-cache-offload.md:677-680 + :684-690 + :1180-1182 describe unconditional temp/invalid deletion at startup scan; PR defers deletion on Unreadable (record.rs:1258-1277; input.rs:554-567). Happy-path end state unchanged. .input lexicographic admission (input.rs:552) is not documented anywhere; no doc in diff. Gate2 (vendored/cross-PR): CLEAN. No helios/native files, no Cargo.toml change, no external recipe/pin dependency. Gate3 (mandatory verification): VIOLATION — performance claim lacks served-workload A/B. Charter "Bring real evidence" (#210); docs/design-review.md:106-115 (principle 12: "Performance claims require ... actual Helios service measurements"); docs/core-design.md:1828-1856 (performance acceptance incl. Startup row; "aggregate win does not erase a workload regression"). PR description concedes: "isolated component microbenchmarks, not end-to-end flare run startup timings". Main-vs-branch A/B exists (22d2ac9 vs 015076e) but component-level only. Measurement surface already exists: selene/src/offload.rs:750-765 timings.disk_scan + docs/prefix-cache-offload.md:1070-1076. TLA+/Kani NOT applicable (no helios scheduler/lifecycle, no shard.rs aggregation, no completion/extent arithmetic). No failing CI/tests reported. Minor: harness selene/examples/scan_bench.rs not committed (only 2 files in diff) — AGENTS.md:110-112 reproduction-from-branch. Gate4 (scope/claim contradictions): CLEAN. All test names in the description exist in the diff (record.rs read_metadata_uses_single_read..., parallel_scan_handles_large_mixed_v3_v4_directory_deterministically, parallel_scan_preserves_directory_on_unreadable_entry; input.rs parallel_scan_recovers_large_directory_deterministically_under_tight_budget, parallel_scan_preserves_directory_and_budget_on_unreadable_entry). Diff is 554 lines, 419 test LOC — focused. Undeclared-behavior claim in the dossier is wrong: description does disclose sort + fail-closed deletion.