carlos / platform Public

census: console-perf-quick-wins decisions and approvals

Paul's ruling (2026-10-26, #280): handleAccountSettings and assembleViews
accepted as new units, Assemble retired as quiet; four approvals and the
internal/console envelope re-pin written by census-propose.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 16e026f93507fa3771786241536572d558070cce parent d0046f9
4 files changed, +47 −0
  • docs/superpowers/notes/census-proposal-console-perf-quick-wins.md +25 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +2 −0
  • internal/provision/testdata/plan14-root-reads-console-perf-quick-wins-decisions.tsv +9 −0
  • internal/provision/testdata/plan14-root-reads-console-perf-quick-wins.tsv +11 −0

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/notes/census-proposal-console-perf-quick-wins.md b/docs/superpowers/notes/census-proposal-console-perf-quick-wins.md
new file mode 100644
index 000000000..1870083f3
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-console-perf-quick-wins.md
@@ -0,0 +1,25 @@
+# Census approval: console-perf-quick-wins
+
+Ruling `census-ruling-console-perf-quick-wins`. Every change below keeps the disposition it already has, so it needs an approval, not a decision.
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/console/apiinstances.go` `Server.loadRolloutJoin` | body | unchanged (6) | same reads, fewer calls: the platform and each fleet's box reports now come through Server.loadBoxes (read once per request) instead of a direct status.LoadBoxesComplete; the same six read sites, no read added |
+| `internal/console/apisystemupdate.go` `Server.systemBoxes` | body | unchanged (4) | same reads, fewer calls: the platform and each fleet's box reports come through Server.loadBoxes (read once per request) instead of status.LoadBoxes; the same four read sites, no read added |
+| `internal/console/server.go` `Server.handleAppLogs` | body | unchanged (1) | same reads, fewer calls: the log page's host list takes the instance records from pageRecords (the page's own record read, held for the request) instead of a second listRecords; one read site, unchanged, no read added |
+| `internal/console/apisystemgeoip.go` `Server.geoipInventory` | sites | -registry:Name | same reads, fewer calls: add takes the fleet name and builds the fleets/<name>/ prefix itself, reading through Server.loadBoxes; one fewer registry:Name site (the name is passed, not read twice), no read added |
+
+Envelopes re-pinned: `internal/console`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Escalate if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. An escalation goes to the census owner as a decision.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/console/apiinstances.go` `Server.loadRolloutJoin`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route
+- `internal/console/apisystemupdate.go` `Server.systemBoxes`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-instance-egress-sizes-328-329;basis=#329 plan 3 Task 9: the fleet lookup (openPassRegistry on the configured registry, then ListFleets) moves unchanged into the new unit Server.systemFleets, which systemBoxes now calls; no registry and no registry file still mean no fleets, any other error still goes to systemFleetsUnreadable. The same three registry:Name sites and one whole:Fleet site, offsets moved; no read added.
+- `internal/console/server.go` `Server.handleAppLogs`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the console (cmd/console serve under console.service, user carlos-console): the log page's host listing is the listRecords wrapper, judged under a unit admitted on and unjudged before; read sites unchanged, offsets moved;rev3=census-ruling-console-ux-nav;basis=the log copy struct gains a Level label ("Level"); copy only; no root read added, read sites unchanged
+- `internal/console/apisystemgeoip.go` `Server.geoipInventory`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route
+
+Seal: `b6585647352fa8168d07da8b5b980caedaa082abdbd379fd2840771af5bc7407` → `b536d7a64eabfca21ecc6442cab0a66392f2e6f6078239c032f85808cc9d67f0`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-console-perf-quick-wins.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index f814feea2..d49b0b08e 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -57,3 +57,5 @@ plan14-root-reads-instance-egress-sizes-328-329-new.tsv aa6c6832fe50f05ab771ebe2
plan14-root-reads-instance-egress-sizes-328-329.tsv c1ab16d1d7eaccb3928a4fd5f74f8fc931221cbd67d5d751a63354984c7b249f
plan14-root-reads-region-labels-decisions.tsv b265c2ae74edbaca766d33e085d31a8e7c6f86883d12d0ed4472bd99a7c3278d
plan14-root-reads-region-labels.tsv d1e00cfb29d88b7a8e4998b641164e539067a6e1e9e4f52524255343c0c5f9f7
+plan14-root-reads-console-perf-quick-wins-decisions.tsv b6585647352fa8168d07da8b5b980caedaa082abdbd379fd2840771af5bc7407
+plan14-root-reads-console-perf-quick-wins.tsv b536d7a64eabfca21ecc6442cab0a66392f2e6f6078239c032f85808cc9d67f0
diff --git a/internal/provision/testdata/plan14-root-reads-console-perf-quick-wins-decisions.tsv b/internal/provision/testdata/plan14-root-reads-console-perf-quick-wins-decisions.tsv
new file mode 100644
index 000000000..a9f03fc34
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-console-perf-quick-wins-decisions.tsv
@@ -0,0 +1,9 @@
+# Census overlay console-perf-quick-wins-decisions, written BY HAND (AGENTS.md, The census: census-propose refuses decisions). The decisions of census-ruling-console-perf-quick-wins (branch console-perf-quick-wins, plan docs/superpowers/plans/2026-10-26-console-perf-quick-wins.md: the console's per-app frame cache and account settings read): two new units and one quiet unit. Loaded from the chain manifest before plan14-root-reads-console-perf-quick-wins.tsv, which census-propose wrote for the approvals. Card docs/superpowers/notes/census-proposal-console-perf-quick-wins.md.
+# RULED: Paul, as census owner, 2026-10-26: accept all three as decision rows (#280). (1) Server.handleAccountSettings reads the account telemetry object telemetry.AccountKey(sqid) directly instead of through telemetry.Resolve(sqid, ""), which read an empty-app key nothing writes; same object, no root-owned state. (2) assembleViews is Assemble's existing registry listing moved unchanged so the per-app frame cache can feed it. (3) Assemble is now a thin wrapper over assembleViews and reads nothing itself: its reads moved there.
+# No root read is added. Two frozen declarations are added and Assemble's row is retired (still declared, reads nothing), so the seal moves.
+@legacy f94b99cf2294fc55335b979a0550a44a43e5bd1a907d7fe15eab80a21836fa6c internal/console/server.go Server.handleAccountSettings legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-perf-quick-wins;identity=the console (cmd/console serve under console.service, user carlos-console), on GET /a/{sqid}/settings;basis=new to the census (console perf quick wins Task 5): reads the account's telemetry object, telemetry.AccountKey(sqid), directly through telemetry.Read, instead of telemetry.Resolve(sqid, ""), whose empty app name read an apps/<sqid>//telemetry.json that nothing writes; it is the same account telemetry object the account's own forms write, folded over the defaults; no root-owned state, no path a tenant names, nothing written; a failed read is said, not defaulted;decision: Paul, as census owner, 2026-10-26: accepted as a new unit (#280) file:Read@1267 3ba444c259707ae2d18737d256a1c403e0004e15743c58e60030d8908682a39c
+@legacy d18947cad854667e208eefcf0d792b3de2b7b9180d30946b68d1b2f11be068a1 internal/console/view.go assembleViews legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-perf-quick-wins;identity=the console (cmd/console serve under console.service, user carlos-console), on the app pages and account overview that assemble app views;basis=new (console perf quick wins Task 2): Assemble's registry listing (openRegistry on the configured registry, then reg.List, the account's routes grouped per app) moved unchanged out of Assemble so the per-app frame cache can feed the release-store half; the same registry and route reads Assemble made, offsets moved; no read added;decision: Paul, as census owner, 2026-10-26: accepted as a new unit (#280) registry:App@2321,registry:App@2344,registry:App@2372,registry:App@2402,registry:Backing@2015,registry:Caps@1415,registry:Channel@990,registry:Environment@1940,registry:Hibernate@1857,registry:Host@1766,registry:Host@891,registry:Kind@1781,registry:Platform@1887,registry:Provisioned@2040,registry:Status@1798,registry:Unit@1997,registry:Version@1821,whole:Route@2090,whole:Route@2278,whole:Route@2422,whole:Route@3918,whole:Route@840,whole:Route@869,whole:Route@940 5fc37f17a67036e27d96d394e58d80d93bf54247f6e78c22f5f54c148c9de32f
+internal/console/server.go Server.handleAccountSettings legacy accepted-legacy accepted-legacy;rev3=census-ruling-console-perf-quick-wins;identity=the console (cmd/console serve under console.service, user carlos-console), on GET /a/{sqid}/settings;basis=new to the census (console perf quick wins Task 5): reads the account's telemetry object, telemetry.AccountKey(sqid), directly through telemetry.Read, instead of telemetry.Resolve(sqid, ""), whose empty app name read an apps/<sqid>//telemetry.json that nothing writes; it is the same account telemetry object the account's own forms write, folded over the defaults; no root-owned state, no path a tenant names, nothing written; a failed read is said, not defaulted;decision: Paul, as census owner, 2026-10-26: accepted as a new unit (#280) file:Read@1267 3ba444c259707ae2d18737d256a1c403e0004e15743c58e60030d8908682a39c
+internal/console/view.go assembleViews legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-perf-quick-wins;identity=the console (cmd/console serve under console.service, user carlos-console), on the app pages and account overview that assemble app views;basis=new (console perf quick wins Task 2): Assemble's registry listing (openRegistry on the configured registry, then reg.List, the account's routes grouped per app) moved unchanged out of Assemble so the per-app frame cache can feed the release-store half; the same registry and route reads Assemble made, offsets moved; no read added;decision: Paul, as census owner, 2026-10-26: accepted as a new unit (#280) registry:App@2321,registry:App@2344,registry:App@2372,registry:App@2402,registry:Backing@2015,registry:Caps@1415,registry:Channel@990,registry:Environment@1940,registry:Hibernate@1857,registry:Host@1766,registry:Host@891,registry:Kind@1781,registry:Platform@1887,registry:Provisioned@2040,registry:Status@1798,registry:Unit@1997,registry:Version@1821,whole:Route@2090,whole:Route@2278,whole:Route@2422,whole:Route@3918,whole:Route@840,whole:Route@869,whole:Route@940 5fc37f17a67036e27d96d394e58d80d93bf54247f6e78c22f5f54c148c9de32f
+@remove internal/console/view.go Assemble
+@removed internal/console/view.go Assemble H3 census-ruling-console-perf-quick-wins: still declared, and reads nothing now: its registry listing and every read in it moved unchanged into assembleViews, an accepted-legacy row in this overlay; Assemble is a thin wrapper that hands assembleViews a fresh loadAppFrame per app (a release-store read through the object store, not a root read). It runs in the console as carlos-console.
diff --git a/internal/provision/testdata/plan14-root-reads-console-perf-quick-wins.tsv b/internal/provision/testdata/plan14-root-reads-console-perf-quick-wins.tsv
new file mode 100644
index 000000000..67b1aed4c
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-console-perf-quick-wins.tsv
@@ -0,0 +1,11 @@
+# Census overlay console-perf-quick-wins, written by census-propose (#369). census-ruling-console-perf-quick-wins, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-console-perf-quick-wins.md.
+# 3 body, 1 sites, 1 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+@legacy 1455ec5a7d19e6e6f25358ba1a6282f87da878c1f1f15e867d524c0b36c52047 internal/console/apiinstances.go Server.loadRolloutJoin legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: the platform and each fleet's box reports now come through Server.loadBoxes (read once per request) instead of a direct status.LoadBoxesComplete; the same six read sites, no read added registry:Account@836,registry:Name@1044,registry:Name@1091,registry:Name@1166,registry:Name@946,whole:Fleet@822 bb2d32356295f3e84efd17241f7831fea5840bcaeb3ddfffbf7f4caf2ff3db52
+@legacy 1d40de464fc76a4e4a2f880dc074fc4e516fa7686d339b74635b713e05c6ea53 internal/console/apisystemupdate.go Server.systemBoxes legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-instance-egress-sizes-328-329;basis=#329 plan 3 Task 9: the fleet lookup (openPassRegistry on the configured registry, then ListFleets) moves unchanged into the new unit Server.systemFleets, which systemBoxes now calls; no registry and no registry file still mean no fleets, any other error still goes to systemFleetsUnreadable. The same three registry:Name sites and one whole:Fleet site, offsets moved; no read added.;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: the platform and each fleet's box reports come through Server.loadBoxes (read once per request) instead of status.LoadBoxes; the same four read sites, no read added registry:Name@408,registry:Name@580,registry:Name@655,whole:Fleet@340 79e3c4f65df1679ea115402f00184db1d2d8e21a3fa4d10e17003e49626db6c6
+@legacy 719873146e77649ead1baab1effcb5f7ae55d21e9dc6ca49803300b2d2fdf369 internal/console/server.go Server.handleAppLogs legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the console (cmd/console serve under console.service, user carlos-console): the log page's host listing is the listRecords wrapper, judged under a unit admitted on and unjudged before; read sites unchanged, offsets moved;rev3=census-ruling-console-ux-nav;basis=the log copy struct gains a Level label ("Level"); copy only; no root read added, read sites unchanged;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: the log page's host list takes the instance records from pageRecords (the page's own record read, held for the request) instead of a second listRecords; one read site, unchanged, no read added file:Query@141 ad6b01ce7077bbd2df0c3a06d492120b1f2b3cf54c7563d49301dbb425e1f7de
+@legacy 33f187d35cf66486f3aeac6cb1d578b929efc2ef6dde1a7dbe014577c1ce75e2 internal/console/apisystemgeoip.go Server.geoipInventory legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: add takes the fleet name and builds the fleets/<name>/ prefix itself, reading through Server.loadBoxes; one fewer registry:Name site (the name is passed, not read twice), no read added registry:Label@1770,registry:Name@1602,registry:Name@1762,registry:Name@1813,registry:Status@1709,whole:Fleet@1560,whole:FleetBox@1697 4412ad7d72f9849376ddf74df77696de0e2a58e0640b9f1e3df7431b8059967e
+internal/console/apiinstances.go Server.loadRolloutJoin legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: the platform and each fleet's box reports now come through Server.loadBoxes (read once per request) instead of a direct status.LoadBoxesComplete; the same six read sites, no read added registry:Account@836,registry:Name@1044,registry:Name@1091,registry:Name@1166,registry:Name@946,whole:Fleet@822 bb2d32356295f3e84efd17241f7831fea5840bcaeb3ddfffbf7f4caf2ff3db52
+internal/console/apisystemupdate.go Server.systemBoxes legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-instance-egress-sizes-328-329;basis=#329 plan 3 Task 9: the fleet lookup (openPassRegistry on the configured registry, then ListFleets) moves unchanged into the new unit Server.systemFleets, which systemBoxes now calls; no registry and no registry file still mean no fleets, any other error still goes to systemFleetsUnreadable. The same three registry:Name sites and one whole:Fleet site, offsets moved; no read added.;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: the platform and each fleet's box reports come through Server.loadBoxes (read once per request) instead of status.LoadBoxes; the same four read sites, no read added registry:Name@408,registry:Name@580,registry:Name@655,whole:Fleet@340 79e3c4f65df1679ea115402f00184db1d2d8e21a3fa4d10e17003e49626db6c6
+internal/console/server.go Server.handleAppLogs legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the console (cmd/console serve under console.service, user carlos-console): the log page's host listing is the listRecords wrapper, judged under a unit admitted on and unjudged before; read sites unchanged, offsets moved;rev3=census-ruling-console-ux-nav;basis=the log copy struct gains a Level label ("Level"); copy only; no root read added, read sites unchanged;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: the log page's host list takes the instance records from pageRecords (the page's own record read, held for the request) instead of a second listRecords; one read site, unchanged, no read added file:Query@141 ad6b01ce7077bbd2df0c3a06d492120b1f2b3cf54c7563d49301dbb425e1f7de
+internal/console/apisystemgeoip.go Server.geoipInventory legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-perf-quick-wins;basis=same reads, fewer calls: add takes the fleet name and builds the fleets/<name>/ prefix itself, reading through Server.loadBoxes; one fewer registry:Name site (the name is passed, not read twice), no read added registry:Label@1770,registry:Name@1602,registry:Name@1762,registry:Name@1813,registry:Status@1709,whole:Fleet@1560,whole:FleetBox@1697 4412ad7d72f9849376ddf74df77696de0e2a58e0640b9f1e3df7431b8059967e
+@coverage internal/console a1568e01dd925082c02ac3c2184d17541cf90dba2f5526c672620be31107d2e5