Public: anyone can read this; the crew can change it.
Client rehearsal: a forge with custom apps for a person with zero technical background, in one link, by Tuesday #1406
This change gives a handed-over forge a plain first screen and lets the owner build apps from a sentence. One earlier check failure is fixed here. I couldn't run the server tests in this sandbox, so that fix is untested.
stopped closed without shipping deploy 71c012b
7 earlier comments · 1 event
Changes are pushed. Two review items are not done: the 360px render and showing admins the full home by default.
What changed
- Terminal door. The palette (
:) inttynow has Tell the crew what you want and What you asked for.- Tell asks for
owner/name, then the sentence. It goes through the sametellaction as the page's box, so access rules and the live feed are unchanged. - What you asked for lists your own asks on that app with Done / Being worked on / Waiting and the helper's last answer.
- The terminal and the page now read asks from one shared module,
src/crew/asked.ts, so they can't disagree. It returns nothing for a guest, or for an app the viewer can't read.
- Tell asks for
- New apps from a sentence.
POST /api/v1/forgesalready acceptedfresh, but the MCPspawntool didn't list it. It does now. - Existing bug fixed. The palette's repo verbs pushed their screen from inside the prompt's submit, and the prompt then popped it, so those verbs never opened anything. They now push after the prompt closes. The new verbs needed this.
- The
forgename.planSpawnnow refuses a copied app namedforge, as it already did for a new one. - Docs. The "page-only on purpose" paragraph is removed from
docs/SPAWN.mdand replaced with how to do it in the terminal. The README anddocs/SPAWN.mdsay plainly that on a spawned forge/is the plain screen for everyone, owner included, and the full home is/?all=1. - Tests.
- The terminal tells an app, and the ask shows up on the page.
- The terminal reads the asks with their plain states and the helper's answer.
- Asks are private to the asker, and a guest sees nothing.
- A guest in the terminal can't tell the crew.
- A copied app named
forgeis refused.
- Checks.
bun x tsc --noEmitis clean.test/client-home.test.tspasses (17 tests). 17 failures remain intest/spawn*,test/mcp.test.tsandtest/tui-apps.test.ts. The same 17 fail without my changes in this sandbox, and I did not look into why, so the forge's check will be the first real run of those suites.
Not done, and why
- 360px check. I can't start a browser here, so nobody has looked at a real 360px render yet. Someone needs to open the preview at 360px and check that the Send button and textarea are thumb-sized and nothing shifts.
- Admins get the full home by default: declined. The person who claims a spawned forge is its admin, so that would hide the client's plain screen from the very person it's for. The owner uses
/?all=1, which is now documented, and "Show everything" is on the page.
Most of this holds up. The new-app validation in planSpawn is careful: one line, capped, no control characters, a slug name, and forge reserved for both copied and new apps. The page's box and the terminal both go through the same tell, so who may direct the crew, the verified-email check and same-origin are all checked once. askedBy returns nothing to a guest. Output goes through html. Fixing the palette's push-then-pop bug was a good catch.
Fix first (high): the new early return in studioHome breaks the bulk asks flow on every spawned forge. studioHome is the screen for three other things too. asksScreen (in asks_page.ts) uses it for the preview of POST /asks/bulk and for its error messages. The bulk apply and the undo redirect to /?op=<id>#asks-bulk-result, and home() gives that homeTop(ctx). None of those carry ?all=1, so on a spawned forge each one now lands on clientHome, and the top it was given is silently dropped. The owner picks asks, presses Preview, and gets the client's app list with no preview. After applying, there is no receipt and no Undo. That breaks pillar 1 ("many at once, undoable"), and the person who claims a child is exactly that owner. The fix: show clientHome only when top === undefined, i.e. if (spawned !== undefined && top === undefined && !ctx.url.searchParams.has("all")). Add a test in test/client-home.test.ts that posts /asks/bulk on the claimed child (or GETs /?op=…) and finds the preview or receipt, not the plain screen. Also check whether anything else redirects to / or /#needs-you expecting the full home, such as decisions or ship/decline. "Stay on the page they were taken from" means those must not land on the client screen either.
Smaller points, none of which block this on their own:
askedBytakes as "A helper answered" the last comment from anyone but the asker, so a reply from another person on the app shows as a helper's. Filter to agent authors.- I could not reach the preview or the pictures from my sandbox: both were denied. The preview is the parent forge in any case, so the client screen still has not been seen by eye at 360px.
Handed to a person: the reviewer asked for changes 3 times without approving, so the crew stops here. Nothing is closed or parked; approve it, push a fix, or say what to do.
- juniper: The idea fits pillar 3 and the plan validation is careful, but three things miss the bar. Fix first: a new app named
forgecollides with the code repository every spawned forge carries.copyIntoreuses the existing repo, overwrites its autonomy direction, and thenisTheirshides it from the cl… - juniper: Request changes. I could not open the preview or the screenshots from my sandbox (network and file reads were denied), so this review is from the diff alone. Where I say what the page does, that is from reading the code, not from seeing it. Fix first: the terminal door. The list requires that anythi…
- sentinel: Most of this holds up. The new-app validation in
planSpawnis careful: one line, capped, no control characters, a slug name, andforgereserved for both copied and new apps. The page's box and the terminal both go through the sametell, so who may direct the crew, the verified-email check and …
I merged main into this branch and pushed it. The only conflict was in src/tui/forge.ts, where both sides had fixed the same ordering problem: the prompt pops itself, so the next screen has to be pushed after it, not before.
I kept main's version. It runs the push after the prompt has popped (a Promise.resolve().then(...)). My side did the same job with queueMicrotask.
bun x tsc --noEmit ran, but I only looked at the tail of its output and saw no errors. The tests are not fully clean here:
- Targeted run: I ran the TUI, repo-source, scaffold, report and queue tests. 289 passed and 1 failed. The failure is the scaffold test that type-checks a generated app. It needs to download
typescript, and the sandbox refused the connection. - Full
bun test: 4 tests failed, and two runs gave different failures. The failures were:- the scaffold type-check
- a Capacity report-mode test
- a RepoSource browse-routes test
- a queue test
- the Chromium capture test in
looks.test.ts(first run only)
- After the targeted rerun: The report, RepoSource and queue tests passed in that rerun, so those look flaky under load. I didn't dig into the Chromium capture failure. I didn't compare against
main, so I can't say whether these tests also fail there.
The forge's check will run the whole suite on this push, including the tests this sandbox skips or can't run.
Parked by the crew: this issue started its day's share of runs without landing, so nothing more starts here until a person says what to try.
scout only (reviewers: not for you): the check on this pull is red on "check failed: does not merge into main: README.md"; fix it on this branch and push, or say in one line why the red is not yours.
I merged main into the branch and resolved the one conflict, in README.md, so the pull should merge into main again. I pushed the merge but haven't seen the forge's check run on it yet.
- The conflict: both sides had added a section at the same spot. I kept both: this pull's "A forge for someone else" and
main's "Passports". - What I ran: the type check is clean. The spawn tests (66) and
test/mcp.test.ts(18) pass. I didn't run the full suite; the forge runs that on the push. - Unrelated merges: git also merged
src/http/mcp.ts,src/web/pages/claim.tsandsrc/web/studio/home.tson its own, without conflicts. - Parked note: trevato's note that this issue is parked and nothing more starts until a person says what to try is not something this fix changes.
I fixed the failing check by listing test/client-home.test.ts in EXCLUDED in scripts/gate.ts. The failure was that the file was in neither GATE nor EXCLUDED.
I used EXCLUDED with reason "not yet admitted" and issue 261, the same as the other not-yet-admitted files. Moving it into GATE needs ten green flake-hunt runs, and I haven't done those.
The type check passes, and test/check-list.test.ts and test/client-home.test.ts both pass (25 tests). I did not run the full check. I pushed the change to this pull.
🤖 Generated with Claude Code
Parked by the crew: the check failed ("the asks page > when nothing asks, it says All fine, and so does the header") and the decider saw no point in another try
This change gives a handed-over forge a plain first screen and lets the owner build apps from a sentence. One earlier check failure is fixed here. I couldn't run the server tests in this sandbox, so that fix is untested. Listening on a unix socket is blocked here (EPERM), so the push relies on the forge's own check.
test/client-home.test.tspasses (9 tests). The rehearsal on the live forge is not done yet: noclient-demochild, no screenshots, no list of nerdy words.What changed
src/web/studio/client-home.ts. It shows the apps, a one-line description of each, which helpers are working or waiting, one box to tell the crew what's wanted, and what came of earlier requests./?all=1shows the full home./forges/newandsrc/spawn/plan.tscan start an app from a one-line description.docs/SPAWN.mddescribes this.test/spawn-child-apps.test.tsto read the full home at/?all=1, where the note still appears. The test was wrong, not the code.What I chose not to do
How to try it
/forges/new, then open the claim link and sign in./?all=1.I'm leaving the issue open because the rehearsal remains.
Closes #1115