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

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

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The lane-stopped finding no longer fires when no check has failed since the last merge. Nothing here makes a pull merge: the lane stays stopped until a person merges one. test/flow-alarm-lane.test.ts passes (20 tests) and bun x tsc --noEmit is clean.

Notes

shipped production is serving it deploy 0adf720

opened this

The lane-stopped finding no longer fires when no check has failed since the last merge. Nothing here makes a pull merge: the lane stays stopped until a person merges one. test/flow-alarm-lane.test.ts passes (20 tests) and bun x tsc --noEmit is clean. I did not run the full suite; the forge runs it on push.

What changed

  • Cause: this issue's evidence is 33 open pulls and 0 checks failed since the last merge. The old rule still called that stop the crew's whenever two or more open pulls were red and green pulls didn't outnumber them. Those reds come from before the last merge, so they need a re-check, not a fix, and no builder could act on the finding.
  • Fix: in src/flow/alarm_lane.ts, a stop with zero check failures since the last merge now counts as the people's stop (onPeople), alongside the existing green-outnumber-red and at-most-one-red cases.
  • Unchanged: the owner still sees the alarm and its queue counts on /flow. A shared failure (one cause failing five pulls within the hour) still files the finding.
  • Wording: I updated the comments in src/crew/sentinel_lane.ts to match.
  • Test: the new test covers 33 open pulls, three red from before the last merge and none failed since. It checks that the alarm fires, onPeople is true, no finding is produced and the hunt files no issue.

Left out: I did not change reviewQueue to treat pre-merge failures as stale, because that would alter the queue counts everywhere they are shown. The ask to the owner to merge or re-check is unchanged.

To try it: bun test test/flow-alarm-lane.test.ts.

Closes #15575

commented

The lane-stopped finding no longer fires when no check has failed since the last merge. Nothing here makes a pull merge: the lane stays stopped until a person merges one. test/flow-alarm-lane.test.ts passes (20 tests) and bun x tsc --noEmit is clean. I did not run the full suite; the forge runs it on push.

What changed

  • Cause: this issue's evidence is 33 open pulls and 0 checks failed since the last merge. The old rule still called that stop the crew's whenever two or more open pulls were red and green pulls didn't outnumber them. Those reds come from before the last merge, so they need a re-check, not a fix, and no builder could act on the finding.
  • Fix: in src/flow/alarm_lane.ts, a stop with zero check failures since the last merge now counts as the people's stop (onPeople), alongside the existing green-outnumber-red and at-most-one-red cases.
  • Unchanged: the owner still sees the alarm and its queue counts on /flow. A shared failure (one cause failing five pulls within the hour) still files the finding.
  • Wording: I updated the comments in src/crew/sentinel_lane.ts to match.
  • Test: the new test covers 33 open pulls, three red from before the last merge and none failed since. It checks that the alarm fires, onPeople is true, no finding is produced and the hunt files no issue.

Left out: I did not change reviewQueue to treat pre-merge failures as stale, because that would alter the queue counts everywhere they are shown. The ask to the owner to merge or re-check is unchanged.

To try it: bun test test/flow-alarm-lane.test.ts.

Approved

Approved. The change is small, targeted and tested: a stop with no check failed since the last merge is now the people's (onPeople), a shared failure still files, and the test covers the alarm, onPeople, no finding and no issue filed from the hunt. It is a lane-alarm noise fix, in line with the pipeline direction of not parking builders on stops they cannot fix. No page or terminal surface changes, so the two-doors and docs rules do not apply. Two things I would do next: (1) make the alarm's says/ask text on /flow name this case (reds predate the last merge and want a re-check) so the owner is told the right action, and re-check that the existing lane-issue closing wording, which says at most one is red, is still true when it closes on this new path; (2) re-wrap the two edited comment blocks in sentinel_lane.ts and alarm_lane.ts, which now have uneven line widths (run bun scripts/gate.ts --fix).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs