review brief: config receipts spec (#522), Astra round 3
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+111
−0
docs/superpowers/reviews/CODEX-REVIEW-BRIEF-config-receipts-R3.md+111 −0
CI passed — run details
Intent
Attributed to this commit: 42.1 g CO₂e (2,716,812 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on design-config-receipts-522, 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-config-receipts-R3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-config-receipts-R3.md| new file mode 100644 |
| index 000000000..e5e37edc7 |
| --- /dev/null |
| +++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-config-receipts-R3.md |
| @@ -0,0 +1,111 @@ |
| +# Review brief: config versions, digests and receipts spec (#522), round 3 of 3 |
| + |
| +Repo carlos/platform, branch `design-config-receipts-522`, commit 7f2bc06bc43e08e49c32946626244e39d82abc00. |
| +Under review: `docs/superpowers/specs/2026-11-02-config-receipts-design.md` (rev 5). |
| +Authorities: the code on main at 5394c7f9 (the branch adds only the spec and |
| +this brief), and the merged specs it cites, notably |
| +`docs/superpowers/specs/2026-08-04-config-console-api-design.md` and |
| +`implementation/team-scoped-credentials.md`. The request itself is amadan |
| +carlos/platform #522; its consumer is oficina/home #103. Do not review |
| +against unmerged branches; if this work needs one, say so as a P1 and stop. |
| + |
| +You are an independent reviewer. Read the document, then the code it |
| +names, and check every claim against that code. |
| + |
| +## Fixed: do not re-argue |
| + |
| +- Paul, 2026-11-02: the per-key test is "unchanged since I last looked", |
| + not "equals a plaintext I hold". No facility to compare a secret with a |
| + plaintext is wanted. |
| +- Paul, 2026-11-02: one spec, two plans. Plan 1 (§4) console and |
| + internal/appconfig only; Plan 2 (§5) box-side delivery proof. |
| +- Census verdicts are the reviewer's (#280); the spec's census sections |
| + (§4.12, §5.8) are for you to judge. |
| +Report only mechanisms that fail to honour these. |
| + |
| +## What to check |
| + |
| +1. Versions (§4.2): is a SHA-256 of stored bytes stable across reads on |
| + both stores (DirStore and the S3 store) and does it move on every |
| + content change? Is "none" vs an existing empty manifest handled |
| + everywhere the spec uses versions? |
| +2. Digests (§4.3): can a secret's digest confirm or reveal any plaintext? |
| + Is the stated sensitivity of plain-var digests honest? Any other leak of |
| + envelope, plaintext or plaintext-derived hash (logs, audit rows, errors, |
| + 412 bodies, receipts)? |
| +3. Conditional writes (§4.5): is the compare-then-CAS sequence sound against |
| + every writer in §3.2 (platform writers included) and against bucket-mode |
| + CLI writes? Does adding an expected-version parameter to applyAt break |
| + any existing caller? Is refusing if_version with exec_delivery enough? |
| +4. The retry recipe (§4.7): is each branch of step 4 actually sound? Find |
| + an interleaving where it reports "landed" or "safe to retry" wrongly. |
| +5. Authority (§4.8, §5.6): team credentials (#449 boundary) must learn |
| + nothing about the default bundle or overlays; cross-account must be the |
| + gate's byte-identical 404; `host` on config/effective and config/delivery |
| + must not let a caller probe another app's or account's routes. Judge the |
| + open question in §4.8 (existing Operate gate vs Admin-only) and give a |
| + verdict. |
| +6. Effective view (§4.4): does it reproduce the box's merge exactly, |
| + including owned (standalone) environments and overlays? |
| +7. Plan 2 ack (§5.3-5.5): can any state read "delivered" when the process |
| + does not have the stored config? Check: sleeping units, wakes, swaps and |
| + overlap generations, exec routes with and without the rollout scheduler, |
| + tcp-exec-file, moves (held routes), fleet boxes via the edge store door, |
| + old agents, a stale box heartbeat. Is last_delivered sound? |
| +8. Plan 2 writers: request cost (root pass is a oneshot; agent is |
| + long-running), and whether writing on refusals can race or overwrite |
| + another writer's ack (moves, RenderHeld, rollout's deferred ack). |
| +9. Census (§4.12, §5.8): does root newly open, run, query or follow |
| + tenant/app/agent-controlled input, or is a check weakened? In particular |
| + the root pass reading its own prior ack, and reading InvocationID/start |
| + time from systemd. |
| +10. Anything #522 asks for (its three numbered items and its list of |
| + negative checks) that the spec silently drops. |
| + |
| +## Round 3 (last) |
| + |
| +Earlier rounds: `docs/superpowers/reviews/CODEX-FINDINGS-config-receipts-R1.md` |
| +(5 P1, 4 P2) and `CODEX-FINDINGS-config-receipts-R2.md` (3 P1, 1 P2). Changes |
| +are marked **(R1-n)** and **(R2-n)** in the spec. |
| + |
| +Also fixed now: Paul's choice for R2-1 (2026-11-03, under AGENTS.md stopping |
| +rule 2): names carlos sets at launch are refused at write, kept in one list |
| +pinned by one guard test, and `<host>.env` overrides are reported by name |
| +(§5.5 "Overrides"). Judge whether the mechanism honours that choice; do not |
| +propose a different approach to the same family. |
| + |
| +First give one line per P1 and P2 from round 2: 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. This is round 3: a NOT READY also says whether the |
| +P1s share one cause, and whether refusing the case up front or cutting the |
| +feature would remove them. |
| + |
| +## 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 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. |