🔧 Fetch origin before mission dispatch and enforce rebase-only policy#72
Merged
🔧 Fetch origin before mission dispatch and enforce rebase-only policy#72
Conversation
--permission-prompt-tool stdio routes ALL permission decisions through the control protocol, bypassing the CLI's internal --permission-mode auto-accept logic. This caused edit tools to still require manual approval even when the session was set to acceptEdits. Fix: when permission_mode is "acceptEdits", automatically include Edit, Write, and NotebookEdit in --allowedTools so the CLI pre-approves them.
Mission worktrees were created from the local base branch, which could be stale. Now the dispatch flow fetches from origin first and bases the worktree on origin/<base_branch> to guarantee freshness. Also adds rebase-only / no-merge-commit instructions at both the orchestration layer (git fetch + remote base ref) and the prompt layer (agent instructions, default template, and live MISSION.md).
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
git fetch originbefore creating the worktree and bases it onorigin/<base_branch>instead of the (potentially stale) local branch.mission_agent_instructions()enforcing rebase-only / no-merge-commit policy for all headless mission sessions.MISSION.mdtemplate used for new missions.Answers to issue questions
main. After: Yes — fetches origin first, bases onorigin/main.git fetch originin dispatch flow.mission_dispatch.rs, right beforecreate_tracked_worktree().Test plan
make rust-cipasses (fmt, clippy, tests)origin/mainCloses #70