Public: anyone can read this; the crew can change it.

Sentinel: The lane has stopped: nothing has merged and nothing said so #14344

opened this

Merged 13d 22h ago, live in production

The lane alarm now tells "green pulls waiting for someone to merge them" apart from a real fault. In that case it alerts the owner on /flow but no longer files a Sentinel defect for the crew. That's what kept bringing this issue back: no builder can merge, so every run had to decline and got parked.

Notes

opened this

The lane alarm now tells "green pulls waiting for someone to merge them" apart from a real fault. In that case it alerts the owner on /flow but no longer files a Sentinel defect for the crew. That's what kept bringing this issue back: no builder can merge, so every run had to decline and got parked.

Since the last merge at 19:44:01Z, 3–4 checks failed, and no failure line appeared more than once. The alarm was right that the lane stopped, but no single cause was failing many pulls, so nothing was left for a builder to fix.

What changed

  • src/flow/alarm_lane.ts: new greenPulls counts the open pulls whose newest finished check passed. When the lane has stopped, the alarm adds "N pulls passed their checks and wait on a person to merge" to what it says. It also sets onPeople when at least one pull is green and no one cause is failing many.
  • src/crew/sentinel_lane.ts: laneStopped files no Sentinel issue when onPeople is set. closeLaneMoving closes an open lane issue with that reason, not "a pull merged". With no green pull, or with one cause failing five pulls, the issue is filed exactly as before.
  • docs/features/lane-stopped.md describes the new case.

What to look at: the "green" check is deliberately simple. It only asks whether a pull's newest finished check passed; it does not consider reviews or merge conflicts.

Tests: three new tests in test/flow-alarm-lane.test.ts:

  • Green pulls: the owner's alert names the count and no issue is filed.
  • A newer red check means the pull isn't green, and the issue is still filed.
  • An open lane issue closes, saying the queue waits on a person, once a pull goes green.

bun scripts/gate.ts --fix and bun x tsc --noEmit are clean. The 22 sentinel, flow-alarm, lane and person-spoke test files pass (218 tests). scripts/fast.ts picked 410 files, about 35 minutes, so I didn't run that full set here; the forge's check runs it.

Not done: merging. The "a pull merged since" half of the issue's done-condition still needs a person.

The forge's origin pushes to the scout/forge fork, where the branch is at 4cb40a5.

🤖 Generated with Claude Code

Closes #14337

commented

The lane alarm now tells "green pulls waiting for someone to merge them" apart from a real fault. In that case it alerts the owner on /flow but no longer files a Sentinel defect for the crew. That's what kept bringing this issue back: no builder can merge, so every run had to decline and got parked.

Since the last merge at 19:44:01Z, 3–4 checks failed, and no failure line appeared more than once. The alarm was right that the lane stopped, but no single cause was failing many pulls, so nothing was left for a builder to fix.

What changed

  • src/flow/alarm_lane.ts: new greenPulls counts the open pulls whose newest finished check passed. When the lane has stopped, the alarm adds "N pulls passed their checks and wait on a person to merge" to what it says. It also sets onPeople when at least one pull is green and no one cause is failing many.
  • src/crew/sentinel_lane.ts: laneStopped files no Sentinel issue when onPeople is set. closeLaneMoving closes an open lane issue with that reason, not "a pull merged". With no green pull, or with one cause failing five pulls, the issue is filed exactly as before.
  • docs/features/lane-stopped.md describes the new case.

What to look at: the "green" check is deliberately simple. It only asks whether a pull's newest finished check passed; it does not consider reviews or merge conflicts.

Tests: three new tests in test/flow-alarm-lane.test.ts:

  • Green pulls: the owner's alert names the count and no issue is filed.
  • A newer red check means the pull isn't green, and the issue is still filed.
  • An open lane issue closes, saying the queue waits on a person, once a pull goes green.

bun scripts/gate.ts --fix and bun x tsc --noEmit are clean. The 22 sentinel, flow-alarm, lane and person-spoke test files pass (218 tests). scripts/fast.ts picked 410 files, about 35 minutes, so I didn't run that full set here; the forge's check runs it.

Not done: merging. The "a pull merged since" half of the issue's done-condition still needs a person.

The forge's origin pushes to the scout/forge fork, where the branch is at 4cb40a5.

🤖 Generated with Claude Code

commented

When nothing has merged for the limit, the lane-stopped alarm now looks at the review queue. It only calls the stop the owner's (no Sentinel issue) when green pulls outnumber red ones and no single failure is behind it. Each green pull is named so the owner knows what to merge.

  • The queue (reviewQueue in src/flow/alarm_lane.ts). It counts each open pull by its newest finished check. A pull is green only if that check passed on the pull's current head and finished after the last merge; it is red if that check failed. A pass on a head that has since moved, or from before the last merge, is stale and counts as neither (#3316). Pushes made straight to main are not seen, and the doc says so.
  • When nothing is filed. That happens only when no single failure is failing many pulls and there are more green pulls than red ones. One green pull among many unrelated reds is still filed, and the green pulls go into its evidence.
  • What the owner sees. The alarm on /flow and the issue's evidence give the green count and name the pulls, up to ten, then "and N more".
  • One alarm per hunt. hunt reads the alarm once, using the forge's spending ceiling, and gives the same result to findFaults (new optional last parameter lane) and to closeLaneMoving. laneStopped now takes that alarm instead of reading it again. The extra active.has check is gone, because closeCaughtUp already does it.
  • Tests (test/flow-alarm-lane.test.ts). Every test in the #14337 block sets up its own state. New tests cover:
    • one green pull among eight unrelated reds is still filed;
    • a pass on a moved head, or from before the last merge, is not green;
    • the /flow alarm text (firedAlarms) shows the count and the pull numbers.

    The closing test opens its own lane issue first, then turns the pull green, and passes when run on its own. The test helper now gives each pull the head c.

Not done: the green pulls are listed by number only, with no links and no page or TUI change.

Tests: bun x tsc --noEmit and the gate are clean. 185 tests pass across the lane, flow-alarm, sentinel, TUI-alarm and check-tier test files. scripts/fast.ts picked 2243 test files (an estimated 190 minutes), because src/crew/sentinel.ts is reached by almost every test. So I ran the covering test files listed above by hand and left the rest to the forge's check.

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs