census: dr1-left-link proposal for stampLeftLink
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 files changed,
+32
−0
docs/superpowers/notes/census-proposal-dr1-left-link.md+23 −0internal/provision/testdata/plan14-root-reads-chain.tsv+1 −0internal/provision/testdata/plan14-root-reads-dr1-left-link.tsv+8 −0
CI passed — run details
diff --git a/docs/superpowers/notes/census-proposal-dr1-left-link.md b/docs/superpowers/notes/census-proposal-dr1-left-link.md| new file mode 100644 |
| index 000000000..68158b28d |
| --- /dev/null |
| +++ b/docs/superpowers/notes/census-proposal-dr1-left-link.md |
| @@ -0,0 +1,23 @@ |
| +# Census approval: dr1-left-link |
| + |
| +Ruling `census-ruling-dr1-left-link`. The independent reviewer approves or rejects every change below, 1 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26). |
| + |
| +| unit | change | read sites | what changed | |
| +|---|---|---|---| |
| +| `internal/release/adopt.go` `adoptHost` | sites | +whole:Route | the up-to-date return calls stampLeftLink; no new read of its own (the Route passed whole) | |
| + |
| +Envelopes re-pinned: `internal/host`, `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/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. |
| + |
| +New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff: |
| + |
| +- new `internal/release/adopt.go:stampLeftLink`: reads +file:Lstat, +file:Readlink, +file:Stat, +registry:App ×2, +registry:CreatedAt ×2, +registry:Host ×6, +registry:PrevVersion, +registry:Version, +whole:Route ×2; written legacy, accepted-legacy, frozen |
| + |
| +Seal: `5b31785441c6a48ddae93e9f3c0f8962f7983b55d89b3acb90d9a6b505647b36` → `d08b065c2984bb40528a2b1e0956907a715b260f2b03dc8f6ee79b286da138ef`. |
| + |
| +Overlay: `internal/provision/testdata/plan14-root-reads-dr1-left-link.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 0a2517569..33a9050bd 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-chain.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-chain.tsv |
| @@ -117,3 +117,4 @@ plan14-root-reads-signin-first-run-mobile.tsv 61027a32e31cb7ce017304f526f668c269 |
| plan14-root-reads-claim-ux-edge.tsv 889ce9f72f93b581b29527e5c5d4410b47732424ce8ce45c080904ebb6c52195 |
| plan14-root-reads-region-ha-g3-fixes.tsv cd001bf3a9a8871f12d1ca9cfa0a925760c1fc345dc911246ffaabc235dfabf6 |
| plan14-root-reads-claim-countdown.tsv 5b31785441c6a48ddae93e9f3c0f8962f7983b55d89b3acb90d9a6b505647b36 |
| +plan14-root-reads-dr1-left-link.tsv d08b065c2984bb40528a2b1e0956907a715b260f2b03dc8f6ee79b286da138ef |
diff --git a/internal/provision/testdata/plan14-root-reads-dr1-left-link.tsv b/internal/provision/testdata/plan14-root-reads-dr1-left-link.tsv| new file mode 100644 |
| index 000000000..f7084fd5e |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-dr1-left-link.tsv |
| @@ -0,0 +1,8 @@ |
| +# Census overlay dr1-left-link, written by census-propose (#369). census-ruling-dr1-left-link, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-dr1-left-link.md. |
| +# 0 body, 1 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 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 8d363679e5f5c70635e1c096a8039d39be00a7bdf1360fe8ec4823e154107c7d internal/release/adopt.go stampLeftLink legacy accepted-legacy accepted-legacy;rev3=census-ruling-dr1-left-link;basis=new: on an unstamped row, Lstat/Readlink/Stat of the root-owned live link, the root-owned staged manifest sibling for the link's version, then SetVersions under the release work; the link must predate the row and name the row's own acct/app build file:Lstat@249,file:Readlink@506,file:Stat@628,registry:App@592,registry:App@729,registry:CreatedAt@170,registry:CreatedAt@313,registry:Host@1025,registry:Host@1131,registry:Host@1258,registry:Host@1382,registry:Host@228,registry:Host@901,registry:PrevVersion@1145,registry:Version@137,whole:Route@582,whole:Route@719 c3f01391a826e5b030a007891533ae564e8ac11c3eba0375dafd89f16ad5e861 |
| +internal/release/adopt.go stampLeftLink legacy accepted-legacy accepted-legacy;rev3=census-ruling-dr1-left-link;basis=new: on an unstamped row, Lstat/Readlink/Stat of the root-owned live link, the root-owned staged manifest sibling for the link's version, then SetVersions under the release work; the link must predate the row and name the row's own acct/app build file:Lstat@249,file:Readlink@506,file:Stat@628,registry:App@592,registry:App@729,registry:CreatedAt@170,registry:CreatedAt@313,registry:Host@1025,registry:Host@1131,registry:Host@1258,registry:Host@1382,registry:Host@228,registry:Host@901,registry:PrevVersion@1145,registry:Version@137,whole:Route@582,whole:Route@719 c3f01391a826e5b030a007891533ae564e8ac11c3eba0375dafd89f16ad5e861 |
| +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 calls stampLeftLink; no new read of its own (the Route passed whole) registry:App@11596,registry:App@11750,registry:App@13104,registry:App@14030,registry:App@15628,registry:App@21123,registry:App@26599,registry:App@3144,registry:App@34379,registry:App@6807,registry:App@8108,registry:App@8302,registry:Backing@20839,registry:GoodVersion@20878,registry:Hibernate@35354,registry:Host@10533,registry:Host@11476,registry:Host@11509,registry:Host@11609,registry:Host@11763,registry:Host@11859,registry:Host@11891,registry:Host@11956,registry:Host@12406,registry:Host@12746,registry:Host@12870,registry:Host@13317,registry:Host@13426,registry:Host@13628,registry:Host@14120,registry:Host@14906,registry:Host@15381,registry:Host@15614,registry:Host@15956,registry:Host@16591,registry:Host@20299,registry:Host@20407,registry:Host@2105,registry:Host@21091,registry:Host@21911,registry:Host@22069,registry:Host@22531,registry:Host@22583,registry:Host@22730,registry:Host@22817,registry:Host@2294,registry:Host@2375,registry:Host@23923,registry:Host@24167,registry:Host@24827,registry:Host@25212,registry:Host@25353,registry:Host@26567,registry:Host@26694,registry:Host@28036,registry:Host@28686,registry:Host@3157,registry:Host@31919,registry:Host@32537,registry:Host@32862,registry:Host@32936,registry:Host@33183,registry:Host@33334,registry:Host@34551,registry:Host@34718,registry:Host@34825,registry:Host@35053,registry:Host@35196,registry:Host@36055,registry:Host@36181,registry:Host@36269,registry:Host@4469,registry:Host@4583,registry:Host@5546,registry:Host@5651,registry:Host@6919,registry:Host@6967,registry:Host@7084,registry:Host@7116,registry:Host@7994,registry:Host@8162,registry:Host@8288,registry:Host@8407,registry:Host@8885,registry:Host@9272,registry:Host@9498,registry:Host@9594,registry:Host@9685,registry:Kind@20795,registry:Kind@554,registry:Runtime@11260,registry:Runtime@12664,registry:ServingVersion@20902,registry:Socket@20820,registry:Stateless@20779,registry:Stateless@21030,registry:Tunnel@20859,registry:Unit@33082,registry:Unit@579,whole:Route@10122,whole:Route@10476,whole:Route@11591,whole:Route@11745,whole:Route@13094,whole:Route@14020,whole:Route@15596,whole:Route@16161,whole:Route@16567,whole:Route@17767,whole:Route@18070,whole:Route@18226,whole:Route@20556,whole:Route@20700,whole:Route@20976,whole:Route@21113,whole:Route@2206,whole:Route@23652,whole:Route@24051,whole:Route@26589,whole:Route@3139,whole:Route@31490,whole:Route@34527,whole:Route@3595,whole:Route@4347,whole:Route@5709,whole:Route@6802 4d672c83b47567282e0f70eb9ef32341002130fed6837e3e9b41a0b59a1967bd |
| +@coverage internal/host d1354d1a98de9d4b9018e6df0b65ac1f4e6c5a1d2dd922100fe316d592c7be22 |
| +@coverage internal/release 76d886d16558ab5e116e17e01e5579ad5f3383f00cfe8b72b1501758846200b9 |