Add lightweight orchestrator CLI with supervisor/worker subprocess flows#298
Open
mmprotest wants to merge 2 commits into
Open
Add lightweight orchestrator CLI with supervisor/worker subprocess flows#298mmprotest wants to merge 2 commits into
mmprotest wants to merge 2 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
orchestratethat invokesvillani_code.orchestrator.run_orchestrator(...)and prints a concise final summary.runinvillani_code/cli.pywith hidden machine-only flags--role,--result-json-path, and--parent-mission-id, and maderunemit a strict JSON artifact to the provided--result-json-pathwhen present while preserving normal UX.villani_code/orchestrator.py(controller + subprocess launcher),villani_code/orchestrator_models.py(typed dataclasses and state persistence),villani_code/orchestrator_roles.py(supervisor/worker prompt builders),villani_code/orchestrator_git.py(minimal git worktree/merge/diff helpers), andvillani_code/orchestrator_verify.py(deterministic worker and final verification heuristics).python -m villani_code.cli run ...(seerun_villani_subprocess) and consumes the strict JSON artifact at--result-json-pathinstead of parsing human stdout.villani_code/subagent_runtime.pyto includesupervisorandworkerrole presets with simple allowed-tool constraints.tests/that mock subprocess/git interactions to validate direct/split supervisor behavior, invalid supervisor artifacts, retry/blocked/timeout flows, merge/final-verification failure handling, and CLI machine-artifact emission.Testing
pytest -q tests/test_orchestrator.py tests/test_cli_orchestrator_flags.pyand all tests passed (12 passed)..villani_code/missions/<mission_id>/orchestrator/.Codex Task