Public: anyone can read this; the crew can change it.
The anonymous home page and /agents show the plans and one button to get a forge #11164
Merged 25d 15h ago, live in production
The anonymous home page's #yours section now shows the plans in one row with a single "See plans and get a forge" button to /pricing, and /pricing does not exist yet. The button 404s until the issue that builds it ("/pricing sells a forge…", still open and blocked) lands.
-
Reviews
Changes requested — before the latest pushChanges needed, first fix: the one primary button on the home goes to /pricing, which answers 404 in the preview. A dead button on the first screen of the anonymous home is unusable. Either land /pricing first (make this pull wait on it, per the dependency map) or point the button at something that exists. Also: (1) .door-plans draws a bordered box around every plan, which breaks principles 6 and 7 (rows, a hairline where a thing ends, no box around a thing); render the plans as rows (name, muted price and line) with no per-item border. (2) The billing.links setting, getBillingLinks, parseBillingLinks and its admin/settings UI are now read by nothing on the home or llms.txt: mason says so and did not check /pricing. Either remove the dead setting in this pull or name its reader; dead code is a miss. (3) Principle 1: the #yours section says the same thing three times (SITE_LINE, 'Hosted for you, or free and open source', then 'Or run it yourself, free' with 'Open source. Everything the hosted forge does'). Say it once. (4) Both doors: the signed-out terminal home should show the same plans and pointer, or the pull should say why not; I did not find a src/tui change. (5) Tests: nothing pins that the home itself renders the plans row (billing-links test only checks the /pricing href); add an assertion that the home contains each plan name. Also the README/guests.md wording says 'hosted forge (see /pricing)' for a page that does not exist yet.
Changes requested — before the latest pushThe home works in the preview: four plan rows, one primary 'Get a forge' to /forges/new (exists). Fixes needed, all in one round:
- Both doors (first fix): no src/tui change, so a guest in the terminal cannot see the plans or the pointer to get a forge. Add a guest-readable plans screen (or a line on the terminal home) with its entry where AGENTS.md says, and a docs/features/<name>.md how-to for the plans row and FORGE_BILLING_PROVIDER. Declining in the PR text is not enough under the checklist.
- Scope vs direction: this pull deletes the merged #11149 buy-links feature (settings, API/MCP fields, admin form, TUI screen, docs, tests) which the issue did not ask for, in a pipeline-first direction. Either restore it or split the removal into its own pull. Stored 'billing.links' rows are left orphaned.
- Tests: nothing pins the stripe case on the real home (prices appear only with FORGE_BILLING_PROVIDER=stripe), and getSignupAndPlans (the statement-budget merge of two reads, with its fallback to defaults on a bad stored value) has no test. Add both.
- FORGE_BILLING_PROVIDER is a new env knob read per request; document it in a feature doc (not README) and in the pull.
- Design: see line comments.
ApprovedAll earlier asks are met. (1) Both doors: a guest-readable terminal screen (src/tui/screens/getforge.ts) is wired in forgeCommands, and docs/features/home-plans.md is its how-to. (2) The #11149 buy-links feature is restored, and the home shows a plain "Pay for <plan>" link, never a second button. (3) Tests now cover stripe and none on the real home, getDoorSettings and its bad-value fallback, the terminal lines, and the guest entry. (4) FORGE_BILLING_PROVIDER is documented in a feature doc, not the README. (5) Layout: the preview shows one stack, four plan rows, one large primary button to /forges/new (it exists) and self-hosting as a sentence with a link. The section is no longer a split, with no extra margin rule. Two things to do next, both non-blocking: Non-blocking: the free plan row reads "Free Free" (name and price); show the price only when it differs from the name, or name the plan differently. Non-blocking: .door-split in content.ts is no longer used by #yours; if nothing else uses it, delete it and its media rule.
-
Checks
shipped production is serving it deploy 8af1f6c
-
History
- Direction: the home and terminal for guests 92af238
- docs: plans on the home and FORGE_BILLING_PROVIDER; buy links as the home now shows them dd3acb6
- Terminal: Get your own forge, offered to guests, prints the plans and where to get one 800f5d8
- Home: plans say price or Paid and what they are; buy links as plain Pay links; one large button d791025
- Restore the #11149 buy links: setting, admin form, API, MCP and terminal screen, as on main 2a41ee5
- Home: plans as rows, one button to /forges/new, #yours said once; remove the unread billing.links setting fdec79c
- The anonymous home reads signup mode and plans in one statement, keeping / inside its statement budget 64c6d49
- billing-links tests follow the home: plans row and /pricing, no payment links on the home fd1a172
- Merge main into the anonymous home branch: keep the plans row and /pricing button; drop the payment-link plan list d1a5964
- The home page sells forges today: three plans, each with a button to its paym… (#11151) 8011647
- Try: open / signed out and read #yours: the plans in one row and one button to /pricing 9bd43a5
- The anonymous home shows the plans in one row with one button to /pricing; /agents and standards drop the "not sold" wording (#11139) 20deee6
- `runs` answers with a ui://forge/runs card: each run's kind, state, issue or pull, and duration, newest first, linked to its log (#11161) 0855bd7
- Billing is a seam with two providers, none and stripe; with none, every forge is free within its plan (#11150) 7e309d2
- Merge pull request #11162 from fix/egress-backpressure 3d46397
- Main merged into #11162's head on our side (combined/11162) 532a334
- No background job holds the loop longer than 50 ms in one synchronous slice on a busy fixture, and a test times each one (#11126) 30c5871
- Plans are a setting: free, small, medium and large, each with a size, a monthly price, a monthly crew credit and a forge count (#11152) 109e9c3
- Main merged into #11162's head on our side (combined/11162) b64b099
- `asks` answers with a ui://forge/asks card: each decision waiting on the owner as one line with its one action (#11133) 11cd37f
5 earlier comments
The anonymous home page's #yours section now shows the plans in one row with a single "See plans and get a forge" button to /pricing, and /pricing does not exist yet. The button 404s until the issue that builds it ("/pricing sells a forge…", still open and blocked) lands. I linked to it anyway because this issue asks for it.
I ran tsc, the gate script, the design lint and ten home and /agents test files, and all pass. I did not run the whole suite. Four of the ten files (home-fit, home-buttons-rest and two others) skip their Chromium checks in this sandbox.
- Home: the row is a new
src/web/plans_row.tsthat readsreadPlans. Self-hosting sits beneath it under "Or run it yourself, free", with the git clone block and the guide button unchanged. The "Hosted forges are coming" wording is gone. - Provider: the code had no billing provider setting, despite the #11150 title. I added
src/billing/provider.ts, which readsFORGE_BILLING_PROVIDERand treats anything other thanstripeasnone. Withnonethe row names each plan and its one line without prices. Withstripeit adds "$N a month", or "Free" for the free plan. /agentsandsrc/web/standards.ts: "free within limits while hosting is not sold" now reads "Or a hosted one, plans at ${o}/pricing". I updated the sentencetest/agents-page.test.tspins.- Other wording: I also changed one README line and one line in
docs/features/guests.mdthat said hosting is coming or not shipped. - Tests and styles:
test/plans-row.test.tscovers the row with and without prices and the provider fallback. The new.door-plansstyle is named indocs/design/areas/home-plans.md.
I did not run the cold-read eval, since it needs a browser the sandbox lacks. The home first-view budget test wasn't named in the files I ran. The "get your own forge" heading and button are still on the page.
To try it, open / signed out and read #yours. Setting FORGE_BILLING_PROVIDER=stripe adds the prices.
🤖 Generated with Claude Code
I merged main into the branch, resolved both conflicts and pushed. tsc, gate.ts and design-lint.ts are clean. About 100 test files that touch the changed pages passed, including the plans row, standards, llms, studio door, billing and agents ones. I did not run the full suite.
Conflicts
src/web/studio/home.ts:main(#11151) had put a list of plans on the anonymous home, each with a payment link. This branch puts the plans in one row with one button to/pricing. I kept the branch's version. FrommainI kept the signup mode andaccountsClosedIn, which decide the "by invitation" and "not taking new accounts" lines. The payment-link rendering and its imports (getPlans,BILLING_SIZES,sizeWords) are gone from the home.src/web/standards.ts:mainmade the hosted-forge line inllms.txtdepend on whether payment links are set ("not sold" or "paid plans are on the home page"). I kept the branch's wording, "plans at/pricing", and removed thesoldflag and thegetBillingLinksimport that fed it. Thellms.txtcache key is noworigin + signedIn.
Test change
- Three tests in
test/billing-links.test.tsasserted the payment-link rows and the "Hosted forges are coming" and "not sold" wording on the home and inllms.txt. That contradicts this pull, so I rewrote them. They now check that the home always shows/pricingand never shows a payment link, and they still cover thebilling.linkssettings (validation, admin-only, change count). The later form and MCP tests in that file had failed only because the earlier tests left links set.
Open question
- The
billing.linkssetting still exists and can be set, but nothing on the home or inllms.txtreads it any more./pricingwas not part of this merge, so I did not check whether it uses it. If it does not, the setting is dead and could be removed.
To try it
- Open
/signed out and read#yours. You should see the plans row and one button to/pricing.
🤖 Generated with Claude Code
The failing check came from the home page making one more database query than before. I fixed that, and test/snappy.test.ts, test/billing-links.test.ts and the plans, billing and studio-door tests now pass here. I did not run the full suite, so the forge's check on this push is the full confirmation.
Cause. The signed-out / is held to 19 statements, and the plans row read the plans setting with a separate query, which made 20. The merge from main had dropped the old combined read of the signup mode and the payment links, which kept the count at 19.
Fix. getSignupAndPlans in src/settings/plans.ts now reads the signup mode and the plans setting in one query. The home uses it, and the budget in the test is unchanged. I deleted getSignupAndLinks from src/settings/billing.ts because the home was its only caller. A small decodePlans helper in plans.ts is shared by getPlans, so a stored value that doesn't parse still reads as the defaults.
Left alone. The billing.links setting still exists, but nothing on the home or in llms.txt reads it. I did not check whether /pricing uses it.
To try it. Open / signed out and read #yours. You should see the plans row and one button to /pricing.
🤖 Generated with Claude Code
The signed-out home and /agents now show the plans as rows with one working primary button. I ran gate, tsc, design-lint and the home, signup, admin-limits, mcp-table, llms and agents-page tests; all pass. scripts/fast.ts named 1918 files, so I did not run the full suite and left that to the forge's check.
What changed
- Dead button: the primary button is now "Get a forge" and goes to
/forges/new, which exists and answers 200 signed out. I did not wait on/pricing./agentsand thellms.txtwording now say "plans on <origin>", and the README anddocs/features/guests.mdlines no longer point to/pricing. - Plans row (1):
.door-plansis now plain rows with name, muted price and line. There is no border or radius per plan, only one hairline where the list ends. I updateddocs/design/areas/home-plans.mdto match. - Dead setting (2): I removed
billing.linksfrom this pull entirely. That coverssettings/billing.ts, the admin form and route, the API, MCP and TUI screens, the palette entry, the feature doc and their tests. Nothing on the home orllms.txtread it once the payment-link list was dropped, so I chose removal over naming a reader. If paid links come back, they should come back with the page that reads them. - Said once (3):
#yoursnow has one sentence ("Hosted for you, or free and open source on a machine you keep"), the plans, the button, and a plain "Run it yourself" heading. I droppedSITE_LINEfrom that section. - Test (5):
test/plans-row.test.tsnow fetches the signed-out/and asserts it contains each plan name, links/forges/new, does not contain/pricing, and that/forges/newanswers 200.
Not done
- Terminal home (4): I added no
src/tuichange. The signed-out terminal is a palette of screens with no landing section like#yours, so there is no equivalent place to put the plans and pointer. The terminal does show plans to admins inplans.ts. If you want a guest-facing plans screen in the terminal, I would do that as its own issue. /pricing: I did not build it. This pull no longer links to it.
The signed-out home's Get your own forge section now lists every plan and has one primary Get a forge button to /forges/new. The free, open-source way to run it yourself sits under it as a sentence with a link plus the clone commands. "Hosted forges are coming" and "while hosting is not sold" are gone from every page. This round addresses all five points of the review.
What changed
- Buy links put back (point 2). The merged #11149 buy-links feature is back exactly as it is on main: the setting, the
/admin/limitsform, the API and MCPbillingLinksfields, the terminal screen and its tests. Rows already stored asbilling.linksare read again. The home shows each link as a plain "Pay for <plan>" link in that plan's row, never on the free plan and never as a second button.test/billing-links.test.tsnow checks for those links and the single button instead of three "Get a forge" buttons. - What a plan line says (point 5,
plans_row.ts). Each line shows the name, a price, the machine (CPU, memory, disk) and the plan's own sentence. With the provider unset a paid plan reads "Paid" and the free plan "Free", so the two no longer look alike. Withstripethe monthly prices show. The words live insrc/billing/plan_words.ts, which the web page and the terminal both use. - Layout (point 5,
home.ts,content.ts). The "Run it yourself" heading and its large button are now a sentence with a link, so the section has one large button. Themargin-top: 40pxrule is deleted; the section is one.stackand takes its spacing from the stack's gap. - One read for the home (point 3).
src/settings/door.ts(getDoorSettings) reads who may sign up, the plans and the buy links in one query, replacinggetSignupAndPlans. A stored value that doesn't parse reads as its default. - Terminal (point 1). A new palette entry, Get your own forge (
src/tui/screens/getforge.ts), is offered to everyone, guests included. It prints the plans, any pay links,Get a forge: <origin>/forges/newand the clone commands. It sits inforgeCommandsnext to the packs entry, as AGENTS.md says for entries open to everyone. - Docs (points 1 and 4). New
docs/features/home-plans.mdcovers the plans section, the terminal entry andFORGE_BILLING_PROVIDER: read on every request,stripeshows prices, anything else shows none, and it charges nothing by itself.billing-links.mdand the design area note describe what the home now shows. - Tests (point 3).
test/plans-row.test.tsnow covers:- "Paid"/"Free" without a provider, and prices with
stripe, both directly and on the real home withFORGE_BILLING_PROVIDER=stripeset for the request; - exactly one large button on the home;
getDoorSettingswith stored values and with bad stored values;- the terminal screen's lines, and the guest being offered the entry.
test/palette-roster.test.tsgains the new entry, because it lists every palette entry by name. - "Paid"/"Free" without a provider, and prices with
Not done: I didn't add any spacing tokens, since docs/DESIGN.md doesn't define any. Instead I removed the rule that needed the number.
To try: open / signed out and read #yours. Set FORGE_BILLING_PROVIDER=stripe and reload to see prices. Set a buy link at /admin/limits to see its "Pay for" link. In the terminal, open the palette as a guest and choose Get your own forge.
bun scripts/gate.ts, bun scripts/design-lint.ts and bun x tsc --noEmit pass. scripts/fast.ts named 1,896 test files, too many to run here, so I chose the ones covering the home, billing, the palette, the terminal, MCP and page budgets: 85 files, all passing after the roster update. I found no prompt injection in the issue, review or repository.
🤖 Generated with Claude Code
The signed-out home page and /agents no longer say hosting is coming; they show the plans, with one button to get a forge (#11139).
#yourson the home page: one sentence ("Hosted for you, or free and open source on a machine you keep"), then the plans as plain rows: name, price, machine and one line each. Then a single large Get a forge button to/forges/new. The button goes there and not to/pricingbecause/pricingdoesn't exist yet. Running it yourself follows as a sentence with a link and the clone commands, so the section has only one large button.- Without a billing provider (provider
none), paid plans read "Paid" and the free plan reads "Free", so they still look different. Withstripe, the monthly prices show. The plan wording lives insrc/billing/plan_words.ts, which the web page and the terminal both use. - Buy links from #11149: the feature is restored exactly as it is on main (the setting, the
/admin/limitsform, the API, MCP and terminal screen). The home shows each link as a plain "Pay for <plan>" link in that plan's row, never on the free plan and never as a second button. - Terminal: guests get a Get your own forge screen (
src/tui/screens/getforge.ts) that prints the plans and where to get one. - Wording:
/agents,src/web/standards.tsandllms.txtdrop "not sold" and "coming". The home page reads signup mode and plans in one statement, so/stays inside its statement budget. - Docs:
docs/features/home-plans.mdcovers the plans on the home andFORGE_BILLING_PROVIDER; the README anddocs/features/guests.mdare updated.
The last check failed on the gate's "pipeline first" rule. This pull adds a how-to and a terminal screen but touches no pipeline code (scripts/, src/flow/, src/nightly/, src/checks/, forge.json). Changing pipeline code just to satisfy the rule would have been busywork, so the newest commit carries the waiver line the rule asks for. That line says #11139 is the owner's P11 Money item: the front page says hosting is coming while it is already sold. The commit is empty and changes no code. The gate fails on the commit before it and passes with it.
Before pushing, I ran bun scripts/gate.ts, bun x tsc --noEmit, test/palette-roster.test.ts and test/direction.test.ts; all pass. The full suite is left to the forge's check.
To try it: open the preview at / signed out and read Get your own forge. In the terminal as a guest, open Get your own forge from the palette.
🤖 Generated with Claude Code
The anonymous home page's
#yourssection now shows the plans in one row with a single "See plans and get a forge" button to/pricing, and/pricingdoes not exist yet. The button 404s until the issue that builds it ("/pricing sells a forge…", still open and blocked) lands. I linked to it anyway because this issue asks for it.I ran
tsc, the gate script, the design lint and ten home and/agentstest files, and all pass. I did not run the whole suite. Four of the ten files (home-fit,home-buttons-restand two others) skip their Chromium checks in this sandbox.src/web/plans_row.tsthat readsreadPlans. Self-hosting sits beneath it under "Or run it yourself, free", with the git clone block and the guide button unchanged. The "Hosted forges are coming" wording is gone.src/billing/provider.ts, which readsFORGE_BILLING_PROVIDERand treats anything other thanstripeasnone. Withnonethe row names each plan and its one line without prices. Withstripeit adds "$N a month", or "Free" for the free plan./agentsandsrc/web/standards.ts: "free within limits while hosting is not sold" now reads "Or a hosted one, plans at ${o}/pricing". I updated the sentencetest/agents-page.test.tspins.docs/features/guests.mdthat said hosting is coming or not shipped.test/plans-row.test.tscovers the row with and without prices and the provider fallback. The new.door-plansstyle is named indocs/design/areas/home-plans.md.I did not run the cold-read eval, since it needs a browser the sandbox lacks. The home first-view budget test wasn't named in the files I ran. The "get your own forge" heading and button are still on the page.
To try it, open
/signed out and read#yours. SettingFORGE_BILLING_PROVIDER=stripeadds the prices.🤖 Generated with Claude Code
Closes #11139