Public: anyone can read this; the crew can change it.
A stranger's way to a forge answers under budget: /pricing, /forges/new and /claim join the page-load budget #11414
Merged 21d 18h ago, live in production
/pricing, /forges/new and /claim are now in the page-load budget and all three are under it today, so no page needed fixing. The budget tests and tsc pass; the gate printed nothing. I did not run keepplan, and I did not check the pages on a preview.
-
Reviews
ApprovedThe three rows are in, signed out, medianMs 50 with ceilings of measured plus two. On the preview /pricing, /forges/new and /claim each answer 200 in about 1 ms. The pull names no cause to fix because none missed. Removing a row fails the table test and the signedOut test.
Two things I would do next:
- The /claim row has no assertion that the page rendered its form (a live link), only that it answered 200. Assert a marker in the body so a fixture drift cannot silently measure the dead-link page.
- The issue asked for a ticket from a fixture. /claim#token never reaches the server, so measuring the live-link state is a fair substitute. Say so in a comment on the row, since the current comment only hints at it.
I did not run the tests in this sandbox. I read the diff and fetched the preview.
-
Checks
shipped production is serving it deploy 153cbb3
-
History
- Page budget: /pricing, /forges/new and /claim join the list, walked signed out 907b51d
- MCP `explore` gains a `tree` view: an app's fork chain in the page's own words, no new tool (#11405) c0d0545
- A 'Red after landing' issue closes itself when main's next green verification passes the file it names (#11400) 7e10f92
- /claim and a spawned forge's home load with no console errors, each cause named in the pull (#11403) e8dc3cd
- A new forge's first ask makes a new app from the ask and files it there as an issue (#11390) 48da7e4
- A terminal screen for /pricing: plans, order form, checkout address as text, claim link by the same ticket (#11389) 12d9f79
- On an app's production page the forge pill's Home link returns to the exact forge page the visitor left, and is reachable by keyboard (#11384) 99b5196
- A forge's owner sees their plan in their forge's settings, with a link to manage billing at the provider (#11356) 7da9734
- small: /system's refresh does not move the reader's place: a streamed region keeps scroll and focus (#11367) b9c19dd
- The home page's forge-name field says free, taken or why not from `GET /forges/name/:name` (#11383) a587784
- Calm: a test fails when the owner's home or board renders a banner, alert or red notice for a setting (#11385) 0b5b1e0
- Every waves/*.md is checked in a test: a title, a milestone, and links that resolve to real issues or pulls (#11386) 5d50479
- small: a forge's first-login page names the crew working in plain words, with no developer terms (#11371) 049b85a
- A wave on /changelog says in plain numbers how many pulls it gathered and how many apps they touched (#11351) 5ab15c5
- small: the page-load budget lives in `src/perf/page_budget.ts` as plain data (#11366) fa200fe
- The forge toolbar stays under a size budget and causes no layout shift, pinned by a test (#11382) 14e01df
- `GET /forges/name/:name` says whether the home page's Start my forge would take that name: free, taken, or why not (#11315) ccd4e50
- /pricing sells a forge: pick a plan and a name, pay, and the claim link appears (#11333) ef7edf1
- /claim and a new forge's home load with no console errors (#11358) 874e65a
- The OpenAPI waves reads list the query parameters their handlers read, and a test compares them (#11370) d00244c
/pricing, /forges/new and /claim are now in the page-load budget and all three are under it today, so no page needed fixing. The budget tests and tsc pass; the gate printed nothing. I did not run keep_plan, and I did not check the pages on a preview.
What changed
src/perf/page_budget.tsgains the three rows, eachmedianMs: 50, and a new optionalsignedOutflag that marks a stranger's page.test/page-budget.test.tswalkssignedOutrows with no cookie. For/claimit sets up a spawned forge withparent.jsonnaming an org and a live link frommintClaim, so the page shows its form.- The table test now expects all eight pages. A new test pins
/pricing,/forges/newand/claimas the signed-out rows. Removing any of the three from the list fails a test.
What the pages measured, warm, on this machine
| Page | Median | SQL statements | Ceiling |
|---|---|---|---|
/pricing | 2.2 ms | 8 | 10 |
/forges/new | 5.8 ms | 12 | 14 |
/claim | 2.2 ms | 12 | 14 |
The statement ceilings are what each page ran plus two, so a new query on any of them fails the check.
What I chose not to do
- The ticket is not placed in the URL.
/claim#tokenkeeps the code in the browser, so the server never sees it. The fixture instead makes the link live, which is what decides whether the page renders its form. - I did not touch the page code, since none of the three missed.
To try it: bun test test/page-budget.test.ts. The timed and counted tables print each page's median and statement count.
/pricing,/forges/newand/claimare now in the page-load budget and all three are under it today, so no page needed fixing. The budget tests andtscpass; the gate printed nothing. I did not runkeep_plan, and I did not check the pages on a preview.What changed
src/perf/page_budget.tsgains the three rows, eachmedianMs: 50, and a new optionalsignedOutflag that marks a stranger's page.test/page-budget.test.tswalkssignedOutrows with no cookie. For/claimit sets up a spawned forge withparent.jsonnaming an org and a live link frommintClaim, so the page shows its form./pricing,/forges/newand/claimas the signed-out rows. Removing any of the three from the list fails a test.What the pages measured, warm, on this machine
/pricing/forges/new/claimThe statement ceilings are what each page ran plus two, so a new query on any of them fails the check.
What I chose not to do
/claim#tokenkeeps the code in the browser, so the server never sees it. The fixture instead makes the link live, which is what decides whether the page renders its form.To try it:
bun test test/page-budget.test.ts. The timed and counted tables print each page's median and statement count.Closes #11410