| index 600b9be83..fd83bc91a 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-named-unit-delivery-114.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-named-unit-delivery-114.tsv |
| @@ -30,7 +30,7 @@ |
| @legacy 73002325bd7770952f20ab312455538c2bd4c535f7f02298e1e7d3864ffd1cb1 internal/host/unitops.go systemctlRestartUnit legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: exec systemctl restart <unit>, only for a unit root bound to the route through Bind after a successful reload and an exact EnvironmentFiles match file:Command@60 a8adaa6c8afb33821e99a2907317ebb8a4ace5af7801abb4b742eb8a414b4480 |
| @legacy d6c96b4bc95e7bb800745d5ad1043699a85f9f32f81d169dbbb61287bba1af3c internal/rootstate/file_linux.go OpenTrustedDirFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: Open's descriptor walk (descend) anchored at a caller-held directory whose owner (Fstat) is the trusted owner: the anchor opened O_RDONLY|O_DIRECTORY|O_NOFOLLOW, every component below it by Openat with the same flags and trusted() (owner, directory, no group/other write, world r-x); the release path's OpenTrustedFile is unchanged; config delivery anchors at / so the chain is OpenTrustedFile's file:Fstat@528,file:OpenFile@370 e7aa24fad38f830dd6b8b953ed79b796bb9ee39787c61e927f830a03ad748c81 |
| @legacy 15f5eedbe5ca093e7b9e4fb9477a1f8b2ba791700745612e3aa0bc8a865043bd internal/rootstate/file_linux.go OpenTrustedFileFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: OpenTrustedFileFrom = OpenTrustedDirFrom of the file's directory, then safefile.OpenFileAt by descriptor and trusted() for a one-link regular file owned by the anchor's owner and not group/other writable; the release path's OpenTrustedFile is unchanged file:Fstat@319 57cb5766ce657bf5e65cef9940a74aa362ae42e498693e1107da58343da26aee |
| -@legacy 7211fbcd6af550432532e111dac1af34e35ce88a061b89423fa3a46c54e1773b cli.go runAdd legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos add refuses a host whose existing row has a runtime (refuseAddRootfs) and writes through addWrite (Registry.UpsertUnlessRootfs, which refuses in the same statement if a rootfs row appeared meanwhile); addBeforeWrite is a nil test seam; adds refusals only;rev3=census-ruling-named-unit-delivery-114;basis=registry opened before the stamp guards (the nested-evidence read reuses the handle, so one file:Open fewer); reads the existing row's Unit; StampShape on the row that would result file:Open@3515,registry:Addr@12427,registry:Addr@12440,registry:Addrs@11964,registry:Addrs@12311,registry:Addrs@12345,registry:Addrs@12373,registry:Health@12358,registry:Health@12389,registry:Replicas@13659,registry:Replicas@13676,registry:Steering@12878,registry:Steering@12895,registry:Unit@14118,registry:Unit@3726,whole:Route@10127,whole:Route@10211,whole:Route@10546,whole:Route@14110,whole:Route@14182,whole:Route@14445,whole:Route@14490,whole:Route@3690,whole:Route@6650 d11d9db4f6e2663621fdf8592eb1f0af515d6682a53f77f03ec6be78bc3ea06a |
| +@legacy f7e065c5aea640fa0d4b69a005b5587c124b7251b43be48aab7ea154d2ef340b cli.go runAdd legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos add refuses a host whose existing row has a runtime (refuseAddRootfs) and writes through addWrite (Registry.UpsertUnlessRootfs, which refuses in the same statement if a rootfs row appeared meanwhile); addBeforeWrite is a nil test seam; adds refusals only;rev3=census-ruling-regional-domains-447;basis=#447 Task 6 (W12): after addRail, refuses a host a regional claim holds (log.Fatalf, before appRail and any registry write) through addRegionalCheck: the one new read is a single domains.GetClaim of domains/<host>.json by key (for *.Y the key is Y's; the host lower-cased and canonicalised by NormalizeAliasHost), through the store deploymentReadSeam returns (the deployment bucket, or the DirStore under CARLOS_DEPLOYMENT_DIR, whose path() refuses empty, dot and dot-dot segments), read only, nothing listed; the claim body decides only refuse or proceed (Claim.Regional()); no store, or a read error other than not-found, prints one stderr line and proceeds as before (the edge's Reload denies a regional key whatever the row says); the host is the operator's argument, as before; it only adds a refusal; read sites unchanged (21);rev3=census-ruling-named-unit-delivery-114;basis=registry opened before the stamp guards (the nested-evidence read reuses the handle, so one file:Open fewer); reads the existing row's Unit; StampShape on the row that would result file:Open@4181,registry:Addr@13093,registry:Addr@13106,registry:Addrs@12630,registry:Addrs@12977,registry:Addrs@13011,registry:Addrs@13039,registry:Health@13024,registry:Health@13055,registry:Replicas@14325,registry:Replicas@14342,registry:Steering@13544,registry:Steering@13561,registry:Unit@14784,registry:Unit@4392,whole:Route@10793,whole:Route@10877,whole:Route@11212,whole:Route@14776,whole:Route@14848,whole:Route@15111,whole:Route@15156,whole:Route@4356,whole:Route@7316 e0cfd3d762373c3acb69157e34a55529212a7a7f9d919ca542f14e1a9f40c41b |
| @legacy bf2404aa5b99f4f42f47d30df3c5960e939f2ce82eee3b3f4c3d766d6e406f9f cli.go unitRail legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=validates the row that would result from the proposed unit (StampShape); clearing a stamp always allowed registry:Backing@91,registry:Host@436,registry:Unit@465,whole:Route@461,whole:Route@518 f4f74c1698cb7e2a1a08e7c8c75182aa83bd717f25aef3abbf98aef1fddf882c |
| @legacy 8b160e29b567c38a56320d5cd5d1deef23bdc1d35bb1388026eb0cbddbb3fee8 internal/appconfig/routefingerprint.go ConfigRouteFingerprints legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=the unit row is gated on unitDelivered and carries Unit, so a re-stamp moves the digest (#114 §3.5) registry:App@558,registry:Environment@573,registry:Host@509,registry:Unit@998,whole:Route@129,whole:Route@546,whole:Route@606,whole:Route@631,whole:Route@696 eaff18a4b31d56a3222e94eba44fd288b096c45a78c05033dd0507bffe4bd0a7 |
| @legacy 16f74fe2575cd7770bc04afed1b498d612d31a67cf7cdc700886ddc1a18f92a9 internal/appconfig/sync.go SyncWithCallbacks legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-named-unit-delivery-114;basis=takes ops.Lock (the config-sync flock) for the pass; the declaration file is read once under it (planStamped) and that snapshot serves the whole pass; a host the snapshot names, or whose env file a surviving carlos drop-in still loads, is admitted only as its own declaration's deliverable stamp (declaredHostRefusal): any other row for it is refused before any bundle is read and before either writer, its env file untouched; with the declaration file unreadable nothing is delivered to any host and nothing reaped; one tripwire re-reads the file just before the first mutation and a change abandons the pass; both eligibility gates admit Stamped routes; the instance overlay is fetched for a stamped route as for a unit-backed one; reapDropIns and applyStamped after the loop; the env reaper keeps declared hosts and hosts a surviving drop-in names; reads Host, Backing and Unit of rows already listed data-literal@13882,registry:App@5400,registry:App@8247,registry:Backing@10174,registry:Backing@1031,registry:Backing@13831,registry:Environment@5408,registry:Environment@8255,registry:Environment@8512,registry:Host@10294,registry:Host@11200,registry:Host@1128,registry:Host@11748,registry:Host@1222,registry:Host@1257,registry:Host@12872,registry:Host@12942,registry:Host@13005,registry:Host@13063,registry:Host@13154,registry:Host@13999,registry:Host@14066,registry:Host@2335,registry:Host@5216,registry:Host@7973,registry:Host@8039,registry:Host@8655,registry:Unit@12881,whole:Route@1000,whole:Route@10220,whole:Route@1024,whole:Route@12290,whole:Route@13212,whole:Route@14076,whole:Route@14603,whole:Route@15259,whole:Route@1608,whole:Route@2245,whole:Route@2295,whole:Route@5118,whole:Route@5143,whole:Route@5158,whole:Route@5281,whole:Route@5395,whole:Route@7870,whole:Route@7895,whole:Route@7910,whole:Route@8120,whole:Route@8242 0beb89805b2bb92f85d4e55b8ca6d0303da84df8936df41b4ea652dd778578e6 |
| @@ -72,7 +72,7 @@ internal/host/unitops.go probeUnits legacy accepted-legacy accepted-legacy;rev3= |
| internal/host/unitops.go systemctlRestartUnit legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: exec systemctl restart <unit>, only for a unit root bound to the route through Bind after a successful reload and an exact EnvironmentFiles match file:Command@60 a8adaa6c8afb33821e99a2907317ebb8a4ace5af7801abb4b742eb8a414b4480 |
| internal/rootstate/file_linux.go OpenTrustedDirFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: Open's descriptor walk (descend) anchored at a caller-held directory whose owner (Fstat) is the trusted owner: the anchor opened O_RDONLY|O_DIRECTORY|O_NOFOLLOW, every component below it by Openat with the same flags and trusted() (owner, directory, no group/other write, world r-x); the release path's OpenTrustedFile is unchanged; config delivery anchors at / so the chain is OpenTrustedFile's file:Fstat@528,file:OpenFile@370 e7aa24fad38f830dd6b8b953ed79b796bb9ee39787c61e927f830a03ad748c81 |
| internal/rootstate/file_linux.go OpenTrustedFileFrom legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: OpenTrustedFileFrom = OpenTrustedDirFrom of the file's directory, then safefile.OpenFileAt by descriptor and trusted() for a one-link regular file owned by the anchor's owner and not group/other writable; the release path's OpenTrustedFile is unchanged file:Fstat@319 57cb5766ce657bf5e65cef9940a74aa362ae42e498693e1107da58343da26aee |
| -cli.go runAdd legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos add refuses a host whose existing row has a runtime (refuseAddRootfs) and writes through addWrite (Registry.UpsertUnlessRootfs, which refuses in the same statement if a rootfs row appeared meanwhile); addBeforeWrite is a nil test seam; adds refusals only;rev3=census-ruling-named-unit-delivery-114;basis=registry opened before the stamp guards (the nested-evidence read reuses the handle, so one file:Open fewer); reads the existing row's Unit; StampShape on the row that would result file:Open@3515,registry:Addr@12427,registry:Addr@12440,registry:Addrs@11964,registry:Addrs@12311,registry:Addrs@12345,registry:Addrs@12373,registry:Health@12358,registry:Health@12389,registry:Replicas@13659,registry:Replicas@13676,registry:Steering@12878,registry:Steering@12895,registry:Unit@14118,registry:Unit@3726,whole:Route@10127,whole:Route@10211,whole:Route@10546,whole:Route@14110,whole:Route@14182,whole:Route@14445,whole:Route@14490,whole:Route@3690,whole:Route@6650 d11d9db4f6e2663621fdf8592eb1f0af515d6682a53f77f03ec6be78bc3ea06a |
| +cli.go runAdd legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos add refuses a host whose existing row has a runtime (refuseAddRootfs) and writes through addWrite (Registry.UpsertUnlessRootfs, which refuses in the same statement if a rootfs row appeared meanwhile); addBeforeWrite is a nil test seam; adds refusals only;rev3=census-ruling-regional-domains-447;basis=#447 Task 6 (W12): after addRail, refuses a host a regional claim holds (log.Fatalf, before appRail and any registry write) through addRegionalCheck: the one new read is a single domains.GetClaim of domains/<host>.json by key (for *.Y the key is Y's; the host lower-cased and canonicalised by NormalizeAliasHost), through the store deploymentReadSeam returns (the deployment bucket, or the DirStore under CARLOS_DEPLOYMENT_DIR, whose path() refuses empty, dot and dot-dot segments), read only, nothing listed; the claim body decides only refuse or proceed (Claim.Regional()); no store, or a read error other than not-found, prints one stderr line and proceeds as before (the edge's Reload denies a regional key whatever the row says); the host is the operator's argument, as before; it only adds a refusal; read sites unchanged (21);rev3=census-ruling-named-unit-delivery-114;basis=registry opened before the stamp guards (the nested-evidence read reuses the handle, so one file:Open fewer); reads the existing row's Unit; StampShape on the row that would result file:Open@4181,registry:Addr@13093,registry:Addr@13106,registry:Addrs@12630,registry:Addrs@12977,registry:Addrs@13011,registry:Addrs@13039,registry:Health@13024,registry:Health@13055,registry:Replicas@14325,registry:Replicas@14342,registry:Steering@13544,registry:Steering@13561,registry:Unit@14784,registry:Unit@4392,whole:Route@10793,whole:Route@10877,whole:Route@11212,whole:Route@14776,whole:Route@14848,whole:Route@15111,whole:Route@15156,whole:Route@4356,whole:Route@7316 e0cfd3d762373c3acb69157e34a55529212a7a7f9d919ca542f14e1a9f40c41b |
| cli.go unitRail legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=validates the row that would result from the proposed unit (StampShape); clearing a stamp always allowed registry:Backing@91,registry:Host@436,registry:Unit@465,whole:Route@461,whole:Route@518 f4f74c1698cb7e2a1a08e7c8c75182aa83bd717f25aef3abbf98aef1fddf882c |
| internal/appconfig/routefingerprint.go ConfigRouteFingerprints legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=the unit row is gated on unitDelivered and carries Unit, so a re-stamp moves the digest (#114 §3.5) registry:App@558,registry:Environment@573,registry:Host@509,registry:Unit@998,whole:Route@129,whole:Route@546,whole:Route@606,whole:Route@631,whole:Route@696 eaff18a4b31d56a3222e94eba44fd288b096c45a78c05033dd0507bffe4bd0a7 |
| internal/appconfig/sync.go SyncWithCallbacks legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-named-unit-delivery-114;basis=takes ops.Lock (the config-sync flock) for the pass; the declaration file is read once under it (planStamped) and that snapshot serves the whole pass; a host the snapshot names, or whose env file a surviving carlos drop-in still loads, is admitted only as its own declaration's deliverable stamp (declaredHostRefusal): any other row for it is refused before any bundle is read and before either writer, its env file untouched; with the declaration file unreadable nothing is delivered to any host and nothing reaped; one tripwire re-reads the file just before the first mutation and a change abandons the pass; both eligibility gates admit Stamped routes; the instance overlay is fetched for a stamped route as for a unit-backed one; reapDropIns and applyStamped after the loop; the env reaper keeps declared hosts and hosts a surviving drop-in names; reads Host, Backing and Unit of rows already listed data-literal@13882,registry:App@5400,registry:App@8247,registry:Backing@10174,registry:Backing@1031,registry:Backing@13831,registry:Environment@5408,registry:Environment@8255,registry:Environment@8512,registry:Host@10294,registry:Host@11200,registry:Host@1128,registry:Host@11748,registry:Host@1222,registry:Host@1257,registry:Host@12872,registry:Host@12942,registry:Host@13005,registry:Host@13063,registry:Host@13154,registry:Host@13999,registry:Host@14066,registry:Host@2335,registry:Host@5216,registry:Host@7973,registry:Host@8039,registry:Host@8655,registry:Unit@12881,whole:Route@1000,whole:Route@10220,whole:Route@1024,whole:Route@12290,whole:Route@13212,whole:Route@14076,whole:Route@14603,whole:Route@15259,whole:Route@1608,whole:Route@2245,whole:Route@2295,whole:Route@5118,whole:Route@5143,whole:Route@5158,whole:Route@5281,whole:Route@5395,whole:Route@7870,whole:Route@7895,whole:Route@7910,whole:Route@8120,whole:Route@8242 0beb89805b2bb92f85d4e55b8ca6d0303da84df8936df41b4ea652dd778578e6 |
| @@ -82,7 +82,7 @@ internal/appconfig/sync.go UnitConfigApps legacy accepted-legacy accepted-legacy |
| internal/appconfig/sync.go syncHostClaimed legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3: comment only, the Hibernate case is left as is for a resident rootfs instance;rev3=census-ruling-named-unit-delivery-114;basis=split: the env file read, hostname rail, key-loss guard and render moved to prepareHost, the ack and restart to finishHost; this body keeps the claim-guarded write; reads moved, none added registry:Environment@617,registry:Host@1059,registry:Host@822,whole:Route@1125,whole:Route@338 7013242b261cda29e60557845f026423016609786b3591eca18df97f58f14785 |
| internal/appconfig/syncexec.go AwaitingRestart legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): a route bound to an OWNED environment bundle is skipped for a default-bundle write (it reads none of it) and its exec_delivery is resolved through standaloneDefault (no inheritance); the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=stamped routes (stampedForDelivery) in the notice: a BlockedStamps reason reported after the environment narrowing and the owned-environment boundary, the default bundle loaded for a stamped route whatever the exec-delivery opt-in and the instance overlay loaded through the loader the pass already uses, a failure of either reported Unresolved, an un-opted addr route reported Undelivered; reads Host, Environment and whole Route of rows already listed; no new bucket key registry:App@1785,registry:Environment@2175,registry:Environment@2262,registry:Environment@2301,registry:Environment@3088,registry:Environment@6220,registry:Host@2970,registry:Host@3041,registry:Host@3177,registry:Host@3584,registry:Host@3729,registry:Host@4612,registry:Host@4691,registry:Host@4762,registry:Host@5130,registry:Host@6069,registry:Host@6145,registry:Host@6419,registry:Unit@6434,whole:Route@1695,whole:Route@1736,whole:Route@1765,whole:Route@1823,whole:Route@481 447c2590381de09be0bfe206d9b9870d0c7ceea7fd761f5ea740c55a0a3cacf1 |
| internal/appconfig/syncexec.go SyncExecWithCallbacks legacy accepted-legacy accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=route-and-input (J1,J4, main's disposition); the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), through syncExecSerialized: main's body, with a nested row whose write found no instance directory named and skipped (errInstanceDirAbsent, WhenInstanceDirAbsent) instead of failing the pass, and each in-scope host reported done or not done (WithHostOutcome) once the pass has gone through every route; no new read site;rev3=PROPOSED-s3-change-index;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=the scoped pass's route filter (WithRouteFilter, syncOptions.kept) is checked in its three route loops, so a route the filter leaves out is out of scope before anything is read for it; three whole-Route sites added, each passing rt to kept; no bucket or file read added;rev3=census-ruling-team-scoped-credentials;basis=team-scoped credentials (#449 §3): checkOptedIn's default-bundle thunk answers no default bundle for an OWNED environment bundle, so its exec_delivery is its own and never inherited; the same bundle reads as before, no read site added;rev3=census-ruling-named-unit-delivery-114;basis=the stale-file notice loop gains the stamped case: os.Stat of ConfigEnvPath(dataDir, rt), the path the exec-addr case already stats, and a notice line; no write, no new path file:Stat@28893,file:Stat@30122,registry:App@10596,registry:App@10811,registry:App@16357,registry:App@28773,registry:Environment@10604,registry:Environment@10819,registry:Environment@16365,registry:Environment@28781,registry:Host@1031,registry:Host@1066,registry:Host@1495,registry:Host@15865,registry:Host@16192,registry:Host@16290,registry:Host@17122,registry:Host@17473,registry:Host@18408,registry:Host@18949,registry:Host@21876,registry:Host@22093,registry:Host@22651,registry:Host@22841,registry:Host@22850,registry:Host@22869,registry:Host@25770,registry:Host@26387,registry:Host@26439,registry:Host@26595,registry:Host@29290,registry:Host@30440,registry:Host@866,registry:Host@937,whole:Route@10366,whole:Route@10424,whole:Route@10489,whole:Route@10550,whole:Route@10591,whole:Route@10708,whole:Route@10742,whole:Route@10806,whole:Route@1447,whole:Route@1476,whole:Route@15777,whole:Route@15827,whole:Route@16352,whole:Route@25366,whole:Route@25780,whole:Route@26484,whole:Route@28641,whole:Route@28663,whole:Route@28721,whole:Route@28768,whole:Route@28873,whole:Route@29331,whole:Route@30102,whole:Route@30681,whole:Route@30754,whole:Route@693,whole:Route@721,whole:Route@750,whole:Route@776,whole:Route@811 5bc7e65e01b7022357d9359f3b20c69edc73d05146963060746a3594d7239d04 |
| -@coverage . 0316e7465190f27fe476d6a82d6a66aa7db904422b6bad025f3f82e08a932481 |
| +@coverage . b0cc3900a514fa0b0e2c390ac0c1e598baef69f2597ccd1a9b320c9b13f1148e |
| @coverage internal/appconfig 208689da4f6f653a576afa47f4e08f31e29724120739378d2568586bfd239f11 |
| -@coverage internal/host 6e8bb82d44cb8dc49d59382f9240d87f3b22507ba65ba8fb765c8245b422945d |
| +@coverage internal/host d43b76254f51ee2ffb70b950fca472f9048073cf5937cf4f3f700e08febc6893 |
| @coverage internal/rootstate 85c218bdbc208067e69083deacb87b2330b8971418f24c1f1bd3f0399915e3c4 |