Audit report — PR #742 selene,helios: bound pool-only capture buffer to max_sequence_pages @ 66d6af3
Verdict: No contract or verification gate blockers.
All four hard gates pass. Nothing in this diff adds or changes a signed core-format/wire/captured-graph contract, forks a vendored upstream file, requires a formal or GPU-benchmark gate, or contains a claim contradicted by the tree.
Gate 1 — Signed core-format / wire / captured-graph / public-contract boundaries: PASS
- No proto, core-format, graph-catalog, enum, or wire change. The diff touches no
.proto, nohelios/src/core/, noFORMAT_VERSION, no reserved identifier, no signature domain — 9 files, +94/−21, all sizing arithmetic, one doc paragraph, and test fixtures. Existing exported cores load unchanged: nothing about prepared metadata, allocation payloads, or graph catalogs moves (principle 13 not engaged). - No captured-graph operation contract.
docs/design-review.md:22-26requires owner approval for a new operation family; this adds no operation, shape/capacity variant, or graph kind, so no approval is engaged and none is claimed. - The only API addition is internal and unpublished.
PrepareInputs::max_sequence_pages: Option<NonZeroU64>(selene/src/offload.rs:342-345) is a field on an internal Rust struct in selene, which the charter roadmap records as not yet published (#6, "the crates aren't published yet"). No CLI flag, config key, environment variable, or default value changes, sodocs/design-review.md:89-92(principle 10) and the charter's "no magic defaults / no per-model flags" rule are respected. - No new per-model branch or policy flag. The bound derives from
max_sequence_tokensandcontract.cache.page_tokens— prepared structural metadata, not model identity — consistent with principle 3 and the charter's model-agnostic runtime rule. Reach is narrow by construction: capture requiresoptions.prefix_cache.pool_only() && self.cluster().is_none()(helios/src/runtime_core/memory.rs:1002) andpool_only()with no shard (selene/src/offload.rs:163). - The one normative doc that specifies this buffer is updated in place, not left contradicted.
docs/prefix-cache-offload.md:1593-1609now states the ceilingmin(GPU page capacity, ceil(max_sequence_tokens / page_tokens))plus one row's slots, bounded by the host budget, and the capped startup-failure condition (:1600-1602). Adjacent normative statements remain true:docs/core-design.md:293-296("Shared CPU/GPU memory is one budget") anddocs/runtime-core-design.md:737-738("deduct the pinned host reservation from prefix-cache capture growth") describe the accounting rule, which this PR does not change — it changes the size charged into that budget.docs/scheduling-theory.mdanddocs/scheduling-runtime-design.md(not opened) contain no statement about this buffer (only the unrelatedscheduling-theory.md:551"captured graph is faster" remark). - No hidden contract weakening. The clamps only shrink a startup host-memory charge; no validation is removed — the
chain > budgetadmission error is retained atselene/src/offload.rs:175-177, now applied to the capped chain.
Gate 2 — Vendored upstream dependencies and cross-PR coupling: PASS
- No vendored upstream file is touched (
helios/native/,selene-manager/docs/, all vendored C andbuild.rs(not opened) inputs remain as onmain), and there is noCargo.toml(not opened) /Cargo.lockchange, so dependencies stay pinned exactly (charter: "pin dependencies to exact versions or commits", #215). - The change depends on no unmerged external recipe or PR; it is self-contained in-repo, and the eight
max_sequence_pages: Nonefixture insertions preserve every existing caller's behaviour (None= uncapped) exactly. - Info / Nit — merge order with open #737 (lukealonso). #737 rewrites the adjacent host-budget/
AsyncTransferaccounting in the sameselene/src/offload.rsandhelios/src/runtime_core/{memory,model}.rsregions and extendsPlannedHostBudgets, so it can move the free-host bound this buffer is charged against. A sequencing hazard, not a gate violation; the author addressed it in the PR reply (2026-12-05 09:19).
Gate 3 — Mandatory verification evidence and failing tests: PASS
- No failing test or failing CI is reported anywhere. The PR conversation has three entries (case-file notice 08:55, autobot review 09:11, author reply 09:19); none reports a red check. Per calibration, absence of observable CI runs is not treated as a finding.
- Layer 1 (
docs/design-review.md:180-194) is satisfied and correctly scoped. The PR reportscargo test --locked --releaseforeos(12),selene --features test-support(649 = 648 unit + 1 doctest),selene-manager --features test-support(448, 1 ignored, incl.rank_processes3),helios --features runtime-core,server(2,041 passed, 88 ignored),flare(255),flare-cli(254, 3 ignored) — exactly the crates.github/workflows/native-serving.yml(not opened) exercises (:47, :51, :52, :55, :63, :68, :73, :77; plusflare-winui/bridgeat:81, untouched by a numeric-only change).heliopauseis not in that workflow's test list and repo-wide search finds noPrepareInputs/prepare_with_inputsuse there, so not running it is not a gap.--locked --releaseis used as required;cargo checkis not substituted. - Layer 3 is not triggered (
docs/design-review.md:209-230). Its triggers are admission, fences, generations, cancellation, speculation accounting, cache compaction, snapshot aliases, response buffering/ownership, offload aggregation, readiness, and rank coordination. The changed functions are startup sizing only —headroom_inner(selene/src/offload.rs:150-205),allocate_cachescapacity planning with itscapture_growth/planned_offload_hostcallbacks, andprepare_offloadplumbing.verification/helios-lifecycle/check.pydeclares nine checked protocols (check.py:22-36) and none targets this arithmetic;helios/src/runtime_core/memory.rsappears only as a mutation target forcache_memorycode atcheck.py:723, unrelated to this diff. No new protocol state or geometry bound is added, sodesign-review.md:241-246does not apply. Same for Kani:#[cfg(kani)]harnesses exist only inhelios/src/{async_transfer/mod.rs (not opened), execution/transport.rs (not opened), model.rs, model/contract.rs (not opened), output/tagged.rs (not opened)}, none covering this arithmetic; no completion-vector validation, prepared completion contract, state-view extent arithmetic, or sequential validator is touched. - The memory-cost claim is a live trace, honestly limited.
docs/verification.md:15asks for "the target benchmark or live trace" for memory cost; the author suppliesdocker statscontainer RSS on identical hardware (18.74–19.06 GiB pool-only vs 7.83–8.04 GiB at--prefix-cache-memory 1G, delta 10.91–11.02 GiB matching the 11.8 vs 0.9 GiB slab delta) plus the startup log line, discloses that the figures came from av0.6.0(f705086) build carrying the same sizing rule rather than an A/B restart on the head, and lists the unrun checks (hardware CUDA,tests/server/test_prefix_cache_offload.py(not opened),qualify/host_cache.py(not opened), integrated memory, sharded/RoCE, Windows, Kani, TLA+). That is exactly the disclosureAGENTS.md:103-112and principle 12 (design-review.md:106-115) require. It is a scope-of-conclusion limitation a maintainer should read consciously, not a hard gate failure, and it is not an unattributable combined-stack speedup of the kind the gate targets. - Charter "bring real evidence" / four-part description. All four parts are present in order (why → what changed → claimed benefit → evidence), the bounded and unbounded formulas are distinguished with a metric table, the live numbers are attributed to their actual build rather than the head, and the required
Discord: fakoliline is present (AGENTS.md:142-153, principle 17).
Gate 4 — Material scope / claim contradictions: PASS
Every concrete artifact the description names exists on the head and matches:
pool_only_sizes_registered_capture_and_headroom_for_local_rankswith the(10, None),(512, None),(512, Some(64))cases —selene/src/offload/tests.rs:531-576, including the strictly-smaller assertion in the bounded case.pool_capture_growth_caps_at_max_sequence_pages_without_throttling_gpu_pageswith the equality assertionpages == uncapped_pagesandpages > max_sequence_pages—helios/src/runtime_core/memory.rs:2443-2464.- The clamps:
capture_growth(layout, pages.min(max_sequence_pages.get()), …)(memory.rs:1490), theplanned_offload_hostchain clamp (memory.rs:1557), and the single enforcement point (selene/src/offload.rs:165-167). - The plumbing:
PlannedHostBudgets::max_sequence_pages(memory.rs:32-36, filled:1595), passed atmodel.rs:1047-1053, acceptedmodel.rs:1125, forwarded intoPrepareInputs(model.rs:1167-1173); the duplicatedserver_config["max_sequence_tokens"]lookup inmodel.rsis genuinely gone. - The doc rewrite matches the diff (
docs/prefix-cache-offload.md:1593-1609) with the GLM-5.3-Flash TP4 11.0 GiB / 1,664 slot / 7.1 GiB example retained. - No unrelated tooling, no bundled feature surface, no scope expansion: none of closed #718's HTTP
X-Flare-Prefill-Only, scheduler anchoring, or Selene announce-barrier surface is carried, and capture remains single-host by construction. The charter non-goals (disaggregation, cluster orchestration, non-NVIDIA backends) are untouched. - Compile-consistency of the fixture story checks out: every
PrepareInputsliteral either setsmax_sequence_pagesor uses struct-update syntax from a base that does (helios/src/runtime_core/memory.rs:2070-2073,selene/src/offload/tests.rs:962-965), so the reported green runs are consistent with the tree.
Info / Nit (non-blocking, no action required)
- The 09:11 autobot review is stale relative to the head. Its merge-risk block is labelled "up to
02990da", quotes +115/−10, and its single Should-Fix (unguardeddiv_ceil/context == 0producingSome(0), which selene treated as uncapped) is closed at66d6af3:contextis filteredtokens > 0(helios/src/runtime_core/memory.rs:993-996), the bound isNonZeroU64::new(context.div_ceil(...))(:998-1000), and selene's match is the singlemap_or(pages, |limit| pages.min(limit.get()))(selene/src/offload.rs:165-167) with nolimit > 0arm. That should-fix should not be carried forward against this head. - Base-label drift in the PR body. The body reports the six-crate runs against base
f46a99220a;mainhas since fast-forwarded (#713), addingLinuxMemInfo/append_integrated_meminforoughly 160 lines above these hunks.PlannedHostBudgets(memory.rs:32-36) andcapture_growthare unaffected onmain, so the rebase is mechanical. A stale base label with no reported failure is not a gate item. - Doc sentence neighbouring the new ceiling.
docs/prefix-cache-offload.md:1605-1606still says a capture with no resident ancestor "copies the full GPU chain", two sentences below the new ceiling at:1595-1597. Behaviour is safe (an over-long chain is dropped rather than overrunning the slab), so this is prose precision only, and the paragraph was rewritten rather than newly authored. - Charter authorization is a maintainer judgement call, not a violation.
AGENTS.md:165-166accepts a contribution addressing "an explicit maintainer request, a demonstrated defect, a measured performance or memory problem, or inaccurate documentation". This PR supplies a live memory trace and a reproducible startup failure mode, which lands inside that list; the fact that yatesdr's #455 review asked only for documentation (with the runtime cap being the author's extrapolation, no issue filed, and no organic demand — searches forhost budget cannot hold a full pool capturereturn only #455, #497, #718, #737, #742) is a scoping call for the merging maintainer, not a breach of any hard gate. - Security / process. No obfuscation, injection attempt, external network or secret access, or attempt to direct reviewer behaviour appears in the diff or the PR conversation.
Explicitly not flagged (per calibration)
- No CI is observable on the head; the PR claims no failure and reports runs covering every crate the native-serving workflow tests, so absence of observable check runs is not reported.
- No
docs/TODO.txtbookkeeping ask; no PR-description phrasing nit as a gate item. - The
#737overlap and the deliberately uncappedintake_slotsfloor (selene/src/offload.rs:178-180, now stated in the doc at:1594-1597and in the PR body) are design/sizing matters for the correctness and value lenses, disclosed rather than concealed — out of scope for this governance gate.
Conclusion: the diff satisfies every hard contract boundary, is vendored/pinned clean, carries the Layer 1 verification the testing hierarchy mandates for a startup-only sizing change with no Layer 3 trigger, and contains no material scope or claim contradiction. The only residual items are the merge-order note for #737 and prose/label housekeeping.