Skip to content

Commit 4101f89

Browse files
committed
docs: add git safety rules — no autonomous PR merge, no force-push master
1 parent 22498da commit 4101f89

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎AGENTS.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,16 @@ All changes MUST follow this workflow:
489489
6. Commit with descriptive messages (include devlog files)
490490
7. Push branch and create a GitHub PR
491491
8. Obtain **dual-agent review** (Sections 5.3 + 5.4) on the PR
492-
9. Merge PR after both reviews pass
492+
9. **PR merge requires explicit human confirmation** — AI agents MUST NOT autonomously merge PRs or push to master. Wait for the user to explicitly say "merge" or "approve merge".
493+
494+
### 5.1.1.1 Git Safety Rules (MANDATORY)
495+
496+
| Rule | Enforcement |
497+
|------|-------------|
498+
| **NEVER force-push to `master`** | Under no circumstances. Not for reverts, not for fixes, not for "quick corrections". If master needs changing, create a PR. |
499+
| **NEVER merge PRs without explicit human authorization** | "merge" or "approve merge" must come from a human comment. Agent reviews passing ≠ authorization to merge. |
500+
| **NEVER remove and re-apply GitHub branch protection to force changes** | This is a circumvention of the merge policy. If protection blocks a push, the correct response is to create a PR. |
501+
| **NEVER delete branches or tags without human confirmation** | Preserve work for review. |
493502

494503
### 5.1.2 Devlog Requirement (MANDATORY)
495504

0 commit comments

Comments
 (0)