Gates and contracts report · NVIDIA/hyperflare-inference #711

Raw Markdown for agents: https://autobot.eidonix.com/p/65fc11f8-f8ea-442f-b188-c8171dacb04c.md

Audit — Contracts, Charter & Verification Gates (PR #711)

Bottom line: Gate 2 passes cleanly. Gates 1, 3 and 4 have real violations: one recorded-approval blocker on a new captured-graph operation family, and verification/doc-contract gaps that are stated explicitly by docs/design-review.md and AGENTS.md. Not flagged, and deliberately, because they are false-positive traps: CI status (pending, no failure reported anywhere), docs/TODO.txt bookkeeping, or stale-base over-attribution.


Gate 1 — Signed core-format / wire / captured-graph / public-contract boundaries — FAIL

The PR does add a new captured-graph operation family and new signed core-format records, and the additions themselves look correctly additive:

Blocker — new operation contract with no recorded owner approval. docs/design-review.md:22-26: "Introducing a captured-graph operation family requires prior explicit approval from project owner Luke Alonso… A new operation contract requires approval even if it reuses a graph kind or enum value. A design acknowledgment does not grant approval." AGENTS.md:376-381 repeats it, and the charter's Standards section repeats it a third time. Execution.async_transfers carries four new host-driven opcodes (disk→host, host→device, disk→device, cancel-epoch) over a new mapped-host control region (ABI_VERSION = 1), i.e. squarely a new operation contract. pr_comments on #711 contains only the Autobot case-file notice: no approval line, no reviewer, no label. The repo shows the required form: in the structurally identical #430 (Execution.persistent_workers), yatesdr asked and lukealonso answered "Approved, including Principle 1 approval for the Execution.persistent_workers captured-graph operation contract." The author here is the named owner, so the substance is presumably intended — but the gate is recorded, prior, explicit approval, and none exists. Remedy is one line in the PR description/thread in #430's wording; it is not a design objection.

Major — the governed normative docs were not updated for the new members/behaviour.

Gate 2 — Vendored upstream deps & cross-PR dependencies — PASS

Info / Nit (explicitly not a blocker per calibration): open #606 (avifenesh) fixes the same transient-workspace seeding defect in the same capture_forwards region of ignition/preparation/capture.py; both sit on merged #331. Textual conflict likely, reconcile before merge. Purely informational.

Gate 3 — Mandatory verification evidence — PARTIAL (credit where due, three real gaps)

Credit, verified in the diff, not just claimed: the TLA+ work is genuinely integrated, not a side artifact — verification/helios-lifecycle/AsyncTransfer.tla (+267) with a .cfg listing all eight invariants, check.py appends ("AsyncTransfer", "async_transfer::lifecycle_tests::async_transfer_scheduler_matches_lifecycle_model", "ASYNC_TRANSFER_EDGE ", 13) to CHECKS (so MODELS and the observed-edge runner pick it up automatically), four new Rust mutation cases and three model mutations were added for the new guards, and the Kani harnesses sit in cfg(kani) beside the production module they verify with the required command (cargo kani --manifest-path helios/Cargo.toml --features runtime-core --lib). Disclosed unrun items (5 Jinja tests, SM103/SM121, Windows PreadBackend, cross-node) are stated. I am not flagging CI: pr_comments reports no failure, and the dossier says only "pending" — unobservable-CI is not a finding.

Major — Principle 13 legacy-core replay is missing. docs/design-review.md:116-123: "Validate previous cores through loading and serving." docs/verification.md:32: "A core field change needs loading and compatibility tests." This PR changes the signed core format (external_extents), the runtime payload set (reader.rs:225), and the accepted capacity values. The stated evidence contains no pre-#711 core loaded and served through flare run; it reports schema/lib unit tests only. Compatible-by-construction is the right design, but the gate asks for the demonstration.

Major — the Start server reserve path and the pool-sizing branch were never exercised end-to-end. The PR's own claim is a behavioural one about the serving path: oversized --pool-vram-memory with large pinned RAM "clamp[s] safely instead of failing cuStreamCreate during Start server". The only support is the arithmetic unit test async_transfer_device_reserve_accounts_for_pinned_host_page_tables (memory.rs:~2358-2430) plus cache_geometry_ignores_device_pool_and_resizes_2d_pool_buffer. The listed GPU runs are async_transfer:: (live_cuda_async_transfer_end_to_end) and cuda_memory_limits…; nothing exercises allocate_caches' DEVICE_POOL sizing/mapping branch (memory.rs:1110-1209), NativeResources::map_device_pool, or prepare_async_transfers orchestration for an exported core containing a pool. Per Principle 12 that claim needs an exported core served through flare run, or it should be softened to "accounted for by construction".

Major — TP>1 untested on a contract whose sizing is cross-rank. The pool is agreed as the rank minimum and the host cap is divided per local rank (async_transfer_host_ram(local_ranks), memory.rs:36-56), and rank_options forwards the new limits across ranks (flare-cli/src/cli.rs). Given the stated motivation (weights larger than one GPU), a TP=2 serve of a DEVICE_POOL core is the affected shape, and it is untested. The hard multi-GPU clause for helios/src/execution/{threaded,parallel,roce}* is not triggered — those files are untouched — so this is a Principle 12/13 affected-shape gap, not the mandatory-collective rule.

Minor — no check.py --mutations result reported although this PR adds safety guards (unconfirmed-drain retention, bounce-slot release, background DMA cap) and authored the matching mutation cases. The non-substitution clause lists crate tests, simulator sweeps, TLA+ conformance and Kani rather than mutations, so this is a "state the run" request, not a block.

Gate 4 — Material scope / claim contradictions — one Major


Required before merge: (1) record the explicit Principle-1 approval in #430's wording; (2) update docs/core-format-design.md's RankBody row and state the rank-min pool agreement and view rewrite in the governing runtime docs, plus the flare_async_transfer_* rows in docs/api.md; (3) load and serve a pre-#711 core through flare run; (4) exercise one exported core containing a DEVICE_POOL (single-GPU at minimum, TP=2 preferred) so the Start server reserve/clamp path is real rather than arithmetic; (5) report the check.py --mutations result; (6) reconcile with #606 and split or justify the capture-seeding half.

No blocker: no vendored-upstream fork, no unpinned or unmerged-external dependency, no reported failing test or CI failure, and no fabricated evidence — the formal-verification work is the strongest part of this PR.