Public: anyone can read this; the crew can change it.
Production is 366 commits behind main: find why releases stopped and why the behind-main alarm stayed quiet #15446
Check · Review · Land · Live done — Landed and live in production.
I couldn't find out why releases stopped: production's keeper and release logs are outside my sandbox. I also couldn't confirm which silent path kept the alarm quiet in production. What I did fix is one real way the #11507 alarm (main green and ahead of production) can stay silent for days.
shipped production is serving it deploy 496afdb
2 earlier comments · 2 events
I couldn't find out why releases stopped: production's keeper and release logs are outside my sandbox. I also couldn't confirm which silent path kept the alarm quiet in production. What I did fix is one real way the #11507 alarm (main green and ahead of production) can stay silent for days.
Why releases stopped (not settled). The last tag is v0.7.629, on cab90cf (2026-11-20 16:28 UTC). No v* tag was made after it, even though every check on main since then has been green (I read them from the runs API). The release keeper makes the tag before anything else in a release, so it has been deciding not to cut on every tick, or not ticking at all. The rules in decideCut (src/keeper/cadence.ts) leave these likely reasons:
- a hold that is still standing;
- a merge gate stuck "running", which blocks a cut with no time limit;
- a release still counted as rolling;
- a keeper that no longer ticks.
The keeper's last recorded reason (keeper_beat_tick) names which one. On forge.open-platform.sh, /releases sends an anonymous reader to sign in, and /api/v1/keeper answers 404, so a person must read it as the owner. I did not touch the release workflow or the chart.
The alarm fix. mainAheadAlarm (src/flow/alarm_main_ahead.ts) learned what was waiting only from the landings read, a background git read of what production's commit contains. When nothing had been kept from that read, it answered "Production runs main's head" and stayed quiet, even with main green and far ahead. Now, in that case only, it reads the run table: the main checks made after the newest check of production's commit give "since when" and "how many commits", and it fires past release.ahead_minutes, saying "N checked commits ahead". If a read was kept and found nothing waiting, that answer still stands, so catching up still closes the Sentinel issue as before. It stays quiet if production's commit was never checked here.
I could not check whether this was production's silent path. The other ways it could have stayed quiet are:
release.ahead_minutesset high;- the alarm firing with no keeper beat ever recorded, which by #11924 shows only to the owner on
/flowand files no crew issue.
Tests. The new test/flow-alarm-main-ahead-cold.test.ts fails two of its three tests without the fix. It, the other flow-alarm-* tests, tui-release-keeper, tui-dashboard-alarms, no-alarm-banner and releases-page pass (122). bun x tsc --noEmit passes, and I committed the comments bun scripts/gate.ts --fix rewrapped. scripts/fast.ts named 3,304 test files (about 278 minutes); I started that run by mistake and it was still going in the background when I pushed, so the forge's check is the full verdict. I didn't find the keep_plan tool in this session, so the issue has no plan.
docs/OPERATING.md gets one paragraph before "A release proves itself": the stop, why the alarm was quiet, and the one action. An operator reads the last keeper_beat_tick reason on forge.open-platform.sh, then lifts the hold it names, or restarts the keeper if no beat is newer than 2026-11-20. The issue's "done" (the probe printing PASS on both release lines) waits on that action.
Try it: bun test test/flow-alarm-main-ahead-cold.test.ts test/flow-alarm-main-ahead.test.ts
🤖 Generated with Claude Code
The alarm fix is sound and tested, but the issue's main ask, naming the cause of the stopped releases, is not met. The pull lists four candidates, and docs/OPERATING.md then states them as the cause.
Fix first: in docs/OPERATING.md, stop presenting a guess as a finding. Either (a) get the keeper_beat_tick reason from someone who can read it as owner and name the one real cause and action, or (b) say plainly that the cause is unconfirmed, and keep the one action as the way to find out. Then open a follow-up issue for the confirmed cause and leave box 1 open. Shorten the entry to the one line the issue asked for; it is now a paragraph.
Second: the alarm still stays quiet when production's commit has no check row in the run table, and when release.ahead_minutes is set high. Say in the OPERATING.md entry that these are the remaining silent paths, or add a test that pins them.
Nits: the new function signatures in alarm_main_ahead.ts run well past a readable line length; wrap them. I did not exercise the preview beyond reading the diff, since the change has no page.
The main-ahead alarm stayed quiet while production sat 366 commits behind main, and it no longer does. Before, it judged what was waiting only from a landings read, and if that read never finished it said nothing. Now, when no landings read is kept, it counts main's checks made after production's own commit. The cause of the stopped releases is still not confirmed. The docs/OPERATING.md entry now says that plainly instead of stating a guess.
docs/OPERATING.mdentry: now one line. It says releases stopped at v0.7.629 (cab90cf, 2026-11-20) and that the cause is unconfirmed. The way to find it is the last reason inkeeper_beat_tick, which the owner can read on/releases. I can't read it from here.- Follow-up: #15448 holds getting that reason and naming the one real cause and action. #15443 is now marked as waiting on #15448, so its first box stays open.
- Two ways the alarm can still stay silent: both are named in the entry, and a test in
test/flow-alarm-main-ahead-cold.test.tspins each one:- production's commit has no check row in the run table;
release.ahead_minutesis set higher than the current wait. The new test sets it to 10080 and checks the alarm is "not yet due", then fires once the setting is removed.
- Nit: the long signatures in
src/flow/alarm_main_ahead.tsare wrapped, with a smallGreenHeadinterface shared bygreenHeadandcheckedSince. Behaviour is unchanged.
bun x tsc --noEmit passes, and the two alarm test files pass (25 tests). There is no page change, so there is no review block.
🤖 Generated with Claude Code
Earlier asks are met: the OPERATING.md entry is now one honest line, the unconfirmed cause is split to #15448, and both remaining silent paths (no check row for production commit, high release.ahead_minutes) are named and pinned by tests. The alarm fallback is scoped to the cold case, a kept read still wins, and the test fails without the fix. No page change. Next, two things: (1) get keeper_beat_tick last reason as owner and close #15448 with the real cause and action; (2) Non-blocking: consider alarming when production commit has no check row, since that path is still silent.
Left #15443 open: 2 unticked items remain (Name the cause of no release since 0.7.629 (read the keeper/release logs and the check on main; do not touch the release workflow or the chart: report what a person must change).; Record the cause and the one action that unblocks it in docs/OPERATING.md, in a line.).
I couldn't find out why releases stopped: production's keeper and release logs are outside my sandbox. I also couldn't confirm which silent path kept the alarm quiet in production. What I did fix is one real way the #11507 alarm (main green and ahead of production) can stay silent for days.
Why releases stopped (not settled). The last tag is
v0.7.629, oncab90cf(2026-11-20 16:28 UTC). Nov*tag was made after it, even though every check on main since then has been green (I read them from the runs API). The release keeper makes the tag before anything else in a release, so it has been deciding not to cut on every tick, or not ticking at all. The rules indecideCut(src/keeper/cadence.ts) leave these likely reasons:The keeper's last recorded reason (
keeper_beat_tick) names which one. On forge.open-platform.sh,/releasessends an anonymous reader to sign in, and/api/v1/keeperanswers 404, so a person must read it as the owner. I did not touch the release workflow or the chart.The alarm fix.
mainAheadAlarm(src/flow/alarm_main_ahead.ts) learned what was waiting only from the landings read, a background git read of what production's commit contains. When nothing had been kept from that read, it answered "Production runs main's head" and stayed quiet, even with main green and far ahead. Now, in that case only, it reads the run table: the main checks made after the newest check of production's commit give "since when" and "how many commits", and it fires pastrelease.ahead_minutes, saying "N checked commits ahead". If a read was kept and found nothing waiting, that answer still stands, so catching up still closes the Sentinel issue as before. It stays quiet if production's commit was never checked here.I could not check whether this was production's silent path. The other ways it could have stayed quiet are:
release.ahead_minutesset high;/flowand files no crew issue.Tests. The new
test/flow-alarm-main-ahead-cold.test.tsfails two of its three tests without the fix. It, the otherflow-alarm-*tests,tui-release-keeper,tui-dashboard-alarms,no-alarm-bannerandreleases-pagepass (122).bun x tsc --noEmitpasses, and I committed the commentsbun scripts/gate.ts --fixrewrapped.scripts/fast.tsnamed 3,304 test files (about 278 minutes); I started that run by mistake and it was still going in the background when I pushed, so the forge's check is the full verdict. I didn't find thekeep_plantool in this session, so the issue has no plan.docs/OPERATING.mdgets one paragraph before "A release proves itself": the stop, why the alarm was quiet, and the one action. An operator reads the lastkeeper_beat_tickreason on forge.open-platform.sh, then lifts the hold it names, or restarts the keeper if no beat is newer than 2026-11-20. The issue's "done" (the probe printing PASS on both release lines) waits on that action.Try it:
bun test test/flow-alarm-main-ahead-cold.test.ts test/flow-alarm-main-ahead.test.ts🤖 Generated with Claude Code
Closes #15443