carlos / platform Public

Console plans: Astra round 4 findings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 001cc83a1855c97c63b4c2664ffdbba8d244de2c parent a73f697
1 file changed, +74 −0
  • docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R4.md +74 −0
diff --git a/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R4.md b/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R4.md
new file mode 100644
index 000000000..3cfeeadae
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-FINDINGS-CONSOLE-PLANS-R4.md
@@ -0,0 +1,74 @@
+| Earlier finding | Disposition at `a73f6974` | Evidence |
+|---|---|---|
+| R3-1: S3 contract import cycle | **Resolved** | External test package and test-only raw helpers provide an acyclic boundary. [Perf-1 T9:326](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:326). |
+| R3-2: Perf-2 cold gate depends on later operator placeholders | **Resolved** | Both landing cases retain operator exceptions until operator Task 13. [Perf-2 T15:576](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:576). |
+| R3-3: Missing mutation dependencies | **Resolved for the reported cases** | Read-set invalidation and explicit ship, instance-create and scenario-activation witnesses replace the effect table. New read-set defects appear below. [Perf-2 T8:369](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:369). |
+| R3-4: Deferred Logs host picker never fills | **Resolved** | Dedicated `logs-hosts` part and cold-load acceptance test. [Perf-2 T12:483](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:483). |
+| R3-5: Deferred Create app loses initializer | **Resolved** | Initializer moves into the frame and handles `carlos:part`. [Perf-2 T14:528](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:528). |
+| R3-6: Perf-2 breaks instrumentation acceptance tests | **Resolved** | Untracked fixtures preserve synchronous coverage; cached fixtures assert background attribution. [Perf-2 T9:408](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:408), [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). |
+| R3-7: Notification history mistaken for current alerts | **Resolved** | Watcher-maintained current-state projection, with recipient-change and GeoIP tests. [Operator T7A:510](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:510). |
+| R3-8: Accounts view absent from performance walk | **Resolved** | Explicit Accounts, search and pagination targets over populated fixtures. [Operator T10:614](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:614). |
+| R3-9: Quiescence misses request-triggered workers | **Resolved in the plan** | `bgWork`, `waitBackground` and reset cover the manifest check, edge refresh, view loads and inner sweeps. [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). |
+| R2-6, previously partly: Legacy bake status and clock interface | **Resolved** | `Assemble` now takes `now`; bake state is derived on the request’s copy. [Perf-2 T9:395](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:395). |
+| R2-12c, previously partly: Static traversal response | **Resolved** | Test specifies the complete 301 → 301 → 404 sequence. [Operator T2:300](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:300). |
+| R1-9, previously partly: Older versions unreachable | **Resolved** | Nav implements pagination; perf-2 preserves page-specific entries, fragments and acceptance assertions. [Perf-2 T10:428](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:428). |
+| R1-14, previously partly: Sparse fixtures and inaccurate S3 counts | **Resolved in design** | Populated fixtures use production `S3Store` against transport-level counting, including pagination and change-index traffic. [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:375](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:375). |
+
+1. **P2 — A refresh drops dependencies of the value still being served.**
+ **Perf-2 Tasks 6–8** start each load with an empty read set while retaining the previous valid value during refresh and after failure. Warm a core containing the production flag; start a refresh and block its channel listing before it reaches that flag; then change production. `touched` misses the flag’s discarded dependency, so the POST neither invalidates nor rereads the old core.
+
+ Retain the published value’s dependencies alongside each in-flight load’s dependencies, replacing them only on successful publication. Test a write to a dependency the refresh **has not reached**, including after refresh failure.
+ Evidence: [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), [channel listing, view.go:713](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/view.go:713), [production write, server.go:4982](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server.go:4982).
+
+2. **P2 — Economics still caches SQLite-derived values that read-set invalidation cannot observe.**
+ **Perf-2 Task 15** caches the uncached sweep’s complete `EconomicsView`. That sweep includes account names, account tiers, registry-based attribution and clock-dependent period calculations. In particular, changing a tier writes only SQLite; no observed object-store write invalidates Economics. The redirect can therefore show the old tier and revenue calculation.
+
+ Split remote facts from request-time account, tier, registry and clock derivation. Add a warm-view → tier-save → redirect witness.
+ Evidence: [T15:559](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:559), [economicsview.go:475](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/economicsview.go:475), [tier write, economicspass.go:1343](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/economicspass.go:1343).
+
+3. **P2 — The shared metrics entry has incompatible loader contracts.**
+ **Perf-2 Task 9** fills `partMetrics` through `LoadMetrics` with a 30-second window. **Task 15** fills that same key through the uncached sweep with a 60-second window. `LoadMetrics` can return an inner-cache hit without recording any S3 dependency; its background refresh also uses a separate context. Thus an app request can populate the shared entry with an empty read set and give old data a new outer-cache timestamp.
+
+ Define one loader, result type and freshness policy for `partMetrics`, used by both app and operator consumers.
+ Evidence: [T9:402](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:402), [T15:560](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:560), [metricsview.go:261](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/metricsview.go:261), [metricsview.go:389](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/metricsview.go:389).
+
+4. **P2 — Cached catch-all views freeze live status under the five-minute window.**
+ **Perf-2 Task 13** caches “catch-all views including their DNS TXT lookup” as `partCatchall`, using `writtenWindow`. Those views already incorporate alias readings, certificate state and `now`. Refreshing the separate live box entry does not recompute the cached catch-all rows, and those supplied readings need not appear in the catch-all loader’s observed read set.
+
+ Cache the underlying manifest/DNS facts separately; build catch-all rows per request from current cached readings and the clock.
+ Evidence: [T13:507](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:507), [domaincatchall.go:305](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/domaincatchall.go:305), [domaincatchall.go:314](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/domaincatchall.go:314).
+
+5. **P2 — The zero-read Trash acceptance test cannot pass with the specified cache algorithm.**
+ **Perf-2 Task 14** creates one tombstone entry per app already listed as trashed in SQLite. Warming Trash before deleting `kass` creates no `trashPart(kass)`. The deletion writes and directly rereads its tombstone, but `touched`/`reread` operate only on existing cache entries. The subsequent assembled Trash page must fetch the new tombstone, contradicting its zero-S3 assertion.
+
+ Explicitly prime the new entry from the deletion’s validated reread, or revise that acceptance contract. This is a performance/test contradiction, not missing Trash content.
+ Evidence: [T14:527](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:527), [test:534](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:534), [view.go:486](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/view.go:486), [appsettings.go:1254](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/appsettings.go:1254).
+
+6. **P2 — The read-set coverage oracle skips screens with default targets.**
+ **Perf-2 Task 8** iterates `perfTargets`, but perf-1 explicitly allows parameterless screens to omit entries and receive default targets. Metrics and other operator loaders can therefore escape the test intended to prove complete observation. Iterate `perfInventory`, expanding defaults exactly as the main walk does.
+
+ Evidence: [Perf-2 T8:376](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-2-fixes.md:376), [Perf-1 T10:386](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:386), [Metrics loader, server.go:3149](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server.go:3149).
+
+7. **P2 — Dashboard active-user counts add an unindexed correlated scan.**
+ **Operator Task 4** computes three windows using `EXISTS` over sessions for each user, but adds no sessions index. The existing table has only its token-hash primary key. An in-memory SQLite query-plan check confirms `SCAN users → CORRELATED SCALAR SUBQUERY → SCAN sessions`. The small performance fixture can pass while larger deployments exceed 150 ms.
+
+ Add `(address, created_at)` indexing or use set-based aggregation, with a query-plan or scale witness.
+ Evidence: [T4:358](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:358), [store.go:146](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/store.go:146).
+
+8. **P2 — Known-slow pages can become error responses without failing the walk.**
+ **Perf-1 Task 10** says `over` screens are “Never failed”; expected-status validation exists only in the other branch. A previously slow page returning 500 or 404 therefore passes during rollout. Metrics has a concrete loader-error path returning 500. Validate status for every requested target, exempting only latency and call thresholds.
+
+ Evidence: [T10:407](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-console-perf-1-measure.md:407), [server.go:3151](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/server.go:3151).
+
+9. **P2 — The permitted split operator landing reuses an occupied census proposal name.**
+ The operator branch instructions allow Tasks 1–12 to land first, followed by `operator-pages-cache` after perf-2. **Task 15** nevertheless hardcodes `NAME=operator-pages`. After perf-2 appends its overlay, that command cannot replace the original operator overlay: the census tool refuses replacement unless it remains last.
+
+ Specify the actual branch’s unique proposal name, card and ruling for the second landing.
+ Evidence: [branch procedure:18](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:18), [T15:747](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:747), [census_propose_test.go:539](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/provision/census_propose_test.go:539).
+
+10. **P3 — Deleted-account Activity links lead to an empty feed.**
+ **Operator Tasks 4 and 11** retain deleted accounts in feed rows and link their names to an account filter. That filter uses `AccountBySqid`, which excludes deleted accounts. Clicking an account-deletion row therefore hides its history. Add an operator-only, tombstone-inclusive filter lookup and test following that link.
+
+ Evidence: [T11:629](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/docs/superpowers/plans/2026-10-25-operator-pages.md:629), [store.go:1068](/home/paulca/amadan.net/carlos/platform/.claude/worktrees/console-ux-perf/internal/console/store.go:1068).
+
+Static review; no files changed or repository tests run. Rastrillo’s pinned commit and all six hashes match locally; the copied source’s licence is MPL-2.0. No additional concrete defect established in observer acknowledgement ordering, external-write window handling or read-set memory growth; the plan’s entry limit is not a hard byte or in-flight limit.
\ No newline at end of file