#1 [high] Change: what PR #640 changes, file by file, and its size
PR #640 "helios: allow persistent workers on rank 0 of local multi-rank cores", author original-el8 (COLLABORATOR), opened & updated 2026-11-30, base main, head b7a6204, 4 files +68/-34, open, ready for review, no reviews, CI failed on head.
Three gate changes, all relaxing the same rule from "single-rank only" to "rank 0 of a local (non-cluster) core":
- helios/src/runtime_core/model.rs:114-134
validate_persistent_worker_topology— washas_worker && (cores.len() > 1 || cluster.is_some()); now splits intohas_rank0_worker(cores.first()) andhas_peer_worker(cores.iter().skip(1)), rejecting onlyhas_peer_worker || (has_rank0_worker && cluster.is_some()). Error text changed from "persistent workers are only supported on single-rank cores" to "... on rank 0 of a local core". Called from model.rs:386 inside load_agreeing, after per-corecore.validate(). - helios/src/runtime_core/selection.rs:285-289
LoadOptions::select— deletedlet multi_rank = cores.len() > 1;(was line 225) and replaced!persistent_workers.is_empty() && multi_rankwith... && rank > 0; message "persistent workers are only supported on rank 0". - helios/src/execution/threaded.rs:632-636
ThreadedExecutor::new— dropped the!manifest.persistent_workers.is_empty()term of the rejection, so only peer manifests (ranks.iter(), i.e. the manifests for ranks 1..N, coordinator manifest is separate) with workers are refused; message "... rank 0 of a local core". - helios/src/execution/threaded.rs:1292-1294
same_layout— replaced a field-by-field comparison of a.persistent_workers vs b.persistent_workers withif !b.persistent_workers.is_empty() { return false; }. So the coordinator (a=root) may have a worker; a peer (b) may not. Note this also silently drops the previous per-field equality check; since b must be empty and the old code required equal lengths, any a-vs-b worker comparison now reduces to "b empty". Asymmetric by design (asserts !same_layout(&peer,&root)). - docs/runtime-core-design.md:642-644 text updated.
Tests updated: model.rs:1754-1769 (peer rank + cluster cases), selection.rs:694-724, threaded.rs:1628-1650 new test rank_layout_permits_persistent_worker_only_on_rank_zero.
NOT changed by this PR though still saying "single-rank" or still rejecting: helios/src/execution/parallel.rs:122-126 and :552-556 ("persistent workers are only supported on single-rank cores"), helios/manifest.md:92-94 ("Helios currently supports at most one persistent worker entry on single-rank cores; ... multi-rank cores ... fail validation"), helios/src/execution/parallel/tests.rs:675-704. So the docs in helios/manifest.md now contradict the new behavior for local multi-rank cores — an undeclared gap (see separate entry).
#2 [high] Undeclared: helios/manifest.md and socket-TP rejection text still say "single-rank", docs left stale
PR #640 updates only docs/runtime-core-design.md:642-644. helios/manifest.md:87-95 still reads: "Helios currently supports at most one persistent worker entry on single-rank cores; cores declaring more than one entry, multi-rank cores, and multi-host cluster cores declaring a persistent worker fail validation before execution." After this PR a local multi-rank core with a rank-0 worker does pass validation, so helios/manifest.md is now wrong. This is not mentioned in the PR description ("What changed" lists only the 4 files). Cross-check list for the doc angle: docs/runtime-core-design.md (updated), helios/manifest.md (stale), helios/src/execution/parallel.rs:122-126 & :552-556 (stale error text "single-rank cores", correct behavior for socket/multi-host TP but now inconsistent wording with threaded.rs's "rank 0 of a local core"), helios/src/execution/parallel/tests.rs:695,704 asserting contains("single-rank") (still passes since parallel.rs unchanged).
Also note the three rejection sites now use three different wordings: model.rs:130 "rank 0 of a local core", selection.rs:287 "rank 0", threaded.rs:634 "rank 0 of a local core", parallel.rs:124/556 "single-rank cores".
#3 [high] Why: restriction introduced by #430 rejected multi-rank by design pending startup/teardown work
No issue is linked; the PR body gives the motivation in one paragraph only ("blocked local multi-GPU cores from combining a rank-0 persistent worker (such as a GPU-side mover) with plain peer ranks under ThreadedExecutor").
Origin of the restriction being lifted: #430 (merged 2026-11-23, author = same person, original-el8) introduced Execution.persistent_workers and deliberately rejected multi-rank and multi-host cluster cores at four sites — its own description says "Explicitly rejects multi-rank (cores.len() > 1) and multi-host cluster (cluster.is_some()) persistent-worker cores across graph selection, model loading, threaded execution, and socket tensor-parallel execution." The reason given in #430's review thread (lukealonso, 2026-11-23): "Either reject cores.len() > 1 / cluster.is_some() explicitly until multi-rank coordination and failure-abandonment (GraphExecutor::abandon, partial finish_startup failures) are implemented and tested, or validate multi-rank startup and teardown directly." So the file names a load-time validation relaxation but the original restriction was about untested multi-rank startup/teardown/abandon semantics — see the claims entry for whether that concern is addressed.
Plausible consumer (not linked by the PR, not verified): #465 (closed) "Wire SM103 dynamic GPU expert mover and inline predictor into DeepSeek V4.1 reference recipe" and #431 (merged) PersistentWorker export binding; #430's description places the SM103 mover/predictor recipe in local-inference-lab/hyperflare-recipes.
Age/interest: the restriction existed for 7 days (2026-11-23 → 2026-11-30). No issue, no comments, no reactions, no reviewers so far.
#4 [high] Related work: #430 parent (same author), #431 export, #507 telemetry, #613 teardown, #622 same code path
Same-file / same-topic neighbours found (orientation packet + items_touching):
- #430 (merged 2026-11-23) "Add Execution.persistent_workers green-context lifecycle", original-el8 — the parent feature; this PR relaxes one of its validations. Its own review record shows the multi-rank rejection was requested by the maintainer (lukealonso) with condition "until multi-rank coordination and failure-abandonment ... are implemented and tested, or validate multi-rank startup and teardown directly". #430 also notes "only single-rank, single-worker cores are supported" as a limitation.
- #431 (merged) "Add Heliopause and Ignition PersistentWorker export binding and reachability", original-el8 — stacked after #430; produces the export that carries a worker per rank. Whether Ignition can currently emit a worker only on rank 0 of a multi-rank
PreparedExecutionwas not verified (export binding is per-PreparedExecution; tests/preparation/test_persistent_worker.py only covers single-rank). - #507 (merged 2026-11-25, lukealonso) persistent worker metrics /
/v1/worker/flare parallax— replaced the author's closed #472. Its description still scopes to "Prepared single-rank cores"; telemetry consumers (server/runtime.rs:631, metrics.rs, dashboard/worker.rs) readmanifest.persistent_workers.first()on the single manifest the server owns, i.e. rank 0, so they keep working for a mutli-rank-thread core — plausible but not exercised (untested). - #613 (merged 2026-11-29, lukealonso) "…drop teardown…": changed
NativeModelteardown sorelease_execution_resources()stops persistent workers and synchronizes CUDA contexts afterreset()/clear(). Directly relevant: teardown ordering for rank-0 workers in a multi-rank thread group is the failure-abandonment area #430 deferred. - #622 (open, Raydius) touches
apply_context_settingsfor the persistent-worker contexts (helios/src/runtime_core/mod.rs) — same code path (green-context context limits), no overlap with the files this PR edits; no merge conflict expected. - #628 (open, yatesdr)
runtime_core/model.rs(offload CE) — same file, unrelated code. - #576 (open), #554 (open draft), #334 (open), #566/#572/#595/#579/#556 (merged) touch
execution/threaded.rs— all in the rank-dispatch/startup-drain area, none touchsame_layoutorThreadedExecutor::new's worker check. - Socket TP (
TensorParallelExecutor, parallel.rs:122-126, :552-556) andheliopause/src/python.rs:368+ignition/preparation/execution.py:333-336,352-355still reject persistent workers outright: multi-host and in-process Python are untouched by this PR, matching the stated scope.
No competing or superseding PR found for this exact relaxation; no item was found that undoes or reverts it.
#5 [high] Claims vs evidence: load/select covered by unit tests, threaded execution only by same_layout
Claims in the PR body vs what was checked:
- Claim "Local multi-rank cores can load, select, and initialize rank-0 persistent workers alongside plain peer ranks." Verified textually: the three gates (model.rs:114-134, selection.rs:285-289, threaded.rs:632-636) now admit
[worker, plain]. Selection and validation accept it in unit tests (model.rs:1754, selection.rs:694-707). - Not verified anywhere: that a threaded rank group actually initializes, serves and drains with a rank-0 worker.
ThreadedExecutor::newlaunches oneGraphExecutorper peer plus the coordinator's; each callsfinish_startup()(threaded.rs:729-775 → transport.rs:793-808) which requiresworker.control— set only by the nativeNativeResourcespath (serving.rs:181). No test constructs a ThreadedExecutor with a rank-0 worker; the added testrank_layout_permits_persistent_worker_only_on_rank_zero(threaded.rs:1632-1651) only exercisessame_layout. Existing execution tests at tests.rs:1372-1373 still only assert rejections. - The PR body itself lists this as a limitation ("live multi-GPU core loading/execution with a persistent worker [was] not executed in this CPU-only check").
- "#430 review concern (multi-rank startup, partial finish_startup failure,
GraphExecutor::abandon)" is not addressed by this PR: no new startup/teardown handling, only predicate changes.GraphExecutor::new_unstartedfor each peer still runs its own startup tuning loop; if rank 0 launches a worker and a peer fails startup, threaded.rs:777-822 drains and aborts paths are unchanged and were not tested with a worker present. - Doc claim "peer ranks or multi-host cluster cores declaring a persistent worker are rejected" matches code. But
helios/manifest.mdstill claims multi-rank cores are rejected (stale). - Test numbers in the body (133/186/1167 passed) are CPU-only
--libruns on-p flare-helios; CI's native-serving workflow runscargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,server(whole suite, no-pfilter, includes integration tests and tests.rs), so the reported runs are a subset and use a different feature set for the third command (--features runtime-coreonly).
#6 [medium] Reach: which gates changed, which still reject, and consumers that assume one manifest
Six rejection sites exist for persistent workers in main; this PR touches three.
- model.rs
validate_persistent_worker_topology(called model.rs:386) — changed. - selection.rs
LoadOptions::select(line ~285) — changed. - threaded.rs
ThreadedExecutor::new(line 632) — changed. - parallel.rs:122-126
TensorParallelExecutor::newand parallel.rs:552-556serve_rank— unchanged ("single-rank cores"). - heliopause/src/python.rs:368 (in-process loader) — unchanged.
- ignition/preparation/execution.py:182-183 (at most one per rank at preparation) and :333-336, :352-355 (
start_executor/serve_rankreject workers) — unchanged; note execution.py:182 already only enforces one-per-rank, no multi-rank rule, so a PythonPreparedExecutionmay declare a worker regardless of rank count.
Downstream of the relaxation, other code that consumes persistent_workers assumes one manifest (rank 0) but is reached for multi-rank-thread cores:
- server/runtime.rs:631-634
metrics.persistent_worker = manifest.persistent_workers.first()— manifest here is rank 0's, so telemetry stays valid. - execution/transport.rs:797-805
finish_startupstarts the worker viaworker.control; peers getCommand::FinishStartup(threaded.rs:766-774) and would also try to start a worker if one were present — they cannot be, sinceThreadedExecutor::newrejects peer workers. OK. - runtime_core/mod.rs:369-380, :765-780, :888-908, :1243-1256: the green-context partition,
execution_context()(:1385-1389) andstart_persistent_worker(:1393-1398) are per-rankNativeResources, so a rank-0-only worker means only rank 0's resources retain the primary context and create green contexts — verified by reading, untested at runtime. - runtime_core/serving.rs:101-184 builds
PersistentWorkerDescriptorwithcontrol: self.persistent_worker_control()per rank; for a peer with no worker the vec is empty. same_layoutis now asymmetric (threaded.rs:1292-1294): the coordinator may carry workers, any peer may not; the previous field-wise comparison of worker descriptors is replaced. New test asserts!same_layout(&root,&root)when root has a worker — i.e. a worker-bearing manifest never matches a worker-bearing peer, including itself. Because the symmetric comparisons ofengram/offload/cacheare unchanged, only the worker check changed shape.
#7 [medium] People: author authored the whole persistent-worker stack; lukealonso imposed the restriction being lifted
- original-el8 (GitHub association COLLABORATOR) opened and authored #430 (merged 2026-11-23), #431 (merged), #432 (closed), #465 (closed), #472 (closed), #507 was merged from lukealonso because "GitHub rejects pushes to the organization-owned fork" (per #507 body) — i.e. the maintainer reships the author's PRs when the fork cannot be pushed. #622's Autobot review references #430 as the base of the green-context work.
- Commits land under "Jason Cook" (git author of b7a62046), matching original-el8's PRs; earlier commits 66bf6d03 (#430) and 052fbdf5 (#431) also by Jason Cook — same person in git terms.
- Author's 180-day record: 24 merged, 28 closed, 8 open. Areas merged: docs (14), helios/src (13), helios (5), ignition/preparation (5), ignition/recipes (4). Currently 8 open, incl. #639 (ignition CompilePool), #632 (GPU prefix calibration), both opened the same day as this PR. So the author works broadly across helios + ignition, not only the persistent-worker feature.
- Area owners on the default branch last 180 days: helios/src — Luke Alonso 229, Martin Vit 52, yatesdr 47; docs — Luke Alonso 384.
- The person who reviewed #430 in depth (and required the multi-rank rejection) is lukealonso; the #430 approval included "Principle 1 approval for the
Execution.persistent_workerscaptured-graph operation contract". He also merged the author's #507/#472 telemetry work. He has not engaged with #640 yet. - yatesdr reviewed #430's rounds (concurrency/memory questions) and owns memory/mapped-host areas; #628 (open, yatesdr) edits model.rs.
- No reviewers, comments, or reactions on #640 so far.
#8 [medium] Project fit: charter's model-agnostic runtime rule is fine; the "check every parallel layout" clause is not met
- Charter (as summarized in the orientation packet): "Keep the runtime small and model-agnostic. Ignition writes the recipes that handle model computation. Helios (the runtime) handles scheduling, caches, and requests, and shouldn't accumulate per-model branches (#267, #334)." This PR is model-agnostic: it only changes a topology predicate, no per-model branch. It lines up.
- Charter "Supported matrix & compatibility: Check interactions across every supported model, cache scheme, parallel layout, multi-host setup, and hardware target named in the docs." This change is exactly a parallel-layout interaction (same-host TP with a rank-0 worker) and the PR does not validate any live layout; it also leaves one doc (helios/manifest.md) describing the old rule. That is where it does not line up.
- Charter non-goals list: "multi-model hosting/routing, or general cluster orchestration" — not implicated; this is single-host rank threads, not cluster orchestration.
- Charter "What gets merged: PRs that address a maintainer request, a roadmap item, a reproducible bug, a measured performance/memory issue, or bad docs." This is closest to a maintainer/roadmap continuation of #430's feature; no measured need is attached (the PR body cites no benchmark or failing scenario beyond "blocked local multi-GPU cores").
- Persistent workers are documented in docs/runtime-core-design.md §4 (lines 628-672) and helios/manifest.md:87-150. #430 required "Principle 1 approval" (new captured-graph operation contract) — a process precedent: changes to this contract area were treated as needing explicit maintainer sign-off. No such sign-off is present here (nobody has reviewed).
- docs/cli-design.md:143 documents
flare parallaxtelemetry, which is the user-visible surface of persistent workers; unaffected.
#9 [medium] Process: ready for review, zero reviews/comments, CI failed on b7a6204
Process facts:
- State: open, "ready for review", head b7a6204, base main, opened and last updated 2026-11-30 (same day). 4 files, +68/-34.
- Reviews: none. Comments: none (pr_comments returned "No comments"). Labels: none. No linked issue.
- CI on head: FAILED (per orientation packet). Relevant workflows:
.github/workflows/native-serving.yml:56-68runscargo test --locked --release --manifest-path helios/Cargo.toml --features runtime-core,serveron ubuntu-24.04 and windows-2022 (this is the suite whoseexecution::andruntime_core::subsets the PR reports as passing, but here the whole suite runs withruntime-core,serverand includes integration tests).helios-lifecycle.ymlruns TLA+ check.py (path filter helios/**) and Kani proofs (cargo kani --manifest-path helios/Cargo.toml --features runtime-core --lib, helios-lifecycle.yml:36-47); Kani proofs live in model/, output/, execution/transport — none reference persistent workers (grep for persistent under verification/ returned nothing). - The failing CI is on the same day as the PR; the later open PR #622 (also 2026-11-30) was told by Autobot that Native serving CI needs approval/run, so a red/queued "Native serving" run may reflect an approval gate rather than a real failure — unverified from here; worth confirming which workflow failed.
- No stacked-PR/dependency statement in the body (base is main, and nothing on main changed these files since it branched: "Commits on the default branch since this pull request branched (0a8c20f), touching its changed files: none").
- Age: hours old.
#10 [medium] Reach: gates changed vs untouched; consumers reading rank 0's manifest; no schema/config change
Six rejection sites exist for persistent workers in main; this PR touches three.
- model.rs
validate_persistent_worker_topology(called model.rs:386) — changed. - selection.rs
LoadOptions::select(line ~285) — changed. - threaded.rs
ThreadedExecutor::new(line 632) — changed. - parallel.rs:122-126
TensorParallelExecutor::newand parallel.rs:552-556serve_rank— unchanged ("single-rank cores"). - heliopause/src/python.rs:368 (in-process loader) — unchanged.
- ignition/preparation/execution.py:182-183 (at most one per rank at preparation) and :333-336, :352-355 (
start_executor/serve_rankreject workers) — unchanged; note execution.py:182 already enforces only one-per-rank, no multi-rank rule, so a PythonPreparedExecutionmay declare a worker regardless of rank count.
Downstream consumers reached for multi-rank-thread cores (all read from rank 0's manifest, so behavior is preserved, but untested):
- server/runtime.rs:631-634
metrics.persistent_worker = manifest.persistent_workers.first(). - execution/transport.rs:797-805
finish_startupstarts the worker viaworker.control; peers getCommand::FinishStartup(threaded.rs:766-774). - runtime_core/mod.rs:369-380 (primary context retained only when a worker exists), :765-780 (green partition), :888-908 (worker graph on worker green context), :1243-1256, :1385-1389
execution_context(), :1393-1398start_persistent_worker— all per-rankNativeResources, so only rank 0's resources take the primary-context/green-context path while peers usecuCtxCreate_v2(:397-400). - runtime_core/serving.rs:101-184 builds the descriptor with
control: self.persistent_worker_control(); empty vec for peers without a worker. same_layoutis now asymmetric (threaded.rs:1292-1294) and the previous field-wise worker descriptor comparison is replaced by!b.persistent_workers.is_empty(). New test asserts!same_layout(&root,&root)when root carries a worker — a worker-bearing manifest never matches a worker-bearing peer, including itself. engram/offload/cache symmetric checks are unchanged.
Operators/config: no new flags, no config keys, no wire/schema change (PersistentWorker message unchanged), no re-export needed for existing cores. Effect is limited to cores exported with a rank-0-only worker on same-host TP; such a core previously failed at load/select. Existing single-rank worker cores and peer/cluster cores behave as before (unit-tested).
#12 [medium] Reach: gates changed vs untouched; consumers reading rank 0's manifest; no schema/config change
Six rejection sites exist for persistent workers in main; this PR touches three.
- model.rs
validate_persistent_worker_topology(called model.rs:386) — changed. - selection.rs
LoadOptions::select(~line 285) — changed. - threaded.rs
ThreadedExecutor::new(line 632) — changed. - parallel.rs:122-126
TensorParallelExecutor::newand parallel.rs:552-556serve_rank— unchanged ("single-rank cores"). - heliopause/src/python.rs:368 (in-process loader) — unchanged.
- ignition/preparation/execution.py:182-183 (one worker per rank at preparation) and :333-336, :352-355 (
start_executor/serve_rankreject workers) — unchanged; execution.py:182 enforces only one-per-rank, no multi-rank rule.
Downstream consumers reached for multi-rank-thread cores (read rank 0's manifest, so behavior preserved, but untested):
- server/runtime.rs:631-634
metrics.persistent_worker = manifest.persistent_workers.first(). - execution/transport.rs:797-805
finish_startupstarts the worker viaworker.control; peers getCommand::FinishStartup(threaded.rs:766-774). - runtime_core/mod.rs:369-380 (primary context retained only when a worker exists), :765-780, :888-908, :1243-1256, :1385-1389
execution_context(), :1393-1398start_persistent_worker— per-rankNativeResources, so only rank 0 takes the primary-context/green-context path; peers usecuCtxCreate_v2(:397-400). - runtime_core/serving.rs:101-184 builds the descriptor with
control: self.persistent_worker_control(); empty for peers. same_layoutnow asymmetric (threaded.rs:1292-1294); previous field-wise worker comparison replaced by!b.persistent_workers.is_empty(); new test asserts!same_layout(&root,&root)for a worker-bearing root.
Operators/config: no new flags, config keys, wire or schema change (PersistentWorker message unchanged), no re-export for existing cores. Effect limited to same-host TP cores exported with a rank-0-only worker (previously failed load/select); single-rank and peer/cluster cores behave as before. Users/operators see nothing unless they serve such a core; when they do, the new green-context/primary-context path is taken on rank 0 only and peer ranks keep the ordinary context path (unverified at runtime).
#11 [low] Community: no comments, reviews or reactions; no Autobot case file posted
- Nothing found.
pr_commentsreturns "No comments" for #640; no reviews, no labels, no reactions, no linked issue, no Discord discussion recorded beyond the "Discord: el8" line in the body (the same handle the author uses on #430/#431). No Autobot case-file comment was posted on #640 (contrast #622, which has an Autobot intake comment and review). - The only "community" signal is process: #430 drew 17 discussion entries across three review rounds, its multi-rank rejection was a maintainer requirement, and #640 — which removes that requirement — has drawn no comment in its first day.