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:
helios/proto/runtime_core.proto:enum Capacity { … DEVICE_POOL = 2; }(appended afterKV_PAGES),Execution.async_transfers = 9+message AsyncTransferwith ten fields (control region, ring capacity 16..=4096, completion slots,max_host_pool_bytes,alignment, legacyextentsspans).helios/proto/core.proto:RankBody.external_extents = 18+ExternalExtentTable {channel, segments, directory}with a documented 24-byte packed directory entry.- Old cores decode unchanged: empty repeated fields,
serde(default),allocation_extentwidened0|1→0|1|2(helios/src/core/schema.rs:427), and extent payloads accepted only forWeights|TunedWeights|InitialStateroles (schema.rs:647-679).
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.
AGENTS.md:235namesdocs/core-format-design.mdanddocs/signing.mdas required guidance for core-container/signing changes. The normative schema-record table atdocs/core-format-design.md:209-223still describesRankBodyas "…graph catalog, events, peer/transport bindings, referenced payload descriptors, and optional prepared-weight catalog" — noexternal_extents. Yet the new tables are signedPayloadRole::Weightspayloads that now enterrequired_payloads(helios/src/core/reader.rs:225-231), so they are part of payload/reachability accounting. The 24-byte directory layout is documented only in acore.protocomment, not in the format specification.docs/core-format-design.mdis untouched by this PR.AGENTS.md:227nameshelios/manifest.md+docs/runtime-core-design.md+helios/model-contract.mdfor runtime changes.docs/runtime-core-design.md:677-691(the +16 the PR adds) documents channel open, host/device pool clamping, control-header writes, ordering beforeExecution.tuning_graphs, and drain retention — but it does not state two contract-visible behaviours the code ships on the same default path: (a) theDEVICE_POOLbyte count is the minimum across ranks (helios/src/runtime_core/memory.rs:1156-1178,agreed_bytes = agreed_bytes.min(chosen)), and (b) everyExecution.buffersview onto that pool is rewritten tofloor(bytes / row_bytes)rows at load (memory.rs:1202,resize_device_pool_buffer,memory.rs:1546-1558). A silently truncated exported shape is a contract statement and belongs in the spec that governs it; neither edit norhelios/manifest.md(which I did not read in full) is confirmed to say so.- The new
flare_async_transfer_*Prometheus family (helios/src/server/metrics.rs+65) is not added to the metrics table indocs/api.md, whichAGENTS.md:230makes required guidance for API/observability changes. One table block; small but concrete.
Gate 2 — Vendored upstream deps & cross-PR dependencies — PASS
- No vendored upstream file is touched: no
helios/native/roce_proxy.c, no third-party tree, no patch over an unmerged upstream change.helios/src/async_transfer/io_backend.rsusesio_uringthrough the crate already pinned onmain(helios/Cargo.toml:145,io-uring = "0.7", present identically atmain), with apreadfallback for non-Linux. No new dependency, no new pin, nothing forked ahead of upstream. - No unmerged external PR/recipe is depended on: the PR ships no recipe and no in-tree consumer at all (that absence is Gate 4's finding, not a pin violation).
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
- Major — the new core-format and captured-graph surface ships with no producer and no consumer.
ignition/preparation/runtime_core.pyexports extent tables onlyif ch.extent_directory, and no writer for such a directory exists; the recipe side is explicitly out of scope ("Whole-model recipe implementations … intentionally excluded").AGENTS.md:194-199: "Do not present scaffolding or partially wired features as supported"; "Keep each PR focused on one coherent outcome". ~3,780 new lines of concurrency plus two new signed wire surfaces with zero in-tree consumer, alongside an unrelated 84-line capture-seeding bug fix in the same PR, is the bundled-scope case this gate names. Remedy: land one producer (an extent-directory emitter plus a served recipe) or state the surface as unreachable pending a follow-up. - Method caveat, so no false accusation is recorded: the stale diff base (
cc0a49d) over-attributes newer-mainwork to this PR —docs/TODO.txt,docs/api.md,docs/core-design.md,docs/prefix-cache-offload.md, theCUDA_HOMEparagraphs indocs/cli-design.md/docs/model-preparation.md, and thehelios/src/cache.rsrole_preservingmutation hunk incheck.py. I attribute none of it to #711 and flag none of it.flare-cli/src/cli.rsalso carries a drive-bydebian_man_page_documents_every_visible_subcommandtest (territory of merged #687) — noted as scope noise, not a violation. - No contradiction found between the description and the diff on the protocol claims I could check (
Capacity::DEVICE_POOL, field 9, field 18, reserve constants, CLI rows atdocs/cli-design.md:760-761, Python refusal of channels, the 10-model/13-integer conformance wiring). I could not independently confirm the presence of the named ignored testlive_cuda_async_transfer_end_to_endin this pass, so I make no claim either way.
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.