Require automatic upstream pushes

Request:
- Make AGENTS.md explicitly require automatic pushes to the remote after commits.

Changes:
- Add a Git Workflow rule to push the current branch to its configured upstream remote after a successful commit.
- Add a reporting rule for missing upstream configuration or failed pushes.

Verification:
- Reviewed the updated Git Workflow section.
- Ran git diff --check.
This commit is contained in:
2026-06-15 06:22:44 +00:00
parent eae427d85b
commit fb715cd446
+2
View File
@@ -73,6 +73,8 @@ Strong success criteria let you loop independently. Weak criteria ("make it work
## Git Workflow (Automatic Commits) ## Git Workflow (Automatic Commits)
- After each completed repository change, create a focused git commit automatically before the final response. - After each completed repository change, create a focused git commit automatically before the final response.
- After a successful commit, push the current branch to its configured upstream remote automatically before the final response.
- If no upstream remote is configured, or if the push fails, report the skipped/failed push with the exact reason.
- Use small, focused commits. - Use small, focused commits.
- Use rich multi-line commit messages so `git log` is the primary step-by-step history for this repo. - Use rich multi-line commit messages so `git log` is the primary step-by-step history for this repo.
- All generated code and documentation outputs should be written in English by default. - All generated code and documentation outputs should be written in English by default.