fix(ship-queue): wave plan leaves out heads that conflict with main, links rename-vs-edit conflicts, never splits a conflict cluster; ready reports unstamped against the fork point (GST-770 follow-up, #3558)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-11-01 16:29:22 +00:00
1 parent 6954a8c42b
commit b8d6eec915
5 files changed
+145 -28

No files matched your search

+11 -4
View File
@@ -574,13 +574,20 @@ gstack-ship-queue wave settle --wave <nonce> [--dry-run] # after the wave
- **When.** `wave plan` counts the live READY PRs (open, head equal to their
READY receipt, CI green at that head; a READY head whose CI is red, still
running or absent prints a `NOT_GREEN` line and stays out of the plan). A
READY PR whose CI, head or diff cannot be read fails the whole plan with
`QUEUE_PROOF_MISSING`. Over the
running or absent prints a `NOT_GREEN` line and stays out of the plan; a
READY head that does not merge onto main with the train's merge rules prints
`NOT_MERGEABLE` with the conflicting files and stays out too, while a
conflict only in the CHANGELOG, which the train merges, does not count). A
READY PR whose CI, head, diff or merge onto main cannot be read fails the
whole plan with `QUEUE_PROOF_MISSING`. Over the
trigger (6) it prints `WAVE_ADVISED` and suggested groups of 3 to 6: PRs
whose changes to a common code file conflict (`git merge-tree` cannot merge
the two heads, or the check itself fails) always share a group, so that
conflict is resolved once. Hub
conflict is resolved once. A PR that renames a file and one that edits the
old path are linked when the edit conflicts at the new path. A group of
linked PRs is never split across waves: one larger than the wave maximum
prints `WAVE_OVERSIZE` with no build command (land part of it as single
slots, then plan again). Hub
files never link PRs: anything under `docs/`, Markdown (generated skill
renders included; their `.tmpl` sources still link) and every `.json` or
`.jsonl` file (ledgers and registries). Most PRs append to them, and