docs: require main branch edits

This commit is contained in:
npc0-hue
2026-07-25 11:48:11 +08:00
parent 4b01f99461
commit cea7472517
+2
View File
@@ -41,6 +41,8 @@ When creating a task, include the following prompt boundaries before implementat
## Git Completion Rules ## 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. 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. 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.