carlos / platform Public

plan: edge page cache slice 1, Astra review brief round 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 90da7cd5680c644676a9b47f852ddc7500bb17a1 parent bb3b486
1 file changed, +78 −0
  • docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1.md +78 −0
diff --git a/docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1.md b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1.md
new file mode 100644
index 000000000..8b0e160f8
--- /dev/null
+++ b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-PAGE-CACHE-PLAN1.md
@@ -0,0 +1,78 @@
+# Review brief: edge page cache plan 1 (home box), round 1 of 3
+
+Repo carlos/platform, branch `design-edge-page-cache`, the commit named in
+your prompt.
+Under review: `docs/superpowers/plans/2026-11-08-edge-page-cache-plan-1-home.md`.
+Authorities: the approved spec
+`docs/superpowers/specs/2026-11-08-edge-page-cache-design.md` (rev 4, approved
+by Paul; it merges together with this plan), and the code on this branch
+(`internal/edge`, `internal/assetcache`, `internal/registry`,
+`internal/provision`, `internal/console`, `internal/host`, CLI files in the
+repo root).
+
+You are an independent reviewer and the engineer who will implement each
+task with only the plan and spec in hand. Check every file, line, signature
+and behaviour the plan names against the code.
+
+## Fixed: do not re-argue
+
+- The spec's design, its rulings in §16, and Paul's rule-2 choices:
+ - one page index per box owns every publish, clear, reset and lookup;
+ - an opted-in instance never uses the LRU.
+- The slice boundary: home box only, with no far boxes, leases, pushes or
+ single-flight.
+
+## What to check
+
+1. **Fit with the spec.** Does each task deliver what spec slice 1
+ (§11 item 1) needs, with nothing in the spec's invariants I1 (home
+ side), I2 and I3 left untested? Does any task contradict the spec?
+2. **Fit with the code.**
+ - Are the named sites real, and are the signatures workable? Pay
+ particular attention to:
+ - where `ModifyResponse` runs relative to the recorders (Task 5's
+ context holder);
+ - the LRU gate (Task 6);
+ - `applyPurgeTargets` and `ListenControl` (Task 7);
+ - `OnReload` and the Version signal (Task 8);
+ - the config-delivery hook (Task 9).
+ - Does anything the plan relies on not exist?
+3. **Safety.** Could a task as written:
+ - serve a personalised page;
+ - serve a page after a clear;
+ - leak the marker;
+ - let the asset sweep or store eviction break the index;
+ - or make a wake clear pages?
+4. **Tests.** Does each test fail for the right reason before the change
+ and prove the behaviour after it? Name any missing test for a real
+ failure mode.
+5. **Order and size.** Can each task be built and pass its tests with
+ only the earlier tasks done?
+
+## Severity
+
+- **P1**: unsafe, would not compile, a test fails, or it would not work.
+ Blocks merge.
+- **P2**: wrong or missing. Fixed without reopening this review.
+- **P3**: clarity or polish. Goes on a follow-up list; never a reason for
+ another round.
+
+A P1 states its failure scenario and the evidence (file:line). Do not
+raise a P2 to P1 to keep the review open.
+
+## Output
+
+Findings ranked P1, P2, P3. Each gives:
+- the task;
+- the problem;
+- the evidence (file:line, verified);
+- the failure scenario;
+- a concrete fix;
+- the invariant or boundary it breaks.
+
+End with exactly one verdict: **READY**, **READY AFTER FIXES**
+(no P1; the P2s are fixed without another round), or **NOT READY** (P1s
+listed).
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.