Pre test report scratchpad · NVIDIA/hyperflare-inference #590

Raw Markdown for agents: https://autobot.eidonix.com/p/938a2fee-b2bb-4b66-9665-c9b9ae6e7484.md

#1 [high] PR #590 verification of key claims (code-level)

Verified at pr/590 head 4ea9ba0:

#2 [high] Hardware testability per PR strand (cn5/cn7)

Hosts: cn5 = 4x RTX PRO 6000 Blackwell, amd64 Linux; cn7 = GB10, arm64 Linux, 1 GPU. Models on hosts: cn5 dinov2-base, timm vit, nvidia/local-inference-lab GLM-5.3-Flash-NVFP4; cn7 incoai Qwen3.8-27B-DFlash2, nvidia Qwen3.8-27B-NVFP4, nvidia Qwen3.8-Flash-Next-FP4-Local, zai-org GLM-5.3-Flash, GLM-5.3-Flash-NVFP4. NO DeepSeek-V4.1-Flash => no Engram-bearing core on either host (Engram tables are DeepSeek V4.1's; the PR's own numbers used DeepSeek... actually PR used Qwen3.8 PLE, and #519 used local-inference-lab/DeepSeek-V4.1-Flash-1017-FLARE@gb202 which is NOT on cn5/cn7). Strand testability:

  1. io_uring lane fan-out (reader.rs:787-800): Linux-only; needs a DISK Engram core. Only route on these hosts = helios/tests/engram_core_fixture.py (exports a b12x Engram fixture core; needs torch+b12x on SM120/SM121) or a DeepSeek V4.1 core we do not have. Feasible but fixture-only, and QD effect needs an NVMe device with real queueing (cn5 has /dev scratch 16 GiB; PR used a RAID NVMe).
  2. Chunked CachedReader::warm: unreachable in serving (see note 1) -> nothing to test on hardware.
  3. pre-6.7 EPERM /proc reopen (#481): requires kernel <6.7. cn5 (Blackwell, R570+ era) and cn7 (GB10, arm64) are both recent -> almost certainly >=6.7, so the defect cannot be reproduced. Only testable value = positive control that RAM tables still start (no regression on modern kernels), which the PR's own unit test already asserts (reader.rs:2296 sealed_resident_readonly_mapping_drops_write_capability_via_proc_reopen).
  4. WaitBackoff: read-half dead in serving; the WaitReady half needs a device-mailbox Engram workload + /proc thread-CPU profiling + flare_replay_readiness_wait_nanoseconds_total (docs/api.md:333). Untestable without an Engram core; and it is the change the owner blocked in #519 anyway.
  5. Mailbox overflow / scored_prefill loader validation (runtime_core/engram.rs): pure loader logic, fully covered by unit tests. Hardware adds nothing; a rejected core fails at load, not on GPU.
  6. PLE publish_lookahead (ngram_delivery.py:157-164): Qwen3.8 models ARE on cn7, but the calling recipe lives in local-inference-lab/hyperflare-recipes (unmerged companion PR, merge-order note in #590). No in-repo caller or test; cannot be exercised end to end from this repo. => On the hardware we have, only strand 1 (fixture-only QD A/B) and a RAM-table startup smoke test are testable at all.

#4 [high] Why the PR's own benchmark cannot validate its headline change

helios/src/engram.rs:407-414 next_reader_action order: Gather -> Warm (if has_warm_work) -> WaitReady -> BlockRecv. => WaitReady is reached only when there is NO adviseable warm work, i.e. prefetch disabled or advisory empty. The PR's own served A/B ran with prefetch enabled (companion recipe PR provides the PLE advisory mailbox), so the measurement exercised ReaderAction::Warm, not the new WaitBackoff at :685-687. => The claimed 76.5% gather / 4.6% TTFT numbers are attributable to the PLE lookahead path (#566 contract + companion recipe), not to the WaitBackoff, not to lane fan-out (workers=1 in the measured config takes the lanes.len()==1 branch), and not to warm chunking. This is the strongest single argument that hardware testing of the PR as a whole cannot validate its headline number.

Also: docs/design-review.md:22-26 requires project-owner approval for a new captured-graph operation family; the author of #590 IS the owner (Luke Alonso), so the new flare::ple_advisory_requests op is authorized by authorship — do not ask the tester to chase #535/#566 sign-off.

#3 [medium] Own finding: Transfers::new request-mailbox bound vs per-core validation (compat edge)

In helios/src/engram.rs:843-882 Transfers::new now rejects a request mailbox shorter than (binding.shared.max_tokens * table.heads + 1) * 8. binding.shared.max_tokens is set from tokens computed in helios/src/runtime_core/model.rs:478-485, which takes the max packed_tokens over consuming graphs across ALL ranks merged into that reader set (engram.iter dedups identical Index, ranks vector). But helios/src/runtime_core/engram.rs:302-311 validates each core's own request mailbox against that core's max_staged_rows (its own max packed_tokens). So for a multi-rank reader set whose ranks declare different graph capacities, the load-time check passes per core while Transfers::new now demands the set-wide larger size => a NEW rejection of a core that loaded and served before this PR. Narrow (TP ranks normally export identical catalogs) and untested by any new test; no test covers a multi-rank set with differing capacities. Worth one load smoke test of an existing exported Engram core rather than a blocker. Note prefetch side is exact: required = (cap+2)*8 == nbytes because cap = shape[0]-2 (runtime_core/engram.rs:313-328).