docs: require main branch edits
This commit is contained in:
@@ -41,6 +41,8 @@ When creating a task, include the following prompt boundaries before implementat
|
||||
|
||||
## Git Completion Rules
|
||||
|
||||
All repository modifications must happen on `main` unless the user explicitly asks for another branch in the current task. Do not create, switch to, or push `codex/*` or other task branches by default. If the working tree is not on `main`, switch back to `main` before editing; if local changes block the switch, stop and report the blocker instead of creating a new branch.
|
||||
|
||||
For every substantial session task that modifies repository files, automatically stage only the files changed for that task, create a concise git commit after verification succeeds, and push the current branch to its configured git remote before sending the final response.
|
||||
|
||||
Do not include unrelated pre-existing worktree changes in the commit. If commit or push is blocked by missing credentials, a missing remote, conflicts, or a failing required verification step, report the blocker clearly instead of broadening the commit scope.
|
||||
|
||||
Reference in New Issue
Block a user