Repository navigation
fix(publisher): replace stale runner-owned publication branch instead of refusing - #2642
Merged
Merged
Conversation
chubes4
marked this pull request as ready for review
December 5, 2026 15:29
This was referenced Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recurring workloads that reuse a fixed publication branch (for example Docs Agent) failed at publication once base moved past an unmerged PR: the publisher refused because the branch no longer descended from base. Now the publisher builds the new run as a commit on the current base, force-updates the branch to it and keeps the open PR. Branches that still descend from base work as before: the new commit goes on top of the existing head and the ref is updated without force.
What changed
commit.replaced_sha(the superseded head) only when a replacement happened.tests/runner-workspace-publisher.test.mjsis replaced by a test for the replacement case. The fast-forward case now also checks that the update is not forced and has noreplaced_sha.Verification
All gates passed on
1289aefed1cc. Basemain: gated onf1871b88cbd8, target nowf1871b88cbd8, re-verified: no.HOMEBOY_LINT_BASE=f1871b88cbd864fad990b9212a170434433f36fe homeboy --placement local review lint wp-codebox --path . --…: passed, 67731 ms; retained gate metadata.node --test tests/runner-workspace-publisher*.test.mjs: passed, 90 ms; retained gate evidence.Gate 2 output
Cook run
agent-task-2f10c7d4-be4d-4f0c-b8a9-c4a6bca50eb2agent-task-2f10c7d4-be4d-4f0c-b8a9-c4a6bca50eb2-attempt-1-6de982a896d7a966de1e913e9dbaf2e6c6914ef72cdc1f3696d7a966de1e913e9dbaf2e6c6914ef72cdc1f36Delivery
Evidence
node --test tests/runner-workspace-publisher*.test.mjs: 1 test file ran and passed, including the new replacement case and the stricter fast-forward checks.depssupport (it could not read thenodejsmanifest). This is an environment limitation; lint is left to Homeboy's gate.AI disclosure
Tool: Homeboy Cook. Agent: Homeboy (roadie). Model: roadie · route cook-heavy · served claude-opus-5-5. Cook time: 10m46s.
The AI read the issue and the maintainer's decision comment, changed the publisher's stale-branch handling, updated the regression tests and ran the focused publisher test, under the direction of the Cook requester. Homeboy reports controller verification separately from this account of the AI's work. A human reviews before merge.
Refs #2638