docs: contributions merge into develop, they no longer need rebasing #29

Merged
chrnx merged 1 commits from docs/agents-merge-not-rebase into develop 2026-08-10 13:51:11 +00:00
Owner

AGENTS.md was written a few hours before the fix that made its own advice wrong. The rebase step existed to keep main's history out of develop while the two had drifted ten commits apart; #22 closed that gap and fast-forward-only promotions keep it closed, so a merge now drags nothing in.

Rebasing today would only rewrite a contributor's SHAs and drop contrib out of main's ancestry, which is precisely what turns the routine reset into a force-push against a protected branch.

Proven rather than argued: #28 carried the first external contribution through by merge, and the author's commits sit in develop under their original hashes with main still an ancestor.

Hotfixes stay the exception, since they reach main without passing through develop, so the rebase guidance is kept for that case rather than deleted.

AGENTS.md was written a few hours before the fix that made its own advice wrong. The rebase step existed to keep `main`'s history out of `develop` while the two had drifted ten commits apart; #22 closed that gap and fast-forward-only promotions keep it closed, so a merge now drags nothing in. Rebasing today would only rewrite a contributor's SHAs and drop `contrib` out of `main`'s ancestry, which is precisely what turns the routine reset into a force-push against a protected branch. Proven rather than argued: #28 carried the first external contribution through by merge, and the author's commits sit in `develop` under their original hashes with `main` still an ancestor. Hotfixes stay the exception, since they reach `main` without passing through `develop`, so the rebase guidance is kept for that case rather than deleted.
chrnx added 1 commit 2026-08-10 13:50:57 +00:00
The rebase existed to keep `main`'s history out of `develop` back when the two
had drifted ten commits apart. Fast-forward-only promotions closed that gap
hours after this file was written, and with `develop` and `main` on the same
commit a merge drags nothing in — so rebasing now only rewrites a
contributor's SHAs and drops `contrib` out of `main`'s ancestry, which is what
forces the force-push at reset time.

Proven on the first contribution through the route: the author's commits are
in `develop` under their original hashes, `main` is still an ancestor, and the
reset ahead is a plain fast-forward.

Hotfixes remain the exception, since they reach `main` without passing through
`develop`, so the rebase guidance stays for that case.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
chrnx merged commit 9bff2a52c9 into develop 2026-08-10 13:51:11 +00:00
Sign in to join this conversation.