carlos / platform Public

census: re-propose hunt-release-chain-integrity after fix round 1

make census-propose with the same NAME and updated claims: stageHeld's
claim adds the runtime check on a recovered copy (Astra P1-5; one more
registry:App site, the refusal line), and PassFilter's names the strict
watermark (a strictly later stamp or the recorded pointer). Units and
envelopes are as before: PassFilter, adoptHost, ensureStagedChecked,
StageSignedHead (body), stageHeld (sites), new stagePointerHead; envelopes
., edge, edgesfile, host, publicrelease, release. Seal unchanged,
4eda67fe -> 6f185e7d.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e472c8eea850a5928731434b052b75ef62ddce8b parent f801319
2 files changed, +9 −9
  • docs/superpowers/notes/census-proposal-hunt-release-chain-integrity.md +2 −2
  • internal/provision/testdata/plan14-root-reads-hunt-release-chain-integrity.tsv +7 −7

CI failed — run details

diff --git a/docs/superpowers/notes/census-proposal-hunt-release-chain-integrity.md b/docs/superpowers/notes/census-proposal-hunt-release-chain-integrity.md
index 2839429e5..5632cc983 100644
--- a/docs/superpowers/notes/census-proposal-hunt-release-chain-integrity.md
+++ b/docs/superpowers/notes/census-proposal-hunt-release-chain-integrity.md
@@ -4,11 +4,11 @@ Ruling `census-ruling-hunt-release-chain-integrity`. The independent reviewer ap
| unit | change | read sites | what changed |
|---|---|---|---|
-| `internal/release/adopt.go` `PassFilter` | body | unchanged (75) | a digestless head is bound to its signed promotion record through stagePointerHead, and a pointer without an account binding is refused on read (verifyPointer); the ratchet it consults (Admit) now also holds a per-channel promoted_at floor, which root reads only from its own root-owned <opt>/pointer-digests and never from the agent's data dir, through instancefs.ReadBeneathLimitOrAbsent (openat2 RESOLVE_BENEATH|NO_SYMLINKS|NO_MAGICLINKS, O_NONBLOCK, regular file only, 4 KiB cap); no read kind is added to the unit |
+| `internal/release/adopt.go` `PassFilter` | body | unchanged (75) | a digestless head is bound to its signed promotion record through stagePointerHead, and a pointer without an account binding is refused on read (verifyPointer); the ratchet it consults (Admit) now also holds a per-channel promoted_at floor that admits only a strictly later stamp or the very pointer it recorded (PointerIdentity, fix round 1), which root reads only from its own root-owned <opt>/pointer-digests and never from the agent's data dir, through instancefs.ReadBeneathLimitOrAbsent (openat2 RESOLVE_BENEATH|NO_SYMLINKS|NO_MAGICLINKS, O_NONBLOCK, regular file only, 4 KiB cap); no read kind is added to the unit |
| `internal/release/adopt.go` `adoptHost` | body | unchanged (129) | stages a digestless pointer head through stagePointerHead (bound to the promotion record's manifest digest) instead of the unbound ensureStagedChecked, keeping main's per-row runtime check (chk); no read kind is added |
| `internal/release/adopt.go` `ensureStagedChecked` | body | unchanged (1) | body refactor: the staged-copy answer (with main's rootfs-sibling refusal, fix E5) is extracted to stagedTodaysAnswer with the same reads; the unused ensureStaged wrapper is deleted, so the one production path here is ensureStagedDigest with an empty want, which no caller now passes; no read is added |
| `internal/release/signedhead.go` `StageSignedHead` | body | unchanged (7) | routes through stagePointerHead so a digestless head binds to its promotion record before staging; no read kind is added |
-| `internal/release/materializeheld.go` `stageHeld` | sites | +registry:App ×2, +registry:Host, +whole:Route ×2 | a held stage with no recorded digest now goes through recordBinding and retainedOrRefused (refused unless this box holds its own verified copy) instead of the unbound stage; the added sites are the registry and route reads those helpers make (RouteAccount, rt.App, rt.Host), kinds stageHeld already made |
+| `internal/release/materializeheld.go` `stageHeld` | sites | +registry:App ×3, +registry:Host, +whole:Route ×2 | a held stage with no recorded digest now goes through recordBinding and retainedOrRefused (refused unless this box holds its own verified copy) instead of the unbound stage, and a recovered copy must pass runtimeMatches(m, "") (the binary-only rule stageFrom applies to the held stage) before it is returned, so a retained rootfs image is refused for a binary row (fix round 1, Astra P1-5); the added sites are the registry and route reads those helpers and the refusal line make (RouteAccount, rt.App, rt.Host), kinds stageHeld already made |
Envelopes re-pinned: `.`, `internal/edge`, `internal/edgesfile`, `internal/host`, `internal/publicrelease`, `internal/release`.
diff --git a/internal/provision/testdata/plan14-root-reads-hunt-release-chain-integrity.tsv b/internal/provision/testdata/plan14-root-reads-hunt-release-chain-integrity.tsv
index b1964e6d0..376b2358a 100644
--- a/internal/provision/testdata/plan14-root-reads-hunt-release-chain-integrity.tsv
+++ b/internal/provision/testdata/plan14-root-reads-hunt-release-chain-integrity.tsv
@@ -3,15 +3,15 @@
# 1 new dispositions: 0 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other.
@legacy 397c65006f882e28851e891f9c993f7c464ea85b044d853809fe6d760428d576 internal/release/adopt.go ensureStagedChecked legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-2;basis=the manifest-fetch fallback (a pointer with no digest, or a held stage with want "", and a fetch that fails) now refuses a rootfs sibling on disk instead of handing it back (controller ruling R-a, task 11 fix E5); a binary sibling is handed back as before; its I/O is unchanged (the stat of the staged copy, the manifest fetch, the sibling read), no read added;rev3=census-ruling-hunt-release-chain-integrity;basis=body refactor: the staged-copy answer (with main's rootfs-sibling refusal, fix E5) is extracted to stagedTodaysAnswer with the same reads; the unused ensureStaged wrapper is deleted, so the one production path here is ensureStagedDigest with an empty want, which no caller now passes; no read is added file:Stat@189 84750c82e8288ab60adb3a82f8132736cba8332d32c8637698a9e61c49e740e9
@legacy 901a885348d19ffdb223c7b9e88ae1221c7800c0e8be504465509041cfaa2bf6 internal/release/adopt.go stagePointerHead legacy accepted-legacy accepted-legacy;rev3=census-ruling-hunt-release-chain-integrity;basis=new: stages the head a verified signed pointer names; a pointer with a digest goes to ensureStagedDigest; one without is bound to its signed promotion record (recordBinding) and the manifest is checked against that digest (CheckManifestDigest) before any download; its one site, os.Stat of VersionPath(optDir, acct, ver, app), is this box's own staged copy under the root-owned opt dir (the Stat ensureStagedDigest makes) and only decides whether a staged copy keeps today's answer when the manifest cannot be read at all; a refusal recovers only from this box's own verified staged copy (retainedOrRefused, with main's rootfs rule retainedRootfsAuthorised) file:Stat@417 42e14870aa98796a3f604f3b22a695de182b072173fa768cf2e3783cea818a89
-internal/release/adopt.go PassFilter authority B3,E3,J1,E1,E2 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. E7 applies merge ruling 4: unbound no-census routes use the legacy pass and restart; ordinary candidates make no binding store call. Fixtures: TestR2UnguardedERecoveryUpdate, TestR2UnguardedERecoveryIncidentRecipe, TestPlan14ERecoveryBindingRefusalKeepsPromotedFix. E19: both destructive readers use the root reservation snapshot under existing release exclusion. Exact artifact and containing-tree identities are retained; missing completeness refuses destruction. Production installation/launch/kernel completeness and verified retirement remain unfinished. Fixtures: TestPlan14GenerationDeletionCannotUnpin, TestPlan14GenerationSnapshotCompleteness, TestPlan14GenerationSnapshotPermitsUnreservedRestage, TestPlan14GenerationSnapshotPinsContainingTree, TestPlan14GenerationSnapshotEmptyIsUnknown, TestPlan14GenerationConsumerMode.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=resolves protected route inputs before filters, recovery and dispatch on census boxes and bypasses service-owned failure opener only there;rev3=PROPOSED-s3-change-index;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=asks the optional pointer gate (gatePointers) once per channel group before selection and reports each group's pointer outcome to it; only the agent's fast sweep arms a gate (WithPointerGate), so under carlos adopt the gate is nil and the pass is unchanged; a gate can only leave a group out of the pass, never add one; one whole-Route site added;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-hunt-release-chain-integrity;basis=a digestless head is bound to its signed promotion record through stagePointerHead, and a pointer without an account binding is refused on read (verifyPointer); the ratchet it consults (Admit) now also holds a per-channel promoted_at floor, which root reads only from its own root-owned <opt>/pointer-digests and never from the agent's data dir, through instancefs.ReadBeneathLimitOrAbsent (openat2 RESOLVE_BENEATH|NO_SYMLINKS|NO_MAGICLINKS, O_NONBLOCK, regular file only, 4 KiB cap); no read kind is added to the unit registry:App@10139,registry:App@27178,registry:App@29635,registry:App@30322,registry:App@30559,registry:App@31966,registry:App@6740,registry:App@9998,registry:Hibernate@30205,registry:Host@1061,registry:Host@1426,registry:Host@30375,registry:Host@31291,registry:Host@32019,registry:Host@3413,registry:Host@3480,registry:Host@3576,registry:Host@3611,registry:UpdateSettings@9876,whole:Route@10134,whole:Route@1046,whole:Route@1164,whole:Route@1188,whole:Route@1461,whole:Route@1622,whole:Route@27173,whole:Route@2726,whole:Route@2768,whole:Route@2877,whole:Route@2901,whole:Route@2932,whole:Route@29630,whole:Route@29888,whole:Route@29910,whole:Route@29957,whole:Route@29975,whole:Route@29985,whole:Route@30223,whole:Route@30244,whole:Route@30257,whole:Route@30317,whole:Route@30343,whole:Route@30417,whole:Route@30456,whole:Route@30472,whole:Route@30500,whole:Route@30554,whole:Route@30580,whole:Route@3074,whole:Route@31333,whole:Route@31387,whole:Route@3139,whole:Route@31403,whole:Route@31910,whole:Route@31961,whole:Route@31987,whole:Route@32061,whole:Route@32096,whole:Route@32112,whole:Route@3225,whole:Route@3247,whole:Route@3347,whole:Route@4430,whole:Route@5077,whole:Route@6662,whole:Route@6684,whole:Route@6735,whole:Route@6761,whole:Route@761,whole:Route@803,whole:Route@950,whole:Route@9827,whole:Route@988,whole:Route@9941,whole:Route@9986 cb6cc6bc834752d1fb03429afc772f09d53a5ccb01607889ac8f90a0a8319f27
+internal/release/adopt.go PassFilter authority B3,E3,J1,E1,E2 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. E7 applies merge ruling 4: unbound no-census routes use the legacy pass and restart; ordinary candidates make no binding store call. Fixtures: TestR2UnguardedERecoveryUpdate, TestR2UnguardedERecoveryIncidentRecipe, TestPlan14ERecoveryBindingRefusalKeepsPromotedFix. E19: both destructive readers use the root reservation snapshot under existing release exclusion. Exact artifact and containing-tree identities are retained; missing completeness refuses destruction. Production installation/launch/kernel completeness and verified retirement remain unfinished. Fixtures: TestPlan14GenerationDeletionCannotUnpin, TestPlan14GenerationSnapshotCompleteness, TestPlan14GenerationSnapshotPermitsUnreservedRestage, TestPlan14GenerationSnapshotPinsContainingTree, TestPlan14GenerationSnapshotEmptyIsUnknown, TestPlan14GenerationConsumerMode.;rev3=PROPOSED-p3;run=8;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=resolves protected route inputs before filters, recovery and dispatch on census boxes and bypasses service-owned failure opener only there;rev3=PROPOSED-s3-change-index;identity=carlos adopt uid 0; legacy agent pass uid carlos;basis=asks the optional pointer gate (gatePointers) once per channel group before selection and reports each group's pointer outcome to it; only the agent's fast sweep arms a gate (WithPointerGate), so under carlos adopt the gate is nil and the pass is unchanged; a gate can only leave a group out of the pass, never add one; one whole-Route site added;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-hunt-release-chain-integrity;basis=a digestless head is bound to its signed promotion record through stagePointerHead, and a pointer without an account binding is refused on read (verifyPointer); the ratchet it consults (Admit) now also holds a per-channel promoted_at floor that admits only a strictly later stamp or the very pointer it recorded (PointerIdentity, fix round 1), which root reads only from its own root-owned <opt>/pointer-digests and never from the agent's data dir, through instancefs.ReadBeneathLimitOrAbsent (openat2 RESOLVE_BENEATH|NO_SYMLINKS|NO_MAGICLINKS, O_NONBLOCK, regular file only, 4 KiB cap); no read kind is added to the unit registry:App@10139,registry:App@27178,registry:App@29635,registry:App@30322,registry:App@30559,registry:App@31966,registry:App@6740,registry:App@9998,registry:Hibernate@30205,registry:Host@1061,registry:Host@1426,registry:Host@30375,registry:Host@31291,registry:Host@32019,registry:Host@3413,registry:Host@3480,registry:Host@3576,registry:Host@3611,registry:UpdateSettings@9876,whole:Route@10134,whole:Route@1046,whole:Route@1164,whole:Route@1188,whole:Route@1461,whole:Route@1622,whole:Route@27173,whole:Route@2726,whole:Route@2768,whole:Route@2877,whole:Route@2901,whole:Route@2932,whole:Route@29630,whole:Route@29888,whole:Route@29910,whole:Route@29957,whole:Route@29975,whole:Route@29985,whole:Route@30223,whole:Route@30244,whole:Route@30257,whole:Route@30317,whole:Route@30343,whole:Route@30417,whole:Route@30456,whole:Route@30472,whole:Route@30500,whole:Route@30554,whole:Route@30580,whole:Route@3074,whole:Route@31333,whole:Route@31387,whole:Route@3139,whole:Route@31403,whole:Route@31910,whole:Route@31961,whole:Route@31987,whole:Route@32061,whole:Route@32096,whole:Route@32112,whole:Route@3225,whole:Route@3247,whole:Route@3347,whole:Route@4430,whole:Route@5077,whole:Route@6662,whole:Route@6684,whole:Route@6735,whole:Route@6761,whole:Route@761,whole:Route@803,whole:Route@950,whole:Route@9827,whole:Route@988,whole:Route@9941,whole:Route@9986 cb6cc6bc834752d1fb03429afc772f09d53a5ccb01607889ac8f90a0a8319f27
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-hunt-release-chain-integrity;basis=stages a digestless pointer head through stagePointerHead (bound to the promotion record's manifest digest) instead of the unbound ensureStagedChecked, keeping main's per-row runtime check (chk); no read kind is added registry:App@11720,registry:App@11874,registry:App@13228,registry:App@14476,registry:App@16074,registry:App@21569,registry:App@27636,registry:App@3144,registry:App@35416,registry:App@6791,registry:App@8092,registry:App@8286,registry:Backing@21285,registry:GoodVersion@21324,registry:Hibernate@36889,registry:Host@10517,registry:Host@11593,registry:Host@11626,registry:Host@11733,registry:Host@11887,registry:Host@11983,registry:Host@12015,registry:Host@12080,registry:Host@12530,registry:Host@12870,registry:Host@12994,registry:Host@13441,registry:Host@13550,registry:Host@13752,registry:Host@14566,registry:Host@15352,registry:Host@15827,registry:Host@16060,registry:Host@16402,registry:Host@17037,registry:Host@20745,registry:Host@20853,registry:Host@2105,registry:Host@21537,registry:Host@22357,registry:Host@2294,registry:Host@23141,registry:Host@23568,registry:Host@23620,registry:Host@2375,registry:Host@23767,registry:Host@23854,registry:Host@24960,registry:Host@25204,registry:Host@25864,registry:Host@26249,registry:Host@26390,registry:Host@27604,registry:Host@27731,registry:Host@29073,registry:Host@29723,registry:Host@3157,registry:Host@32956,registry:Host@33574,registry:Host@33899,registry:Host@33973,registry:Host@34220,registry:Host@34371,registry:Host@35588,registry:Host@35873,registry:Host@35986,registry:Host@36424,registry:Host@36480,registry:Host@36584,registry:Host@36731,registry:Host@37590,registry:Host@37716,registry:Host@37804,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@21241,registry:Kind@554,registry:PrevVersion@35775,registry:Runtime@11377,registry:Runtime@12788,registry:ServingVersion@21348,registry:Socket@21266,registry:Stateless@21225,registry:Stateless@21476,registry:Tunnel@21305,registry:Unit@34119,registry:Unit@579,whole:Route@10106,whole:Route@10460,whole:Route@11715,whole:Route@11869,whole:Route@13218,whole:Route@14466,whole:Route@16042,whole:Route@16607,whole:Route@17013,whole:Route@18213,whole:Route@18516,whole:Route@18672,whole:Route@21002,whole:Route@21146,whole:Route@21422,whole:Route@21559,whole:Route@2206,whole:Route@24689,whole:Route@25088,whole:Route@27626,whole:Route@3139,whole:Route@32527,whole:Route@35564,whole:Route@3595,whole:Route@4347,whole:Route@4587,whole:Route@6786 d2ed1c155ba8c417220a28340d75a9c12dc3e85641edbdabf785dec4abba5c46
internal/release/adopt.go ensureStagedChecked legacy accepted-legacy accepted-legacy;rev3=J4;basis=root-input;rev3=census-ruling-rootfs-apps-2;basis=the manifest-fetch fallback (a pointer with no digest, or a held stage with want "", and a fetch that fails) now refuses a rootfs sibling on disk instead of handing it back (controller ruling R-a, task 11 fix E5); a binary sibling is handed back as before; its I/O is unchanged (the stat of the staged copy, the manifest fetch, the sibling read), no read added;rev3=census-ruling-hunt-release-chain-integrity;basis=body refactor: the staged-copy answer (with main's rootfs-sibling refusal, fix E5) is extracted to stagedTodaysAnswer with the same reads; the unused ensureStaged wrapper is deleted, so the one production path here is ensureStagedDigest with an empty want, which no caller now passes; no read is added file:Stat@189 84750c82e8288ab60adb3a82f8132736cba8332d32c8637698a9e61c49e740e9
internal/release/signedhead.go StageSignedHead authority E1 Canonical route is supplied by the root unit verifier. Verifies signed channel, digest ratchet and manifest/artifact before staging; unavailable pin census never authorizes restaging differing bytes. Fixtures: TestPlan14Incident20261006WithLedger and TestPlan14SignedNamedRecoveryAuthority.;rev3=census-ruling-hunt-release-chain-integrity;basis=routes through stagePointerHead so a digestless head binds to its promotion record before staging; no read kind is added registry:Account@202,registry:Account@302,registry:Account@406,registry:App@214,registry:App@418,registry:Channel@222,registry:Host@437 316beee345c4a72c31fc207fd923f30c32aadda10ec58431b7845c80f33ea009
internal/release/adopt.go stagePointerHead legacy accepted-legacy accepted-legacy;rev3=census-ruling-hunt-release-chain-integrity;basis=new: stages the head a verified signed pointer names; a pointer with a digest goes to ensureStagedDigest; one without is bound to its signed promotion record (recordBinding) and the manifest is checked against that digest (CheckManifestDigest) before any download; its one site, os.Stat of VersionPath(optDir, acct, ver, app), is this box's own staged copy under the root-owned opt dir (the Stat ensureStagedDigest makes) and only decides whether a staged copy keeps today's answer when the manifest cannot be read at all; a refusal recovers only from this box's own verified staged copy (retainedOrRefused, with main's rootfs rule retainedRootfsAuthorised) file:Stat@417 42e14870aa98796a3f604f3b22a695de182b072173fa768cf2e3783cea818a89
-internal/release/materializeheld.go stageHeld 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-hunt-release-chain-integrity;basis=a held stage with no recorded digest now goes through recordBinding and retainedOrRefused (refused unless this box holds its own verified copy) instead of the unbound stage; the added sites are the registry and route reads those helpers make (RouteAccount, rt.App, rt.Host), kinds stageHeld already made registry:App@1058,registry:App@308,registry:App@466,registry:App@555,registry:App@707,registry:Host@1075,registry:Host@572,registry:Host@724,whole:Route@1053,whole:Route@197,whole:Route@303,whole:Route@461,whole:Route@550,whole:Route@702 91aeb674d30fe1d2973541a85eed1675ebf1093705ebb3d144c7621ed86aff8b
-@coverage . e702b5f6a94176f4fc4fb4052af383182bedc6ab74037292306bf23a163f5c34
-@coverage internal/edge bb420354662289f93f3bbf8b5e68b5e6ee3057193780ae9b81fc558dd3bab894
-@coverage internal/edgesfile 1c7f35fe3c75c1761f7997588cdf5c5e66061dfb0a89b107934a498417d125b5
-@coverage internal/host a1f9bf6d6372fc9bf34bb51cb1a797836ded5a078fde4c8b5a05be2c90cf7af9
+internal/release/materializeheld.go stageHeld 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-hunt-release-chain-integrity;basis=a held stage with no recorded digest now goes through recordBinding and retainedOrRefused (refused unless this box holds its own verified copy) instead of the unbound stage, and a recovered copy must pass runtimeMatches(m, "") (the binary-only rule stageFrom applies to the held stage) before it is returned, so a retained rootfs image is refused for a binary row (fix round 1, Astra P1-5); the added sites are the registry and route reads those helpers and the refusal line make (RouteAccount, rt.App, rt.Host), kinds stageHeld already made registry:App@1085,registry:App@1240,registry:App@1591,registry:App@308,registry:App@466,registry:App@558,registry:Host@1257,registry:Host@1608,registry:Host@575,whole:Route@1235,whole:Route@1586,whole:Route@197,whole:Route@303,whole:Route@461,whole:Route@553 d19ae564ba9069a233fe2c4919256e29c369199bcbcc44d367aa3cea5b7c8ab0
+@coverage . 143fd9b6ba58e024a9dd80ce9e433355d10ddde16794fa95fef9da053473792b
+@coverage internal/edge 34a0ebe81ce281374d1f55c17a07c0fcba20e464db4700d0b6ea46b61a8401c6
+@coverage internal/edgesfile ed1c171b47b7f2a6a563e24086aaa61d0351df06694303e7e85483a540bfe363
+@coverage internal/host ae6eb5eab37393a7ec033564863ced2b00ed1ae94a5e40c3fcad8060a09d8056
@coverage internal/publicrelease 5f88bff966d17193560b6f71d750b4817647f29498c284fb3f9debfb0e01420e
-@coverage internal/release 2d66c70bb6a4bf49ec6730bb17fe681d1dbc794c1d4279a3ad82ab130583aea7
+@coverage internal/release bdcfba4f7ccee3994fd16a19437625a839ba9b2d34d9f6b2f60b6c556074b7d7