From 74669e1c3a3cc1ddd5e6486321475914d87b84ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Wed, 25 Mar 2026 09:57:44 +0100 Subject: [PATCH] Improve branch management instruction to AI agents MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Pupier --- AGENTS.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index ddd45ed05473d..44fa8026ad56f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -25,11 +25,14 @@ These rules apply to ALL AI agents working on this codebase. - An agent MUST NOT open more than 10 PRs per day per operator to ensure human reviewers can keep up. - Prioritize quality over quantity — fewer well-tested PRs are better than many shallow ones. -### Branch Ownership +### Git branch - An agent MUST NEVER push commits to a branch it did not create. - If a contributor's PR needs changes, the agent may suggest changes via review comments, but must not push to their branch without explicit permission. +- An agent should prefer to use his own fork to push branches instead of the main apache/camel repository. It avoids to fill the main repository with a long list of uncleaned branches. +- An agent must provide a useful name for the git branch. It should contain the global topic and issue number if possible. +- After a Pull Request is merged or rejected, the branch should be deleted. ### JIRA Ticket Ownership