store-write-credential-phase2-fixes
The two fixes that had to land before the write-only store credential's phase 2 can switch on (design docs/superpowers/specs/2026-11-25-store-write-credential-design.md §3, §13, §14; Paul's rulings of 2026-11-25). Both are fixed and reviewed. Phase 2 stays off (writeCredentialsReleasedPhase is still 1); switching it on is a separate change that needs Paul's go. Not merged.
Fix 1: one console floor admission for every repoint (option A)
release.PointLive(ctx, floor, ...) checks the floor before every swap; the bare swap pointLive is unexported. Every path that can make a box run a different console build goes through it: adoption forward and its D1 rollback (rollLiveBack), the D1 group, held publish and restore, named-unit repair and active recovery, root's rollback resume and history rollback. Bootstrap, system update/apply, cold-wake materialize (adoption), the offline move landing and instancectl's per-instance live/ do not repoint (§14). Floor rule unchanged: key existence by a one-key listing, body never read.
Abort rule (Paul's choice A, after Astra round 2): release.AbortBeforeEffect(err, undo...). Every PointLive caller passes its error through it. An attempt the floor refused before any effect, a failed read included, is cancelled from root's local state only, never reading the deployment store and never recorded as a refusal. It undoes adoption's history attempt and Prepare's capture (new Abort hook), active recovery's capture, and the resumes' Recovering mark; the resume no longer settles a floor-refused rollback.
Guard: TestEveryRepointPassesTheConsoleFloor. The bare-swap rule flags every pointLive identifier in package release outside PointLive, in any declaration, and any go:linkname. The second-door rule traces live-link paths to link-writing destinations through locals, helpers, returned paths, pass-throughs, type aliases and aliased imports.
Fix 2: separate session policies (option 1)
The core decides a WriteScope; AWS renders it with Deny NotAction the three writes on *; MinIO with the families its STS accepts (the MinIO contract runs it). The evaluator checks the AWS document against all 147 S3 action names in the pinned SDK v1.105.0 and future names, under a direct session grant.
Review and census
Astra (gpt-6-astra, high): round 1 NOT READY (one P1, two P2s, fixed); round 2 NOT READY and stopped under rule 2 (P1 in the same family); Paul chose A; round 3 of 3: no P1, READY AFTER FIXES, its P2 (guard result types) fixed. Census approved in full at 370672c0 (round 3 plus a census check of the P2 diff), recorded on #280.
Checks
CI green at 370672c0. Locally: make code-health, make staticcheck, make gitleaks clean; make tofu-test (39 files); the MinIO write-credential contract passes; darwin and windows builds; targeted release, host, objstore, console and census tests. Three host tests fail locally on this branch and on phase 1's tree alike (environment); CI passes them.
Discussions
- No discussions on this branch yet.
Tasks
- No tasks yet.
Activity
- paul@keymail.dev pushed c8e1ebd28 Merge origin/main (DPA follow-ups) into phase 2 fixes
- paul@keymail.dev pushed 26641be36 Merge origin/main into store-write-credential-phase2-fixes
- paul@keymail.dev pushed 370672c0a store write credential phase 2: answer Astra round 3
- paul@keymail.dev pushed a41cfd3df census: re-propose phase 2 for the abort rule; Astra round 3 brief
- paul@keymail.dev pushed 72ee275fa store write credential phase 2: one abort rule for floor refusals
- paul@keymail.dev pushed 7d18acd60 release: move adoptHost's floor cleanup out, for the code-health ratchet
- paul@keymail.dev pushed d8cbc4cbf review: Astra round 2; stop under rule 2, phase 2 fixes
- paul@keymail.dev pushed 5282e8b13 census: re-propose store-write-credential phase 2 after round 1
- paul@keymail.dev pushed de257ed92 store write credential phase 2: answer Astra round 1
- paul@keymail.dev pushed 55b6953f6 review: Astra round 1 findings, store write credential phase 2 fixes
- paul@keymail.dev pushed df903327b review: Astra brief for store write credential phase 2 fixes, round 1
- paul@keymail.dev pushed 849c0f099 census: propose store-write-credential phase 2 fixes
- paul@keymail.dev pushed e1ebe95a8 docs: store write credential phase 2 fixes in the design
- paul@keymail.dev pushed 08211e812 objstore: separate write-credential session policies for AWS and MinIO
- paul@keymail.dev pushed da4709200 release: one console floor admission for every repoint