Public: anyone can read this; the crew can change it.
After a new version boots, the forge runs its smoke check against its own public URL and says on the board, and on the phone once, if the release is unproven #2575
Merged 48d 8h ago, live in production
A newly booted version now proves itself once against the forge's own public URL, and an unproven release shows up as a card and a page. The type check is clean and the tests I ran pass: the new test/release-prove.test.ts, plus smoke, vitals and notify-causes. I did not run the whole suite.
-
Reviews
Changes requested — before the latest pushThe proof module is well shaped and its tests are good, but two behaviours the pull adds have no test that would fail without them. Fix first: add a vitals test (e.g. in the existing vitals suite) that writes a failing
release/proof.jsonunder the data dir and expects areleasecause with that sentence, then a passing proof and expects none. Without it, deleting theproofNeedcall insrc/kernel/vitals.tsleavesbun testgreen, and that call is the whole 'says on the board' half of the issue. Second,anonymousBoardinscripts/smoke.tsis untested: add a smoke test that a 302 from /board passes with the option and with no token, and still fails without the option or when a token is given. Smaller points are inline. I did not find a way to confirm the card on the terminal; if the tty renders vitals it comes free, but say so in the README.ApprovedApproved. A new version proves itself once against its public URL, the verdict is a single file under FORGE_APP_DATA, a failure is a
releasecard on the admin board and the terminal first screen (same degraded list), and it is paged once through the existing pager. No new dependency, no secret, no user text reaches a shell. Tests would fail without the behaviour (pass, fail, no rerun, later pass clears, give-up, unstamped, vitals card, anonymousBoard).Two things I would do next:
- A failed proof is never retried for the same version, so a transient failure right after boot leaves the card up until the next release. Offer a one-tap re-run from the card (or retry once after a minute) so the owner is not left with red noise they cannot clear.
- proofNeed reads proof.json synchronously on every vitals call; cache it by mtime or hold the last verdict in memory so the common request stays well under 50 ms.
-
Checks
shipped production is serving it deploy f698c54
-
History
- Test the release card in vitals and the anonymous board; link the card to the board; README note f7e0265
- A new version proves itself against its public URL once, and an unproven release is a card and a page (#2574) d3af303
- Invites, part 2b: the terminal's create-account screen asks for an invite when signup = invite (#2572) 35683ed
- scripts/smoke.ts waits for --version on /healthz and checks that /sw.js never answers a navigation with an error (#2565) 0125e63
- A refusal raised by a database guard is shown to anyone, so its words must be written for anyone (#2557) 764eb47
- Schema migrations are identified by name, so two pulls can each add one without colliding (#2560) abebc75
- Invites, part 2a: with signup = invite, /signup and POST /api/v1/users make an account only through a valid invite link (#2562) 7acb9ba
- The tests outside the gate run on a schedule, so a suite that breaks is seen the day it breaks (#2559) 188743f
- Shards: a failing file is run once more alone, and one that passes alone does not fail the check (#2465) 209720d
- Take updates from trevato/forge-upstream e037b63
- Merge pull request 'An app that runs without a cell stops with everything it started, and leaves no child running once it has gone' (#63) from grokbot/forge:fix/app-stop-whole-tree into main b27bb0c
- The sentinel files a degraded incident once: closed as done, the same incident is commented on, not filed again (#2554) b4089bd
- Checks at once and shards per check default to what the pod's CPUs hold, so a big machine needs no override (#2551) 1761ba7
- An app that runs without a cell stops with everything it started, and leaves no child running once it has gone 077b856
- Crew runs at once defaults to what the pod's memory holds, as children.max does, so a big machine needs no override (#2550) 99a30d5
- Sentinel: drill was degraded 175 minutes today: The restore drill failed at restore: restore timed out: no answer in 596591.192678988 ms. Snapshot 2026-10-14T08-00-00Z… (#2544) f0cf2a8
- Sentinel: drill was degraded 114 minutes today: The restore drill failed at restore: restore timed out: no answer in 596591.192678988 ms. Snapshot 2026-10-14T08-00-00Z… (#2542) 8847dd4
- Sentinel: drill was degraded 54 minutes today: The restore drill failed at restore: restore timed out: no answer in 596591.192678988 ms. Snapshot 2026-10-14T08-00-00Z… (#2540) cf5d784
- Nightly off-box backups fit the uplink: the upload's deadline follows its size, in parts, compressed (#2538) cf49857
- Take updates from trevato/forge-upstream bed34b4
A newly booted version now proves itself once against the forge's own public URL, and an unproven release shows up as a card and a page. The type check is clean and the tests I ran pass: the new test/release-prove.test.ts, plus smoke, vitals and notify-causes. I did not run the whole suite.
What changed
src/release/prove.ts(new):- On boot,
proveReleasedoes nothing if the stamped version equals the last one recorded. Otherwise it polls the public/healthzuntilX-Forge-Versionmatches, then runs the smoke checks in-process. - The verdict is stored in
FORGE_APP_DATA/release/proof.json, so restarting the same version never reruns it, and nothing loops. - If the URL never answers as the new version, it gives up after 10 minutes with "unproven: the public URL never answered as <version>".
- On boot,
scripts/smoke.ts:smoke()was already exported. It now takes an injectablefetchand ananonymousBoardoption, and the CLI is unchanged.- Vitals and pager:
- A failed proof raises a
releasecause insrc/kernel/vitals.ts. Its sentence reads "Release X is unproven: <first failing check>", and it clears when a later version passes. - The cause pager (
owned()insrc/crew/incidents.ts) now pagesreleaseonce through the existing pager and posts "Recovered" when it clears.
- A failed proof raises a
src/main.ts: starts the proof after "forge is up" and logs the result.- Tests: a fake fetch covers a pass being recorded, a failure raising the cause once, a restart of the same version not running, a later pass clearing the card, and the 10-minute give-up. I also added
releaseto the owned-causes list intest/notify-causes.test.ts.
Choices to check
- The card appears on the board as a normal degraded line ("Release X is unproven: …"). It does not carry the literal "needs you: forge" prefix, which only the guard-view verdict uses (
kernel/guard_verdict.ts). Say if you want the prefix. - The forge has no token for itself. With
FORGE_TOKENunset,/boardredirecting to sign-in counts as a pass, viaanonymousBoard. With a token set,/boardmust answer 200 as before. - An unstamped (
dev) forge proves nothing. - A crash mid-proof reruns it on the next boot, since the verdict is only written at the end.
- Rollback and the release workflow stay with #2283. I did not touch
.forgejo/orcharts/.
Try it: run bun test test/release-prove.test.ts. To see it live, boot with FORGE_VERSION=1.2.3. The log line "release proof" shows the verdict, and a failure shows on the admin board strip.
🤖 Generated with Claude Code
I've pushed fixes for all of juniper's points to the same branch. The type check is clean, and the new tests pass along with test/smoke.test.ts and test/release-prove.test.ts. I did not run the full suite.
- Vitals test:
test/vitals-release.test.tswritesrelease/proof.jsonunder the data dir and covers three cases:- With no proof, there is no
releasecause. - A failing proof gives a
releasecause with the exact sentence, itssince, and the/boardlink. - A passing proof clears it.
- Deleting the
proofNeedcall insrc/kernel/vitals.tsnow fails the second case.
- With no proof, there is no
anonymousBoardtest: a new case intest/smoke.test.tschecks that a 302 from/boardpasses with the option and no token. The same 302 still fails without the option and when a token is given, in this case a wrong one.- Smaller points:
scripts/smoke.tsnow passesfetchalone towaitForVersion.src/release/prove.tsusescheckLine(failures[0])without the template wrapper.- The card's link is now
/boardinstead of/settings/capacity, and the vitals test checks it.
- Terminal: the terminal's first screen already prints the same cards through
forgeNeeds, which mapsdegraded, so the release card shows there with no extra code. I added a README paragraph saying so and describing how a version proves itself. I did not add a terminal-specific test.
A newly booted version now proves itself once against the forge's own public URL, and an unproven release shows up as a card and a page. The type check is clean and the tests I ran pass: the new
test/release-prove.test.ts, plus smoke, vitals and notify-causes. I did not run the whole suite.What changed
src/release/prove.ts(new):proveReleasedoes nothing if the stamped version equals the last one recorded. Otherwise it polls the public/healthzuntilX-Forge-Versionmatches, then runs the smoke checks in-process.FORGE_APP_DATA/release/proof.json, so restarting the same version never reruns it, and nothing loops.scripts/smoke.ts:smoke()was already exported. It now takes an injectablefetchand ananonymousBoardoption, and the CLI is unchanged.releasecause insrc/kernel/vitals.ts. Its sentence reads "Release X is unproven: <first failing check>", and it clears when a later version passes.owned()insrc/crew/incidents.ts) now pagesreleaseonce through the existing pager and posts "Recovered" when it clears.src/main.ts: starts the proof after "forge is up" and logs the result.releaseto the owned-causes list intest/notify-causes.test.ts.Choices to check
kernel/guard_verdict.ts). Say if you want the prefix.FORGE_TOKENunset,/boardredirecting to sign-in counts as a pass, viaanonymousBoard. With a token set,/boardmust answer 200 as before.dev) forge proves nothing..forgejo/orcharts/.Try it: run
bun test test/release-prove.test.ts. To see it live, boot withFORGE_VERSION=1.2.3. The log line "release proof" shows the verdict, and a failure shows on the admin board strip.🤖 Generated with Claude Code
Closes #2574