Explore scratchpad · NVIDIA/hyperflare-inference #709

Raw Markdown for agents: https://autobot.eidonix.com/p/37abccd4-de4d-43e5-9b9a-b05b1c862109.md

#1 [high] Change: PR #709 scope, size, three gates

PR #709 (open, ready for review, author lukealonso COLLABORATOR), head eb6c1e1, base main, 19 files +2032/−137, opened 2026-12-03. No reviews, no comments yet. Three independent changes in one PR:

  1. ignition/preparation/contract.py (+140/−7) + tests/preparation/test_codec_layout.py (+150): new CodecEncoding(IntEnum) with 11 Selene IDs (BYTES 0, FLOAT32_MATRIX_128 1, BFLOAT16 2, CONVOLUTION_20 20, CONVOLUTION_32 32, LATENT_528 40, INDEX_132 41, FP8_PAGE_512 42, WINDOW_FP4 45, LATENT_FP4 47, LATENT_576 48), _CODEC_BLOCK_BYTES table, _validate_codec_encoding (rejects bool/non-int/unknown id/length not divisible by block_bytes/FLOAT32_MATRIX_128 offset not 4-aligned), default_field_encoding(name,dtype,shape) conservative classifier, and codec_layout(..., state_buffer=None) that now skips CONTINUATION_STATE regions in regions, resolves row buffer name from CONTINUATION_STATE/explicit state_buffer instead of hardcoded "state_pool", sorts+bounds-checks pool.layout.regions, rejects duplicate/conflicting buffer names, and returns None for zero-length page tensors.
  2. selene-manager/src/pool/{store_bridge,claims,core,lookup}.rs (+40/−12): packed (v4/GKV1/ZKV1) pooling now allowed for single-host TP>=2 (multi-GPU single process) and refused/excluded for multi-process sessions (session.ranks.is_some() / layout.world()>1).
  3. helios: persistent_worker.rs (+868/−45 incl. ~650-line ignored CUDA test), mod.rs/model.rs/memory.rs (+33/−5) for a third disjoint "codec" SM Green Context partition, server/runtime.rs (+69/−57) moving crate::offload::open before RankExecutor::new and extracting fn close_store, docs/prefix-cache-offload.md (+15/−9). Addresses #698 (PR, startup deadlock) and #701 (issue, GC contention/100x decode collapse).

#2 [high] Change: diff includes already-merged unrelated work from #697 and #689

The PR diff contains hunks the description never mentions, and which appear to be work from PRs already merged into main after the PR's base commit (cc0a49d):

#3 [high] Change verified: selene-manager raw-only gates are correct multi-process predicates

Verified in code at pr/709:

#4 [high] Why/Related work: #698 is superseded-in-substance but still open; #701 is the P1 report

#5 [high] Related work: #612 introduced the packed rejection #709 relaxes; #607 by same author

Precedent in the same files: #612 "fix(selene-manager): harden multi-rank packed handling..." (yatesdr, merged 2026-11-29, +293/−52, 10 files) introduced "Reject multi-process (world >= 2) packed PutBegin and PinAck grants cleanly" in selene-manager/src/pool/store_bridge.rs and claims.rs, motivated by "Multi-process (world >= 2) packed PutBegin and PinAck grants sized an arena extent to compressed bytes while passing uncompressed window lengths to pass::run or concurrent rank writers." #709 reverses the condition (from descriptor-rank-count to session-process-count) rather than the safety property: multi-process stays rejected, single-host TP>=2 becomes allowed. Conflict: #612's safety rationale was about per-rank writers/arena sizing for world>=2; #709's new tests (single_host_tp2_packed_put_stores_and_serves_over_shm_and_tcp, single_host_tp2_peer_dram_packed_export_succeeds_over_shm_and_tcp, multi_process_tp2_stays_raw_only_and_excludes_packed_records, +645 lines in selene-manager/tests/packed.rs) are the evidence that world==2 with one process now passes through the same arena/pass machinery (store_bridge.rs:648-700 still records per-rank writers and mp.layout.world() slices for grant windows). #612's Autobot review was "Review Stopped: it was already fixed another way (merged or on r main)". Also touching claims.rs recently: #694 (open, yatesdr, NVMe/pool spill profitability gate), #674 (merged), #607 (merged, lukealonso — multi-process put corruption fixes!), #504 (merged, yatesdr — the originating lossless KV compression PR), #415, #402, #401, #376, #92 (merged, yatesdr — the original pool manager). Note #607 by the same author #709 fixed "multi-process put corruption" — so the author has priors in exactly this multi-process/packed area. selene-manager/tests/support/pool.rs (+3) adds a small helper for the new tests.

#6 [high] Change: helios 3-way Green Context internals and the offload_context nuance

Work inside #709 itself:

#7 [high] Claims and evidence: verified vs claimed-only; SM103/#701 end-to-end unproven

Claims vs evidence, verified split: VERIFIED BY ME (code reading at pr/709):

#8 [high] Reach/charter: startup can now fail on small-SM devices; no served-workload benchmark

Reach:

#11 [high] Research summary

Case file for PR #709 is complete: all nine angles are covered in ten scratchpad entries with file:line and PR/issue citations.

Key findings a reader could not get from the description:

#13 [high] File map: where each authored change lives (with line anchors) vs inherited hunks

Compact file map for the report (PR head eb6c1e1, 19 files): AUTHORED (relevant):

#9 [medium] People/Community: lukealonso priority contributor with #607 priors; zero engagement on #709

People:

#10 [medium] Process: ready-for-review, CI green, same-day, 3 fixes bundled + diff inflated by main

Process/age: opened 2026-12-03, ready for review (not draft), head eb6c1e1, CI passed per orientation packet, 0 reviews/0 comments, no labels, same-day. Description has all four charter-required parts (why / what changed / claimed result / evidence) plus a Limitations section — stronger than most. Areas that reviewers will most likely probe (facts, not judgements):

  1. Bundling: three unrelated fixes (Python authoring tool, selene-manager protocol policy, helios CUDA scheduling) in one PR; each could land separately. #698 already exists as a standalone PR for part 3's ordering fix and is still open.
  2. The diff carries ~1,000 lines of merged main work (#697, #689) because the branch was based on cc0a49d; a rebase onto current main would shrink the diff to the authored ~1,030 lines. (search_history is broken in this checkout — "Could not read commit c513e46…" — so I could not confirm the merge commit, only content identity.)
  3. #701's P1 end-to-end symptoms are not reproduced as fixed; the evidence is a component test on SM120, while #698/#701 were both measured on SM103.
  4. reserve_codec_partition keys on gpu_codec_cubins presence rather than the compression mode, so cpu-mode cores that embed GPU codec cubins would also reserve an SM partition (description says only when GPU compression is active).
  5. Offload now uses the rank base context on all persistent-worker cores (model.rs offload_context, memory.rs registration_context), not just gpu-compression cores — an undeclared behavioral change for cpu-mode offload.
  6. No update to selene-manager/PROTOCOL.md or docs/same-process-tp.md for the TP>=2 packed policy.
  7. Broken helper search_history in the checkout is an environment artifact, not a PR defect; noted so a later agent doesn't retry.

#12 [medium] Recent activity: history unavailable; same-day merges #697/#689 explain diff; overlapping open #698,#694,#707,#691,#692

Angle "recent activity" — what I could and could not establish:

#14 [medium] Related work: #504 origin of GKV1/ZKV1 and the 2-way split; follow-up set; external recipe repos unverifiable

Lineage and neighbouring items (for the "related work" section):