| index 923075527..59131bd34 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-region-labels-decisions.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-region-labels-decisions.tsv |
| @@ -1,17 +1,17 @@ |
| # Census overlay region-labels-decisions, written BY HAND (AGENTS.md, The census: census-propose refuses decisions). The decisions of census-ruling-region-labels (branch region-labels, plans docs/superpowers/plans/2026-10-25-region-labels-1-console.md and -2-cli.md: region labels): seven new units and one new kind of read. Loaded from the chain manifest before plan14-root-reads-region-labels.tsv, which census-propose wrote for the approvals. Card docs/superpowers/notes/census-proposal-region-labels.md. |
| # PENDING: Paul's ruling, as census owner, asked on #280. Every row reads the console box's registry rows, the console's own SQLite or a row already in hand; no root read is added, nothing a tenant names is opened. |
| -@legacy 2270891786110160714ab70b77e76c3ee389df935a7bee3293b53985d3c754df internal/console/apitemporary.go Server.handleAPIAppList legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on GET /api/cli/apps/{account}/list;basis=new to the census (region labels plan 1 task 8): lists the console box's registry once per request through Server.registryRoutes (the cached openRegistry handle the app pages use) and folds each app's legacy fleet placement from the rows in hand with fleetFromRoutes, for the region and region_name fields; reads SQLite as before; no file path, nothing a tenant names, no store request, nothing written whole:Route@1226 12d1534745fcd64e161de275b9cbc7d766f0853169ca473f01692268891cfa26 |
| @legacy 285bd6ea00156a309e2d05853b6ef0197f9654012c4cbac3cf439a2ed144c2ca internal/regionlabel/regionlabel.go ForRoute legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console and the carlos CLI (a pure package; no box unit links it for a decision);basis=new (region labels plan 1 task 2): labels a registry row already in hand from its Region and Pool columns and RouteServedEverywhere; pure: no file, no store, no registry open, nothing written registry:Pool@230,registry:Pool@295,registry:Region@100,registry:Region@134,registry:Region@219,registry:Region@265,whole:Route@193 c327623c8204cca2872cc7e3f46ccbffe7a45c490ac6ee105e071ffffb694d17 |
| @legacy 36091e57fec262ba53975b3f10fc1a6b2d77f23740031785f625496165392022 internal/provision/servedeverywhere.go RouteServedEverywhere legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console and the carlos CLI, through internal/regionlabel; never a box unit;basis=new (region labels plan 1 task 1): an exported one-line wrapper over everywhereRoute, the reconciler's own class predicate, so the labels and the reconciler answer from one rule; reads only the registry row handed in; no I/O whole:Route@76 a1741aa5baf444d669027b7e71fce80e9ea833e4d2683be5a8966f010c74919d |
| @legacy 5829de80608bbf5b9b34ce752e1ff9fe029311752e010e30c1c104e7521ae18f internal/console/apiroutes.go Server.handleAPIRoutes legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Passes nil for healthByHost's ownership-start argument; nothing else.;rev3=census-ruling-region-labels;basis=reads each listed row's Region column (rows it already lists) for the additive region and region_name fields, through homeRegionOut and regionlabel.ForRoute over the cached name map; no new open, no store request (region labels plan 1 task 8) registry:Account@4762,registry:App@1646,registry:App@2152,registry:App@4701,registry:Backing@2312,registry:Canary@2450,registry:Channel@2172,registry:Environment@2197,registry:Hibernate@2271,registry:Host@1730,registry:Host@2094,registry:Host@2250,registry:Host@2406,registry:Host@4834,registry:Host@4914,registry:Kind@2109,registry:Platform@2435,registry:Prefix@4930,registry:Provisioned@2337,registry:Region@2496,registry:Replication@2369,registry:Status@2221,registry:Target@4948,registry:Unit@2291,whole:Route@1635,whole:Route@1684,whole:Route@1721,whole:Route@1741,whole:Route@1861,whole:Route@1963,whole:Route@2042,whole:Route@2142,whole:Route@2548,whole:Route@4825,whole:RoutePath@3767 e06726ec0ed30948880b11a1dcd679a9972f1a2325a9d69bbb2dab1fe03312e4 |
| +@legacy 8020e6e8ead1924ee676204649db49dcbf64e420cf1f43c708928da32c3b4331 internal/console/apitemporary.go Server.handleAPIAppList legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on GET /api/cli/apps/{account}/list;basis=new to the census (region labels plan 1 task 8): lists the console box's registry once per request through Server.registryRoutes (the cached openRegistry handle the app pages use) and folds each app's legacy fleet placement from the rows in hand with fleetFromRoutes, for the region and region_name fields; reads SQLite as before; no file path, nothing a tenant names, no store request; writes nothing of its own; an uncached openRegistry runs registry.Open's schema migration on the configured registry, as every console registry open does whole:Route@1226 12d1534745fcd64e161de275b9cbc7d766f0853169ca473f01692268891cfa26 |
| +@legacy 90a36b188541d9b282cee8be61731fa1859d543e1bbea4308d3db1f9d80284b9 internal/console/regionfacts.go Server.registryRoutes legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on /api/cli/apps/{account}/list and the operator /fleet page;basis=new (region labels plan 1 task 5): opens the console box's registry through openRegistry(cfg.Registry), the same cached handle Assemble and appPlacement open, and lists its routes once; a console with no registry configured answers not read rather than opening an empty path; listRoutes is a nil test seam in production; writes nothing of its own; an uncached openRegistry runs registry.Open's schema migration on the configured registry, as every console registry open does whole:Route@209,whole:Route@564 b3c59398b4ec3fda1fa7eeff9d64741a3422b2f3c6ea6ccb65713810af9e98d9 |
| @legacy a79a80402d3b2eabdfdc6da6101f31a49cd0567f9d9ce67043a78fb815a5a3a0 internal/console/store.go Store.LivePlacesNamed legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on the operator-only GET /fleet;basis=new (region labels plan 1 task 10): one SELECT over the console's own SQLite apps and accounts tables, live apps whose name is one of the names given (bound parameters, never interpolated), returning each one's account, stored region and placement; no file path, nothing written file:Query@209 4a18b7f0d5d8fae24d40f44c2f6fdc07ad90c9a57bbb5c04c0865a595597042e |
| +@legacy b9a1e52279652a950b2c62ced45615e8aad82ee8f18c2df168e064be55f33a79 internal/console/regionfacts.go Server.fleetAppRegions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on the operator-only GET /fleet;basis=new (region labels plan 1 task 10): one SQLite query of the console's own apps table (Store.LivePlacesNamed) and one registry listing (Server.registryRoutes), folded in memory into one region label per app name for the platform fleet page; no file path, no store request; writes nothing of its own; an uncached openRegistry runs registry.Open's schema migration on the configured registry, as every console registry open does whole:Route@556 23d5a09de03b138c0189a2a54acf04e74901da5b2fc1165a6da8f97675c0f65b |
| @legacy cb69bb9a0bca155b51c18617aafb45e5636e6797c93d6d343632625d2db7a8ea internal/console/regionfacts.go fleetFromRoutes legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console);basis=new (region labels plan 1 task 5): appPlacement's legacy route fallback moved whole into a pure function over rows already listed: the first fleet/<name> Region among the rows whose Account and App match, compared on the raw columns exactly as before; appPlacement's sites fell by the same reads; no I/O registry:Account@107,registry:App@129,registry:Region@199,registry:Region@226,whole:Route@93 23f1c9c4b5bfeb8be43b430f29d84911fae5349fff0e075838f36d969cb7a929 |
| -@legacy cf36d0b43b4e2f65911f326de9a91902a15f7cb5b8d8db5b3fe6869cad959721 internal/console/regionfacts.go Server.registryRoutes legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on /api/cli/apps/{account}/list and the operator /fleet page;basis=new (region labels plan 1 task 5): opens the console box's registry through openRegistry(cfg.Registry), the same cached handle Assemble and appPlacement open, and lists its routes once; a console with no registry configured answers not read rather than opening an empty path; listRoutes is a nil test seam in production; nothing written whole:Route@209,whole:Route@564 b3c59398b4ec3fda1fa7eeff9d64741a3422b2f3c6ea6ccb65713810af9e98d9 |
| -@legacy f097ada4f0ca7435ce86cb262ad15e80e42566d8ad28a08a351646bb870561f5 internal/console/regionfacts.go Server.fleetAppRegions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on the operator-only GET /fleet;basis=new (region labels plan 1 task 10): one SQLite query of the console's own apps table (Store.LivePlacesNamed) and one registry listing (Server.registryRoutes), folded in memory into one region label per app name for the platform fleet page; no file path, no store request, nothing written whole:Route@556 23d5a09de03b138c0189a2a54acf04e74901da5b2fc1165a6da8f97675c0f65b |
| internal/console/apiroutes.go Server.handleAPIRoutes legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-console-remote-instances;basis=Passes nil for healthByHost's ownership-start argument; nothing else.;rev3=census-ruling-region-labels;basis=reads each listed row's Region column (rows it already lists) for the additive region and region_name fields, through homeRegionOut and regionlabel.ForRoute over the cached name map; no new open, no store request (region labels plan 1 task 8) registry:Account@4762,registry:App@1646,registry:App@2152,registry:App@4701,registry:Backing@2312,registry:Canary@2450,registry:Channel@2172,registry:Environment@2197,registry:Hibernate@2271,registry:Host@1730,registry:Host@2094,registry:Host@2250,registry:Host@2406,registry:Host@4834,registry:Host@4914,registry:Kind@2109,registry:Platform@2435,registry:Prefix@4930,registry:Provisioned@2337,registry:Region@2496,registry:Replication@2369,registry:Status@2221,registry:Target@4948,registry:Unit@2291,whole:Route@1635,whole:Route@1684,whole:Route@1721,whole:Route@1741,whole:Route@1861,whole:Route@1963,whole:Route@2042,whole:Route@2142,whole:Route@2548,whole:Route@4825,whole:RoutePath@3767 e06726ec0ed30948880b11a1dcd679a9972f1a2325a9d69bbb2dab1fe03312e4 |
| -internal/console/apitemporary.go Server.handleAPIAppList legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on GET /api/cli/apps/{account}/list;basis=new to the census (region labels plan 1 task 8): lists the console box's registry once per request through Server.registryRoutes (the cached openRegistry handle the app pages use) and folds each app's legacy fleet placement from the rows in hand with fleetFromRoutes, for the region and region_name fields; reads SQLite as before; no file path, nothing a tenant names, no store request, nothing written whole:Route@1226 12d1534745fcd64e161de275b9cbc7d766f0853169ca473f01692268891cfa26 |
| -internal/console/regionfacts.go Server.fleetAppRegions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on the operator-only GET /fleet;basis=new (region labels plan 1 task 10): one SQLite query of the console's own apps table (Store.LivePlacesNamed) and one registry listing (Server.registryRoutes), folded in memory into one region label per app name for the platform fleet page; no file path, no store request, nothing written whole:Route@556 23d5a09de03b138c0189a2a54acf04e74901da5b2fc1165a6da8f97675c0f65b |
| -internal/console/regionfacts.go Server.registryRoutes legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on /api/cli/apps/{account}/list and the operator /fleet page;basis=new (region labels plan 1 task 5): opens the console box's registry through openRegistry(cfg.Registry), the same cached handle Assemble and appPlacement open, and lists its routes once; a console with no registry configured answers not read rather than opening an empty path; listRoutes is a nil test seam in production; nothing written whole:Route@209,whole:Route@564 b3c59398b4ec3fda1fa7eeff9d64741a3422b2f3c6ea6ccb65713810af9e98d9 |
| +internal/console/apitemporary.go Server.handleAPIAppList legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on GET /api/cli/apps/{account}/list;basis=new to the census (region labels plan 1 task 8): lists the console box's registry once per request through Server.registryRoutes (the cached openRegistry handle the app pages use) and folds each app's legacy fleet placement from the rows in hand with fleetFromRoutes, for the region and region_name fields; reads SQLite as before; no file path, nothing a tenant names, no store request; writes nothing of its own; an uncached openRegistry runs registry.Open's schema migration on the configured registry, as every console registry open does whole:Route@1226 12d1534745fcd64e161de275b9cbc7d766f0853169ca473f01692268891cfa26 |
| +internal/console/regionfacts.go Server.fleetAppRegions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on the operator-only GET /fleet;basis=new (region labels plan 1 task 10): one SQLite query of the console's own apps table (Store.LivePlacesNamed) and one registry listing (Server.registryRoutes), folded in memory into one region label per app name for the platform fleet page; no file path, no store request; writes nothing of its own; an uncached openRegistry runs registry.Open's schema migration on the configured registry, as every console registry open does whole:Route@556 23d5a09de03b138c0189a2a54acf04e74901da5b2fc1165a6da8f97675c0f65b |
| +internal/console/regionfacts.go Server.registryRoutes legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on /api/cli/apps/{account}/list and the operator /fleet page;basis=new (region labels plan 1 task 5): opens the console box's registry through openRegistry(cfg.Registry), the same cached handle Assemble and appPlacement open, and lists its routes once; a console with no registry configured answers not read rather than opening an empty path; listRoutes is a nil test seam in production; writes nothing of its own; an uncached openRegistry runs registry.Open's schema migration on the configured registry, as every console registry open does whole:Route@209,whole:Route@564 b3c59398b4ec3fda1fa7eeff9d64741a3422b2f3c6ea6ccb65713810af9e98d9 |
| internal/console/regionfacts.go fleetFromRoutes legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console);basis=new (region labels plan 1 task 5): appPlacement's legacy route fallback moved whole into a pure function over rows already listed: the first fleet/<name> Region among the rows whose Account and App match, compared on the raw columns exactly as before; appPlacement's sites fell by the same reads; no I/O registry:Account@107,registry:App@129,registry:Region@199,registry:Region@226,whole:Route@93 23f1c9c4b5bfeb8be43b430f29d84911fae5349fff0e075838f36d969cb7a929 |
| internal/console/store.go Store.LivePlacesNamed legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console (cmd/console serve under console.service, user carlos-console), on the operator-only GET /fleet;basis=new (region labels plan 1 task 10): one SELECT over the console's own SQLite apps and accounts tables, live apps whose name is one of the names given (bound parameters, never interpolated), returning each one's account, stored region and placement; no file path, nothing written file:Query@209 4a18b7f0d5d8fae24d40f44c2f6fdc07ad90c9a57bbb5c04c0865a595597042e |
| internal/provision/servedeverywhere.go RouteServedEverywhere legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-labels;identity=the console and the carlos CLI, through internal/regionlabel; never a box unit;basis=new (region labels plan 1 task 1): an exported one-line wrapper over everywhereRoute, the reconciler's own class predicate, so the labels and the reconciler answer from one rule; reads only the registry row handed in; no I/O whole:Route@76 a1741aa5baf444d669027b7e71fce80e9ea833e4d2683be5a8966f010c74919d |