Skip to content

A sprint item is screened again when the trunk moves before it lands #42

Done

Description

@edkog

A sprint item's screen runs once, on the trunk the gate ran on. When the trunk moves before the receipt applies, the green screen no longer matches the tip and nothing screens again. The item then waits for review like a steady one.

rows:
  - V2
  - V16
env: "Node 26, Ubuntu 26.04 VM, one board with about 20 seats on pullboard serve and runner local; trunk moves several times an hour"
version: "0.9.5"
ran: "pullboard submit on an item frozen with pace sprint, after another item landed on the trunk while its gate ran"
cause: "packages/api/src/io/gate.js calls startReceiptScreen(board, held, main, ...) with main, the trunk the gate ran on, once per receipt. sprintLandable() in packages/api/src/io/gate/sprint-land.js then needs a green screen at the current trunk tip. When the tip moved, greenScreenAt() finds no match, and no path in apps/cli/src/io/landing or the gate queues a screen on the new tip."
blocks: "sprint landing on any board whose trunk moves while gates run; on our first sprint item the screen was green at 23:52 on the previous tip (the trunk had moved 9 minutes earlier), so it landed only after review accepted it"
compat:
  - A steady or strict item still never gets a screen job.
  - A red screen still lands nothing.
  - A stored screen for the same commit, digest and base is still reused.
bar:
  - 1: a submitted sprint item whose green screen is on an older trunk tip gets a screen on the current tip, and lands once that one is green [test]
  - 2: a sprint item whose screen matches the current tip lands without a second screen [test, kept]
check:
  - 1: packages/api/tests/io/gate/sprint-land.test.js > rescreens on the current tip when the trunk moved after the gate
  - 2: packages/api/tests/io/gate/sprint-land.test.js > lands on a green screen at the current tip
error: |
  screen receipt: item 1097 commit 082b6d9d2 base 23ab21724 green true; trunk tip 2d8bb0077; item reserved for review 3 minutes later, no landing

Activity

  1. added
    bug
    and removed on Nov 24, 2026
  2. coreyolson commented on Dec 4, 2026

    @coreyolson
    Collaborator

    Fixed on main and shipping in 0.9.6. The screen now runs on the current trunk tip, a green result on a stale tip is screened again, and each landing rescreens waiting sprint items. Appreciate the careful write-up, @edkog.

  3. added
    fixed
    on Dec 4, 2026
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

    bugfixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions