carlos / platform Public

Console UX/perf design: builder-check answers, Availability as its own tab

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 0d2e276212c28a3480c93d6b653e7b6be0259295 parent ed1d6a3
1 file changed, +29 −11
  • docs/superpowers/specs/2026-10-25-console-ux-perf-design.md +29 −11

CI passed — run details

diff --git a/docs/superpowers/specs/2026-10-25-console-ux-perf-design.md b/docs/superpowers/specs/2026-10-25-console-ux-perf-design.md
index 1ab13021c..d38454da6 100644
--- a/docs/superpowers/specs/2026-10-25-console-ux-perf-design.md
+++ b/docs/superpowers/specs/2026-10-25-console-ux-perf-design.md
@@ -36,13 +36,17 @@ Paul approved these four mockups (2026-10-25, visual companion
### 1.1 App tab bar
Today: Overview · Running · Deployments · Logs · Activity · Settings,
-with Logs/Errors/Analytics as sub-tabs of Logs and Deployments/Release
+with Logs/Errors/Availability/Analytics as sub-tabs of Logs and Deployments/Release
history as sub-tabs of Deployments.
-New: **Overview · Running · Releases · Logs · Errors · Analytics ·
-Activity · Settings.** One level; no sub-tab bars on any app page.
+New: **Overview · Running · Releases · Logs · Errors · Availability ·
+Analytics · Activity · Settings.** One level; no sub-tab bars on any app
+page. Availability stays its own tab (Paul, 2026-10-25): it was split
+from Errors on purpose (a 500 is the app answering; a 502/503/504 is the
+edge failing to reach it).
-- `lognav` and the Deployments sub-tab bar go.
+- `lognav` and the Deployments sub-tab bar go. Errors, Availability and
+ Analytics keep their URLs.
- This restores what the errors-and-analytics spec
(`2026-09-07-errors-and-analytics-design.md` §49-50) asked for;
df6621e4 demoted them with no recorded reason.
@@ -162,7 +166,13 @@ layout; dark-mode work beyond keeping new CSS on the existing variables.
Same rule as Rastrillo's `perf`:
- A **GET or HEAD to a console screen** must send its first byte within
- **150 ms**.
+ **150 ms**. A screen is any route that renders an HTML page, whether
+ it was registered as `GET /…` or without a method (Architecture,
+ server.go:1473, is). The CLI's JSON API GETs (authcli.go, `/api/…`)
+ are timed and logged in production by the same middleware but are not
+ gated in CI this round. *(My call: Paul's complaint is pages; the API
+ routes are a separate fixture inventory and can follow once the
+ numbers show which are slow.)*
- POST, PUT, DELETE have no budget.
- A stream or download is judged on when it started answering.
- No cold-start budget: the console is a long-running unit, not a
@@ -191,8 +201,9 @@ not imported: the platform takes no rastrillo dependency. *(My call.)*
### 2.3 Enforcing: a CI test
-A test in `internal/console` walks **every GET route registered through
-`registerRoute`** (43 today) and requests each one through the handler
+A test in `internal/console` walks **every screen registered through
+`registerRoute`** (about 45; the test derives the list from the
+registrations, so it can't go stale) and requests each one through the handler
production builds: the same constructor `cmd/console` uses, per
[[production-wired-witnesses]]. Each route gets ten requests; the first
two are discarded; the median must be within 150 ms and no single one
@@ -246,7 +257,11 @@ by account and app:
that app's entries **and re-reads them inside the POST, before it
redirects**. POSTs have no budget, so the cost lands on the action
that caused it, and the GET after the redirect is a warm cache hit.
- The rule: a user never sees their own change missing.
+ The rule: a user never sees their own change missing. If that
+ re-read fails, the POST still succeeds (the write happened), and the
+ entry is left **invalidated, not stale**: the next GET treats it as a
+ miss and loads the part deferred (B). The pre-write value is never
+ served after the user's own write. *(My call.)*
- Refresh happens **only when someone views the app**. No timers, no
per-app or per-box polling ([[s3-requests-cost-money]]). Net S3
requests must go down, not up.
@@ -271,7 +286,7 @@ must still be usable, minus that part, with JavaScript off.
|---|---|---|
| every app tab, `ensureAccountManifest` (server.go ~2668) | GetObject on every view | remember success in process |
| every GET, `SetLastAccount` (~2608) | SQLite write every view | write only when it changed |
-| every app tab | `AccountsFor` ×3, `registry.List` ×2, each opening a new connection | once per request; reuse the registry connection |
+| every app tab | `AccountsFor` ×3, `registry.List` ×2 (the handle is already cached, view.go:532; the queries repeat) | once per request |
| `assembleChannels` (view.go ~687) | List + one Get per channel, sequential | cache (A) |
| `dnsTargets` edge fold (server.go ~948) | refreshes inline once a minute; other requests wait on its mutex | refresh in the background; requests read the last fold |
| Overview, `Versions` (view.go ~915) | lists every artifact ever shipped, then up to 20 manifest reads, no timeout | cache (A), invalidated on publish/promote; bounded context |
@@ -303,8 +318,11 @@ Measuring first, so every later change is judged by numbers:
### 2.6 Checking it worked
-On flagship after the roll, the four pages above, measured the same way
-Paul measured them, are under 150 ms on a second view, and the Console
+The gate is the server's own measure: time from the request reaching
+the console to its first byte, as `Server-Timing: app` reports it. A
+browser's TTFB adds the network round trip on top. On flagship after
+the roll, the four pages above show `app` under 150 ms on a second
+view, a browser's TTFB drops by roughly the same amount as `app` does, and the Console
speed table shows every screen's p95 under 150 ms after a day of use.
The first view of an app after a console restart is allowed to show
placeholders; it must still arrive within 150 ms.