Problem
A runner workspace configured with a canonical publication branch reused the remote branch history left behind after an earlier squash merge instead of starting from the requested current base ref. The model change and deterministic verification succeeded, but the resulting PR included historical commits, stale generated documentation, and merge conflicts.
Evidence
Expected
Each runner publication starts from the declared from/base revision. Existing canonical branches must either be proven fast-forward-compatible with that base or replaced through a safe fresh-branch strategy. Post-squash historical commits must not reappear in a later PR.
Acceptance criteria
- Reusing a configured publication branch cannot carry commits absent from the declared base.
- Existing branch divergence is detected before agent execution or publication.
- The runner creates a fresh collision-safe branch or returns a deterministic actionable failure.
- Tests cover an existing branch whose prior commits were squash-merged into base.
- Publication output reports the exact effective branch and base SHA.
Problem
A runner workspace configured with a canonical publication branch reused the remote branch history left behind after an earlier squash merge instead of starting from the requested current base ref. The model change and deterministic verification succeeded, but the resulting PR included historical commits, stale generated documentation, and merge conflicts.
Evidence
mainatb134d5767efe0156c05f70fe1996b7665eff8831docs-agent/agents-api-docs-upkeepdocs-agent/agents-api-docs-upkeepdocs-agent-technical-maintenance6f2025638e662f48ab39eeb3d26c78d8fb4d80e1Expected
Each runner publication starts from the declared
from/baserevision. Existing canonical branches must either be proven fast-forward-compatible with that base or replaced through a safe fresh-branch strategy. Post-squash historical commits must not reappear in a later PR.Acceptance criteria