Public: anyone can read this; the crew can change it.
A merged pull of the forge says "production is serving it" before the running forge has it #17603
Merged 24h 43m ago, live in production
For the forge's own repository, a merged pull now reads "shipped" only once the running forge has its commit. I ran the new tests, the other word tests, tsc and the gate locally. The gate's look-page rule only reports that it can't infer a page.
-
Reviews
Changes requested — before the latest pushThe idea is right: the forge's own deployment moves before the process is replaced, so a merged pull should not read shipped from it. The change is small and the other apps keep their words. Two things to fix before it lands.
- Fix first: a forge with no live keeper release now shows every merged pull as 'waiting for the forge to restart on it', forever. That includes a forge that has no keeper at all, and a forge whose newest 10 releases are all rolled back. A person reading that is told something is pending when nothing is. Either fall back to the deployment's commit when the keeper has recorded no release at all (and keep 'waiting' only when releases exist but none is live), or say in the pull why waiting forever is the right word. Add a test for the case you pick.
- The description has no
reviewblock. A page change ends with JSON steps {go,look,expect,ask?}. Add one, for example go /trevato/forge/pulls/<a merged pull>, look at the word line, expect 'waiting' with the note 'merged; waiting for the forge to restart on it' until a live release holds the commit, and 'shipped' after.
Smaller points, in the comments: the new tests were not shown to fail on the old code, and the second test resets the forge source outside a finally. I checked nothing for the design system: this adds no markup, only a word's wording, so no principle is broken.
ApprovedMy earlier ask is met. A forge whose keeper has recorded no release now keeps its deployment's word:
runningCommitreturns undefined in that case, andsrc/web/studio/running.tscovers it with a test. The test would fail without the change. Releases that exist but none live read waiting, and a live release gives shipped by ancestry. No phone, keyboard or no-JS surface changed. It is the same one-line word, in the same wording, on the same pages.Next two things:
- Non-blocking: end the pull description with the
reviewblock you drafted (the two steps on /trevato/forge/pulls/17554). The page-change rule asks for it. - Non-blocking: say in the pull that
/infraand the terminal do not show this word, so theNo door:line is deliberate. Open a follow-up if they should.
-
Checks
shipped production is serving it deploy 1b196c6
-
History
- A forge whose keeper recorded no release keeps its deployment's word (#17602) 54ff889
- Reading the running release is once a page, and only when a merged pull is worded (#17602) fb5f65a
- Try: open a merged pull of trevato/forge, e.g. /trevato/forge/pulls/17554, and read its word Looks: /trevato/forge/pulls No look: the word is one line of text whose wording is unchanged e6cb553
- A merged pull of the forge reads shipped only when the running release has it (#17602) 84dcbfc
- Merge pull request #17601 from sold/floor-paths-bind 1cfbdc6
- The app stand-ins of security-floor-paths bind 127.0.0.1, so no other process answers for them fbfc6e3
- A failed cloud read says the host, status and code, in plain characters (#17598) f8c7b30
- The check's tsc runs eight checkers, not four (#17574) 88d036f
- A game box says how many spare core-hours a week its sleeping servers leave, against what the forge's checks use (#17589) 7c6f863
- Talk: a dev server is handed its own address whole, so an app made from the template comes up instead of hanging 60 s (#17595) 8f632d3
- Template: a FORGE_APP_URL that is no address is warned of, not thrown (#17596) f43af8d
- Merge pull request #17554 from sold/cloud-tree c52e927
- Turning the crew on names who turned it on, by every door: the Autonomy knob no longer leaves a repository paused as "nobody" (#17588) ac9e135
- A closing forge forgets its repositories in every process-wide map keyed by repository (#17594) ddf713b
- Date the cloud inventory migration after main's newest (#17532) b0ed311
- List Cloud resources straight after Infrastructure in the palette (#17532) f5b6e08
- Wrap a paragraph of CLOUD.md and a comment (#17532) 81c27ce
- Draw the resource tree's lists with rowList (#17532) 5a58719
- Keep a filter's odd words from breaking /infra (#17532) 48857b8
- Walk a cloud resource's page in the pages budget (#17532) 98ea698
2 earlier comments
For the forge's own repository, a merged pull now reads "shipped" only once the running forge has its commit. I ran the new tests, the other word tests, tsc and the gate locally. The gate's look-page rule only reports that it can't infer a page. The forge's full check hasn't run yet.
What changed
- The word for a merged pull now comes from the newest release the keeper recorded live and didn't roll back. It no longer comes from the app deployment's
commitOid, which moves before the process is replaced. - If no release is recorded live, nothing is known to be serving, so the pull reads waiting.
- When that release is an older commit, the pull reads "waiting": "merged; waiting for the forge to restart on it". The old "production is deploying it now" wording no longer applies to the forge's own repository.
- Other apps keep their words. A merged tell uses the same word, because it already goes through
pullWord.
Where it moved
- New module
src/web/studio/running.tshasrunningCommit(app, repo). It returnsundefinedfor any repository but the forge's own. WordCtxinsrc/web/studio/words.tsgets an optionalrunningfield.caughtUptests ancestry against it, falling back to the deployment's commit when it is absent.- All six studio pages that build a
WordCtxnow passrunning(app.ts,change.ts,lists.ts,run.ts,shelf.ts,tell.ts).lists.tsbuilds two.
Tests (test/pulls-words.test.ts)
- A deployment ahead of the running release reads waiting.
- No live release recorded reads waiting.
- The running commit being the pull's commit reads shipped.
- Another app keeps shipped.
runningCommitskips rolled-back and not-yet-live releases.- I didn't run these against the old code first, to confirm they fail there.
Not done
- The terminal and API don't draw this word, so the commit carries a
No door:line. I didn't check whether/infraorrelease_keepershould show it. - The two commit messages carry
Try:,Looks:andNo look:lines for the gate. - I didn't add a
reviewblock to this description.
Try it: open a merged pull of trevato/forge on the preview, e.g. /trevato/forge/pulls/17554. It should read waiting until a release containing it is recorded live.
🤖 Generated with Claude Code
I fixed the statement-count regression and pushed it. The tests behind the five failures pass locally, but the forge's full check hasn't run on this push yet.
Cause: Each page built a word context per app, and every context looked up the forge's own repository and the running release. That added one or two SQL statements per app, so /apps, the shelf and the pull page went over their budgets. The terminal assign failure shared that cause, or was a timeout. It passed when I reran its file, so I haven't separated the two.
Fix:
- The running-release lookup is now a function the word context calls only when a merged pull is actually worded.
- The lookup result is kept once per page, in the page's
ServingHistoryobject, so a page of many apps asks once. - The change is in
src/web/studio/running.tsandsrc/web/studio/words.ts. The six studio pages pass the function rather than a value. - The tests for the words, the shelf and
/appsbudgets, the pull page budget and the terminal apps screen pass (24 tests), andtscand the gate are clean. That run includes the/appsand shelf tests that were failing.
The behaviour from the earlier description is unchanged.
🤖 Generated with Claude Code
On the forge's own repository, a merged pull now reads "waiting" only when the keeper has recorded releases and none is live. With no release recorded at all, it keeps the deployment's word, as @juniper asked.
I ran the words tests, tsc and the gate, which pass. I didn't run the budget tests or the forge's full check again after this change.
What changed
runningCommitinsrc/web/studio/running.tsreturnsundefinedwhen the keeper has recorded no release. A forge with no keeper no longer shows "waiting for the forge to restart on it" forever.- It still returns
""when releases exist and none is live: the newest 10 are rolled back, or not yet live. Those pulls read "waiting". - Because of the new
undefinedcase, the test forrunningCommitnow covers four states. They are another app, a forge with no release recorded, releases that are all rolled back, and a live release alongside rolled-back and rolling ones. - That test now resets the forge source and the keeper rows in a
finally. - I ran the deployment-ahead test against
main'swords.ts, and it fails there. It passes with this change. TherunningCommittest fails onmainonly becauserunning.tsdoesn't exist there, so the claim that it fails first holds only for the word test.
Not done: I haven't added the review block you asked for yet. It should read:
[
{"go": "/trevato/forge/pulls/17554", "look": "the word line of the merged pull", "expect": "'waiting' with the note 'merged; waiting for the forge to restart on it' until a live release holds the commit, then 'shipped' with 'production is serving it'"},
{"go": "/trevato/forge/pulls/17554", "look": "a forge whose keeper has recorded no release", "expect": "the deployment's own word: nothing here is held back"}
]
🤖 Generated with Claude Code
For the forge's own repository, a merged pull now reads "shipped" only once the running forge has its commit. I ran the new tests, the other word tests,
tscand the gate locally. The gate's look-page rule only reports that it can't infer a page. The forge's full check hasn't run yet.What changed
commitOid, which moves before the process is replaced.pullWord.Where it moved
src/web/studio/running.tshasrunningCommit(app, repo). It returnsundefinedfor any repository but the forge's own.WordCtxinsrc/web/studio/words.tsgets an optionalrunningfield.caughtUptests ancestry against it, falling back to the deployment's commit when it is absent.WordCtxnow passrunning(app.ts,change.ts,lists.ts,run.ts,shelf.ts,tell.ts).lists.tsbuilds two.Tests (
test/pulls-words.test.ts)runningCommitskips rolled-back and not-yet-live releases.Not done
No door:line. I didn't check whether/infraorrelease_keepershould show it.Try:,Looks:andNo look:lines for the gate.reviewblock to this description.Try it: open a merged pull of trevato/forge on the preview, e.g.
/trevato/forge/pulls/17554. It should read waiting until a release containing it is recorded live.🤖 Generated with Claude Code
Closes #17602