carlos / platform Public

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.

Commits 15
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity