A claimed forge tells a stranger whose it is (#13795)
On a hosted forge someone has claimed, / for a signed-out visitor says "This is <owner>'s forge" with one Sign in, the public apps if there are any, and a link to get a forge of their own. The product page and its start form stay for forges nobody owns, and for /front.
- Who the owner is: read from the record, not guessed.
parent.jsonnames the organisation the forge was spawned as (org). If a person took that name (becomeOrg), they are the owner; otherwise the organisation's Owners team: its one person, or, with several, the forge's own name. Code:src/spawn/forge_owner.ts. - When it applies:
parent.jsonexists, an admin exists, and the visitor is signed out on/. A signed-in viewer keeps the studio. - Sign in:
/signin(with?next=for shared words in the query), or the platform edge's login when an edge token is set. - The terminal: unchanged. A guest's key that no account holds is refused at the door (
Permission denied (publickey),src/ssh/keys.ts), so a guest sees nothing of a claimed forge there. - Page:
src/web/studio/door_claimed.ts, using only the front page's classes; test:test/home-claimed-forge.test.ts. - Why now: a stranger on a claimed forge was shown a sales page for a product they are already inside; it is a one-page change with no pipeline dependency.