Console plans: Astra round 6 findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+67
−0
docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R6.md+67 −0
diff --git a/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R6.md b/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R6.md| new file mode 100644 |
| index 000000000..adddbff82 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R6.md |
| @@ -0,0 +1,67 @@ |
| +Reviewed `f3193aaf`. “Resolved” below means addressed by the plan, not verified implementation. |
| + |
| +| Earlier finding | Disposition | Evidence | |
| +|---|---|---| |
| +| R5-1: Economics keys omit object-selection inputs | **Resolved** | Bills are keyed by month; fleet meters by fleet/box/day, selected per request. Rollover and period-switch witnesses added. [Perf-2 T15:572](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:572). | |
| +| R5-2: Edge/GeoIP loaders cache derived state | **Resolved** | Raw facts are cached; freshness and registry inventory are computed per request. Cross-package callees are explicitly reviewed. [Perf-2 T11:467](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:467), [T6:255](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:255). | |
| +| R5-3: Restricted loader cannot fetch app reports | **Resolved** | Explicit `AppHost` capability preserves the configured fetcher; eligible host is selected per request and included in the key. [Perf-2 T6:253](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:253), [T11:466](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:466). | |
| +| R5-4: Cached error interfaces violate plain-data restriction | **Resolved** | `boxSnapshot` and `appCore` retain errors as text. [Perf-2 T5:221](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:221), [T9:404](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:404). | |
| +| R5-5: Economics event payload mismatch | **Not** | Producer’s `detail.part` is the **full part URL**; revised listener and browser harness compare it with `"economics"`. The new source test explicitly enforces that incompatible short name. [Perf-2 T7:317](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:317), [Operator T13:706](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:706), [tests:718](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:718). | |
| +| R5-6: Attention callout contradicts box status | **Resolved** | Callout and table consume the same request-time box rows; cold rendering defers both together. Boundary witness added. [Operator T9:592](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:592), [T13:710](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:710). | |
| +| R5-7: Query-plan oracle rejects appropriate SQL | **Partly** | Legitimate scans and the index-drop witness are corrected. But the blanket `CORRELATED` ban still rejects bounded per-person scalar lookups; the address tie-break needs sorting with the specified single-column index; and SQLite can choose `audit_by_action` where the oracle insists on `audit_by_time`. Confirmed with in-memory SQLite. [Operator T4:368](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:368), [query contracts:374](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:374), [oracle:383](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:383). | |
| +| R1-9, previously partly: Older versions unreachable | **Resolved** | Pagination and page-specific cache entries remain, including the older-version acceptance test. [Nav T3:233](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-ux-nav.md:233), [Perf-2 T10:437](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:437). | |
| +| R1-14, previously partly: Sparse fixtures/inferred S3 counts | **Resolved** | Production S3Store, transport counting, populated/paginated fixtures and whole-session ceiling. [Perf-1 T9:333](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:333), [T10:382](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:382). | |
| +| R2-6, previously partly: Legacy bake clock interface | **Resolved** | Explicit `now` argument and request-time bake derivation. [Perf-2 T9:405](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:405). | |
| +| R2-12c, previously partly: Static traversal response | **Resolved** | Complete 301 → 301 → 404 sequence specified. [Operator T2:313](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:313). | |
| + |
| +New findings: |
| + |
| +1. **P2 — The restricted claims loader cannot retain the existing `ClaimCache`.** |
| + |
| + **Perf-2 Task 13** says the claims listing uses `viewGet` while “`ClaimCache` stays underneath.” Today that cache belongs to `Server`, and `settingsDomains` calls `s.claims.List`. Task 6 supplies neither that cache nor a capability for it; loader arguments cannot carry mutable shared state, and loaders cannot capture `Server`. |
| + |
| + Creating a fresh `ClaimCache` inside each load loses its incremental GET-saving behavior. Access through a package global would evade the intended restriction and lose the existing per-server ownership. |
| + |
| + Specify an explicit, reviewed claims capability preserving observation through the current load’s context, or define a replacement that preserves the existing read cost. |
| + |
| + Evidence: [plan T13:518](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:518), [restricted interface:253](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:253), [appsettings.go:701](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/appsettings.go:701), [claimcache.go:47](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/domains/claimcache.go:47). |
| + |
| +2. **P2 — Fleet snapshots receive two different keys despite being specified as shared.** |
| + |
| + **Perf-2 Task 11** assigns instance-page fleet boxes `{sqid, "", "fleet-boxes:<fleet>"}`, then assigns GeoIP fleet snapshots `{"", "", fleetBoxesPart(fleet)}` and calls them “the same entries.” Their account components differ. |
| + |
| + The instance page currently needs both the system-wide box view and the account rollout join. Following these keys preserves duplicate listings and GETs for the same fleet, with independent refreshes and read sets. |
| + |
| + Define one canonical fleet-snapshot key and retain account ownership filtering in the request-time join. Add a witness covering both consumers in one instance-page request. |
| + |
| + Evidence: [plan T11:467](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:467), [instancepage.go:285](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/instancepage.go:285), [apiinstances.go:514](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/apiinstances.go:514). |
| + |
| +3. **P2 — Claim-world deletes bypass the observer used by the required invalidation test.** |
| + |
| + **Perf-2 Task 8** attaches the observer to the claim world’s underlying `DirStore`. However, its `deletableStore.Delete` discards the context and calls `os.Remove` directly. `claimRawStore.Delete` records that successful write independently, so the oracle sees a deletion that the tracker never receives. |
| + |
| + A concrete case is canary retirement: the handler deletes the channel pointer, but the warmed core entry’s generation does not change. The required `TestClaimConsoleMutationInvariant` coverage assertion therefore fails with the prescribed wiring. |
| + |
| + Forward fixture deletes through the observed underlying store, retaining the context, and exercise a warmed canary-retirement case. |
| + |
| + Evidence: [plan T8:386](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:386), [world construction:459](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/claim_invariant_world_test.go:459), [raw recorder:226](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/claim_invariant_world_test.go:226), [bypass:51](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/view_test.go:51), [canary deletion:5353](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server.go:5353). |
| + |
| +4. **P2 — Fixture clock changes and cold resets leave cache dependencies bound to their previous values.** |
| + |
| + **Perf-2 Task 6** constructs the cache with `newViewCache(s.now, …)` in `NewServer`, then has `newPerfFixture` replace `fx.srv.now`. Passing a function value captures the original clock; assigning the field later does not update the cache. Advancing `fx.clock` therefore does not trigger the expected expiry, and Task 10’s held-refresh test can wait for a refresh that never starts. |
| + |
| + Separately, `resetForColdView` replaces `s.views`, while **Task 8** binds the tracker to the original cache in `NewServer`. No reset step rebinds it. Subsequent writes can invalidate the discarded cache rather than the one serving pages. |
| + |
| + Install the clock before cache construction, or use an explicit indirection; reset the cache in place or rebind its tracker. Test expiry and warm→write→read after a cold reset. |
| + |
| + Evidence: [plan T6:239](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:239), [reset:242](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:242), [tracker binding:366](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:366), [refresh witness:445](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:445), [existing fixture construction:88](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server_test.go:88). |
| + |
| +5. **P2 — Nav changes redirect statuses without updating the already-landed performance walk.** |
| + |
| + **Nav Tasks 3 and 7** turn `/deployments` and `/pipeline` into 303 redirects. **Perf-1 Task 10** expects 200 for both and checks statuses even for `over` entries. Nav updates claim probes and page tests but contains no corresponding `perfTargets` changes. |
| + |
| + With the settled merge order, nav therefore makes the performance gate fail. Add explicit 303 targets alongside each redirect change, preserving coverage of the new canonical pages. |
| + |
| + Evidence: [nav T3:263](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-ux-nav.md:263), [nav T7:378](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-ux-nav.md:378), [perf expectations:398](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:398), [status enforcement:408](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:408), [non-following browser:128](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server_test.go:128). |
| + |
| +Read-only; no files changed or repository tests run. Rastrillo’s pinned commit and all six asset/licence hashes match local upstream. |
| \ No newline at end of file |