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

The throughput keeper says red pulls on the flow panel and never files a builder issue for them #16121

Merged opened this

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

Merged

The throughput keeper no longer files a builder issue for red crew pulls. When five or more open crew pulls have a red check, it only says so on the keeper panel and names the oldest ones.

Notes

shipped production is serving it deploy 3fede26

opened this

The throughput keeper no longer files a builder issue for red crew pulls. When five or more open crew pulls have a red check, it only says so on the keeper panel and names the oldest ones. A red pull is already being worked by its own builder and by the stale-reds sweep, so a filed "N open crew pulls have a red check" issue gave a builder nothing to push. #16104 was parked twice because its listed pulls had gone green, unchecked or running by the time a builder read it.

  • src/flow/keeper_cause.ts: the red_checks cause now has move: "say". Its sentence reads "N open crew pulls have a red check: their builders and the stale-reds sweep rework them. Oldest first: a#1, … and K more." readKeeperFacts gets the five oldest red pulls from redPulls (in src/flow/pile.ts) as a new redRefs fact. It asks for private repositories too, because only a site admin reads the named sentence. Everyone else still reads the generic line with no repository in it.
  • src/flow/keeper.ts: fileOnce no longer builds a red-pull list in the issue body, since nothing reaches it with red_checks any more.
  • Tests: test/flow-keeper.test.ts runs a whole tick with five red pulls in a private repository. It checks that the tick names red_checks without acting, opens no issue, records no attempt, and that the admin panel lists the pulls oldest first. test/flow-pile-oldest.test.ts replaces the old "filed red_checks issue" test: it checks that redPulls and redRefs are oldest first and that pickCause returns a say move naming them. Both new tests fail when the change to src/ is reverted.
  • docs/features/keeper.md: says red pulls are said, not filed, and why.

The stale_reds sentence and the sweep that reworks red pulls are unchanged.

Checks run: bun scripts/gate.ts --fix and bun x tsc --noEmit are clean. 60 tests pass across the keeper, pile, stale-reds, keeper-measures, job-slices, api-keeper and mcp-flow-card files. bun scripts/fast.ts listed the whole suite instead of a short list, so I picked the covering test files myself. Its full-suite run went to the background and I could not stop it from the sandbox, so I did not wait for its result.

To try it: bun test test/flow-keeper.test.ts test/flow-pile-oldest.test.ts

🤖 Generated with Claude Code

Closes #16117

commented

The throughput keeper no longer files a builder issue for red crew pulls. When five or more open crew pulls have a red check, it only says so on the keeper panel and names the oldest ones. A red pull is already being worked by its own builder and by the stale-reds sweep, so a filed "N open crew pulls have a red check" issue gave a builder nothing to push. #16104 was parked twice because its listed pulls had gone green, unchecked or running by the time a builder read it.

  • src/flow/keeper_cause.ts: the red_checks cause now has move: "say". Its sentence reads "N open crew pulls have a red check: their builders and the stale-reds sweep rework them. Oldest first: a#1, … and K more." readKeeperFacts gets the five oldest red pulls from redPulls (in src/flow/pile.ts) as a new redRefs fact. It asks for private repositories too, because only a site admin reads the named sentence. Everyone else still reads the generic line with no repository in it.
  • src/flow/keeper.ts: fileOnce no longer builds a red-pull list in the issue body, since nothing reaches it with red_checks any more.
  • Tests: test/flow-keeper.test.ts runs a whole tick with five red pulls in a private repository. It checks that the tick names red_checks without acting, opens no issue, records no attempt, and that the admin panel lists the pulls oldest first. test/flow-pile-oldest.test.ts replaces the old "filed red_checks issue" test: it checks that redPulls and redRefs are oldest first and that pickCause returns a say move naming them. Both new tests fail when the change to src/ is reverted.
  • docs/features/keeper.md: says red pulls are said, not filed, and why.

The stale_reds sentence and the sweep that reworks red pulls are unchanged.

Checks run: bun scripts/gate.ts --fix and bun x tsc --noEmit are clean. 60 tests pass across the keeper, pile, stale-reds, keeper-measures, job-slices, api-keeper and mcp-flow-card files. bun scripts/fast.ts listed the whole suite instead of a short list, so I picked the covering test files myself. Its full-suite run went to the background and I could not stop it from the sandbox, so I did not wait for its result.

To try it: bun test test/flow-keeper.test.ts test/flow-pile-oldest.test.ts

🤖 Generated with Claude Code

Approved

red_checks is now a say move, fileOnce no longer builds a red list, and the sentence names the five oldest red pulls from redPulls and counts the rest. Private repos are named only on the admin read; the test checks the non-admin line stays generic. Tests cover both the pickCause output and a whole tick that files nothing and records no attempt. keeper.md says red pulls are said, not filed, and why. This is keeper-panel wording and a filing change, so no web page or TUI screen is added, and README is untouched. Next, two things I would do: (1) drop the now-unused publicOnly default in redPulls if nothing else calls it with true; (2) have the keeper line link each named pull on the panel.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs