carlos / platform Public

spec: store write credential phase 1 lands, two P1s deferred

Both P1s block phase 2 (Paul, 2026-11-25); listed in a follow-ups note.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev af058ee190d6f0902f6af6b086f447b900f13fa2 parent f01f0eb
2 files changed, +57 −0
  • docs/superpowers/notes/store-write-credential-followups.md +32 −0
  • docs/superpowers/specs/2026-11-25-store-write-credential-design.md +25 −0
diff --git a/docs/superpowers/notes/store-write-credential-followups.md b/docs/superpowers/notes/store-write-credential-followups.md
new file mode 100644
index 000000000..e3b4ed24c
--- /dev/null
+++ b/docs/superpowers/notes/store-write-credential-followups.md
@@ -0,0 +1,32 @@
+# Store write credential: follow-ups
+
+Design: `docs/superpowers/specs/2026-11-25-store-write-credential-design.md`.
+Phase 1 merged with both doors refusing (`write_credentials_not_released`).
+
+## Blocks phase 2 (Paul, 2026-11-25)
+
+**Phase 2 (`writeCredentialsReleasedPhase = 2` in
+`internal/console/apistorecredentials.go`) must not switch on until both of
+these are fixed, on the phase 2 branch, and reviewed afresh.**
+
+1. **Named-unit recovery bypasses the console floor.** Found in code review
+ round 2 (`docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R2.md`).
+ - `internal/host/namedrecovery.go` and `namedrecovery_active.go` (through
+ `release.StageSignedHead`) call `PointLive` and restart a route before
+ `adoptHost`'s `consoleFloorAdmits` runs. A signed pre-floor console
+ could therefore be installed after a writer exists.
+ - Fix (design section 12, option A): one console-floor admission that
+ every repoint goes through, a guard test that no other call site
+ repoints a route, and a witness per path with a floor and a pre-floor
+ console, including a floor-read failure.
+2. **The session policy leaves object actions open to a direct session
+ grant.** Found in code review round 3
+ (`docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R3.md`).
+ - `writeObjectDenies` covers families both AWS and MinIO accept. It does
+ not cover `s3:ListObjectAnnotations`, `s3:PutObjectAnnotation`,
+ `s3:UpdateObjectEncryption` or any S3 action added later.
+ - Fix (Paul's option 1): the AWS session policy denies `NotAction` the
+ three write actions. MinIO gets a separate document and its own
+ contract test, because its STS refuses `NotAction`.
+ - The evaluator test must check every S3 object action, not a
+ hand-picked list.
diff --git a/docs/superpowers/specs/2026-11-25-store-write-credential-design.md b/docs/superpowers/specs/2026-11-25-store-write-credential-design.md
index a82398aea..f8ddf20bd 100644
--- a/docs/superpowers/specs/2026-11-25-store-write-credential-design.md
+++ b/docs/superpowers/specs/2026-11-25-store-write-credential-design.md
@@ -542,3 +542,28 @@ The choices, for Paul:
for A or B on a branch of its own.
The author recommends C, with A as the follow-up.
+
+## 13. Phase 1 lands; two P1s deferred to phase 2 (Paul, 2026-11-25)
+
+Paul chose to merge phase 1 as it is: both doors refuse, so it cannot make a
+writer, a state object, a floor or a credential. Two P1s are deferred, by
+his ruling, to the phase 2 branch, which gets a fresh review. **Phase 2
+(`writeCredentialsReleasedPhase = 2`) must not switch on until both are
+fixed and reviewed.**
+
+1. **Named-unit recovery bypasses the console floor** (code round 2,
+ `REVIEW-FINDINGS-store-write-credential-code-R2.md` P1). Fix: section
+ 12's option A. Every repoint of a route (ordinary adoption, both
+ named-unit recovery paths, the signed-head stage) goes through one
+ console-floor admission, with a guard test that no other call site
+ repoints a route, and a witness per path.
+2. **The session policy's deny families leave object actions open to a
+ direct session grant** (code round 3,
+ `REVIEW-FINDINGS-store-write-credential-code-R3.md` P1:
+ `s3:ListObjectAnnotations`, `s3:PutObjectAnnotation`,
+ `s3:UpdateObjectEncryption` and any future S3 action). Fix: Paul's option
+ 1. The AWS session policy denies `NotAction` the three write actions
+ again. MinIO gets its own document and its own contract test, since its
+ STS refuses `NotAction`. Section 3 changes to match.
+
+Both are listed in `docs/superpowers/notes/store-write-credential-followups.md`.