Console plans: Astra round 7 findings
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+65
−0
docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R7.md+65 −0
diff --git a/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R7.md b/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R7.md| new file mode 100644 |
| index 000000000..a21ccceab |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R7.md |
| @@ -0,0 +1,65 @@ |
| +| Earlier finding | Disposition at `4272c75d` | Evidence | |
| +|---|---|---| |
| +| R6-1: Restricted claims loader cannot retain `ClaimCache` | **Partly** | Restricted loaders replace `Server.claims`, but their promised incremental read cost is not preserved. [Perf-2 T13:523](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:523). New defects below. | |
| +| R6-2: Conflicting fleet-snapshot keys | **Resolved** | One deployment-wide key, request-time ownership filtering, and a shared-consumer witness. [Perf-2 T11:471](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:471). | |
| +| R6-3: Fixture deletes bypass observation | **Resolved** | Context-preserving forwarding, method coverage and warmed canary-retirement witness. [Perf-2 T8:359](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:359), [tests:388](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:388). | |
| +| R6-4: Clock/reset retain obsolete dependencies | **Resolved** | Clock indirection and reset in place, with both regression witnesses. [Perf-2 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), [tests:283](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:283). | |
| +| R6-5: Nav redirects break performance targets | **Resolved** | Redirect changes now update expected statuses and canonical-page targets together. [Nav T3:266](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-ux-nav.md:266), [T7:386](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-ux-nav.md:386). | |
| +| R5-5, carried forward: Economics event mismatch | **Not** | Producer still sends the full URL; consumer and its test require `"economics"`. [Perf-2:320](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:320), [Operator:706](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:706). | |
| +| R5-7, previously partly: Query-plan oracle | **Partly** | Still forbids bounded correlated lookups and sorting needed by the address tie-break; still mandates `audit_by_time` despite the competing action index. [Operator T4: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 cached entries remain. [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:441](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:441). | |
| +| R1-14, previously partly: Sparse fixtures/inferred counts | **Resolved** | Production S3Store, transport counting, populated 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 | **Resolved** | Explicit clock argument and request-time derivation. [Perf-2 T9:409](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:409). | |
| +| 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). | |
| + |
| +“Resolved” means addressed in the plan, not verified implementation. |
| + |
| +1. **P2 — Claim writes reread the wrong timestamped entry.** |
| + |
| + **Perf-2 Tasks 8 and 13:** a changed claim invalidates the index and existing `claim:<key>@<old-modtime>` entry. The POST rereads those concurrently. The refreshed index then selects `claim:<key>@<new-modtime>`, which neither rereading nor the tombstone-only primer populated. The redirect performs another GET; first attachments likewise select an unprimed entry. |
| + |
| + This contradicts both the one-changed-GET test and the zero-call attachment redirect. Specify how rereading the index populates the entries it selects before responding. |
| + |
| + Evidence: [T13:523–529](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:523), [T8 primer:375](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:375); existing incremental fold [claimcache.go:137](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/domains/claimcache.go:137). |
| + |
| +2. **P2 — Unchanged claims are fetched again every five minutes.** |
| + |
| + **Perf-2 Task 13** assigns `writtenWindow` to both the claim index and each timestamped claim entry. After that window, viewing Domains refreshes every expired claim body even when the listing’s timestamps remain unchanged. Existing `ClaimCache` deliberately has no TTL and carries unchanged bodies forward without GETs. |
| + |
| + Keep unchanged timestamped bodies reusable, while retaining safe handling of writes and recently modified objects. Add an unchanged-listing witness after window expiry; the present changed-claim test misses this regression. |
| + |
| + Evidence: [T13:523](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:523), [stale-entry behavior:257](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:257); [claimcache.go:32](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/domains/claimcache.go:32). |
| + |
| +3. **P2 — Bounded log results retain history-sized dependency sets for every filter.** |
| + |
| + **Perf-2 Tasks 6 and 12** retain every observed GET key per entry, with up to 4,096 filtered entries and simultaneous published/in-flight sets. `ReadChunks` fetches every selected chunk even when the search returns nothing; `collectCap` limits returned records, not dependencies. Distinct empty searches can therefore retain thousands of copies of the same large key set. |
| + |
| + The initial app-log prefix already covers these descendants for invalidation. Specify prefix subsumption or another bounded representation that preserves every dependency, and test large-history empty searches. |
| + |
| + Evidence: [T6 read sets:259](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:259), [T12:496](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:496); [applog/read.go:38](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/applog/read.go:38), [chunk reads:106](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/applog/read.go:106), [result trimming:139](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/applog/read.go:139). |
| + |
| +4. **P2 — Relative end times defeat the proposed filter-cache normalization.** |
| + |
| + **Perf-2 Task 12** hashes the complete effective filter but rounds only its start. For a supported query such as `since=24h&until=1h`, both endpoints are parsed relative to the current time. `Until` therefore changes on every request, producing another cache miss within the same thirty-second window. A frozen fixture clock hides this. |
| + |
| + Normalize both temporal inputs consistently before hashing and loading. Test repeated requests with an advancing clock inside one cache window. |
| + |
| + Evidence: [T12:496](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:496); [errorsview.go:177](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/errorsview.go:177). |
| + |
| +5. **P2 — Operator Task 9 requires cache behavior introduced only in Task 13.** |
| + |
| + `TestAttentionAndBoxesAgreeAcrossTheFifteenMinuteLine` advances `fx.clock` and requires a second dashboard GET to change status **without new reads**. At Task 9, however, `opHostRows` explicitly calls `HostRows(..., time.Now())` directly. It ignores the fixture clock and reads snapshots again. Task 9’s required gate cannot pass as written. |
| + |
| + Move the cached/no-read witness to Task 13; give Task 9 an injected-clock test over its direct seams. |
| + |
| + Evidence: [Operator T9:609](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:609), [direct seam:565](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:565), [later conversion:702](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:702); [view.go:865](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/view.go:865). |
| + |
| +6. **P3 — Console speed’s empty-state setup already records requests.** |
| + |
| + **Perf-1 Task 7** expects the existing `TestFleetMetricsEmptyState` setup to produce an empty recorder. That setup signs in through HTTP first, recording `/auth/signin` and `/auth/callback` before Metrics renders. |
| + |
| + Seed the session directly or reset the recorder after authentication. |
| + |
| + Evidence: [Perf-1 T7:278](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:278); [server_test.go:1922](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server_test.go:1922), [sign-in requests:177](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server_test.go:177). |
| + |
| +Read-only review; no files changed or repository tests run. The pinned Rastrillo commit and all six asset/licence hashes match local upstream. |
| \ No newline at end of file |