plan: account subdomains, Astra review brief round 2
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+48
−0
docs/superpowers/plans/CODEX-REVIEW-BRIEF-account-subdomains-plan-R2.md+48 −0
diff --git a/docs/superpowers/plans/CODEX-REVIEW-BRIEF-account-subdomains-plan-R2.md b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-account-subdomains-plan-R2.md| new file mode 100644 |
| index 000000000..c9bb2f1d2 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/CODEX-REVIEW-BRIEF-account-subdomains-plan-R2.md |
| @@ -0,0 +1,48 @@ |
| +# Review brief: account subdomains plan, round 2 of 3 |
| + |
| +Repo carlos/platform, branch `design-account-name-hosts`, commit 29e9de4a893732d9b200799a0abe6ce0f3623597. |
| +Under review: `docs/superpowers/plans/2026-11-11-account-subdomains.md`. |
| +Authorities: the spec `docs/superpowers/specs/2026-11-11-account-subdomains-design.md` (approved by Paul 2026-11-11, rev 2 on this branch; this plan implements it) and main's code. The instance catch-all spec `docs/superpowers/specs/2026-10-05-instance-catchall-design.md` is merged precedent. |
| + |
| +You are an independent reviewer. Read the plan and the spec, then the code the plan names, and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's rulings, recorded in the spec: operator-only assignment on every deployment, shared platforms included (§3); the name URL is canonical on every platform surface where set, the sqid URL keeps serving, no redirect (§2, §4.8). |
| +- The builder-check questions already settled in the spec (`docs/superpowers/specs/CODEX-FINDINGS-account-subdomains-builder-check.md` and spec §8). |
| + |
| +- Spec rev 2's choice to enforce the namespace in the console rather than on the boxes, with the residual race stated in §4.2. Report only mechanisms that fail to honour it (a door that can still mint a host under another account's name, a read failure that admits). |
| +- Settings page read-only in this slice (spec §4.8, finding 14 cut). |
| + |
| +## Round 2 |
| + |
| +Earlier rounds: `docs/superpowers/plans/CODEX-FINDINGS-account-subdomains-plan-R1.md` (round 1, NOT READY). The plan's last section maps each finding to its resolution. |
| + |
| +First give one line per P1 and P2 from round 1: resolved, partly, or not. Carry every unresolved or partly resolved finding forward at its current severity, then add new findings. The verdict covers everything outstanding, earlier rounds included. |
| + |
| +## What to check |
| + |
| +1. Does each task's named file, line and signature match the code (aliases.go ReconcileAliasesReport, deriveInstanceAliases, deriveHAIngressAliases; claims.go attach/detach and the census tests; edge wildcard.go parentsFor and deploymentHosts; console domainpolicy.go, routedecls.go, apiaccountplan.go; CLI accounts.go)? A plan step that cannot be built as written is a P1. |
| +2. The namespace trust boundary: can any path still serve a name under a held subdomain for a different account (plain aliases, paths, wildcard/catchall, regional, HA ingress, instance catch-alls, first-route minting, edge routing of a route whose own host sits under the name)? |
| +3. Box derivation: route eligibility (Provisioned or Platform, sidecars, replicas, fleet-placed routes), precedence, the shared cap, listing-failure behaviour, the StartupNoRemoval sweep, and whether the derived rows reach every edge that must serve them (per-box scope; the edges file publishes only DNSStatus pointing). |
| +4. Certificates: will the edge actually order and serve `*.<name>.<apps-domain>` for derived hosts (issuer Allowed, wildcard cert selection by SNI for an alias host)? |
| +5. Console: the canonicalHost display-site list. Any site that shows an app URL and is missing, or any listed site that is identity and would break if changed. Claim cache staleness after set and remove. |
| +6. Task order and test commands: does each task's test command run the tests it names, and does any task depend on a later one? |
| + |
| +## 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 section or task, the problem, the evidence (file:line, verified), the failure scenario, a concrete fix and the invariant or trust boundary it breaks (that is its fault family). End with exactly one verdict: |
| + |
| +- **READY**: no P1 and no P2. |
| +- **READY AFTER FIXES**: no P1. The listed P2s are fixed without another round. |
| +- **NOT READY**: one or more P1s, listed. |
| + |
| +Do not edit files. Do not spawn Anthropic-model reviewers or subagents of your own. Do not run the full test suites. |