Public: anyone can read this; the crew can change it.
The release proof fails on the first try after every restart, never retries, and leaves its probe forge behind #12568
Closed 18d 5h ago
I merged main into the branch and pushed it. The gate, tsc and the tests I ran (release journey, release prove, and the asks/needs suites) all pass. src/web/studio/askspage.ts: the conflict was around forgeCard.
-
Reviews
No review yet.
-
Checks
stopped closed without shipping deploy 68c6512
-
History
- Merge main into the release proof retry pull 68c6512
- The v1 proof reads production's schedules with no account: one public line says the oldest overdue schedule, and the probe passes on it (#12515) a9fc969
- Merge main into the release proof retry pull 01baac1
- Move the forge to Bun 1.4.4 or newer: 1.3.14 shares one unlocked SQLite handle table across threads and it crashed production four times (#12545) 3c11651
- Rewrap a comment to 100 columns e0e2f63
- Tests: no real sleeps in the probe-removal tests 580618f
- The empty, migrated database is made once a test run, not once a process 494581c
- A commit's blobs are written by one hash-object, not one process per file f79d287
- A script the check does not run is judged by the tests that can read it, not by the whole gate d42f8d1
- The repository page's timing test names the phases the kept picture left on the request fdf1dca
- A forge's /system counts its own requests' waits at the gate, not the process's 94a8d70
- Each forge keeps its own count of who is asking, not one for the process e33973d
- The MCP tools load in one order, the index first, so a first use cannot leave them unusable e4a6eaa
- Merge the fork's probe-removal commit 65d95cd
- The host removes its own probe forge in process; the proof's log says removed; a probe standing 30 minutes is a needs-you card (#12367) 809c3ed
- Merge main into the release proof retry pull 1304cbf
- Looks: one browser per look, no look dropped without a word, and no browser started where it can only abort daf1d2d
- Sentinel: probe:probe-5893f874 was degraded 25 minutes today: The release proof's probe forge probe-5893f874 could not be removed and is still running. (#12557) 32c41b9
- Desk store: notes of at most 280 characters with kind, author, expiry, a 50-note cap and a secret and URL filter (#12546) 3d2d8e1
- /system shows one line per maintenance worker: what it found this week and what it did about it (#12445) d480d55
6 earlier comments
This pull fixes the passed-walk probe leak from the 14:20Z comment and adds a stale-probe needs-you card. The earlier retry, settle and ceiling work on this branch was already there, and I did not touch it. The re-run action was already there too (the release's page and release_now in MCP), and the 20 s stays as it is.
The 0.7.597 and 0.7.598 leak was most likely the missing admin token: without one, the walk could neither remove its forge nor sweep stale ones. I did not confirm that on production.
What changed
- Removal without a token: the walk now takes optional
hands(journey.ts) andmain.tssupplies them from the forge's ownremoveForgeandlistChildren. Both the walk's own cleanup and the sweep of staleprobe-forges use them first, so nothing is configured. TheadminTokenpath stays as the fallback. - Failed removal named: if the removal itself fails, the walk's failure names the forge.
- Log line: the
release proofline now carriesremoved=true, orremoved=false (probe-… still running; the host could not remove it). The proof file keepsremovedas well. - Standing probes: a new
release/probes.tsreads the spawn ledgers for anyprobe-xxxxxxxxforge begun more than 30 minutes ago. Vitals shows it as a needs-you card linking to/forges/<name>/remove, whether or not the proof recorded it.
Tests and checks
- Added tests: hands remove the forge and sweep stale probes with no token; a failed removal is named; the log line carries
removed; the 30-minute card appears for an old probe and not for a young one. bun x tsc --noEmitandbun scripts/gate.tsare clean.- 78 tests pass across the proof, vitals, journey,
release-nowandmcp-sizefiles. - I did not run the full suite or the stage-rig restart-under-load check; the forge's own check runs the former.
Left out: a hosted forge that was never fully made and has no ledger is treated as already removed, not as a leftover.
I merged main into the branch and pushed it. The gate, tsc and the tests I ran (release journey, release prove, and the asks/needs suites) all pass.
src/web/studio/asks_page.ts: the conflict was aroundforgeCard. I keptmain'sasleepCard("A stopped app") and the existingforgeCard, so both cards still render.- Fork commit: the fork's branch had one commit that wasn't local, "The host removes its own probe forge in process…". I merged it too and kept both sides' tests in
test/release-journey.test.ts. - Real timers in two tests: the gate refused two tests from that fork commit. In
test/release-journey.test.tsI swapped a realBun.sleep(100)for an instant sleep. Intest/release-prove.test.tsI marked the 10 ms wait// real-timer:. - Comment length: I rewrapped a 102-column comment in
src/release/prove.ts. - Earlier push was red on the gate: my first push after the merge went out before I had re-run the gate, and it failed on the two timer lines and the comment. The last push fixes that.
I didn't run the full suite, since the forge's check does that on push.
Gate, type check and tests are green. The branch is already pushed at this head, so nothing new needs pushing.
What changed (#12367, probe forge left behind after a passed walk)
- Removal without a token: the host removes its own
probe-forge in process (src/release/probes.ts, wired insrc/main.ts), so production no longer needs an admin token configured to clean up after a walk. It does this for both passed and failed walks. - Log line: the proof's log line now carries
removed=true|falsewith the reason. If removal fails, the failure names the probe forge, e.g. "the probe forge probe-… could not be removed". - Stuck probes: a probe forge standing more than 30 minutes shows in the needs-you stack with a Remove button (
src/kernel/vitals.ts). - Docs:
docs/features/release-heartbeat.mdis updated. - Tests:
test/release-journey.test.ts,test/release-prove.test.tsandtest/vitals-release.test.tscover the new behaviour. They use no real sleeps.
Not done
- The 20 s readiness limit is unchanged, so a slow forge on a settled host still fails red.
- I did not verify against a restart under load on the stage rig.
Checks run: bun scripts/gate.ts, bun x tsc --noEmit, and the release journey, prove, vitals and MCP-size tests (71 pass, 0 fail). The MCP ceilings are untouched.
To try it: restart the app, then watch for release proof … ok=true tries=1 removed=true in the log. /system should show no probe- forge afterwards.
This pull fixes the release proof leaving its probe forge behind. It also makes a stuck probe visible. I merged current main into the branch and pushed; the 71 release, vitals and MCP-size tests pass, as do the gate and the type check. Nothing new has been said on the issue since the 14:20Z production report, which this pull answers.
What changed
- Removal needs no token: the host removes its own
probe-forge in process (src/release/probes.ts, wired insrc/main.ts), after both passed and failed walks. Production needs no admin token configured for this. This was the likely cause of the passed walks leaving probes behind. - The log says whether removal worked: the proof's log line now carries
removed=true|falsewith the reason. If removal fails, the failure names the forge, e.g. "the probe forge probe-… could not be removed". - Stuck probes show up: a probe forge that outlives its walk by 30 minutes appears in the needs-you stack with a Remove button.
- Earlier work on this branch: the retry, the tries count in the line, the re-run action and the no-hang ceiling were already in and are untouched.
- Tests:
test/release-journey.test.ts,test/release-prove.test.tsandtest/vitals-release.test.tscover the new behaviour. They use no real sleeps. I also updateddocs/features/release-heartbeat.md.
What I left out
- The 20 s readiness limit is unchanged. A forge that is slow on a settled host still fails red.
- I did not run a restart under load on the stage rig, so the "Done when" check is still open. Try it with a restart, then look for
ok=true tries=1 removed=truein the log./systemshould show noprobe-forge afterwards.
Nothing has changed since my last push. The branch is level with origin and main has no new commits. The newest comment on the issue is still the 14:20Z production report, so I changed nothing and pushed nothing.
This pull fixes the release proof leaving its probe forge behind.
What changed
- Removal without a token: the host removes its own
probe-forge in process (src/release/probes.ts, wired insrc/main.ts), after both passed and failed walks. Production needs no admin token for this. That was the likely cause of the probe forges left behind after passed walks. - Log line: the proof's log line now says
removed=true|falsewith the reason. If removal fails, the failure names the forge. - Stuck probes: a probe forge that outlives its walk by 30 minutes appears in the needs-you stack with a Remove button.
- Already on the branch: the retry, the tries count in the line, the re-run action and the ceiling on total time were in before this and are untouched.
- Tests and docs: tests are in
test/release-journey.test.ts,test/release-prove.test.tsandtest/vitals-release.test.ts, anddocs/features/release-heartbeat.mdis updated. The gate, the type check and those tests plustest/mcp-size.test.tspassed on my last run (71 tests, 0 failures).
What I left out
- The 20 s readiness limit is unchanged, so a slow forge on a settled host still fails red.
- I did not run a restart under load on the stage rig, so the issue's "Done when" check is still open.
How to try it: restart the app and look for ok=true tries=1 removed=true in the log. /system should then show no probe- forge.
This pull fixes the release proof leaving its probe forge behind. Since the last run the issue has no new comments, and main had one new commit, which I merged in and pushed. The gate and type check are clean. The release, vitals and MCP-size tests still pass (71 pass, 0 fail).
What changed
- Removal without a token: the host removes its own
probe-forge in process (src/release/probes.ts, wired insrc/main.ts), after both passed and failed walks. This answers the 14:20Z production report: no admin token is needed. A missing token was the likely cause of the probes left after passed walks. - Log line: the proof's log line now says
removed=true|falsewith the reason. If removal fails, the failure names the forge. - Stuck probes: a probe forge that outlives its walk by 30 minutes appears in the needs-you stack with a Remove button.
- Already on the branch: the retry, the tries count in the line, the re-run action and the ceiling on total time were in before this pull and are untouched.
- Tests and docs: tests are in
test/release-journey.test.ts,test/release-prove.test.tsandtest/vitals-release.test.ts, anddocs/features/release-heartbeat.mdis updated.
What I left out
- The 20 s readiness limit is unchanged, so a forge that is slow on a settled host still fails red.
- I did not run a restart under load on the stage rig, so the issue's "Done when" check is still open.
How to try it: restart the app and look for ok=true tries=1 removed=true in the log. /system should then show no probe- forge.
I merged
maininto the branch and pushed it. The gate,tscand the tests I ran (release journey, release prove, and the asks/needs suites) all pass.src/web/studio/asks_page.ts: the conflict was aroundforgeCard. I keptmain'sasleepCard("A stopped app") and the existingforgeCard, so both cards still render.test/release-journey.test.ts.test/release-journey.test.tsI swapped a realBun.sleep(100)for an instant sleep. Intest/release-prove.test.tsI marked the 10 ms wait// real-timer:.src/release/prove.ts.I didn't run the full suite, since the forge's check does that on push.
Continues #12568