carlos / platform Public

review brief: config receipts spec (#522), Astra round 2

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev ea786db1509edd98765cf816aa51693072df3e1a parent f573bc6
1 file changed, +104 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-config-receipts-R2.md +104 −0

CI passed — run details

Intent

Attributed to this commit: 20.6 g CO₂e (2,208,012 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-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-config-receipts-R2.md
new file mode 100644
index 000000000..05c957169
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-config-receipts-R2.md
@@ -0,0 +1,104 @@
+# Review brief: config versions, digests and receipts spec (#522), round 2 of 3
+
+Repo carlos/platform, branch `design-config-receipts-522`, commit f573bc674e1f31b7f6022b3100a974876122f4a3.
+Under review: `docs/superpowers/specs/2026-11-02-config-receipts-design.md` (rev 3).
+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 2
+
+Earlier rounds: `docs/superpowers/reviews/CODEX-FINDINGS-config-receipts-R1.md`
+(round 1, 5 P1 and 4 P2). Every finding was taken; changes in the spec are
+marked **(R1-n)**. Your round-1 ruling that the existing Operate/Admin gate
+is acceptable (not Admin-only) is now fixed.
+
+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.
+
+## 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.