Repository navigation
refactor(ep): remove ParallelEPOptimiser and its tests (#1611) - #1612
Merged
Merged
Conversation
Never used, never exported (deep import only), its one test helper never collected, and it is EP's own fork pool across factors — subject to the same dead-worker hang fixed for Nautilus in #1610 and contradicting the 2026-09-09 ruling that EP never combines with Python multiprocessing. Restorable from git history if ever wanted. README §7 (Parallel EP) removed; the lowering contract is now §7 and its cross-references follow. The end-of-run-guards test loses its "parallel" name, and the optimiser module drops an unused multiprocessing import. Closes #1611 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FU8EkdahFWmrL6pewkHZR3
This was referenced Sep 11, 2026
This was referenced Sep 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Deletes
ParallelEPOptimiser(human decision 2026-09-11, after #1608 / #1610). It was never used and never exported fromautofit,autofit.graphicalor the EP package (deep import only); its one test helper_test_parallel_laplacewas underscore-prefixed and never collected; and it was EP's own process pool across factors, subject to the same dead-worker hang #1610 fixed for Nautilus and the JAX-in-a-forked-child deadlock of #1442. The ruling of 2026-09-09 is that EP never combines with Python multiprocessing, so the class contradicted the ruling by existing. It is restorable from git history if ever wanted.Also: README §7 (Parallel EP) removed, the lowering contract renumbered §8 → §7 with every cross-reference updated (README,
AGENTS.mdseam rule,test_declarative_deterministic.py), the diagnostics end-of-run-guards test loses its "parallel" name and its F3 wording, and an unusedmultiprocessingimport goes from the optimiser module. Net −211 lines.API Changes
None public — the class was reachable only by deep import. Recorded as Removed below for release notes.
See full details below.
Test Plan
grep -rn ParallelEPOptimiser autofit test_autofit docsreturns nothing;grep -rn "§8"over the README,AGENTS.mdandtest_autofit/graphicalreturns nothing.test_autofit/graphicalserial: 281 passed (same as the post-fix(ep): never drive a factor search through a multiprocessing pool; fail fast on a dead Nautilus worker (#1608) #1610 baseline; the deleted helper was never collected).test_autofitserial: 2348 passed, 2 skipped (identical collection with and without the change).Full API Changes (for automation & release notes)
Removed
autofit.graphical.expectation_propagation.optimiser.ParallelEPOptimiser— internal, never exported; EP factor optimisation isEPOptimiseronly. Parallelism for EP comes from a JAX-vectorised likelihood (Analysis(use_jax=True)).Generated by the PyAutoLabs agent workflow.
Closes #1611
🤖 Generated with Claude Code
https://claude.ai/code/session_01FU8EkdahFWmrL6pewkHZR3
Generated by Claude Code