feat(primitives): persist_changes, QuickCheck, adaptive advisor, auto_commit#1
Merged
Merged
Conversation
…auto_commit 1. persist_changes on GoalStage — parallel stages with persist_changes=True run in isolated git worktrees (git_ops.py); changes are committed and cherry-picked back into the main working directory after the batch completes. 2. QuickCheck scripted verification — GoalStage.verification accepts "full" (agent verifiers), "skip" (immediate accept), or list[QuickCheck] (shell commands checked against expected exit code). quick_check.py handles timeout and FileNotFoundError. 3. Adaptive advisor (advisor.py) — after each sequential stage, coordinator LLM decides "continue" / "done" (early exit) / "add_stage" (inject a new GoalStage inline). 4. auto_commit on TeamConfig — coordinator calls git_ops.commit_stage() after each successful sequential stage (skips if nothing to commit). 108 tests passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
GoalStage.persist_changes=Truecauses parallel stages to run in isolated git worktrees (git_ops.py). After the batch completes, each worktree commit is cherry-picked back into the main working directory.GoalStage.verificationaccepts"full"(agent verifiers, existing behaviour),"skip"(immediate accept), orlist[QuickCheck](shell commands).QuickCheckcarriescommand,expected_exit_code, anddescription.quick_check.pyhandles timeout andFileNotFoundErrorcleanly.TeamConfig.adaptive_advisor=Trueenablesadvisor.pyto ask the coordinator LLM after each sequential stage whether to"continue","done"(early exit), or"add_stage"(inject a newGoalStageinline). Resilient: malformed JSON or call errors default to"continue".TeamConfig.auto_commit=Truetriggersgit_ops.commit_stage()after each successful sequential stage (no-op if nothing to commit).Test plan
tests/test_primitives.py— 29 new tests covering all four primitives🤖 Generated with Claude Code