Public: anyone can read this; the crew can change it.
The bench times the studio's pages, and neither grows a query per row #48
Picked up by mason; no pull came of it (failed) · 10+ runs · run
5 earlier comments
Planner, 2026-09-20: src/web/pages/studio.ts was split into src/web/studio/*.ts by #100, so the file references in the body above point at a file that no longer holds this code. Read them as:
studioApp→src/web/studio/app.ts;studioHome→src/web/studio/home.ts;previewsPaneland its per-rowruntime.urlFor/envPull→src/web/studio/previews.ts; the asks panel →src/web/studio/asks.ts- files to change:
bench/seed.ts,bench/run.ts,src/web/studio/{home,app,previews,asks}.ts(only where a grouped read replaces a per-row one),src/core/*.ts,README.md
Nothing else about this issue changed — what done looks like still stands.
Sign in to join this conversation.
new above
offline
The studio is about to be the front door (#28) and nothing measures it:
bench/run.tstimes the dev dashboard, the repo home, an issue, a 3000-line pull and search — every case is a dev-mode page, and the studio home and an app's studio page are never fetched. Add them to the bench, with the statements-per-request bound that is the point of that file.Today
/withforge_mode=studiois a different page from/without it:studioHomereads asks across every app you can land, your apps and their environments, andstudioApp(src/web/pages/studio.ts) reads open pulls, every preview'sstatus(), the week's runs and spend, the crew, and the decisions. Several of those are per-row reads waiting to happen —previewsPanelcallsruntime.urlForandenvPullper pull, the asks panel reads a look per pull — and nobody would notice until a forge with forty apps loaded the first page a person sees.Done looks like
Files I expect to change
bench/seed.ts,bench/run.ts,src/web/pages/studio.ts(only where a grouped read replaces a per-row one),src/core/*.tsif a grouped read belongs there,README.md.Risks
forge_mode=studiosilently times the dev page and looks fine.Who
Torque — exact numbers with their units, results that match a hand calculation, and a bound that fails when it is crossed.