carlos / platform Public

review: Astra brief for code round 3, the session policy change only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e0f582ef6e0d096bb383523a84aee170da85fa82 parent bf7273d
1 file changed, +59 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code-R3.md +59 −0
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code-R3.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code-R3.md
new file mode 100644
index 000000000..3834c225e
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-code-R3.md
@@ -0,0 +1,59 @@
+# Review brief: store write credential, code, round 3 of 3 (the last)
+
+Repo carlos/platform, branch `store-write-credential`, at the commit named in
+your prompt. Under review: ONLY the session-policy change made after round
+2, commit `bf7273de` (`git show bf7273de`), with its tests and the design's
+section 3 (`docs/superpowers/specs/2026-11-25-store-write-credential-design.md`).
+Earlier rounds: `docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R1.md`
+and `-R2.md`.
+
+## Fixed: do not re-argue
+
+- Paul, 2026-11-25: this branch ships phase 1 (both doors refuse). Round
+ 2's P1, named-unit recovery repointing a console through PointLive before
+ adoptHost, is deferred by Paul's ruling to the phase 2 branch (option A).
+ Do not review or reopen it.
+- Everything else from rounds 1 and 2 is closed; do not re-review it.
+- Never call AWS or any network service.
+
+## What changed and why
+
+CI's MinIO contract found that MinIO's STS refuses a session policy with
+NotAction (it cannot marshal the empty action set) and refuses any action
+name it does not know, accepting a wildcard only when it matches a known
+action. `writeSessionPolicy` (`internal/objstore/writecred.go`) now has:
+Allow the three write actions on the prefix; Deny `s3:*` with NotResource
+the prefix; Deny the families in `writeObjectDenies` on `arn:aws:s3:::*`;
+Deny PutObject carrying any tag. Three AWS object actions fit no family both
+engines accept and are denied only because nothing allows them:
+`s3:PutObjectAcl`, `s3:ObjectOwnerOverrideToBucketOwner`,
+`s3:InitiateReplication`. `TestWriteCredentialScopeEvaluation` pins that
+list. CI passed at `bf7273de`, including `TestWriteCredentialContractMinio`.
+
+## What to check
+
+1. On AWS's policy evaluation: does the new document still let a write
+ credential do only PutObject (with multipart) and the two multipart
+ calls under its prefix, and nothing else, with or without a resource
+ policy naming the session? Does any family deny a write action
+ (CreateMultipartUpload, UploadPart, CompleteMultipartUpload are PutObject;
+ AbortMultipartUpload; ListMultipartUploadParts)?
+2. Are the three absence-only actions correctly characterised (store buckets
+ made with ACLs disabled; replication needing a configuration the store's
+ own policy denies setting), and is denying them only by absence
+ acceptable given the writer's own policy and the boundary?
+3. Do the tests (`writecred_test.go` shape and STS-size tests,
+ `writecred_policy_test.go`'s evaluator and its absence-only check,
+ `contract_writecred_test.go`) actually pin the property?
+
+## Severity, output
+
+As in `CODEX-REVIEW-BRIEF-store-write-credential-code.md`: P1 (unsafe, would
+not work; blocks merge), P2 (fixed without another round), P3 (follow-up).
+Each finding gives the problem, evidence (file:line), failure scenario, fix
+and fault family. End with exactly one verdict: READY, READY AFTER FIXES,
+or NOT READY. This is round 3 of 3: a NOT READY also says whether refusing
+up front or cutting part of the change would remove its P1s.
+
+Do not edit files. Do not spawn Anthropic-model reviewers or subagents of
+your own. Do not run the full test suites.