docs: forbid agents from auto-pushing to remote main branch

This commit is contained in:
fujie
2026-01-03 13:21:31 +08:00
parent b84ff4a3a2
commit 035439ce02

View File

@@ -91,3 +91,12 @@ Before committing:
- [ ] `docs/` index and detail pages are updated?
- [ ] Root `README.md` is updated?
- [ ] All version numbers match exactly?
## 5. Git Operations (Agent Rules)
**CRITICAL RULE FOR AGENTS**:
- **No Auto-Push**: Agents **MUST NOT** automatically push changes to the remote `main` branch.
- **Local Commit Only**: All changes must be committed locally.
- **User Approval**: Pushing to remote requires explicit user action or approval.