Skip to content

A reject followed by another move stops every sentinel run with HEALTH_SCAN_STALE #47

Done

Description

@edkog

A reject followed at once by another move (here an escalate 7 ms later) leaves a REWORK_UNCLAIMED finding that the coordinator's return check never accepts. Every sentinel run then refuses with HEALTH_SCAN_STALE before any sentinel runs, so shipping, pruning and backups stop until the item changes.

rows:
  - H16
  - B13
env: "Node 26, Ubuntu 26.04 VM, one board with about 40 seats and a sentinel run every 10 minutes"
version: "0.9.5"
ran: "pullboard sentinel run as the coordinator, after a reviewer rejected an item and it was escalated 7 ms later"
cause: "scanHealthSentinel() (packages/sentinels/src/io/findings.js:50) calls rejectedWorkReturns() during the scan. In packages/state/src/logic/returns.js it requires the item's last move to be the reject. Here the last move is the escalate, but the finding still dates from the reject, so it throws HEALTH_SCAN_STALE. The scan call is at packages/sentinels/src/io/command.js:115, outside the try at :119 that absorbs HEALTH_SCAN_STALE, and nothing on a rescan changes the outcome."
blocks: "every sentinel on the board, including shipping, worktree cleanup and backups; on one board no sentinel ran for 11 hours and 13 landings stayed unshipped"
compat:
  - A reject whose finding is truly stale is still not returned to the queue.
  - A reject followed only by the reviewer's own verdict move is still returned as before.
bar:
  - 1: a scan where one rejected item's last move is not its reject skips that item and still runs every due sentinel [test]
  - 2: that item is not returned to the queue while its last move is not the reject [test]
check:
  - 1: packages/sentinels/tests/io/command.test.js > a reject followed by an escalate does not stop sentinels
  - 2: packages/state/tests/logic/returns.test.js > a reject followed by another move is not returned
error: |
  pullboard: [HEALTH_SCAN_STALE] the rejected work changed during its scan; run pullboard sentinel run again

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. A reject followed by another move no longer stops sentinel runs with HEALTH_SCAN_STALE. Thanks again, @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