Contracts, Charter & Verification Gates audit — PR #723 (275b7a5)
Verdict: one Major gate violation (unpinned external API that the headline gate depends on), plus a stale normative-doc contract and two verification-evidence gaps. Nothing else in the four gates is violated. I read AGENTS.md, docs/design-review.md, docs/verification.md, AGENTS.md#model-core-compatibility, docs/runtime-core-design.md, docs/core-format-design.md, docs/core-design.md, docs/preparation-development.md, verification/helios-lifecycle/README.md, pr_files, pr_comments, and the real per-file deltas.
Scope correction first, because it changes the gate analysis: pr_diff is contaminated by stale-base drift. It attributes AsyncTransfer/ExternalExtentTable, Capacity::DEVICE_POOL, EngramTable.Encoding.BF16, and EngramHash.Method.IDENTITY to this PR; pr_files shows helios/proto/core.proto is +4/−0 and runtime_core.proto +4/−0, i.e. exactly two fields and two comments. This PR adds no new wire enum, graph kind, or op family — the only contract addition is uint32 min_compute_sms = 7 / uint32 max_cluster_size = 8 on Graph (helios/proto/core.proto:248-254) and GraphIndex (helios/proto/runtime_core.proto:747-753), both documented 0 = unspecified. All other hunks in pr_diff belong to already-merged #711/#658/#708.
Gate 1 — Signed core-format / wire / captured-graph contract boundaries
- No owner-approval gate is triggered.
docs/design-review.md:22-26requires project-owner approval for a new captured-graph operation family ("a new operation contract … even if it reuses a graph kind or enum value"). These are two scalar metadata fields on an existingGraph/GraphIndexrecord with an unchanged node/edge/parameter encoding — a shape/metadata variant, which the same clause allows. The Discovery Dossier's "approval gap" framing does not hold on inspection. - MAJOR — the contradicted normative contract doc was not updated.
docs/runtime-core-design.md:654-696is the section #709 itself rewrote, and it is scoped entirely to "When a single-rank core declares an entry inExecution.persistent_workers…", then lists "two groups … or three groups (worker, one minimal alignedcodec, … andcompute) when prefix-cache offload is enabled with--lossless-kv-compression gpu". Post-PR the shipped default for every core without a persistent worker is a 2-way(codec, compute)split created from serving options (helios/src/runtime_core/model.rs:718-733,mod.rs:386-396), a topology that document says does not exist. The PR updatedhelios/manifest.md:111-135anddocs/prefix-cache-offload.md:59-66but not this file. This is precisely the gate-1 failure mode ("contradict normative invariants … without … updating the contradicted normative docs"), and the same class of gap was a "Should fix" finding on #709. - MINOR — the core-format contract doc is stale for
Graph.docs/core-format-design.md:222enumerates theGraphrecord as "name, instantiation flags, compressed graph resource reference, node and edge counts, and function dependencies" and is the normative statement of that contract; it now lacks the two SM-budget fields that Helios reads at load (mod.rs:795-816,describe.rs:543-544,metadata.rs:381-382). - MINOR — Python-side contract docs are stale too.
docs/core-design.md:821anddocs/preparation-development.md:256still describeScratchArena.register_parallelas byte sizing only, while this PR addsmin_reserve_sms,reserve_sms_floor,require_reserve_sms,resolve_reserve_sms,register_cooperative_plan, andregister_parallel(..., reserve_sms=)(ignition/preparation/scratch.py:59-188). - Compatible-default requirement of Principle 13 (
0preserves existing behaviour, no new rejection can fire becausemin_compute_sms > avail_smsis false at 0) is satisfied.
Gate 2 — Vendored upstream dependencies and unmerged external dependencies
- MAJOR (the one thing I would block on).
ignition/preparation/capture.py:78-83importstrack_capture_min_compute_smsfromb12x._lib.utils.deviceand onImportErrorreturnsnullcontext({"min_compute_sms": 0}). The PR description states that API ships with companionlocal-inference-lab/flashinfer#217, and this PR changes no pin:pyproject.toml:47is untouched (pr_filesdoes not list it) and still pinsflashinfer-pythonto rev1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e. That is exactly the gate-2 pattern — depending on an unmerged external PR without a pin or link — with two concrete consequences:- On the pinned revision every exported graph records floor
0, somin_compute_smsload-time enforcement (mod.rs:964-980,persistent_worker.rs:137-170,:345-357,:470-490) is a silent no-op, and the advertised guarantee ("rejecting under-provisioned compute partitions at load time") does not exist. The bareexcept ImportError: … 0also conflicts withAGENTS.md:182-186("Do not remove validation, suppress errors, silently substitute execution paths") and with the author's own failure-hint design elsewhere (mod.rs:972,:394). - The new test
tests/preparation/test_capture_graph_metadata.py:598-635importsrecord_min_compute_smsfrom the same module at test top, so on the pinned revision it fails at import rather than skipping. (I cannot resolve the rev's contents offline — this is the first thing to check, and the fix is trivial: bump the pin to a rev containing flashinfer#217, or make the missing API a hard error / an explicit skip.)
- On the pinned revision every exported graph records floor
- MINOR — the ScratchArena half has no in-repo consumer and depends on an unmerged external PR.
register_cooperative_plan,require_reserve_sms,resolve_reserve_sms,min_reserve_sms,reserve_sms_floorappear only inignition/preparation/scratch.py:59-188andtests/preparation/test_scratch.py:548-607. No recipe, component, or preparation path calls them; adoption is delegated tolocal-inference-lab/hyperflare-recipes#157.AGENTS.md:167-169("Hypothetical future consumers … alone do not establish a need for a change") andAGENTS.md:188-193("Do not add frameworks, extension points, speculative compatibility … without a concrete requirement"; "Do not present scaffolding or partially wired features as supported") apply, and there is direct precedent from yatesdr on #430 for asking that bundled changes be split. Recommend dropping or splitting this third change; it is otherwise independently fine. - No vendored upstream file is forked in this PR (no
helios/native/*edits;pr_filesconfirms).
Gate 3 — Mandatory verification evidence
- No CI failure to report.
pr_commentscontains only the bot's case-file note; the description reports only passes and discloses limitations. Per the calibration rules I do not flag pending/unobservable CI. - MINOR —
AGENTS.md's core-compatibility check was not performed.AGENTS.md:435-448states: "Test previous core layouts through loading and serving alongside newly exported cores," anddocs/verification.md:32-33says "A core field change needs loading and compatibility tests." This PR adds two wire fields and a new load-time rejection path that old cores now traverse differently at serving time (codec partition created fromoptions.prefix_cache.compression == KvCompression::Gpuon every rank,model.rs:718-719). Backward compatibility is argued from the proto comment; no previously exported core is loaded, and the only proto tests are synthesized current-shape fixtures withmin_compute_sms: 0(protobuf.rs:1664-1670,:1867+and thehelios/src/core/*literal churn). Further, noignition export+flare runwas run, which the description itself discloses. - MINOR — new safety guards shipped without mutation testing or a Kani harness.
plan_sm_split/split_sm_groupsadd overflow-checked arithmetic and SM-floor invariants over an input domain (persistent_worker.rs:105-170,:345-357), andgraph_sm_requirements/kernel_cluster_sizeaddchecked_muloverflow guards (capture.rs:463-500).docs/design-review.md:221-228requires Kani "whenever changing … sequential validators whose safety must hold over an input domain" and mutation testing "when adding or changing safety guards"; neither is reported. Ordinary unit tests do cover the positive and negative cases (persistent_worker.rs:1238-1252,capture.rsgraph_sm_requirements_…), so I rate this "missing evidence", not a demonstrated defect. - TLA+/simulator: not applicable, and I am not flagging it.
check.pycovers admission, fences, generations, cancellation, speculation accounting, compaction/snapshot aliases, offload aggregation (OffloadTransfer.tla,offload::transfer.rs), readiness, and rank coordination. This PR touches none of those (pr_files: noexecution/*, nooffload/transfer.rs, no scheduler/memory sizing); green-context creation and teardown are resource-lifetime paths, not modeled protocol states. - GPU execution: hardware evidence exists (two
#[ignore]d SM120 CUDA tests with substantive assertions, plustest_compiled_gpu_codec_cubin_declares_no_elf_globals), anddocs/design-review.md:141permits disclosed unrun hardware. The undisclosed-in-repo gaps are the SM103 path where #701 was observed and the multi-GPU/asymmetric-rank case with open #640; both are stated as limitations in the description. Not flagged as a blocker, but the SM103 absence is the weakest link in the evidence chain given the motivating bug.
Gate 4 — Material scope / claim contradictions
- INFO (real, but disclosed) — "Turns missing
reserve_smson cooperative plans … into an immediate preparation-timeValueError" is true only of the unit tests in this repository untilhyperflare-recipes#157lands; the description's companion-PR paragraph does say recipes will apply it. Combined with Gate 2's Minor above, the recommendation stands: split or drop the ScratchArena change. - INFO — the description omits an undeclared consequence visible in the diff:
graph_sm_requirementssetsmin_compute_sms = declared.min(max_cluster_size)(capture.rs:491-500), so the two exported fields are not independent, and0no longer means "no floor" for any graph containing a cluster-dimensioned kernel. Worth one sentence in the description; not a gate violation. - No invented evidence: every suite count in the description corresponds to real test code in the diff, and the two removed-from-scope claims I checked (new enums,
AsyncTransfer) are artifacts ofpr_diff, not of the PR.
Explicitly not flagged (anti-pedantry)
Stale-base pr_diff inflation for #711/#658/#708 content; no CI check-runs visible; docs/TODO.txt bookkeeping; the hardcoded CU_LAUNCH_ATTRIBUTE_CLUSTER_DIMENSION: i32 = 4 next to an existing raw-id KERNEL_ATTRIBUTES list (capture.rs:462-463); missing Discord: line (present); four-part description order (compliant); the #532 split_sm_groups-deletion recommendation (a design opinion, not a recorded invariant); and the open-#640 asymmetric compute_sm_count interaction (correctness/concurrency lens, and no textual conflict).
Bottom line: fix the b12x pin (or make the missing tracker fail loudly) — otherwise the shipped min_compute_sms/max_cluster_size enforcement is dead code and a new test cannot pass on the pinned dependency; update docs/runtime-core-design.md:654-696 (plus the Graph row in docs/core-format-design.md:222); add an old-core load/serve check per AGENTS.md:435-448; and split or drop the ScratchArena contract until it has a consumer. No vendored-file fork, no unapproved op-family addition, and no other hard contract or verification gate is violated.