Contracts, Charter & Verification Gates Audit — PR #728 (head 71af7c9)
Scope: only the four hard gates (contract boundaries, vendored/cross-PR dependencies, mandatory verification evidence, material claim contradictions). Algorithm correctness is out of scope for this lens.
Headline: no contract-boundary, wire-format, captured-graph, or vendored-file blockers. Two genuine gate violations: one mandatory-verification gate failure (Layer 1 CPU suite not green on head, per the PR's own report) and one unsupported claim in changed repository prose (.rs cache-invalidation coverage).
Gate 1 — Signed core-format / wire / captured-graph / public contract boundaries: PASS
- No proto, wire-kind, enum, or captured-graph operation changes.
helios/proto/core.proto(not opened),helios/proto/runtime_core.proto(not opened),helios/src/core/*, andhelios/src/runtime_core/*are absent frompr_files. The 24-file declared change set contains nowire::addition, no new graph kind, and no new operation contract.docs/design-review.md:22-26therefore requires no owner approval here. - Normative docs updated, not contradicted. The reachability diagnostic is added to
docs/runtime-core-design.md:163-171(argument-relative 8-byte-aligned unresolved values reported per rank on stderr, non-blocking) and:360-372(native stderr rows). The warmup-pool ownership statement is added todocs/preparation-development.md:88-98. No shipped default, capacity enumeration, or scheduling/admission invariant fromdocs/scheduling-theory.md(not opened) /scheduling-runtime-design.md(not opened) /core-format-design.md(not opened) is contradicted. - No hardcoded batch-capacity / graph-shape list added in Helios or direct-execution policy (principle 1,
docs/design-review.md:27-35). - No per-model branch or allowlist added. The change removes two hardcoded tuples (
ignition/preparation/forward_metadata.py:40-46,ignition/preparation/rebuild_manifest.py:341-371) in favour ofprepared_module_roots()/is_prepared_object_module()derived from boundsource_roots(ignition/preparation/source_identity.py:31-58), consistent withdocs/design-review.md:56-61. - Compatibility: existing cores continue to load. No core-format version, protobuf default, or execution-ABI gate is touched. The
ForwardCachekey change (ignition/preparation/aot.py:899-918) invalidates compiled-forward cache directories, not exported cores, so principle 13 (docs/design-review.md:116-123) is not engaged.
Gate 2 — Vendored upstream dependencies & cross-PR conflicts: PASS
- No vendored upstream file is forked.
helios/native/roce_proxy.c(not opened),helios/native/roce_proxy_dlopen.c(not opened), andselene/native/kv_codec/cpu.cpp(not opened) are untouched. - No new external dependency is introduced.
pyproject.toml:47keeps the FlashInfer pin at1441ce862ffbc9d8550fdda7ad90e97ca04f4b8e; the PR adds no[tool.uv.sources]entry and no version bump. - Info (not a violation): the PR names unmerged co-fixes in other repositories —
local-inference-lab/flashinfer#224,hyperflare-recipes#163/#151,hyperflare-jetson-recipes#7— as necessary forCloses #724and for hashing jetsoncsrc/after install. Because the FlashInfer pin is unchanged,Closes #724is not reproducible from this repository alone. Gate 2 asks "without a pin or link"; all three are linked, so this is a disclosure/merge-order matter, not a gate breach.
Gate 3 — Mandatory verification evidence: FAIL (Major)
Applicability first, so nothing is over-claimed:
- The declared diff touches preparation-side CUDA storage ownership (
ignition/preparation/core_storage.py:309-318,ignition/preparation/capture.py:82-107,151-160) and Heliopause export serialization/hashing. It does not touch Helios admission, fences, generations, cancellation, speculation accounting, cache compaction, snapshot aliases, response buffering, offload aggregation, readiness, or rank coordination. Soverification/helios-lifecycle/check.py(not opened), Kani, and the scheduling simulator are not triggered (docs/design-review.md:195-230). - No performance/speedup claim is made, so no
main-vs-branch served-workload A/B is required (AGENTS.md:502-508). - Layer 1 for Heliopause is satisfied as reported:
cargo test --locked --release --manifest-path heliopause/Cargo.toml (not opened) --lib→ 250 passed, and.github/workflows/python-cpu.yml:34-41(not opened) runs exactly that in CI.
Major — the mandatory Layer-1 CPU pytest suite is not green on 71af7c9, and the "pre-existing unrelated" attribution is unsupported.
The PR reports tests/preparation/test_runtime_triton.py::test_replaces_stock_architecture_probe_with_pointer_width_key failing on head under Triton 3.8.0. That test is at tests/preparation/test_runtime_triton.py:82-93 and asserts module.platform_key() == "x86_64,Linux,64bit,ELF" for stock Triton with platform.architecture mocked to return ("64bit","ELF"), then "x86_64,Linux,64bit" for the Ignition patched platform_key (ignition/runtime_patches/triton.py:9-14). The behavior the PR attributes to stock 3.8.0 is precisely what the test demands, so the reported failure is most plausibly a real regression in the pinned-stack expectation introduced by a merge the PR sits on (#624 rewrote this test), not a harmless pre-existing red. Either way this is a rule violation: .github/workflows/python-cpu.yml:30-33 (not opened) runs pytest tests/ on every PR, and docs/design-review.md:247-251 is explicit — "Leaving an applicable crate test, simulator sweep, TLA+ conformance run, or Kani proof unrun blocks commit and PR acceptance; noting it as a limitation does not make the omission acceptable." A failing applicable CPU test is strictly worse than an unrun one. Required: either fix the expectation on head or produce the actual failing traceback showing it fails identically on main at the base commit — and note that an unrelated red in the same required suite still blocks acceptance because it makes the Layer-1 result uninterpretable for this PR's 1,431-test claim.
Deliberately not flagged (per calibration): CI check-run state is unobservable with these tools; SM120-only GPU evidence with GB10/SM121, SM103/SM87, TP2 distributed, and multi-host runs disclosed as unexecuted is an honest limitations statement, not a missing-gate violation, since the author ran the targeted CUDA tests (test_capture_cublas_workspace_cuda.py (not opened), test_inductor_tuning_cuda.py (not opened), test_recorded_export_graph_cuda.py (not opened)) and disclosed the gaps.
Gate 4 — Material scope / claim contradictions: FAIL (Major)
Major — the .rs invalidation claim in new repository prose is not implemented.
ignition/preparation/source_identity.py:69-76 (new docstring) states that .rs edits "across Ignition, FlashInfer … and every bound external source root invalidate compiled forward caches", and the PR body repeats the .py/.rs/… framing. But forward_source_identity mixes only ignition_root, flashinfer_package, flashinfer data/{include,csrc}, and extra:<label> roots (source_identity.py:89-134). The Rust collector does accept .rs (heliopause/src/export/source_identity.rs:48), yet no Rust tree is ever passed, and ignition/ contains no .rs files — so an edit under helios/src or heliopause/src does not invalidate a compiled forward. _source_identity does hash helios/heliopause (source_identity.py:205-212), but that is the multi-host agreement identity, a different function. docs/design-review.md:158-162 requires rewriting unsupported claims in changed prose; this is a changed docstring making a claim the code does not satisfy. Required: either pass the Rust trees into forward_source_identity, or narrow the docstring and the PR text to .py/.c/.cpp/.cu/.cuh/.h/.hpp for the forward cache.
Info / Nit — one undeclared behavioural widening with a contract flavour (not a gate violation on its own). prepared_module_roots() adds each bound root's directory basename as a prepared-module prefix in addition to its label (ignition/preparation/source_identity.py:36-47), so the "prepared object" predicate used by guard pickling (forward_metadata.py:40-46) and weight-view walking (rebuild_manifest.py:369) now matches any package whose top-level name equals a source-root directory name. This loosens a type predicate rather than crossing a contract boundary; it is worth an explicit acknowledgement in the description, nothing more.
Not flagged: framing of reachability as a diagnostic (design choice already escalated elsewhere, and now documented normatively); docs/TODO.txt bookkeeping (+6 lines recording the required 4-GPU/8-GPU measurement, docs/TODO.txt:377-383) — excluded by calibration; #332/#606/#574 authorship disposition (Charter/respect-contributors item, outside my four gates); overlap with open #642/#597/#678 (informational).
Tooling caveat applied
heliopause/src/export/capture.rs and binding.rs per-file diffs contain large merged-upstream hunks (validate_external_extents, external_extents fields, async-transfer code) that are not in this PR — pr_files records capture.rs +4/−1 and binding.rs +12/−4, and those come from #711/#720 on the stale local base. None of that noise is attributed to this PR or flagged.
Verdict
- Gate 1: PASS (no core-format, wire, protobuf, or captured-graph contract change; normative docs updated).
- Gate 2: PASS (no vendored fork, no new unpinned dependency; co-fix PRs linked though unpinned).
- Gate 3: FAIL — mandatory
pytest tests/Layer-1 suite is reported red on head, and disclosure does not excuse a failing applicable CPU check (docs/design-review.md:247-251). - Gate 4: FAIL — new docstring/PR claim that
.rsedits invalidateForwardCacheis contradicted byforward_source_identity's actual root set.
Both are one-line-to-traceback fixes; neither requires a design change.