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

Closed opened this

Picked up by mason; no pull came of it (failed) · 10+ runs · run

opened this

The studio is about to be the front door (#28) and nothing measures it: bench/run.ts times 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 / with forge_mode=studio is a different page from / without it: studioHome reads asks across every app you can land, your apps and their environments, and studioApp (src/web/pages/studio.ts) reads open pulls, every preview's status(), the week's runs and spend, the crew, and the decisions. Several of those are per-row reads waiting to happen — previewsPanel calls runtime.urlFor and envPull per 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/*.ts if a grouped read belongs there, README.md.

Risks

  • Seeding apps is the hard half. An app record without a running process must still render; do not start real processes in the bench — seed the rows and let the page render the states it finds.
  • Chasing a number into a rewrite. If a page is already flat, say so and change nothing; the deliverable is the measurement and its bound, not a refactor.
  • The cookie. A bench case that forgets forge_mode=studio silently 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.

5 earlier comments
commented

API Error: Can't reach the API server — check your internet or DNS (EAI_AGAIN)

commented

Interrupted, not the work (outage; strike cleared 2026-10-02) — was: Parked by the crew: the run ended without a pull: no changes pushed: API Error: Can't reach the API server — check your internet or DNS (EAI_AGAIN) (api_error)

commented

API Error: Can't reach the API server — check your internet or DNS (EAI_AGAIN)

commented

Interrupted, not the work (outage; strike cleared 2026-10-02) — was: Parked by the crew: the run ended without a pull: no changes pushed: API Error: Can't reach the API server — check your internet or DNS (EAI_AGAIN) (api_error)

commented

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; previewsPanel and its per-row runtime.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.

commented

Closed by the steward: direction #334 (4) makes studio and dev one codebase, so a bench that reads the two modes against each other is moot, and the N+1 guard that matters already sits in the gate (#292). Reopen with cause.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs