feat: parallel evaluation infrastructure (worktree pool, async subprocess, shared types)#2124
Closed
KRRT7 wants to merge 4 commits into
Closed
feat: parallel evaluation infrastructure (worktree pool, async subprocess, shared types)#2124KRRT7 wants to merge 4 commits into
KRRT7 wants to merge 4 commits into
Conversation
Move OptimizedCandidateSource and BatchRefiner models from models.py to shared_types.py to avoid a circular dependency between models.py and function_optimizer.py.
Pool of N git worktree slots with async acquire/release semantics. Each slot provides write_candidate() and mirror() for file isolation.
Add async_execute_test_subprocess() for running pytest via asyncio.create_subprocess_exec with stdout/stderr capture and timeout. Add --parallel-candidates N CLI argument. Add anyio dependency.
This was referenced May 7, 2026
mypy strict mode rejects implicit re-exports through intermediate modules.
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.
infrastructure primitives for parallel candidate evaluation. adds:
WorktreePool/WorktreeSlot— async acquire/release pool of isolated git worktreesasync_execute_test_subprocess— anyio wrapper for running pytest in worktreesmodels/shared_types.py(breaks circular import)--parallel-candidatesCLI flag +anyiodependencythis is PR 1/4 in a stack. review and merge in order: