Add minimal orchestrate mode with isolated scout/patch workspaces#308
Open
mmprotest wants to merge 3 commits into
Open
Add minimal orchestrate mode with isolated scout/patch workspaces#308mmprotest wants to merge 3 commits into
orchestrate mode with isolated scout/patch workspaces#308mmprotest wants to merge 3 commits into
Conversation
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.
Motivation
Description
villani_code.orchestratepackage implementing a simple round loop (DISCOVER→PLAN→EXECUTE→VERIFY→MERGE) with compact orchestration state saved toartifacts/orchestrate/<run_id>/state.json, and emit per-round artifacts plusfinal_report.jsonandsummary.md(files:orchestrator.py,state.py,prompts.py,worker.py,worktree.py,verify.py,merge.py,__init__.py).villani-code orchestrate "<task>"with the requested flags and passthrough for--provider/--model/--base-url/--api-key, and defaults:--workers=3,--scout-workers=3,--patch-workers=2,--rounds=3,--worker-timeout=300,--keep-worktreesand optional--verify-command. (villani_code/cli.py).WorkspaceManagerthat prefersgit worktreeand falls back to copying a temp repo, enforces dirty-checks for scouts, and supports cleanup honoring--keep-worktrees(worktree.py).villani_coderunner for workers, extracts aWORKER_REPORT_JSONblock when present, and builds a resilient fallback report when parsing fails or a worker times out (worker.py,prompts.py).verify.py,merge.py,orchestrator.py).Testing
tests/test_orchestrate_state.py,tests/test_orchestrate_worker.py,tests/test_orchestrate_merge.py,tests/test_orchestrate_worktree.py, andtests/test_orchestrate_integration.pyto cover state serialization, report parsing, scoring, worktree cleanup, and artifact generation.pytest -q tests/test_orchestrate_state.py tests/test_orchestrate_worker.py tests/test_orchestrate_merge.py tests/test_orchestrate_worktree.py tests/test_orchestrate_integration.py tests/test_init_cli.py tests/test_cli_debug_flags.py, which passed (10 passed, 3 warnings).Codex Task