Public: anyone can read this; the crew can change it.
The home page's forge-name field says "free" or "taken" as you type #11273
Typing a name in the home page's "Forge name" field now shows Free, Taken or the reason it is not allowed, on a line under the field. I did not call keepplan on the issue; there is no such tool in this session. The new tests and the existing spawn, door and home tests pass (832 across those files).
stopped parked by the crew deploy 20470c7
4 earlier comments
Typing a name in the home page's "Forge name" field now shows Free, Taken or the reason it is not allowed, on a line under the field. I did not call keep_plan on the issue; there is no such tool in this session.
The new tests and the existing spawn, door and home tests pass (832 across those files). tsc --noEmit, scripts/gate.ts and scripts/design-lint.ts print no findings. The diff reaches too many tests for scripts/fast.ts to name them, so I picked the covering files myself and did not run the full suite. I did not try it against a running preview.
What changed
- The check:
GET /forges/check?name=…answers{state, message}withfree,taken,reservedorinvalid. The rules live insrc/spawn/name_check.ts:- Name shape: the same rule as the plan, now shared through
isForgeNameandNAME_WORDSinsrc/spawn/plan.ts. - Reserved:
reservedNamefromsrc/core/reserved.ts. - Taken: a forge this one has already made.
- Name shape: the same rule as the plan, now shared through
- The door now refuses reserved names. It did not before, so the page would have said "reserved" for a name the door then accepted.
spawnDoorinsrc/spawn/door.tsnow returns 422 onnamefor them, which also changesPOST /forges/newand the API and MCP spawn. - Rate limit: a new
namedoor insrc/http/strangers.ts, 120 per minute per address and 1200 for the whole forge. I did not reuse theplandoor (10 per minute), because typing would exhaust it. - No JavaScript: the form posts to
/forges/newas before, and the status line stays empty. With JavaScript, a short script (src/web/forge_name_client.ts) waits 250 ms after typing, then checks and fills the line. It is sent to signed-out visitors only. - No layout shift: the status line has
min-height: 1.5emreserved from the first paint (.door-start-status, noted indocs/design/areas/front.md). - Docs:
docs/features/start-my-forge.mddescribes the check. - Tests:
test/forge-name-check.test.tscovers free, taken, reserved and invalid answers, the 429, the door's refusal, and the reserved status line.
Left out
- A name already used as a user, org or repo name on this forge is not marked taken. Only forges made here count, since the new forge's account lives in the child, not here.
- The check is not a reservation. Someone else can take the name between the check and the click, and the door still answers then.
- A terminal-screen counterpart; this is the live behaviour of an existing page, not a new page.
The pre-push hook wanted a "Try:" commit line, so the second commit is an empty commit that carries it.
Try it: open / signed out and type admin, then Not Allowed!, then a fresh name. With JavaScript off, submit the form as before.
The forge's check failed on two gate rules, and I fixed both with an empty commit that carries the lines each rule accepts. Locally bun scripts/gate.ts now prints nothing, and the push went through. I did not run tsc or any tests again, since no code changed.
- "both doors": I added a
No door:line saying the endpoint is a read-only JSON helper for the home page's existing start form. That form's terminal door is the guest's "Get your own forge" command. I wrote a waiver rather than a terminal screen because a screen would add nothing. - "pipeline first": I added a
Direction:line saying #11239 is front-door work under #11153. The line states that the owner ranked this ahead of the pipeline items. I took that from the issue and VISION.md, so a person should confirm it before merging.
The pull's description from my last message still applies.
I merged main into the branch and pushed it. The only conflict was the scriptJs line in src/web/studio/home.ts, and I kept both sides there. The home page script now loads the new funnelJs from main, followed by forgeNameJs, which is still added only for signed-out visitors.
- Passing:
bun x tsc --noEmitis clean, as arescripts/gate.tsandscripts/design-lint.ts. The three test files that cover this change pass:forge-name-check,funnelandhome-start-forge(17 tests, 0 failures). - Not run:
scripts/fast.tsfound the diff too broad to name tests: 1934 of 2770 files, over the 5-minute budget. I ran those three files by hand instead of the whole suite, and the forge's check runs the full suite on this push.
I merged main into the branch again and pushed it, but I have not found a cause for the failed check.
The check failure. The log shows the check stopped itself for using 16.7 cores against a limit of 16. It ran 92 shards and no test failed. Nothing in this change touches CPU use, since it only adds a small script and a status line on the home page. The log also shows browser egress refusals to Google and DuckDuckGo from some test in the suite. I could not run the full suite here, so I could not see which one. The push re-runs the check. If it trips the limit again, that is a problem with the check's load and a person should look at it.
The merge. main had changed the Forge name input in src/web/studio/home.ts to keep the typed name and show a refusal message after a refused start. I kept that: the input still carries the kept value and aria-invalid. My live status line (#start-status) stays on the input, and its aria-describedby now lists the refusal message first when there is one: start-refused start-status.
bun x tsc --noEmit, scripts/gate.ts and scripts/design-lint.ts are clean. The tests for this change pass: forge-name-check, funnel and home-start-forge (22 tests, 0 failures).
Typing a name in the home page's "Forge name" field now shows Free, Taken or the reason it is not allowed, on a line under the field. I did not call
keep_planon the issue; there is no such tool in this session.The new tests and the existing spawn, door and home tests pass (832 across those files).
tsc --noEmit,scripts/gate.tsandscripts/design-lint.tsprint no findings. The diff reaches too many tests forscripts/fast.tsto name them, so I picked the covering files myself and did not run the full suite. I did not try it against a running preview.What changed
GET /forges/check?name=…answers{state, message}withfree,taken,reservedorinvalid. The rules live insrc/spawn/name_check.ts:isForgeNameandNAME_WORDSinsrc/spawn/plan.ts.reservedNamefromsrc/core/reserved.ts.spawnDoorinsrc/spawn/door.tsnow returns 422 onnamefor them, which also changesPOST /forges/newand the API and MCP spawn.namedoor insrc/http/strangers.ts, 120 per minute per address and 1200 for the whole forge. I did not reuse theplandoor (10 per minute), because typing would exhaust it./forges/newas before, and the status line stays empty. With JavaScript, a short script (src/web/forge_name_client.ts) waits 250 ms after typing, then checks and fills the line. It is sent to signed-out visitors only.min-height: 1.5emreserved from the first paint (.door-start-status, noted indocs/design/areas/front.md).docs/features/start-my-forge.mddescribes the check.test/forge-name-check.test.tscovers free, taken, reserved and invalid answers, the 429, the door's refusal, and the reserved status line.Left out
The pre-push hook wanted a "Try:" commit line, so the second commit is an empty commit that carries it.
Try it: open
/signed out and typeadmin, thenNot Allowed!, then a fresh name. With JavaScript off, submit the form as before.Closes #11239