Skip to content

ready --screen reads GitHub's stale merge ref on a CHANGELOG-conflicted PR; plan the screen on a scratch merge like train build #3465

Closed

Description

@capy-ai

Problem

gstack-ship-queue ready --pr <n> --screen plans the screen against GitHub's refs/pull/<n>/merge. GitHub doesn't recompute that ref while a PR conflicts with its base. Under stamp-at-merge, every main stamp leaves each open PR with a CHANGELOG-only conflict, and crew rule 19 says to leave those to the train's section merge. So for any PR that needs a screen, ready --screen refuses until the branch merges main again. That merge needs a fresh /ship (rule 22), and it races the next stamp.

Observed (PR #3421, 2026-10-26)

The head was ec19528, a merge of main 7ee7e8b. CI was green, the remote pregate was cleared, and the ship receipt was current. Main then moved to 2f8ba2a (#3403). git merge-tree shows a conflict in CHANGELOG.md only.

READY #3421 ec195285e56fb66bb6138903801fa4c39974c27f STAMP_VERSION=1.91.238.0
base: origin/main@2f8ba2a665a22a5cc2c11337059ee8fe22df4773
ci: green at ec195285e56f (passed=37 failed=0 pending=0 skipped=1)
PREGATE: requires-remote cleared tree=40b2d54f9764 head=ec195285e56f checks=1
SHIP_RECEIPT: pr=3421 head=ec195285e56f version=1.91.238.0 base=main session_kind=unattended
SCREEN: selection 112 e2e case(s) + 24 judge(s)
gstack-ship-queue ready: origin's refs/pull/3421/merge (f86562d2b9b6) merges 3b4b532ac156, not the PR head ec195285e56f ... (QUEUE_SCREEN_STALE_REF)
GSTACK_RESULT: skill=ship-queue status=refused run=none

Proposal

Plan and dispatch the screen on a scratch merge of the PR head onto the current origin/<base>, built the way train build builds its candidate: version files take the base's side and CHANGELOG merges by section. Refuse with QUEUE_SCREEN_STALE_REF only when that scratch merge hits a real (non-CHANGELOG, non-stamp-file) conflict.

Reported from GSTA-91 (GStack Minder crew).

Activity

  1. added
    S3
    on Oct 31, 2026
  2. capy-ai commented on Oct 31, 2026

    @capy-ai
    ContributorAuthor

    Thanks for the report. ready --screen now plans the screen on a scratch merge when GitHub's merge ref is stale (#3484, v1.91.263.0). Please reopen if it still happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions