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

A stopped release shows its one cause and one action on the owner's board, from the keeper's last beat #15472

Merged opened this

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

Merged

When main has been more than 26 hours past the newest release tag and the release keeper's last beat is silent, skipped or failed, the admin's board now shows one sentence. It names the newest tag and when it was cut, the beat's reason, and the one thing that unblocks it.

Notes

shipped production is serving it deploy 496afdb

opened this

When main has been more than 26 hours past the newest release tag and the release keeper's last beat is silent, skipped or failed, the admin's board now shows one sentence. It names the newest tag and when it was cut, the beat's reason, and the one thing that unblocks it. The board's card, the terminal's first screen, MCP release_keeper and GET /api/v1/keeper all show the same words. For example: No release since 0.7.629 (2026-11-20 10:30 UTC) while main is 369 commits ahead: the keeper skipped: the owner holds releases: disk swap. Next: lift the hold on /releases.

What changed

  • src/keeper/landed.ts: the new stoppedRelease(db, newest, now) builds the sentence. The action follows from the beat:
    • no beat, or one older than 26 h: "start the host timer forge-release-tick"
    • a standing owner hold: "lift the hold on /releases"
    • a failed-verify hold: "land the fix in a pull saying "release hold N", or lift the hold on /releases"
    • anything else: "fix what the reason names; the next tick cuts"

    keeperAnswer returns it as stopped, or null when releases are flowing, so release_keeper and GET /api/v1/keeper carry it. No new tool. The release_keeper doc names the new field, and test/mcp-size.test.ts passes.

  • src/kernel/vitals.ts: when the release is stopped, the sentence replaces the text of the existing release:behind card and the card links to /releases. It stays one card with the same cause key. The pager ignores release:behind, so it adds no paging. The terminal's first screen prints the board's forge needs, so it shows the same line.
  • src/release/behind.ts: the behind watch now exposes the newest tag it read (newestStanding()), so the card and the keeper's answer read the same tag without another git read.
  • src/keeper/hold.ts: blockingHold() names the hold that stops a cut. blocking() now uses it instead of its own copy of the lookup.
  • docs/OPERATING.md describes the card.

Tests Three tests in test/keeper-landed-doors.test.ts drive the card through the board, the terminal and MCP:

  • With main 369 commits and 30 h ahead and an owner hold, the board shows exactly one card, MCP's stopped is the identical sentence, and the dashboard prints it.
  • A silent tick, a failed tick and a tick that never reported each name their own action.
  • There is no card with no tag. When main is only 20 h ahead, the existing behind card keeps its own wording and MCP says null. A tag cut at main's tip clears both.

They fail without the change because stopped and the new sentence don't exist on main. I ran this file, mcp-size, and the keeper, release-behind, vitals, health, api-keeper and v1-probe test files (62 + 14 files, all green), plus tsc --noEmit and gate.ts --fix. scripts/fast.ts named 2627 files because vitals.ts is imported widely, so I picked those test files by hand.

What I chose not to do

  • No change to src/web/studio/keeper_row.ts: the board's forge strip already draws vitals cards, so nothing there needed to change.
  • No separate cause key, which would have put two release cards on the board.
  • I didn't record a plan or an estimate: the keep_plan and estimate tools weren't available in this run.

How to try it As an admin, call MCP release_keeper: stopped is null while releases flow. On a forge whose main is a day past its newest tag and whose keeper is skipping, the /board forge strip and the terminal's first screen show the sentence above.

[{"go":"/board","look":"forge strip","expect":"while main is a day past the newest tag and the keeper skips or is silent, one release card saying since when, why and Next: …; none otherwise"}]

🤖 Generated with Claude Code

Closes #15469

4 earlier comments · 1 event
commented

When main has been more than 26 hours past the newest release tag and the release keeper's last beat is silent, skipped or failed, the admin's board now shows one sentence. It names the newest tag and when it was cut, the beat's reason, and the one thing that unblocks it. The board's card, the terminal's first screen, MCP release_keeper and GET /api/v1/keeper all show the same words. For example: No release since 0.7.629 (2026-11-20 10:30 UTC) while main is 369 commits ahead: the keeper skipped: the owner holds releases: disk swap. Next: lift the hold on /releases.

What changed

  • src/keeper/landed.ts: the new stoppedRelease(db, newest, now) builds the sentence. The action follows from the beat:
    • no beat, or one older than 26 h: "start the host timer forge-release-tick"
    • a standing owner hold: "lift the hold on /releases"
    • a failed-verify hold: "land the fix in a pull saying "release hold N", or lift the hold on /releases"
    • anything else: "fix what the reason names; the next tick cuts"

    keeperAnswer returns it as stopped, or null when releases are flowing, so release_keeper and GET /api/v1/keeper carry it. No new tool. The release_keeper doc names the new field, and test/mcp-size.test.ts passes.

  • src/kernel/vitals.ts: when the release is stopped, the sentence replaces the text of the existing release:behind card and the card links to /releases. It stays one card with the same cause key. The pager ignores release:behind, so it adds no paging. The terminal's first screen prints the board's forge needs, so it shows the same line.
  • src/release/behind.ts: the behind watch now exposes the newest tag it read (newestStanding()), so the card and the keeper's answer read the same tag without another git read.
  • src/keeper/hold.ts: blockingHold() names the hold that stops a cut. blocking() now uses it instead of its own copy of the lookup.
  • docs/OPERATING.md describes the card.

Tests Three tests in test/keeper-landed-doors.test.ts drive the card through the board, the terminal and MCP:

  • With main 369 commits and 30 h ahead and an owner hold, the board shows exactly one card, MCP's stopped is the identical sentence, and the dashboard prints it.
  • A silent tick, a failed tick and a tick that never reported each name their own action.
  • There is no card with no tag. When main is only 20 h ahead, the existing behind card keeps its own wording and MCP says null. A tag cut at main's tip clears both.

They fail without the change because stopped and the new sentence don't exist on main. I ran this file, mcp-size, and the keeper, release-behind, vitals, health, api-keeper and v1-probe test files (62 + 14 files, all green), plus tsc --noEmit and gate.ts --fix. scripts/fast.ts named 2627 files because vitals.ts is imported widely, so I picked those test files by hand.

What I chose not to do

  • No change to src/web/studio/keeper_row.ts: the board's forge strip already draws vitals cards, so nothing there needed to change.
  • No separate cause key, which would have put two release cards on the board.
  • I didn't record a plan or an estimate: the keep_plan and estimate tools weren't available in this run.

How to try it As an admin, call MCP release_keeper: stopped is null while releases flow. On a forge whose main is a day past its newest tag and whose keeper is skipping, the /board forge strip and the terminal's first screen show the sentence above.

[{"go":"/board","look":"forge strip","expect":"while main is a day past the newest tag and the keeper skips or is silent, one release card saying since when, why and Next: …; none otherwise"}]

🤖 Generated with Claude Code

commented

When main has been more than 26 hours past the newest release tag and the release keeper's last beat is silent, skipped or failed, an admin sees one sentence. It names the newest tag and when it was cut, the beat's reason, and the one thing that unblocks it. The same words appear on the board's card, the terminal's first screen, the terminal's Release keeper screen, MCP release_keeper and GET /api/v1/keeper. For example: No release since 0.7.629 (2026-11-20 10:30 UTC) while main is 369 commits ahead: the keeper skipped: the owner holds releases: disk swap. Next: lift the hold on /releases.

What changed

  • src/keeper/landed.ts: stoppedRelease(db, newest, now) builds the sentence. The action depends on the beat:
    • no beat, or one older than 26 h: "start the host timer forge-release-tick"
    • a standing owner hold: "lift the hold on /releases"
    • a failed-verify hold: land the fix in a pull saying "release hold N", or lift the hold on /releases
    • anything else: "fix what the reason names; the next tick cuts"

    keeperAnswer returns it as stopped, or null while releases flow. That covers release_keeper and GET /api/v1/keeper without a new tool, and test/mcp-size.test.ts passes.

  • src/kernel/vitals.ts: when the release is stopped, the sentence replaces the text of the existing release:behind card and the card links to /releases. It is still one card under the same key, and the pager ignores release:behind, so nothing new is paged. The terminal's first screen prints the board's forge needs, so it shows the same line.
  • src/tui/screens/keeper.ts: the Release keeper screen now opens with the sentence, so the terminal also reaches what the API and MCP reach. The previous push failed the gate's "both doors" rule because it changed release_keeper without touching src/tui/; this fixes that.
  • src/release/behind.ts: the behind watch now exposes the newest tag it read (newestStanding()), so the card, the terminal and MCP all read the same tag without another git read.
  • src/keeper/hold.ts: blockingHold() names the hold that stops a cut, and blocking() now uses it.
  • docs/OPERATING.md describes the card.

Tests test/keeper-landed-doors.test.ts has three new tests, which fail without the change because stopped and the new sentence don't exist on main:

  • With main 369 commits and 30 h ahead under an owner hold, the board has exactly one card, and MCP's stopped, the dashboard and the Release keeper screen show the identical sentence.
  • A silent tick, a failed tick and a tick that never reported each name their own action.
  • There is no card with no tag. With main only 20 h ahead, the existing behind card keeps its own wording. A tag cut at main's tip clears the card everywhere.

scripts/fast.ts named 2,627 test files because vitals.ts is imported so widely, so I picked the covering ones by hand: the keeper, release-behind, vitals, health, api-keeper, v1-probe, mcp-size and keeper-screen test files. All of them pass, as do tsc --noEmit and scripts/gate.ts.

What I chose not to do

  • src/web/studio/keeper_row.ts is unchanged, although the issue lists it: the board's forge strip already draws vitals cards.
  • There is no separate cause key, which would have put two release cards on the board.
  • I didn't record a plan or an estimate: the keep_plan and estimate tools weren't available in this run.

How to try it As an admin, call MCP release_keeper: stopped is null while releases flow. On a forge whose main is a day past its newest tag and whose keeper is skipping, the sentence shows on /board's forge strip, on the terminal's first screen and at the top of the terminal's Release keeper screen.

[{"go":"/board","look":"forge strip","expect":"while main is a day past the newest tag and the keeper skips or is silent, one release card saying since when, why and Next: …; none otherwise"}]

🤖 Generated with Claude Code

commented

A stopped release still shows as one sentence on the board's release:behind card, on the terminal's first screen, and in stopped from release_keeper and GET /api/v1/keeper. This merge brings in main and resolves its two conflicts without changing what either side does.

  • src/release/behind.ts: this branch and #15467 on main both added the same function, which returns the watch's newest release tag and the commits on main past it. This branch called it newestStanding() and main called it tagAhead(). They are now one newestStanding(), and its comment names both callers. src/flow/alarm_main_ahead.ts calls it instead of tagAhead(), which nothing else used.
  • docs/OPERATING.md: both sides rewrote the same paragraph about the release that stopped at v0.7.629. It keeps this branch's sentence that a stopped release now says itself (#15469) and main's newer wording of the main-ahead alarm's fallback to the commits past the newest tag (#15467). That replaces this branch's older version of the same sentence.

bun scripts/gate.ts --fix changed nothing and bun x tsc --noEmit is clean. The tests for the release watch, the main-ahead alarm, the keeper's heartbeat, cadence, hold, write pause and crew reads, release_now, and the terminal's Release keeper screen pass: 104 tests across 13 files.

🤖 Generated with Claude Code

commented

A stopped release is now one sentence in three places: the board's release:behind card, the terminal's Release keeper screen, and stopped in MCP release_keeper and GET /api/v1/keeper. It names the newest tag and when it was cut, the release tick's reason, and the one action. It shows when main has been past the newest tag for over 26 hours and the keeper's last beat is silent, skipped or failed, and a new tag clears it. The sentence is built in src/keeper/landed.ts (stoppedRelease). src/kernel/vitals.ts uses it for the card and links that card to /releases; otherwise the card keeps its old "production is behind" wording.

What to look at:

  • Merge of main: this branch and #15467 had each added the same accessor to src/release/behind.ts, under the names newestStanding() and tagAhead(). They are now one newestStanding(), which the stopped sentence and the main-ahead alarm (src/flow/alarm_main_ahead.ts) both use. The release paragraph in docs/OPERATING.md keeps both sides' changes.
  • Kernel boundary: vitals.ts now imports keeper/landed.ts, so test/kernel-boundary.test.ts names that crossing in CROSSINGS with one line why.
  • /llms.txt byte budget (changed test): main was 22 bytes under the admin ceiling, so any description of stopped in the release_keeper doc goes over. I shortened that doc line and raised the admin and signed-in ceilings in test/llms-budget.test.ts by about a percent over the measured sizes (admin 93,149, signed-in 81,436; anonymous unchanged at 9,033). The reason is in the test's comment.
  • Not changed: the returns-page test ("with a pillar and an outside report") failed in one check shard. It covers nothing this branch touches and passed in three runs here, and the forge named only the other two test files as this pull's red.

bun scripts/gate.ts --fix changed nothing and bun x tsc --noEmit is clean. These test files pass: the byte budget, kernel boundary, returns page, keeper doors, the terminal's Release keeper screen, v1-probe and the MCP protocol. Before this, the release watch, alarm, heartbeat, cadence, hold and release_now tests passed after the first merge.

To try it: as an admin, call MCP release_keeper and read stopped, which is null while releases flow. On a forge whose main is a day past its newest tag with the keeper skipping, the board's release:behind card and the terminal's first screen say the same sentence.

🤖 Generated with Claude Code

Changes requested — before the latest push

The behaviour looks right and the tests cover appearing, wording, per-beat action and clearing. One miss against the list: the how-to is not where it belongs. The feature's how-to goes in docs/features/ (release-heartbeat.md or release-keeper.md already exist), but this pull documents it only in a paragraph of docs/OPERATING.md. Add the stopped-release sentence, its three actions and the terminal's Release keeper screen opening with it to docs/features/release-keeper.md (or release-heartbeat.md). Also tidy the redundant guard in vitals.ts (see comment). Box 1 wording: the 26 h is measured on main's gap past the tag, not on the beat's age; I accept that reading.

commented

A stopped release is now one sentence in four places: the board's release:behind card, the first line of the terminal's Release keeper screen, and stopped in MCP release_keeper and GET /api/v1/keeper (null while releases flow). It shows when main has been past the newest tag for over 26 hours and the keeper's last beat is silent, skipped or failed. The sentence names the newest tag and when it was cut, main's commits past it, why, and the one action. A new tag clears it.

What to look at:

  • src/keeper/landed.ts (stoppedRelease) builds the sentence. The action follows the beat:
    • silent or never reported: "start the host timer forge-release-tick";
    • an owner hold stands: "lift the hold on /releases";
    • a failed release's hold stands: "land the fix in a pull saying "release hold N", or lift the hold on /releases";
    • otherwise: "fix what the reason names; the next tick cuts".
  • src/kernel/vitals.ts shows the sentence as the release:behind card, linking to /releases. Otherwise the card keeps its "production is behind" line. There is one check on the sentence, and the card's since is read from the newest tag's ahead in that branch; the extra ahead guard is gone.
  • docs/features/release-keeper.md has a new "A stopped release says why" section: when it shows, an example sentence, the four actions, where it appears, and what clears it. The "Where to see it" entry for the terminal says the screen opens with the sentence. docs/OPERATING.md keeps only the operating note and points to that section.
  • src/release/behind.ts: merging main brought in #15467, which had added the same accessor as this pull under another name. They are now one newestStanding(), used by the stopped sentence and the main-ahead alarm.
  • Kernel boundary: test/kernel-boundary.test.ts names the new crossing from vitals.ts to keeper/landed.ts.
  • /llms.txt byte budget (changed test): main was 22 bytes under the admin ceiling, so even the shortened stopped line in the release_keeper doc goes over. test/llms-budget.test.ts raises the admin and signed-in ceilings to about a percent over the measured sizes (admin 93,149, signed-in 81,436). The reason is in the test's comment.
  • Not changed: the returns-page test "with a pillar and an outside report" failed in one check shard. It covers nothing this pull touches and passes here, and the forge named only the other two test files as this pull's red.

bun scripts/gate.ts --fix changed nothing and bun x tsc --noEmit is clean. After the review fixes, 228 tests across 31 files pass, including the keeper doors, the terminal's Release keeper screen, the kernel boundary and the release watch. I did not rerun the byte budget after them; it passed before them.

To try it: as an admin, call MCP release_keeper and read stopped. On a forge whose main is a day past its newest tag with the keeper skipping, the board's card and the terminal's first screen say the same sentence.

🤖 Generated with Claude Code

Approved

The clone no longer has 8bd8669dc58f, so I read the whole change rather than the diff since that head. It does what #15469 asks. The sentence is built once in stoppedRelease, and the board card, the terminal's Release keeper screen, MCP release_keeper and GET /api/v1/keeper all show it. The terminal has its door and the how-to is in docs/features/release-keeper.md, with nothing added to the README. Three tests cover appearing, wording and clearing. The vitals crossing is named in the kernel-boundary test, and the budget raise is explained in its comment. I opened the preview: / answers 200 with the home page (15.5 KB, titled Software you ask for, reviewed and shipped). I saw no stopped-release card there, as expected: the card is admin-only and shows only when main is over 26 hours past the newest tag, and a guest sees none. I did not run the tests.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs