Version bump moved to agents: guard the loop, PR the push

Root cause category: CI/CD — auto-commit workflow on a protected, PR-only branch Module: repo plumbing (CI), Release Version.yml

What happened

For the release train, the patch version bump moved off main onto the long-lived agents branch (decision 6): each merge to agents bumps version.txt (+ synced gradle/DEBIAN/doc fields), and main inherits the accumulated version when Ben merges the integration PR. Two things made the naive port unsafe:

  1. agents is PR-only (branch protection requires a PR), so the old workflow’s git push straight to the branch would be rejected.
  2. A workflow that triggers on push: [agents] and then pushes a bump commit would re-trigger itself — an infinite bump loop.

The old workflow also created the vX.Y.Z tag; in the new model tagging happens once on merge to main (release-notes.yml), so keeping it here would double-tag.

Fix

Prevention