carlos / platform Public

plan: Task 5 reuses path rows in Reload while the generation holds

Controller ruling after Task 1 measured Reload at 124 ms (86 ms reading
100k path rows).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 1a62998b244cbf32b4c6382e8439f6292f879afe parent f0eeef1
1 file changed, +1 −1
  • docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md +1 −1

CI failed — run details

diff --git a/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md b/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md
index 6f1b6591b..06c07463f 100644
--- a/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md
+++ b/docs/superpowers/plans/2026-11-19-path-routes-across-boxes.md
@@ -162,7 +162,7 @@ func buildRemotePaths(m map[string]upstream, rows []registry.RoutePath, forwardH
- [ ] **Step 2: Run** `go test ./internal/edge/ -run 'TestRemotePaths|TestReloadPublishesOneSnapshot' -count=1` → FAIL.
- [ ] **Step 3: Implement**, including the mechanical `storeHosts` replacement in tests.
- [ ] **Step 4: Run** `go test ./internal/edge/ -run 'TestRemotePaths|TestReloadPublishesOneSnapshot|TestPath|TestCertSettle|TestDemoAPI|TestReplicaConsole' -count=1` → PASS; `go vet ./internal/edge/`.
-- [ ] **Step 5:** Switch `BenchmarkReloadPaths` to unserved hosts (rows land in `remote`), re-run all three benchmarks, record in the ledger. Over budget: stop and report.
+- [ ] **Step 5: Reload under budget (controller ruling after Task 1).** Task 1 added a `route_paths` generation counter (SQLite triggers) and measured Reload at ~124 ms at 10 hosts, ~86 ms of it `ListPaths`. Reload keeps the path rows it last read, and the `remote` map and per-host `paths` maps it built from them, keyed by that generation; while the generation is unchanged it reuses them instead of calling `ListPaths` (the host fold still reattaches `paths` to the fresh `m`). Test `TestReloadReusesPathsWhileGenerationUnchanged` (a second Reload with no path write does not call `ListPaths`, through a counting seam; a path write between the two makes it read again). Then switch `BenchmarkReloadPaths` to unserved hosts (rows land in `remote`), re-run all three benchmarks, record in the ledger. Reload over 100 ms at 10 hosts: stop and report.
- [ ] **Step 6: Commit** `edge: one routing snapshot with a remote path map (#186)`.
### Task 6: One selection entry point