reviews: Astra brief for the G6 pool path plan, round 2
1 file changed,
+76
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN-R2.md+76 −0
CI cancelled — superseded by a newer push — run details
Intent
Attributed to this commit: 15.3 g CO₂e (1,739,506 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on g6-pool, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN-R2.md| new file mode 100644 |
| index 000000000..3e5a544d2 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-G6-POOL-PLAN-R2.md |
| @@ -0,0 +1,76 @@ |
| +# Review brief: G6 pool path implementation plan, round 2 of 3 |
| + |
| +Repo carlos/platform, branch `g6-pool`, commit named in the reviewer's prompt. |
| +Under review: `docs/superpowers/plans/2026-11-12-g6-pool-path.md`. |
| +Authorities (MERGED on main, 8660f95a): `docs/superpowers/specs/2026-11-11-g6-pool-path-design.md` (rev 3), |
| +`docs/superpowers/specs/2026-11-11-g6-us-capacity-design.md` §3 (swap concurrency 1 for born-HA apps), |
| +`docs/superpowers/specs/2026-10-26-region-ha-without-claims-design.md` §23 (B10), and the earlier design findings |
| +`docs/superpowers/reviews/CODEX-FINDINGS-G6-R1.md`, `CODEX-FINDINGS-G6-R2.md` (pool items). |
| + |
| +You are an independent reviewer. Read the plan, then the code it names, and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul's rulings 2026-11-12: the allowlist is the env list `CONSOLE_HA_POOL_ACCOUNTS`, unset or empty = nobody; a fresh |
| + create in pool `ha` on flagship US, no migration of existing apps; the checkbox text names the 15-minute bound. |
| +- Copy: every user-facing string is a COPY-PENDING placeholder until Paul's copy review approves it (Tasks 8 and 9 wire it). |
| + Do not review wording. |
| +- The spec's design (app row column `ha_pool`, person-only create option, enable door writes Pool + Regions on first |
| + create) is decided. Report only mechanisms in the plan that fail to honour the spec or would not work. |
| + |
| +## What to check |
| + |
| +1. **Gate coverage.** Every door that can write a record (instance, sidecar, route) into a scoped HA pool calls |
| + `haPoolAllowed` after authentication/membership/validation and before any bucket or DB write, and a non-member still |
| + gets the door's identical 404. The plan claims instance create and standalone sidecar create are the only such doors |
| + (domain-attach first route, demo claims and demo publish write pool ""). Check that claim against the code, including |
| + seeded instances, `carlos run`, moves, restores, imports, replicas and any store-mode path a console door accepts. |
| +2. **Fail closed.** Unset list, malformed `CONSOLE_HA_CAPACITY_CONFIG`, a region missing from `CONSOLE_HA_REGIONS`: |
| + no path lets an unlisted account's record land in a scoped HA pool. |
| +3. **Row and migration.** The `apps.ha_pool` column survives `migrateAppsKey`'s table rebuild and existing databases; |
| + it is written in the same insert as the row; a trashed and recreated name never inherits it (`AppIncarnation`). |
| +4. **Region binding (G6-2.5).** Both region doors, the store's conditional update, the place door and `create --place` |
| + refuse for an `ha_pool` row; create, region change and enable racing cannot leave a born-HA app's manifest |
| + `Regions` or pool disagreeing with the row. Check the plan's race test would fail on a broken implementation. |
| +5. **Enable door.** First create only; re-checks allowlist and region; 409 on pool mismatch for `ha_pool` rows; legacy |
| + apps (no `ha_pool`, including operator-managed store-mode manifests such as the canaries) behave exactly as today. |
| +6. **Swap concurrency.** Both swap doors (API and browser form) refuse > 1 for born-HA apps. |
| +7. **Person-only.** A Publish service credential cannot create an HA app, even for a listed account; its plain creates are |
| + unchanged. The web form posting a forged `ha=1` is checked server-side. |
| +8. **CLI.** `carlos apps create --ha` against an older console that ignores the field fails loudly; `docs/site/cli.md` |
| + is updated so `internal/docsite` stays green; cross-compiles. |
| +9. **Tests prove the change.** Each refusal test would fail if the gate were missing or after the write. Census task |
| + scope is correct (`go list -deps .`). |
| +10. **Rollout hazard.** Rolling a console with the list unset blocks new canary instances in pools `ha` and `hapair`. |
| + Is the plan's "After merge" ordering enough, or should the plan change something in code? |
| + |
| +## Round 2 |
| + |
| +Earlier rounds: `docs/superpowers/reviews/CODEX-FINDINGS-G6-POOL-PLAN-R1.md` (NOT READY, 4 P1 + 2 P2). The gate now keys |
| +on the pool name (restricted if in ANY region's ha_pools), placement is re-checked under locks with a conditional store |
| +update, fixtures and race/CLI tests were rewritten. |
| + |
| +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. Also check the new "After merge" step about existing accounts whose store-mode manifests use a pool |
| +that is now restricted everywhere. |
| + |
| +## 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. (The census, and review of any newly changed security, |
| + root, termination or production-storage behaviour, still check the fix; see AGENTS.md, "Stopping rules".) |
| +- **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 and the invariant or trust boundary it breaks (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. |