carlos / platform Public

census: re-propose store-write-credential phase 2 after round 1

adoptHost's abandon sites, RootHistoryPass.abandon (new) and recover's
read of root's own rollback journal. Round 2 brief alongside.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 5282e8b131e70a4320b940e9f3926fca83b18ea7 parent de257ed
4 files changed, +190 −13
  • docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md +6 −6
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-phase2-fixes-R2.md +175 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv +8 −6

CI cancelled — superseded by a newer push — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-rkJOvx
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading github.com/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/aws/aws-sdk-go-v2/service/ssm v1.74.0
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading golang.org/x/text v0.43.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/memory v1.11.0
go: downloading github.com/google/uuid v1.6.0
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec

amadan: job cancelled — a newer push superseded it
diff --git a/docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md b/docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md
index 25fefa3cc..69a594585 100644
--- a/docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md
+++ b/docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md
@@ -1,20 +1,19 @@
# Census approval: store-write-credential-phase2-fixes
-Ruling `census-ruling-store-write-credential-phase2-fixes`. The independent reviewer approves or rejects every change below, 2 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-store-write-credential-phase2-fixes`. The independent reviewer approves or rejects every change below, 4 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
| `internal/host/namedrecovery.go` `namedUnitRecovery.repair` | body | unchanged (4) | the stopped-unit repoint calls release.PointLive with ctx and n.source.store (the deployment store the proof binding source already reads), so the console floor admits the signed head first; it can only refuse (ErrConsoleFloor, nothing repointed or started). No new read beyond the floor's one-key listing and the staged bytes PointLive's admission reads |
-| `internal/host/namedrecovery_active.go` `namedUnitRecovery.recover` | body | unchanged (10) | inside the capture effect, after validate and before the rollback attempt is captured, release.CheckConsoleFloor on the signed head's staged path (refuses only; nothing captured, repointed or restarted); the repoint is release.PointLive with ctx and n.source.store. Same root identity, guard (work.With), validation and restart |
| `internal/host/roothistory_recovery.go` `resumeHistoryRestart` | body | unchanged (10) | the rollback repoint is checks.repointLive (release.PointLive with the deployment store from rootRestartChecks.floor) instead of the bare PointLive: the console floor can refuse rolling a console back below it (error returned, nothing repointed or started). Same checks before it |
| `internal/host/rootrestart.go` `productionRootRestartChecks` | body | unchanged (4) | adds floor: the deployment store of the same cached proof binding source (openDeployStore) that prepareRollback, rollback and host already use; read only by repointLive for the console floor admission. No new store, path or credential |
| `internal/host/rootrollback_resume.go` `resumeRootRestart` | body | unchanged (10) | the rollback repoint is checks.repointLive (release.PointLive with the floor store) instead of the bare PointLive: the console floor can refuse a rollback onto a console build below it (error, nothing repointed or started). Same checks before it |
-| `internal/release/adopt.go` `adoptHost` | body | unchanged (130) | consoleFloorAdmits no longer takes newProg (the admission reads the staged file's program itself, the same FileProgram path); the forward PointLive and the D1 rollback PointLive take ctx and the pass's store s, so the floor is asked again at the swap and at the rollback (refuse only); rollbackGroup takes ctx and s. Comment updated. No new read kind |
| `internal/release/consolefloor.go` `consoleFloorAdmits` | body | unchanged (3) | now asks admitConsoleFloor (FileProgram of the staged path, then the unchanged consoleFloorRefusal: one-key bounded listing of the floor key, marker scan of the staged file); prints the ConsoleFloorError. Same rule, same reads; refuses only |
| `internal/release/materializeheld.go` `materializeHeld` | body | unchanged (3) | passes ctx and the stage's store s to publishHeld, for the console floor at the swap. No new read |
| `internal/release/materializeheld.go` `publishHeld` | body | unchanged (15) | takes ctx and s; the held swap is PointLive(ctx, s, ...), so the console floor can refuse publishing a console build below it (error, link untouched). Same guard, binds and restore |
| `internal/release/materializeheld.go` `restoreLive` | body | unchanged (4) | takes ctx and s; putting the link back is PointLive(ctx, s, ...), so the floor can refuse restoring a console build below it (error; the link stays where it was). Removal when cur is empty unchanged |
| `internal/release/rollback.go` `rollbackGroup` | body | unchanged (13) | takes ctx and the pass's store s; each sibling's repoint is PointLive(ctx, s, ...), so the console floor can refuse a sibling's rollback onto a console build below it (printed, sibling left alone). Same group, work guard and stamp |
+| `internal/release/adopt.go` `adoptHost` | sites | +registry:Host ×2, +whole:Route | consoleFloorAdmits no longer takes newProg (the admission reads the staged file's program itself, the same FileProgram path); the forward PointLive and the D1 rollback PointLive take ctx and the pass's store s, so the floor is asked again at the swap and at the rollback (refuse only); rollbackGroup takes ctx and s. Comment updated. No new read kind. Round 1 answer: on ErrConsoleFloor from the forward PointLive after a root-history attempt was begun, cfg.rootHistory.abandon settles that attempt with no refusal (the floor refusal precedes every effect), printing and recording an error if that fails; the new sites are rt.Host and rt passed to abandon. Refuse-only; nothing admitted or widened |
Envelopes re-pinned: `internal/host`, `internal/objstore`, `internal/release`.
@@ -23,22 +22,23 @@ Review: a model from the other family than the author reads the branch's diff ag
Recorded dispositions, which each change must still satisfy:
- `internal/host/namedrecovery.go` `namedUnitRecovery.repair`: authority, task E1,J1. Basis: E13: signed recovery allows unknown history but preserves usable refusals, including retained originals; verified later promotion clears only D1. Health recording is independent of program recording; minting requires a census. Fixtures: TestPlan14RecoveryUnknownHistory, TestPlan14RecoveryKnownRefusal, TestPlan14RecoveryOriginalRefusalWithUnknownHistory, TestPlan14RootHistoryVerifiedRetryBeforeAttempt, TestPlan14ProgramFailureStillRecordsHealth, TestPlan14RootHistoryMintCensus.
-- `internal/host/namedrecovery_active.go` `namedUnitRecovery.recover`: authority, task B3,E1. Basis: E13: signed recovery allows unknown history but preserves usable refusals, including retained originals; verified later promotion clears only D1. Health recording is independent of program recording; minting requires a census. Fixtures: TestPlan14RecoveryUnknownHistory, TestPlan14RecoveryKnownRefusal, TestPlan14RecoveryOriginalRefusalWithUnknownHistory, TestPlan14RootHistoryVerifiedRetryBeforeAttempt, TestPlan14ProgramFailureStillRecordsHealth, TestPlan14RootHistoryMintCensus.
- `internal/host/roothistory_recovery.go` `resumeHistoryRestart`: authority, task B3,E1. Basis: Exact signed recovery retirement binds namespace, complete outcome digest and a later root-verified success; pending originals and changed evidence remain restrictive. Independent settlement publishes status without controlling effects. Fixtures: TestPlan14HistoryExactRecoveryRetirement, TestPlan14HistoryRecoveryRetirementAuthority, TestPlan14HistoryRetirementVisibleSync, TestPlan14HistoryRetirementProcessCrash, TestPlan14RecoveryRetirementProductionCallback, TestPlan14IndependentRecoveryPublishesStatus.
- `internal/host/rootrestart.go` `productionRootRestartChecks`: authority, task B3,J1,E1. Basis: Signed named-unit recovery is independent of release and health history. Root rechecks canonical source, unit, process, signed target and trusted live pointer; captures attempt authority before publication; verifies readiness and resumes without repeated effects. Fixtures: TestPlan14SignedActiveFixIgnoresHistory, TestPlan14SignedActiveFixAuthority, TestPlan14SignedFixSupersedesOlderAttempt, TestPlan14ActiveRecoveryProcessCrash, TestPlan14SignedRestartWithoutHealthHistory, TestPlan14CapturedRollbackWithoutHealthHistory, TestPlan14SignedRestartRequiresTrustedLiveLink. PROPOSED E50: Root restart assembly wires the independent bound-unit refusal into adoption and rollback.
- `internal/host/rootrollback_resume.go` `resumeRootRestart`: authority, task B3,J1,E1. Basis: Signed named-unit recovery is independent of release and health history. Root rechecks canonical source, unit, process, signed target and trusted live pointer; captures attempt authority before publication; verifies readiness and resumes without repeated effects. Fixtures: TestPlan14SignedActiveFixIgnoresHistory, TestPlan14SignedActiveFixAuthority, TestPlan14SignedFixSupersedesOlderAttempt, TestPlan14ActiveRecoveryProcessCrash, TestPlan14SignedRestartWithoutHealthHistory, TestPlan14CapturedRollbackWithoutHealthHistory, TestPlan14SignedRestartRequiresTrustedLiveLink.
-- `internal/release/adopt.go` `adoptHost`: authority, task B3,E1,E2,E3,E4,J1. Basis: E16: root first-registration creation evidence under release exclusion; exact installation identity is required for first-program adoption and is consumed before an attempt. Installed-program history comes from the verified claim launch. Fixtures: TestPlan14FreshInstallRegistration, TestPlan14FreshInstallProgramGate, TestPlan14FreshInstallCanonicalIdentity, TestPlan14FreshInstallLaunchObservation, TestPlan14InstalledLaunchProgramEvidence, TestPlan14FreshInstallProcessCrash, TestPlan14FreshInstallVisibleSync, TestClaimControlUnitInstallers. E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=applies root settings to canonically resolved routes including named units while legacy settings eligibility remains unchanged;rev3=PROPOSED-p3;run=16;basis=P3-R11 approved punctuation edit only; authority and reads unchanged;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=a non-root agent pass hands a route its named unit serves (unitServed) to root through the stage relay before staging or repointing; root adopt reads unchanged;rev3=census-ruling-rootfs-apps-2;identity=the root adopt pass (carlos adopt, carlos-adopt.service, root);basis=the row's runtime (Runtime) rides on a copy of the stage check, so stageFrom stages only the kind the row runs (runtimeMatches) before any download, and the manifest the pass ends up holding is checked again; the artifact sha comes from Manifest.BoxArtifact (the rootfs key for an image); the new kind is registry:Runtime, two sites, and one more Host site in the refusal's line. A runtime the agent forges can make the pass refuse a release, and can also admit a rootfs release to staging for a row it marks rootfs. The evidence paths that can then hand back a staged identity, exhaustively: (1) the signed channel pointer with a manifest digest (ensureStagedDigest, then stageFrom: a fresh download or the staged copy reused); (2) a signed pointer with no digest (the digest marker off), through ensureStagedChecked: with the manifest fetched, stageFrom as in (1); with the fetch failing, a binary's sibling on disk is handed back as before, and a rootfs sibling is refused (controller ruling R-a, task 11 fix E5); (3) a signed promotion record's manifest digest (stageAuthorized, then ensureStagedDigest and stageFrom); (4) retained-copy recovery when (3) fails (stageAuthorized, RetainedStaged: the copy's bytes must hash to its sibling's digest). For a rootfs version every path that hands back an identity yields a sibling byte-equal to the manifest just authorised: stageFrom reads the sibling back after a fresh stage or a reuse and refuses otherwise; (2)'s fallback never yields one; recovery refuses a sibling whose bytes do not hash to the digest a readable record names (retainedRootfsAuthorised, task 11 fix E1), and with no record readable takes the copy root itself verified, as for a binary. Every path is for the row's own account and app. The held stage (materializeheld.go) and signedhead.go stage through ensureStagedDigest with a zero stage check (a binary row's), so they never stage a rootfs release, and their no-digest fallback refuses a rootfs sibling too;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: reuse the manifest verified by existing staging and signed selection; within withReleaseWork after history, proof and staging gates, seed or unseed the exec mode before PointLive (R24), under the same full-row compare and no ServingVersion/GoodVersion/running build guard. Version stamps staging and is not serving evidence. All existing root admission, credentials, quotas, proof, restart and rollback checks retained; no additional manifest or bucket read.;rev3=census-ruling-dr1-left-link;basis=the up-to-date return is skipped for an unstamped planned row (unstampedPlannedRow), which takes the existing install path with all its gates; on that repair (cur == ver) the D2 history is not seeded from the candidate path, the stamp keeps PrevVersion, and the refusal clear keeps the up-to-date rule. No new read kind;rev3=census-ruling-sr-followups;basis=#1061 Task 4, print only: on a repoint failure the "repoint failed" line is skipped when the stage relay below is about to run (cfg.stageBlocked set and stageBlocked(err)) and the caps were not converged, the relay condition is computed once into relay and reused, otherwise identical. cfg.stageBlocked is set only by the non-root agent passes (OnStageBlocked, user carlos), the root adopt pass (carlos adopt, carlos-adopt.service, root) has no relay and is unchanged, every line still printing. Same reads, guard (withReleaseWork), relay and rollback, no read, file, store, bucket or root call added;rev3=census-ruling-store-write-credential;basis=one more site: before D3's bindProof, consoleFloorAdmits (consolefloor.go) for the selected version's staged path and the D2 program it already read; it can only refuse (print, point nothing live, retry next pass), never admit or widen; same root identity, same staging, guard and rollback
- `internal/release/consolefloor.go` `consoleFloorAdmits`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: only for a staged build whose Go program (read by D2, FileProgram) is the console: checks the deployment-bucket key control/console-floors/store-writers.json exists with a one-key bounded listing (ListPage, limit 1; List for a store without one), never reading its body (written create-only by the console; the bucket policy denies every principal its deletion or replacement; a forged one can only make boxes refuse pre-floor console builds), and scans the staged file at VersionPath for a fixed marker string; refuses on a read error; never opens, runs, queries or follows anything else
- `internal/release/materializeheld.go` `materializeHeld`: authority, task C,E1,J1,E2. Basis: root-route;kept=C,E1;scope=protected-decision-only E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.
- `internal/release/materializeheld.go` `publishHeld`: authority, task C,E1,J1. Basis: root-route;kept=C,E1;scope=protected-decision-only
- `internal/release/materializeheld.go` `restoreLive`: authority, task C,E1,J1. Basis: root-route;kept=C,E1;scope=protected-decision-only
- `internal/release/rollback.go` `rollbackGroup`: authority, task B3,E1,E3,J1. Basis: root-route;kept=B3,E1,E3;scope=protected-decision-only
+- `internal/release/adopt.go` `adoptHost`: authority, task B3,E1,E2,E3,E4,J1. Basis: E16: root first-registration creation evidence under release exclusion; exact installation identity is required for first-program adoption and is consumed before an attempt. Installed-program history comes from the verified claim launch. Fixtures: TestPlan14FreshInstallRegistration, TestPlan14FreshInstallProgramGate, TestPlan14FreshInstallCanonicalIdentity, TestPlan14FreshInstallLaunchObservation, TestPlan14InstalledLaunchProgramEvidence, TestPlan14FreshInstallProcessCrash, TestPlan14FreshInstallVisibleSync, TestClaimControlUnitInstallers. E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=applies root settings to canonically resolved routes including named units while legacy settings eligibility remains unchanged;rev3=PROPOSED-p3;run=16;basis=P3-R11 approved punctuation edit only; authority and reads unchanged;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=a non-root agent pass hands a route its named unit serves (unitServed) to root through the stage relay before staging or repointing; root adopt reads unchanged;rev3=census-ruling-rootfs-apps-2;identity=the root adopt pass (carlos adopt, carlos-adopt.service, root);basis=the row's runtime (Runtime) rides on a copy of the stage check, so stageFrom stages only the kind the row runs (runtimeMatches) before any download, and the manifest the pass ends up holding is checked again; the artifact sha comes from Manifest.BoxArtifact (the rootfs key for an image); the new kind is registry:Runtime, two sites, and one more Host site in the refusal's line. A runtime the agent forges can make the pass refuse a release, and can also admit a rootfs release to staging for a row it marks rootfs. The evidence paths that can then hand back a staged identity, exhaustively: (1) the signed channel pointer with a manifest digest (ensureStagedDigest, then stageFrom: a fresh download or the staged copy reused); (2) a signed pointer with no digest (the digest marker off), through ensureStagedChecked: with the manifest fetched, stageFrom as in (1); with the fetch failing, a binary's sibling on disk is handed back as before, and a rootfs sibling is refused (controller ruling R-a, task 11 fix E5); (3) a signed promotion record's manifest digest (stageAuthorized, then ensureStagedDigest and stageFrom); (4) retained-copy recovery when (3) fails (stageAuthorized, RetainedStaged: the copy's bytes must hash to its sibling's digest). For a rootfs version every path that hands back an identity yields a sibling byte-equal to the manifest just authorised: stageFrom reads the sibling back after a fresh stage or a reuse and refuses otherwise; (2)'s fallback never yields one; recovery refuses a sibling whose bytes do not hash to the digest a readable record names (retainedRootfsAuthorised, task 11 fix E1), and with no record readable takes the copy root itself verified, as for a binary. Every path is for the row's own account and app. The held stage (materializeheld.go) and signedhead.go stage through ensureStagedDigest with a zero stage check (a binary row's), so they never stage a rootfs release, and their no-digest fallback refuses a rootfs sibling too;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: reuse the manifest verified by existing staging and signed selection; within withReleaseWork after history, proof and staging gates, seed or unseed the exec mode before PointLive (R24), under the same full-row compare and no ServingVersion/GoodVersion/running build guard. Version stamps staging and is not serving evidence. All existing root admission, credentials, quotas, proof, restart and rollback checks retained; no additional manifest or bucket read.;rev3=census-ruling-dr1-left-link;basis=the up-to-date return is skipped for an unstamped planned row (unstampedPlannedRow), which takes the existing install path with all its gates; on that repair (cur == ver) the D2 history is not seeded from the candidate path, the stamp keeps PrevVersion, and the refusal clear keeps the up-to-date rule. No new read kind;rev3=census-ruling-sr-followups;basis=#1061 Task 4, print only: on a repoint failure the "repoint failed" line is skipped when the stage relay below is about to run (cfg.stageBlocked set and stageBlocked(err)) and the caps were not converged, the relay condition is computed once into relay and reused, otherwise identical. cfg.stageBlocked is set only by the non-root agent passes (OnStageBlocked, user carlos), the root adopt pass (carlos adopt, carlos-adopt.service, root) has no relay and is unchanged, every line still printing. Same reads, guard (withReleaseWork), relay and rollback, no read, file, store, bucket or root call added;rev3=census-ruling-store-write-credential;basis=one more site: before D3's bindProof, consoleFloorAdmits (consolefloor.go) for the selected version's staged path and the D2 program it already read; it can only refuse (print, point nothing live, retry next pass), never admit or widen; same root identity, same staging, guard and rollback
New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+- new `internal/release/roothistory_pass.go:RootHistoryPass.abandon`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/release/versions.go:pointLive`: reads +file:EvalSymlinks ×2, +file:Open, +file:Readlink, +file:Stat; written legacy, accepted-legacy, frozen
- quiet `internal/release/versions.go:PointLive`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
+- reads `internal/host/namedrecovery_active.go:namedUnitRecovery.recover`: +file:Read; keeps authority, task B3,E1
-Seal: `8b8e269938a575bfaeb8f0c9a5be508b4b22a10b7b5bd19d74fa511e5f15a302` → `bc3034036ec2e6acd8e22efb555ce5c21363d7313db99e5c26e900181b71eeae`.
+Seal: `8b8e269938a575bfaeb8f0c9a5be508b4b22a10b7b5bd19d74fa511e5f15a302` → `ac9e5ff19e2ec41e235c3930c191ce88a4a851760f541dbe1139f67733c87016`.
Overlay: `internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-phase2-fixes-R2.md b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-phase2-fixes-R2.md
new file mode 100644
index 000000000..9b93c40d0
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-REVIEW-BRIEF-store-write-credential-phase2-fixes-R2.md
@@ -0,0 +1,175 @@
+# Review brief: store write credential, phase 2 fixes, round 2 of 3
+
+Repo carlos/platform, branch `store-write-credential-phase2-fixes`, at the
+commit named in your prompt. Under review: the diff
+`origin/main..<that commit>` (main is `2cadcb43`, phase 1). Read it with
+`git diff 2cadcb43..<commit>` in this worktree; the branch is pushed to
+`origin` (amadan.net).
+
+Authorities, MERGED on main at `2cadcb43`: the design
+`docs/superpowers/specs/2026-11-25-store-write-credential-design.md` §10
+(the console floor), §12 (the options after code round 2) and §13 (the two
+deferred P1s), and `docs/superpowers/notes/store-write-credential-followups.md`.
+This branch revises §3 and §6 and adds §14; check those against the code.
+
+You are an independent reviewer. This is a fresh review of this change
+(round 1 of 3), but it fixes two P1s from the phase 1 review, so read
+their findings first:
+
+- `docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R2.md`
+ P1: named-unit recovery (`internal/host/namedrecovery.go`,
+ `namedrecovery_active.go`, through `release.StageSignedHead`) repointed a
+ console with `PointLive` before `adoptHost`'s floor check ran. **Fault
+ family: version changes must preserve credential retirement and storage
+ enforcement (a console build from before store writers must never be
+ pointed live once a writer exists).** This family has recurred three
+ times (design round 3, code round 1, code round 2).
+- `docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-code-R3.md`
+ P1: the session policy's action-family Denies left
+ `s3:ListObjectAnnotations`, `s3:PutObjectAnnotation`,
+ `s3:UpdateObjectEncryption` and any later S3 action open to a resource
+ policy granting the session directly. **Fault family: the write-only
+ credential boundary must survive resource policies granting directly to
+ its session.**
+
+## Fixed: do not re-argue
+
+- Paul's rulings of 2026-11-25 (design §12-§13, the follow-ups note):
+ fix 1 is option A, one console-floor admission that every repoint goes
+ through, with a guard test and a witness per path; fix 2 is option 1,
+ separate session policy documents for AWS (`NotAction`) and MinIO
+ (families its STS accepts). Report only mechanisms that fail to honour
+ them.
+- The floor's rule is phase 1's and must not change: key existence by a
+ one-key bounded listing, never reading the body; a read failure refuses.
+- Phase 2 stays off: `writeCredentialsReleasedPhase` is still 1. Do not ask
+ for it to be switched on.
+- Everything else in phase 1 was reviewed and merged; do not re-review it.
+- Never call AWS or any network service.
+
+## What changed
+
+**Fix 1.** `release.PointLive(ctx, floor Store, optDir, host, acct, ver,
+app, running...)` asks `admitConsoleFloor` (`internal/release/consolefloor.go`)
+and only then swaps through the unexported `pointLive`
+(`internal/release/versions.go`). Every caller passes a store: adoption
+forward and its D1 rollback (`adopt.go`), the D1 group (`rollback.go`), the
+held stage and its restore (`materializeheld.go`), named-unit repair and
+recovery (`internal/host/namedrecovery*.go`; recovery also asks
+`release.CheckConsoleFloor` before capturing its rollback attempt), and
+root's two rollback resumes (`rootrollback_resume.go`,
+`roothistory_recovery.go`, through `rootRestartChecks.repointLive` and a new
+`floor` accessor fed from the same cached deployment store,
+`rootrestart.go`). Design §14 lists every path and the ones that do not
+repoint. Guard: `TestEveryRepointPassesTheConsoleFloor`
+(`internal/release/consolefloor_guard_test.go`). Witnesses:
+`internal/release/consolefloor_paths_test.go`,
+`internal/host/consolefloor_recovery_test.go`.
+
+**Fix 2.** The core decides a `WriteScope` (`internal/objstore/writecred.go`)
+and the provisioner seam's `MintSession` takes it. The AWS adapter renders
+`awsWriteSessionPolicy` (`aws_writecred.go`): Allow the three writes on the
+prefix; Deny `NotAction` the three writes on `*`; Deny `s3:*` outside the
+prefix; Deny a tagged PutObject. MinIO's rendering
+(`minio_writecred.go`, `minioWriteSessionPolicy`) keeps phase 1's families
+and the MinIO contract runs it. Tests: `writecred_test.go` (shapes, STS
+size), `writecred_policy_test.go`, `writecred_actions_test.go` (every S3
+action the pinned SDK names, under a direct grant; the evaluator's
+`NotAction`), `contract_writecred_test.go`, `aws_writecred_test.go`.
+
+## What to check
+
+1. Is there any path, in any package of the module, by which a box can
+ come to run a different console build without `admitConsoleFloor`
+ admitting it first? Read every caller of `PointLive`, every writer of a
+ live link or of what it names, and the paths §14 says do not repoint
+ (cold-wake materialize, bootstrap, `system update`/`apply`, offline
+ move landing, `instancectl`'s per-instance `live/`, restarts). Can the
+ staged bytes the admission judged differ from the bytes the link names
+ after the swap?
+2. Does the guard test actually fail on a new second door, and is its
+ scan sound (files it skips, names it keys on, helpers that write a link
+ for a caller)?
+3. Does each witness exercise the path it names, with the control proving
+ the path really repoints when the floor is absent? Is any path missing
+ a witness, or a floor-read-failure case?
+4. What does a refusal leave behind on each path: an attempt journal, a
+ history record, a poisoned version, caps drop-ins, a unit started on
+ the wrong build, a loop that never settles? Active recovery checks
+ before capture; is that enough, and do root's resumes behave on retry?
+5. Does the floor rule stay exactly phase 1's (no body read; a failed or
+ missing store refuses a console build only; non-console programs
+ admitted)?
+6. On AWS's evaluation, does `awsWriteSessionPolicy` let a write
+ credential do only PutObject (with multipart) and the two multipart
+ calls under its prefix, with or without a resource policy granting the
+ session directly, for every S3 action including ones not yet defined?
+ Does `NotAction` with `Resource: "*"` break a legitimate upload (KMS is
+ not used by store buckets)? Does it fit STS's 2,048-character limit?
+7. Is the core/backend split honest (`provider-neutral-core`): the core
+ decides the scope, each backend only renders it, no SDK in the core,
+ and the MinIO document is never sent to AWS?
+8. Does the evaluator test's action list really come from the pinned SDK,
+ and does its `NotAction` handling match IAM's?
+
+## Round 2
+
+Earlier rounds of this change: `docs/superpowers/reviews/REVIEW-FINDINGS-store-write-credential-phase2-fixes-R1.md`
+(NOT READY: P1 1, P2 2 and 3). The answer is commit `de257ed9` (after the
+findings commit `55b6953f`); the census proposal was re-run after it.
+
+- R1 #1 (P1, family "admission failures must remain retryable and must not
+ poison unattempted releases"): `namedrecovery_active.go` snapshots the
+ rollback journal before `captureRollback` and, on `ErrConsoleFloor` from
+ `PointLive`, restores it and removes the attempt's capability
+ (`abandonRollbackCapture`, `rootrollback.go`). Adoption under root history
+ had the same shape (`begin`, whose `Prepare` captures root's rollback
+ attempt, then `PointLive`); on `ErrConsoleFloor` it now settles the
+ history attempt with no refusal (`RootHistoryPass.abandon`,
+ `roothistory_pass.go`). Witnesses:
+ `TestNamedActiveRecoveryFloorFailureAtTheSwapIsRetryable`,
+ `TestAdoptionFloorFailureAtTheSwapIsRetryable`.
+- R1 #2 (P2): the guard is now a taint scan from live-link paths to write
+ destinations, through locals, path-preserving calls, directory
+ descriptors, aliased imports and helpers to a fixpoint
+ (`consolefloor_guard_test.go`), with a self-test for each.
+- R1 #3 (P2): no-floor controls on the D1 and held witnesses;
+ `TestHeldRestoreThroughPublishMeetsTheConsoleFloor` reaches `restoreLive`
+ through a failed second bind.
+
+First give one line per R1 finding: 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. If a
+finding of this round is in the same fault family as R1 #1, say so: under
+stopping rule 2 the author stops fixing and asks Paul.
+
+## 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 (its fault family; say
+whether it is one of the two families named above). 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; targeted `go test -run` on the
+packages above is fine.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 1fc90ac47..ba8b08204 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -294,4 +294,4 @@ plan14-root-reads-release-copy-across-consoles.tsv 892cf87db700600490e3ec9e944f9
plan14-root-reads-rootfs-etc-hosts-1349.tsv 892cf87db700600490e3ec9e944f9dbe7151e43bc5471090634f1735bcb9a7bd
plan14-root-reads-managed-fleets-2b2.tsv 4bb3547d064b71134612e74b3b8269e16356d2832a8e579ace150349e55c6a27
plan14-root-reads-store-write-credential.tsv 8b8e269938a575bfaeb8f0c9a5be508b4b22a10b7b5bd19d74fa511e5f15a302
-plan14-root-reads-store-write-credential-phase2-fixes.tsv bc3034036ec2e6acd8e22efb555ce5c21363d7313db99e5c26e900181b71eeae
+plan14-root-reads-store-write-credential-phase2-fixes.tsv ac9e5ff19e2ec41e235c3930c191ce88a4a851760f541dbe1139f67733c87016
diff --git a/internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv b/internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv
index 231166aed..46b3887a6 100644
--- a/internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv
+++ b/internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv
@@ -1,21 +1,23 @@
# Census overlay store-write-credential-phase2-fixes, written by census-propose (#369). census-ruling-store-write-credential-phase2-fixes, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md.
-# 11 body, 0 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 2 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
+# 9 body, 1 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 4 new dispositions: 1 reads re-frozen at their disposition with the claim, 2 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 0 other.
@legacy 878e84caa8176f0d7e24f731b15f99a60423c0d84e0f8ac7e1ddfe5d8303da75 internal/release/consolefloor.go consoleFloorAdmits legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: only for a staged build whose Go program (read by D2, FileProgram) is the console: checks the deployment-bucket key control/console-floors/store-writers.json exists with a one-key bounded listing (ListPage, limit 1; List for a store without one), never reading its body (written create-only by the console; the bucket policy denies every principal its deletion or replacement; a forged one can only make boxes refuse pre-floor console builds), and scans the staged file at VersionPath for a fixed marker string; refuses on a read error; never opens, runs, queries or follows anything else;rev3=census-ruling-store-write-credential-phase2-fixes;basis=now asks admitConsoleFloor (FileProgram of the staged path, then the unchanged consoleFloorRefusal: one-key bounded listing of the floor key, marker scan of the staged file); prints the ConsoleFloorError. Same rule, same reads; refuses only registry:App@181,registry:Host@149,whole:Route@171 aac5c5f8d785bddccfce21192d059c1c39cd9f6b50c54d9fff75baaf26a468fc
+@legacy 3fa30d7aeea89cba2759df691f4fcb7f4edf4e7ae33bf7e8e671716f8f7d2c8b internal/release/roothistory_pass.go RootHistoryPass.abandon legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential-phase2-fixes;basis=new: rechecks the route's history selection (the same recheck begin and complete use) and settles the given history attempt with no refusal (RootHistory.Settle, nil). Called only by adoptHost for an attempt the console floor refused at the swap, before any effect whole:Route@141 ee138f6222abde1dc9096cb5f5bf9f1d08a4501d2247fa4ac52cf01250d3462c
@legacy 8518f827849aebdd3a1b154ddc62081526a9c0d037a33b3c3f112a09bf2d2cf6 internal/release/versions.go pointLive legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential-phase2-fixes;basis=the former PointLive body, byte for byte, unexported: the swap itself (Stat of the target, Readlink, EvalSymlinks of the running and previous links, the previous link and the rename). Called only by PointLive after admitConsoleFloor admits (TestEveryRepointPassesTheConsoleFloor) file:EvalSymlinks@1013,file:EvalSymlinks@901,file:Open@1506,file:Readlink@388,file:Stat@147 ad3626cd8b7ec87a3a02fb16addd6a14693dc3fecacf755d58fb6806432ec04a
internal/host/namedrecovery.go namedUnitRecovery.repair authority E1,J1 E13: signed recovery allows unknown history but preserves usable refusals, including retained originals; verified later promotion clears only D1. Health recording is independent of program recording; minting requires a census. Fixtures: TestPlan14RecoveryUnknownHistory, TestPlan14RecoveryKnownRefusal, TestPlan14RecoveryOriginalRefusalWithUnknownHistory, TestPlan14RootHistoryVerifiedRetryBeforeAttempt, TestPlan14ProgramFailureStillRecordsHealth, TestPlan14RootHistoryMintCensus.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=the stopped-unit repoint calls release.PointLive with ctx and n.source.store (the deployment store the proof binding source already reads), so the console floor admits the signed head first; it can only refuse (ErrConsoleFloor, nothing repointed or started). No new read beyond the floor's one-key listing and the staged bytes PointLive's admission reads file:Open@2663,registry:Channel@1814,whole:Route@1060,whole:Route@1822 b9abfaab35711724f67c7037b34ed43d2143a76fb9262bf4fd7faa73803b58b7
-internal/host/namedrecovery_active.go namedUnitRecovery.recover authority B3,E1 E13: signed recovery allows unknown history but preserves usable refusals, including retained originals; verified later promotion clears only D1. Health recording is independent of program recording; minting requires a census. Fixtures: TestPlan14RecoveryUnknownHistory, TestPlan14RecoveryKnownRefusal, TestPlan14RecoveryOriginalRefusalWithUnknownHistory, TestPlan14RootHistoryVerifiedRetryBeforeAttempt, TestPlan14ProgramFailureStillRecordsHealth, TestPlan14RootHistoryMintCensus.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=inside the capture effect, after validate and before the rollback attempt is captured, release.CheckConsoleFloor on the signed head's staged path (refuses only; nothing captured, repointed or restarted); the repoint is release.PointLive with ctx and n.source.store. Same root identity, guard (work.With), validation and restart file:Open@5870,registry:Channel@2558,registry:Unit@216,registry:Unit@233,registry:Version@3618,registry:Version@3724,whole:Route@1478,whole:Route@202,whole:Route@2560,whole:Route@3544 5254fcc376b5f76ba3de34247bad24ba8ed43da238af07a6aafc5296a6a70164
internal/host/roothistory_recovery.go resumeHistoryRestart authority B3,E1 Exact signed recovery retirement binds namespace, complete outcome digest and a later root-verified success; pending originals and changed evidence remain restrictive. Independent settlement publishes status without controlling effects. Fixtures: TestPlan14HistoryExactRecoveryRetirement, TestPlan14HistoryRecoveryRetirementAuthority, TestPlan14HistoryRetirementVisibleSync, TestPlan14HistoryRetirementProcessCrash, TestPlan14RecoveryRetirementProductionCallback, TestPlan14IndependentRecoveryPublishesStatus.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=the rollback repoint is checks.repointLive (release.PointLive with the deployment store from rootRestartChecks.floor) instead of the bare PointLive: the console floor can refuse rolling a console back below it (error returned, nothing repointed or started). Same checks before it registry:Account@1202,registry:Account@2377,registry:App@1234,registry:App@2409,registry:Unit@1001,whole:Route@1005,whole:Route@1206,whole:Route@1238,whole:Route@2381,whole:Route@2413 d3d877cc0ce2cd8446358ab15f76d39059a4e8a0bbf3af2b15ae848ee4ccda80
internal/host/rootrestart.go productionRootRestartChecks authority B3,J1,E1 Signed named-unit recovery is independent of release and health history. Root rechecks canonical source, unit, process, signed target and trusted live pointer; captures attempt authority before publication; verifies readiness and resumes without repeated effects. Fixtures: TestPlan14SignedActiveFixIgnoresHistory, TestPlan14SignedActiveFixAuthority, TestPlan14SignedFixSupersedesOlderAttempt, TestPlan14ActiveRecoveryProcessCrash, TestPlan14SignedRestartWithoutHealthHistory, TestPlan14CapturedRollbackWithoutHealthHistory, TestPlan14SignedRestartRequiresTrustedLiveLink. PROPOSED E50: Root restart assembly wires the independent bound-unit refusal into adoption and rollback.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=adds floor: the deployment store of the same cached proof binding source (openDeployStore) that prepareRollback, rollback and host already use; read only by repointLive for the console floor admission. No new store, path or credential file:Open@1461,whole:Route@1294,whole:Route@2095,whole:Route@2519 9734c6b967a3db522ca64d69a3cc2aea8a6dfc58574cd79beb3019bb94092ce5
internal/host/rootrollback_resume.go resumeRootRestart authority B3,J1,E1 Signed named-unit recovery is independent of release and health history. Root rechecks canonical source, unit, process, signed target and trusted live pointer; captures attempt authority before publication; verifies readiness and resumes without repeated effects. Fixtures: TestPlan14SignedActiveFixIgnoresHistory, TestPlan14SignedActiveFixAuthority, TestPlan14SignedFixSupersedesOlderAttempt, TestPlan14ActiveRecoveryProcessCrash, TestPlan14SignedRestartWithoutHealthHistory, TestPlan14CapturedRollbackWithoutHealthHistory, TestPlan14SignedRestartRequiresTrustedLiveLink.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=the rollback repoint is checks.repointLive (release.PointLive with the floor store) instead of the bare PointLive: the console floor can refuse a rollback onto a console build below it (error, nothing repointed or started). Same checks before it registry:Account@1419,registry:Account@2131,registry:App@1447,registry:App@2159,registry:Unit@1225,whole:Route@1227,whole:Route@1421,whole:Route@1449,whole:Route@2133,whole:Route@2161 1329049d7999256e34e7663cb643ba3d598937adc6e3edf0f14fecb6d9eff4db
-internal/release/adopt.go adoptHost authority B3,E1,E2,E3,E4,J1 E16: root first-registration creation evidence under release exclusion; exact installation identity is required for first-program adoption and is consumed before an attempt. Installed-program history comes from the verified claim launch. Fixtures: TestPlan14FreshInstallRegistration, TestPlan14FreshInstallProgramGate, TestPlan14FreshInstallCanonicalIdentity, TestPlan14FreshInstallLaunchObservation, TestPlan14InstalledLaunchProgramEvidence, TestPlan14FreshInstallProcessCrash, TestPlan14FreshInstallVisibleSync, TestClaimControlUnitInstallers. E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=applies root settings to canonically resolved routes including named units while legacy settings eligibility remains unchanged;rev3=PROPOSED-p3;run=16;basis=P3-R11 approved punctuation edit only; authority and reads unchanged;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=a non-root agent pass hands a route its named unit serves (unitServed) to root through the stage relay before staging or repointing; root adopt reads unchanged;rev3=census-ruling-rootfs-apps-2;identity=the root adopt pass (carlos adopt, carlos-adopt.service, root);basis=the row's runtime (Runtime) rides on a copy of the stage check, so stageFrom stages only the kind the row runs (runtimeMatches) before any download, and the manifest the pass ends up holding is checked again; the artifact sha comes from Manifest.BoxArtifact (the rootfs key for an image); the new kind is registry:Runtime, two sites, and one more Host site in the refusal's line. A runtime the agent forges can make the pass refuse a release, and can also admit a rootfs release to staging for a row it marks rootfs. The evidence paths that can then hand back a staged identity, exhaustively: (1) the signed channel pointer with a manifest digest (ensureStagedDigest, then stageFrom: a fresh download or the staged copy reused); (2) a signed pointer with no digest (the digest marker off), through ensureStagedChecked: with the manifest fetched, stageFrom as in (1); with the fetch failing, a binary's sibling on disk is handed back as before, and a rootfs sibling is refused (controller ruling R-a, task 11 fix E5); (3) a signed promotion record's manifest digest (stageAuthorized, then ensureStagedDigest and stageFrom); (4) retained-copy recovery when (3) fails (stageAuthorized, RetainedStaged: the copy's bytes must hash to its sibling's digest). For a rootfs version every path that hands back an identity yields a sibling byte-equal to the manifest just authorised: stageFrom reads the sibling back after a fresh stage or a reuse and refuses otherwise; (2)'s fallback never yields one; recovery refuses a sibling whose bytes do not hash to the digest a readable record names (retainedRootfsAuthorised, task 11 fix E1), and with no record readable takes the copy root itself verified, as for a binary. Every path is for the row's own account and app. The held stage (materializeheld.go) and signedhead.go stage through ensureStagedDigest with a zero stage check (a binary row's), so they never stage a rootfs release, and their no-digest fallback refuses a rootfs sibling too;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: reuse the manifest verified by existing staging and signed selection; within withReleaseWork after history, proof and staging gates, seed or unseed the exec mode before PointLive (R24), under the same full-row compare and no ServingVersion/GoodVersion/running build guard. Version stamps staging and is not serving evidence. All existing root admission, credentials, quotas, proof, restart and rollback checks retained; no additional manifest or bucket read.;rev3=census-ruling-dr1-left-link;basis=the up-to-date return is skipped for an unstamped planned row (unstampedPlannedRow), which takes the existing install path with all its gates; on that repair (cur == ver) the D2 history is not seeded from the candidate path, the stamp keeps PrevVersion, and the refusal clear keeps the up-to-date rule. No new read kind;rev3=census-ruling-sr-followups;basis=#1061 Task 4, print only: on a repoint failure the "repoint failed" line is skipped when the stage relay below is about to run (cfg.stageBlocked set and stageBlocked(err)) and the caps were not converged, the relay condition is computed once into relay and reused, otherwise identical. cfg.stageBlocked is set only by the non-root agent passes (OnStageBlocked, user carlos), the root adopt pass (carlos adopt, carlos-adopt.service, root) has no relay and is unchanged, every line still printing. Same reads, guard (withReleaseWork), relay and rollback, no read, file, store, bucket or root call added;rev3=census-ruling-store-write-credential;basis=one more site: before D3's bindProof, consoleFloorAdmits (consolefloor.go) for the selected version's staged path and the D2 program it already read; it can only refuse (print, point nothing live, retry next pass), never admit or widen; same root identity, same staging, guard and rollback;rev3=census-ruling-store-write-credential-phase2-fixes;basis=consoleFloorAdmits no longer takes newProg (the admission reads the staged file's program itself, the same FileProgram path); the forward PointLive and the D1 rollback PointLive take ctx and the pass's store s, so the floor is asked again at the swap and at the rollback (refuse only); rollbackGroup takes ctx and s. Comment updated. No new read kind registry:App@11580,registry:App@11734,registry:App@13088,registry:App@14336,registry:App@15934,registry:App@21846,registry:App@27921,registry:App@3144,registry:App@35709,registry:App@6791,registry:App@8092,registry:App@8286,registry:Backing@21554,registry:GoodVersion@21593,registry:Hibernate@37182,registry:Host@10517,registry:Host@11460,registry:Host@11493,registry:Host@11593,registry:Host@11747,registry:Host@11843,registry:Host@11875,registry:Host@11940,registry:Host@12390,registry:Host@12730,registry:Host@12854,registry:Host@13301,registry:Host@13410,registry:Host@13612,registry:Host@14426,registry:Host@15212,registry:Host@15687,registry:Host@15920,registry:Host@16262,registry:Host@17306,registry:Host@21014,registry:Host@2105,registry:Host@21122,registry:Host@21814,registry:Host@22634,registry:Host@2294,registry:Host@23418,registry:Host@2375,registry:Host@23845,registry:Host@23897,registry:Host@24044,registry:Host@24131,registry:Host@25237,registry:Host@25481,registry:Host@26141,registry:Host@26526,registry:Host@26667,registry:Host@27889,registry:Host@28016,registry:Host@29358,registry:Host@30008,registry:Host@3157,registry:Host@33249,registry:Host@33867,registry:Host@34192,registry:Host@34266,registry:Host@34513,registry:Host@34664,registry:Host@35881,registry:Host@36166,registry:Host@36279,registry:Host@36717,registry:Host@36773,registry:Host@36877,registry:Host@37024,registry:Host@37883,registry:Host@38009,registry:Host@38097,registry:Host@4469,registry:Host@4616,registry:Host@5579,registry:Host@5684,registry:Host@6903,registry:Host@6951,registry:Host@7068,registry:Host@7100,registry:Host@7978,registry:Host@8146,registry:Host@8272,registry:Host@8391,registry:Host@8869,registry:Host@9256,registry:Host@9482,registry:Host@9578,registry:Host@9669,registry:Kind@21510,registry:Kind@554,registry:PrevVersion@36068,registry:Runtime@11244,registry:Runtime@12648,registry:ServingVersion@21617,registry:Socket@21535,registry:Stateless@21494,registry:Stateless@21745,registry:Tunnel@21574,registry:Unit@34412,registry:Unit@579,whole:Route@10106,whole:Route@10460,whole:Route@11575,whole:Route@11729,whole:Route@13078,whole:Route@14326,whole:Route@15902,whole:Route@16836,whole:Route@16876,whole:Route@17282,whole:Route@18482,whole:Route@18785,whole:Route@18941,whole:Route@21271,whole:Route@21415,whole:Route@21691,whole:Route@21836,whole:Route@2206,whole:Route@24966,whole:Route@25365,whole:Route@27911,whole:Route@3139,whole:Route@32820,whole:Route@35857,whole:Route@3595,whole:Route@4347,whole:Route@4587,whole:Route@6786 3d0d2ab663c9afa5ecfc4bdcc3574b05eb360c083b7bb503e73f9840f6dd89b6
internal/release/consolefloor.go consoleFloorAdmits legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential;basis=new: only for a staged build whose Go program (read by D2, FileProgram) is the console: checks the deployment-bucket key control/console-floors/store-writers.json exists with a one-key bounded listing (ListPage, limit 1; List for a store without one), never reading its body (written create-only by the console; the bucket policy denies every principal its deletion or replacement; a forged one can only make boxes refuse pre-floor console builds), and scans the staged file at VersionPath for a fixed marker string; refuses on a read error; never opens, runs, queries or follows anything else;rev3=census-ruling-store-write-credential-phase2-fixes;basis=now asks admitConsoleFloor (FileProgram of the staged path, then the unchanged consoleFloorRefusal: one-key bounded listing of the floor key, marker scan of the staged file); prints the ConsoleFloorError. Same rule, same reads; refuses only registry:App@181,registry:Host@149,whole:Route@171 aac5c5f8d785bddccfce21192d059c1c39cd9f6b50c54d9fff75baaf26a468fc
internal/release/materializeheld.go materializeHeld authority C,E1,J1,E2 root-route;kept=C,E1;scope=protected-decision-only E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=passes ctx and the stage's store s to publishHeld, for the console floor at the swap. No new read whole:Route@412,whole:Route@515,whole:Route@614 0f30afe733e5ee723fd87a5e9719b9f01a7d0e002a3cac719066bbc927425b53
internal/release/materializeheld.go publishHeld authority C,E1,J1 root-route;kept=C,E1;scope=protected-decision-only;rev3=census-ruling-store-write-credential-phase2-fixes;basis=takes ctx and s; the held swap is PointLive(ctx, s, ...), so the console floor can refuse publishing a console build below it (error, link untouched). Same guard, binds and restore registry:App@909,registry:HoldOp@1451,registry:HoldOp@1546,registry:HoldOp@480,registry:Host@1271,registry:Host@1442,registry:Host@1537,registry:Host@592,registry:Host@673,registry:Host@873,whole:Route@1086,whole:Route@1168,whole:Route@347,whole:Route@752,whole:Route@895 15e1998fba163b9382759c6ece898d002b87f11f573f06191945ee8b32deab45
internal/release/materializeheld.go restoreLive authority C,E1,J1 root-route;kept=C,E1;scope=protected-decision-only;rev3=census-ruling-store-write-credential-phase2-fixes;basis=takes ctx and s; putting the link back is PointLive(ctx, s, ...), so the floor can refuse restoring a console build below it (error; the link stays where it was). Removal when cur is empty unchanged registry:App@315,registry:Host@156,registry:Host@283,whole:Route@305 17555f02425380a8a268214313cb223a111a8ecea666a58f7e27d7ce21e37b14
internal/release/rollback.go rollbackGroup authority B3,E1,E3,J1 root-route;kept=B3,E1,E3;scope=protected-decision-only;rev3=census-ruling-store-write-credential-phase2-fixes;basis=takes ctx and the pass's store s; each sibling's repoint is PointLive(ctx, s, ...), so the console floor can refuse a sibling's rollback onto a console build below it (printed, sibling left alone). Same group, work guard and stamp registry:App@681,registry:Host@1017,registry:Host@228,registry:Host@310,registry:Host@350,registry:Host@450,registry:Host@552,registry:Host@646,registry:Host@789,registry:Host@883,registry:PrevVersion@901,whole:Route@277,whole:Route@667 7c2ee292fd35d01f5a16694a2ae6f2eed919cabdccb55022083e4d51b3909fd6
+internal/release/roothistory_pass.go RootHistoryPass.abandon legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential-phase2-fixes;basis=new: rechecks the route's history selection (the same recheck begin and complete use) and settles the given history attempt with no refusal (RootHistory.Settle, nil). Called only by adoptHost for an attempt the console floor refused at the swap, before any effect whole:Route@141 ee138f6222abde1dc9096cb5f5bf9f1d08a4501d2247fa4ac52cf01250d3462c
internal/release/versions.go pointLive legacy accepted-legacy accepted-legacy;rev3=census-ruling-store-write-credential-phase2-fixes;basis=the former PointLive body, byte for byte, unexported: the swap itself (Stat of the target, Readlink, EvalSymlinks of the running and previous links, the previous link and the rename). Called only by PointLive after admitConsoleFloor admits (TestEveryRepointPassesTheConsoleFloor) file:EvalSymlinks@1013,file:EvalSymlinks@901,file:Open@1506,file:Readlink@388,file:Stat@147 ad3626cd8b7ec87a3a02fb16addd6a14693dc3fecacf755d58fb6806432ec04a
internal/release/versions.go PointLive authority B3,E2 rev3=merge-ruling-5;basis=Compare resolved current and previous paths before retaining the running build; preserve repoint errors and canonical retained pointers.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=now admitConsoleFloor(ctx, floor, ...) then pointLive: it reads nothing itself; the swap's reads moved to pointLive and the floor's reads are consoleFloorRefusal's and FileProgram's, unchanged. A nil or unreadable floor store refuses a console build only b08c8b3a067125b0c5d95381e22585e128cfdf3a677d847b9f2cef53256b2288
-@coverage internal/host b1ffd1b4cab42295c5827769d731639a86622ba2b7bda524ec34c0ecf11e7ee4
+internal/host/namedrecovery_active.go namedUnitRecovery.recover authority B3,E1 E13: signed recovery allows unknown history but preserves usable refusals, including retained originals; verified later promotion clears only D1. Health recording is independent of program recording; minting requires a census. Fixtures: TestPlan14RecoveryUnknownHistory, TestPlan14RecoveryKnownRefusal, TestPlan14RecoveryOriginalRefusalWithUnknownHistory, TestPlan14RootHistoryVerifiedRetryBeforeAttempt, TestPlan14ProgramFailureStillRecordsHealth, TestPlan14RootHistoryMintCensus.;rev3=census-ruling-store-write-credential-phase2-fixes;basis=inside the capture effect, after validate and before the rollback attempt is captured, release.CheckConsoleFloor on the signed head's staged path (refuses only; nothing captured, repointed or restarted); the repoint is release.PointLive with ctx and n.source.store. Same root identity, guard (work.With), validation and restart. Round 1 answer: reads root's own rollback journal (rootstate store s, rollbackJournalKey(host), the file captureRollback is about to replace) before the capture, and on ErrConsoleFloor at the swap writes it back and removes the new attempt's capability (abandonRollbackCapture). The journal is root-owned state under rootRestartState, written only by root file:Open@6440,file:Read@5247,registry:Channel@2558,registry:Unit@216,registry:Unit@233,registry:Version@3618,registry:Version@3724,whole:Route@1478,whole:Route@202,whole:Route@2560,whole:Route@3544 80d193803c037b83c55418b001b0fd76d1208b1d8dbb9d8ad031e46f04cda552
+internal/release/adopt.go adoptHost authority B3,E1,E2,E3,E4,J1 E16: root first-registration creation evidence under release exclusion; exact installation identity is required for first-program adoption and is consumed before an attempt. Installed-program history comes from the verified claim launch. Fixtures: TestPlan14FreshInstallRegistration, TestPlan14FreshInstallProgramGate, TestPlan14FreshInstallCanonicalIdentity, TestPlan14FreshInstallLaunchObservation, TestPlan14InstalledLaunchProgramEvidence, TestPlan14FreshInstallProcessCrash, TestPlan14FreshInstallVisibleSync, TestClaimControlUnitInstallers. E22: root generation pins guard existing-tree artifact and manifest writes in adoption and moves-held staging/publication. Held snapshot is read under release exclusion before the leaf held-stage lock; failures remain restrictive for writes. Claims-off source returns no root pins. Fresh wholly absent version trees retain signed staging. Fixtures: TestPlan14GenerationSiblingWrites, TestPlan14GenerationVerifiedSiblingWrites, TestPlan14GenerationHeldStage (production source assembly, both flag values without census, lock order, pin/error/fresh cases). Production completeness remains unavailable; no new completeness grant.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=applies root settings to canonically resolved routes including named units while legacy settings eligibility remains unchanged;rev3=PROPOSED-p3;run=16;basis=P3-R11 approved punctuation edit only; authority and reads unchanged;rev3=census-ruling-315;identity=legacy agent pass uid carlos (RootRestartsUnits; never set on carlos adopt);basis=a non-root agent pass hands a route its named unit serves (unitServed) to root through the stage relay before staging or repointing; root adopt reads unchanged;rev3=census-ruling-rootfs-apps-2;identity=the root adopt pass (carlos adopt, carlos-adopt.service, root);basis=the row's runtime (Runtime) rides on a copy of the stage check, so stageFrom stages only the kind the row runs (runtimeMatches) before any download, and the manifest the pass ends up holding is checked again; the artifact sha comes from Manifest.BoxArtifact (the rootfs key for an image); the new kind is registry:Runtime, two sites, and one more Host site in the refusal's line. A runtime the agent forges can make the pass refuse a release, and can also admit a rootfs release to staging for a row it marks rootfs. The evidence paths that can then hand back a staged identity, exhaustively: (1) the signed channel pointer with a manifest digest (ensureStagedDigest, then stageFrom: a fresh download or the staged copy reused); (2) a signed pointer with no digest (the digest marker off), through ensureStagedChecked: with the manifest fetched, stageFrom as in (1); with the fetch failing, a binary's sibling on disk is handed back as before, and a rootfs sibling is refused (controller ruling R-a, task 11 fix E5); (3) a signed promotion record's manifest digest (stageAuthorized, then ensureStagedDigest and stageFrom); (4) retained-copy recovery when (3) fails (stageAuthorized, RetainedStaged: the copy's bytes must hash to its sibling's digest). For a rootfs version every path that hands back an identity yields a sibling byte-equal to the manifest just authorised: stageFrom reads the sibling back after a fresh stage or a reuse and refuses otherwise; (2)'s fallback never yields one; recovery refuses a sibling whose bytes do not hash to the digest a readable record names (retainedRootfsAuthorised, task 11 fix E1), and with no record readable takes the copy root itself verified, as for a binary. Every path is for the row's own account and app. The held stage (materializeheld.go) and signedhead.go stage through ensureStagedDigest with a zero stage check (a binary row's), so they never stage a rootfs release, and their no-digest fallback refuses a rootfs sibling too;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate check is left as is for a resident;rev3=census-ruling-stateless-replicas-1;basis=Task 4 R19: reuse the manifest verified by existing staging and signed selection; within withReleaseWork after history, proof and staging gates, seed or unseed the exec mode before PointLive (R24), under the same full-row compare and no ServingVersion/GoodVersion/running build guard. Version stamps staging and is not serving evidence. All existing root admission, credentials, quotas, proof, restart and rollback checks retained; no additional manifest or bucket read.;rev3=census-ruling-dr1-left-link;basis=the up-to-date return is skipped for an unstamped planned row (unstampedPlannedRow), which takes the existing install path with all its gates; on that repair (cur == ver) the D2 history is not seeded from the candidate path, the stamp keeps PrevVersion, and the refusal clear keeps the up-to-date rule. No new read kind;rev3=census-ruling-sr-followups;basis=#1061 Task 4, print only: on a repoint failure the "repoint failed" line is skipped when the stage relay below is about to run (cfg.stageBlocked set and stageBlocked(err)) and the caps were not converged, the relay condition is computed once into relay and reused, otherwise identical. cfg.stageBlocked is set only by the non-root agent passes (OnStageBlocked, user carlos), the root adopt pass (carlos adopt, carlos-adopt.service, root) has no relay and is unchanged, every line still printing. Same reads, guard (withReleaseWork), relay and rollback, no read, file, store, bucket or root call added;rev3=census-ruling-store-write-credential;basis=one more site: before D3's bindProof, consoleFloorAdmits (consolefloor.go) for the selected version's staged path and the D2 program it already read; it can only refuse (print, point nothing live, retry next pass), never admit or widen; same root identity, same staging, guard and rollback;rev3=census-ruling-store-write-credential-phase2-fixes;basis=consoleFloorAdmits no longer takes newProg (the admission reads the staged file's program itself, the same FileProgram path); the forward PointLive and the D1 rollback PointLive take ctx and the pass's store s, so the floor is asked again at the swap and at the rollback (refuse only); rollbackGroup takes ctx and s. Comment updated. No new read kind. Round 1 answer: on ErrConsoleFloor from the forward PointLive after a root-history attempt was begun, cfg.rootHistory.abandon settles that attempt with no refusal (the floor refusal precedes every effect), printing and recording an error if that fails; the new sites are rt.Host and rt passed to abandon. Refuse-only; nothing admitted or widened registry:App@11580,registry:App@11734,registry:App@13088,registry:App@14336,registry:App@15934,registry:App@21846,registry:App@28520,registry:App@3144,registry:App@36308,registry:App@6791,registry:App@8092,registry:App@8286,registry:Backing@21554,registry:GoodVersion@21593,registry:Hibernate@37781,registry:Host@10517,registry:Host@11460,registry:Host@11493,registry:Host@11593,registry:Host@11747,registry:Host@11843,registry:Host@11875,registry:Host@11940,registry:Host@12390,registry:Host@12730,registry:Host@12854,registry:Host@13301,registry:Host@13410,registry:Host@13612,registry:Host@14426,registry:Host@15212,registry:Host@15687,registry:Host@15920,registry:Host@16262,registry:Host@17306,registry:Host@21014,registry:Host@2105,registry:Host@21122,registry:Host@21814,registry:Host@22414,registry:Host@22567,registry:Host@2294,registry:Host@23233,registry:Host@2375,registry:Host@24017,registry:Host@24444,registry:Host@24496,registry:Host@24643,registry:Host@24730,registry:Host@25836,registry:Host@26080,registry:Host@26740,registry:Host@27125,registry:Host@27266,registry:Host@28488,registry:Host@28615,registry:Host@29957,registry:Host@30607,registry:Host@3157,registry:Host@33848,registry:Host@34466,registry:Host@34791,registry:Host@34865,registry:Host@35112,registry:Host@35263,registry:Host@36480,registry:Host@36765,registry:Host@36878,registry:Host@37316,registry:Host@37372,registry:Host@37476,registry:Host@37623,registry:Host@38482,registry:Host@38608,registry:Host@38696,registry:Host@4469,registry:Host@4616,registry:Host@5579,registry:Host@5684,registry:Host@6903,registry:Host@6951,registry:Host@7068,registry:Host@7100,registry:Host@7978,registry:Host@8146,registry:Host@8272,registry:Host@8391,registry:Host@8869,registry:Host@9256,registry:Host@9482,registry:Host@9578,registry:Host@9669,registry:Kind@21510,registry:Kind@554,registry:PrevVersion@36667,registry:Runtime@11244,registry:Runtime@12648,registry:ServingVersion@21617,registry:Socket@21535,registry:Stateless@21494,registry:Stateless@21745,registry:Tunnel@21574,registry:Unit@35011,registry:Unit@579,whole:Route@10106,whole:Route@10460,whole:Route@11575,whole:Route@11729,whole:Route@13078,whole:Route@14326,whole:Route@15902,whole:Route@16836,whole:Route@16876,whole:Route@17282,whole:Route@18482,whole:Route@18785,whole:Route@18941,whole:Route@21271,whole:Route@21415,whole:Route@21691,whole:Route@21836,whole:Route@2206,whole:Route@22390,whole:Route@25565,whole:Route@25964,whole:Route@28510,whole:Route@3139,whole:Route@33419,whole:Route@3595,whole:Route@36456,whole:Route@4347,whole:Route@4587,whole:Route@6786 3984fdeebdb826921b73a069756b8eef9674a988076a2119caad37d0fd29413b
+@coverage internal/host f0e32015bff4519f9786bfeb830e1381f59d3151c3dc647e3ec216ede5f14da5
@coverage internal/objstore a4989a4695ee2578f5e98d948e056a0df3f93f6afc1b38ff25d00291ac7c4d79
-@coverage internal/release 29e96e670d6ab3afb69f55327de09ea8d695be5b0006b09741e0b6bc5597b040
+@coverage internal/release 0f3fa4ea8eb8d347b783a0a29c143f2d62d1c342a075e8647fd085ef7b2490e7