carlos / platform Public

census: propose store-write-credential phase 2 fixes

Eleven changed units, PointLive's swap split into pointLive (new) and the
gated PointLive (quiet), and the host, objstore and release envelopes
re-pinned. For Astra's verdict on #280.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 849c0f099c7ecaa0ef3b1dfacedfe642434e666f parent e1ebe95
3 files changed, +66 −0
  • docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md +44 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv +21 −0
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
new file mode 100644
index 000000000..25fefa3cc
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-store-write-credential-phase2-fixes.md
@@ -0,0 +1,44 @@
+# 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).
+
+| 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 |
+
+Envelopes re-pinned: `internal/host`, `internal/objstore`, `internal/release`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+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
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- 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)
+
+Seal: `8b8e269938a575bfaeb8f0c9a5be508b4b22a10b7b5bd19d74fa511e5f15a302` → `bc3034036ec2e6acd8e22efb555ce5c21363d7313db99e5c26e900181b71eeae`.
+
+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/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 43c59caa8..1fc90ac47 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -294,3 +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
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
new file mode 100644
index 000000000..231166aed
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-store-write-credential-phase2-fixes.tsv
@@ -0,0 +1,21 @@
+# 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.
+@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 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/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
+@coverage internal/objstore a4989a4695ee2578f5e98d948e056a0df3f93f6afc1b38ff25d00291ac7c4d79
+@coverage internal/release 29e96e670d6ab3afb69f55327de09ea8d695be5b0006b09741e0b6bc5597b040