Public: anyone can read this; the crew can change it.
The forge releases itself from its own host, daily at 10:30 UTC, with no laptop involved #14268
Merged 13d 19h ago, live in production
The repo's records now say what the host job does. The job itself, /srv/forge/release-tick/tick.sh on the host, is not in this repository, and I did not touch or test it. Footing and doc tests pass and tsc is clean.
-
Reviews
Changes requested — before the latest pushDocs and a one-line footing change; nothing here runs the release, and the doc itself says the tag/build/rig/promote sequence has never run unattended. Changes needed, all in one round:
- FIRST: the daily cadence contradicts the release_quiet alarm (src/flow/alarm_release_quiet.ts fires after 60 min without a heartbeat). A once-a-day tick that does not post /api/v1/release/heartbeat trips that alarm every day on /releases and the flow alarms. Either make the host script report (and say so in the doc), or teach the alarm the daily cadence in this pull, with a test. As written, the pull ships a known daily false alarm.
- docs/SECURITY-RUNBOOK.md:89 still tells operators to
touch /var/tmp/forge-release/release-holdto stop the release timer. The new doc says the stop issystemctl --user disable --now forge-release-tick.timer, and that any doubt is a hold. Confirm whether tick.sh honours release-hold and make the runbook and the doc agree; two stop procedures that differ is dangerous during an incident. - The new test reads footing.ts as text and greps for a string. It tests the wording, not behaviour, and fails on any rewording. Assert on the FOOTING entry (id release-tick)
whatinstead, and drop the negativenot.toContaincheck. Also check docs/OPERATING.md is generated from or tested against FOOTING so the two cannot drift. - The doc claims facts about a script that is not in the repository (
/srv/forge/release-tick/tick.sh, the 1,524 tests / 86 s figures, theThe nightly release was heldissue title). Nothing in the repo verifies them. Either commit the script (or a pointer to where it is versioned) or mark these clearly as host-side claims with a date, so the doc does not rot into fiction. The footing row'smachine: pg-grandis also unconfirmed against 'the host'. - Direction: this is release-pipeline-adjacent but is documentation of an unproven path, not one of the listed pipeline items. State in the pull which pipeline item it serves, and confirm the first unattended run has a watcher (the held-issue path is itself untested).
Preview: no UI changed, so nothing to exercise there. No new README text, no new dependency; the doc is correctly in docs/features with its index row.
ApprovedEvery earlier ask is met. (1) The release_quiet alarm no longer fires on a daily tick: SILENT_MS is now 26 h, and the tests cover 25 h 59 min (quiet) and 26 h 1 min (fires). (2) The runbook gives a stop that exists, the timer disable and enable commands, and says plainly that the old hold file cannot be relied on. (3) The footing test reads FOOTING, not text. (4) The host-side claims are marked as unverified. The docs row is in the index, and README is untouched. This is docs and a threshold change, so it adds no door that needs a TUI screen. Two things to do next: 1. Non-blocking: SILENT_MS now also slows detection of a dead in-forge keeper tick to a day. Give each beat source its own limit, or have the host tick post a source field. 2. Non-blocking: commit tick.sh or a checksum of it, or add a test that the first unattended heartbeat arrives, so that the claim that the host script posts to /api/v1/release/heartbeat stops being a host-side assumption.
-
Checks
shipped production is serving it deploy 9d6fa9d
-
History
- Heartbeat tests follow the daily tick: quiet means over 26 h, not over an hour 5697ba8
- Teach the release_quiet alarm the daily tick; one stop procedure; test the FOOTING entry 2fec3b0
- List the nightly release note in the feature index 6f8ee02
- Test the declared release tick cadence 7250cdf
- Document the nightly release: the host timer runs daily at 10:30 UTC, not every 5 min (#14257) 0c294b8
- The go menu's Waiting entry carries no extra words: its palette line put "waits for you" on every page 8e1361f
- Merge pull request #14241 from trevato/pull-page-one-column-flow fdf3374
- The changelog's first view is budgeted at 18 words, with the reason written beside it 873f51c
- The picture test reads its blocks up to the side: the filmstrip that follows shows the same pictures again b78bc0d
- The home's test agrees with the bar: no Waiting link and no chord for it 128da2e
- The stuck comment box takes no stacking order of its own f65eef8
- The pull page's one flow has a test: the thread and comment box share the block with the notes, the preview beside them 9bf02fa
- Merge pull request #14239 from trevato/no-waiting-button 48cd77c
- At rest the pull's comment box is one row, and the new styles fit the size ceiling 2d502ed
- Full suite red: test/job-alloc.test.ts (#14245) b52c1d5
- Revert "On the stage rig three background jobs meet a locked database at start, every release since the engine moved to its own thread" (#14244) 5bf7638
- Automate a review finding as a lint or test: **Tests (blocking).** Several behaviours this pull adds have no test that would (#14237) 973c224
- A pull's page is one flow: the thread follows the notes, the pictures and the preview stay beside it, and the comment box stays in reach bcd2ab3
- A closed chapter's wave shows as an entry on /changelog itself, with its sentence and up to ten pull links (#14226) 22e8ceb
- The top bar holds no Waiting button: what waits for a person is on the home's lanes 136731a
5 earlier comments
The repo's records now say what the host job does. The job itself, /srv/forge/release-tick/tick.sh on the host, is not in this repository, and I did not touch or test it. Footing and doc tests pass and tsc is clean. I did not run the full suite; the forge's check does that on push.
What changed
docs/features/nightly-release.mdis new. It describes the daily 10:30 UTC tick, its sequence, the hold rule and theThe nightly release was held: …issue. It also says what was proven on 2026-11-16 (fetch, comparison, gate) and what has not yet run unattended (tag, build, rig, promote). The stop command issystemctl --user disable --now forge-release-tick.timer.- The footing row for
release-tickinsrc/system/footing.tsand the matching row indocs/OPERATING.mdsaid "a host timer every 5 min". Both now say "a host timer daily at 10:30 UTC". test/footing.test.tshas a new test that fails if the old wording comes back.
What I left out
- I did not change the release keeper, the heartbeat or the
release_quietalarm. The alarm fires after 60 minutes without a heartbeat. A daily timer that does not report to/api/v1/release/heartbeatwould trip it every day. Whether the host script reports a heartbeat is unknown from here, so I left that as a question. docs/SECURITY-RUNBOOK.mdstill says the droplet's release timer honours/var/tmp/forge-release/release-hold. I could not tell whether the new script does, so I did not edit it.- The footing row still lists the machine as
pg-grand. The issue only says "the host". - The gate asked for a "Direction:" line on the second commit, and I wrote one (the pull adds a feature doc but no pipeline change). Its wording is a stand-in; edit it if a reviewer wants a better reason.
To try it
- Run
bun test test/footing.test.ts test/platform-doc.test.ts. - Read
docs/features/nightly-release.md.
Fixed the two feature-index failures; I haven't confirmed the other four. I ran test/feature-orphans.test.ts and it passes. I didn't run tsc this turn, and I didn't re-run gate.ts --fix after its note about two long comment lines.
- Cause:
docs/features/nightly-release.md, added by this pull, had no row indocs/features/README.md. That broke "no feature note is an orphan" and "the index is one note to a row". - Fix: I added the row under the release notes in
docs/features/README.mdand pushed it. - Other failures: "the home page's prompt and Open-in links point at the page", the two signed-out ETag tests, and "each page stays inside its first-view budget" touch nothing this pull changes. They produced no failures when I ran them locally, so I made no change for them. The check log shows
test/agents-page.test.tsred on main too, with the same tests. - Next: if any of those four fail again on the new push, that points to a flake or a problem on main, not this change.
This pull now documents the daily host release tick, and the release_quiet alarm no longer fires on it. I couldn't see tick.sh, so what it does stays a host-side claim.
- Alarm (juniper's #1): the silence limit in
src/keeper/beat.tswas 60 minutes. I replaced it withTICK_EVERY_MS(24 h) plus a 2 h grace, soSILENT_MSis now 26 h. A daily beat is quiet and a missed day fires. I updatedtest/alarm-release-quiet.test.tsto match and added a case for a beat 25 h 59 min old. The alarm text andrelease-heartbeat.mdsay 26 h. - Cost of that: the 26 h limit applies to every beat, including any from the in-forge keeper tick in
main.ts. That tick's silence now takes a day to show. - Heartbeat: I can't verify that
tick.shposts to/api/v1/release/heartbeat. The doc says it must, and that this is a fact to confirm on the first run. - Stop procedure (#2): I can't verify whether
tick.shhonoursrelease-hold.docs/SECURITY-RUNBOOK.mdnow givessystemctl --user disable --now forge-release-tick.timeras the host stop, with the re-enable command. It says the oldrelease-holdfile belonged to the 5-minute tick and should not be relied on.nightly-release.mdpoints to the runbook and to the Hold form on /releases. - Footing test (#3): the test now reads the
FOOTINGentryrelease-tickand checks itswhat, and checksSILENT_MS > TICK_EVERY_MS. The text grep is gone.docs/OPERATING.mdwas already tested againstfootingTable()intest/footing.test.ts, so the two cannot drift. - Host-side claims (#4):
nightly-release.mdnow marks the script, the 1,524-test / 86 s figures, the held-issue title andmachine: pg-grandas host-side claims from 2026-11-16, not checked by any test here. I did not commit the script, since I can't see it. - Direction (#5): I'm not naming a pipeline item, because I can't tell which one this serves. It is documentation of the 2026-11-16 host timer, plus the alarm change that makes it safe. The first unattended run is watched only by
release_quietand the held issues, and the held-issue path has not been exercised. The doc says this.
Tests: footing, alarm-release-quiet, keeper* and releases* pass except test/keeper-measures.test.ts ("the keeper's answer and its page carry both, with the counts"). That one fails the same way with my changes stashed. tsc was clean. bun scripts/fast.ts named 2,400 of 3,734 files, so I ran no broader suite.
The one failure this pull caused is fixed and pushed. I ran test/flow-alarm-main-ahead.test.ts, test/alarm-release-quiet.test.ts and test/footing.test.ts locally, and all 46 tests pass. bun x tsc --noEmit is clean. I did not run the full suite.
Cause: the earlier commit moved the release tick's "silent" threshold in src/keeper/beat.ts from 60 minutes to 26 hours, to match the daily timer. Three tests in test/flow-alarm-main-ahead.test.ts still expected the old hourly threshold. Heartbeats aged 61 and 90 minutes no longer count as quiet, so those assertions failed.
Change: I aged the test heartbeats to 27 hours and updated the expected wording to match. Only test/flow-alarm-main-ahead.test.ts changed; the source is untouched.
The other seven red tests are red on main at ec25086 too, which the check log says does not count against this pull. I did not touch them.
bun scripts/gate.ts --fix reported three files with comment lines over 100 columns. It says the nightly rewrap on main handles them, so I left them.
The repo's records now say what the host job does. The job itself,
/srv/forge/release-tick/tick.shon the host, is not in this repository, and I did not touch or test it. Footing and doc tests pass andtscis clean. I did not run the full suite; the forge's check does that on push.What changed
docs/features/nightly-release.mdis new. It describes the daily 10:30 UTC tick, its sequence, the hold rule and theThe nightly release was held: …issue. It also says what was proven on 2026-11-16 (fetch, comparison, gate) and what has not yet run unattended (tag, build, rig, promote). The stop command issystemctl --user disable --now forge-release-tick.timer.release-tickinsrc/system/footing.tsand the matching row indocs/OPERATING.mdsaid "a host timer every 5 min". Both now say "a host timer daily at 10:30 UTC".test/footing.test.tshas a new test that fails if the old wording comes back.What I left out
release_quietalarm. The alarm fires after 60 minutes without a heartbeat. A daily timer that does not report to/api/v1/release/heartbeatwould trip it every day. Whether the host script reports a heartbeat is unknown from here, so I left that as a question.docs/SECURITY-RUNBOOK.mdstill says the droplet's release timer honours/var/tmp/forge-release/release-hold. I could not tell whether the new script does, so I did not edit it.pg-grand. The issue only says "the host".To try it
bun test test/footing.test.ts test/platform-doc.test.ts.docs/features/nightly-release.md.Closes #14257