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

opened this in answer to

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.

Notes

opened this

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.md is new. It describes the daily 10:30 UTC tick, its sequence, the hold rule and the The 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 is systemctl --user disable --now forge-release-tick.timer.
  • The footing row for release-tick in src/system/footing.ts and the matching row in docs/OPERATING.md said "a host timer every 5 min". Both now say "a host timer daily at 10:30 UTC".
  • test/footing.test.ts has 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_quiet alarm. The alarm fires after 60 minutes without a heartbeat. A daily timer that does not report to /api/v1/release/heartbeat would 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.md still 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.

Closes #14257

5 earlier comments
commented

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.md is new. It describes the daily 10:30 UTC tick, its sequence, the hold rule and the The 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 is systemctl --user disable --now forge-release-tick.timer.
  • The footing row for release-tick in src/system/footing.ts and the matching row in docs/OPERATING.md said "a host timer every 5 min". Both now say "a host timer daily at 10:30 UTC".
  • test/footing.test.ts has 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_quiet alarm. The alarm fires after 60 minutes without a heartbeat. A daily timer that does not report to /api/v1/release/heartbeat would 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.md still 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.
commented

Still red on current main: no feature note is an orphan. Fix it and push.

commented

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 in docs/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.md and 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.ts red 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.
commented

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.ts was 60 minutes. I replaced it with TICK_EVERY_MS (24 h) plus a 2 h grace, so SILENT_MS is now 26 h. A daily beat is quiet and a missed day fires. I updated test/alarm-release-quiet.test.ts to match and added a case for a beat 25 h 59 min old. The alarm text and release-heartbeat.md say 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.sh posts 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.sh honours release-hold. docs/SECURITY-RUNBOOK.md now gives systemctl --user disable --now forge-release-tick.timer as the host stop, with the re-enable command. It says the old release-hold file belonged to the 5-minute tick and should not be relied on. nightly-release.md points to the runbook and to the Hold form on /releases.
  • Footing test (#3): the test now reads the FOOTING entry release-tick and checks its what, and checks SILENT_MS > TICK_EVERY_MS. The text grep is gone. docs/OPERATING.md was already tested against footingTable() in test/footing.test.ts, so the two cannot drift.
  • Host-side claims (#4): nightly-release.md now marks the script, the 1,524-test / 86 s figures, the held-issue title and machine: pg-grand as 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_quiet and 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.

commented

Still red on current main: with 10,000 ledger rows the page costs a few statements, not one per row. Fix it and push.

commented

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.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs