| index 0eb7e6eb3..600b9be83 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 |
| @@ -1,6 +1,6 @@ |
| # Census overlay named-unit-delivery-114, written by census-propose (#369). census-ruling-named-unit-delivery-114, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-named-unit-delivery-114.md. |
| -# 3 body, 5 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 30 new dispositions: 5 reads re-frozen at their disposition with the claim, 25 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +# 5 body, 5 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +# 32 new dispositions: 5 reads re-frozen at their disposition with the claim, 27 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| @legacy 131db254cbdf33342a7292c9bb5fe226dc90935deaae7c8ef643f060a242d545 cli.go runRouteUnit legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=calls unitRail with the proposed unit so the door validates the row that would result (#114 spec §3.1, codex R3-5); read sites unchanged registry:Host@1070,registry:Host@161,registry:Host@348,registry:Host@421,registry:Host@541,registry:Unit@267,registry:Unit@559,whole:Route@107 d2f2d94904e4fc87a572d56982b18114ff1fdbff7e7681f5753c7c864810077e |
| @legacy 7f724aaef403042e9c3b95e0ad0b812fdf2837b2c0aed3a2e61737b1825d7d4e internal/appconfig/sync.go reap legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-named-unit-delivery-114;basis=keeps every host the named-units declaration names as well as every registry host (round 4 P1-2, census E2); called only when the declaration file was read and unchanged since planning; the same ReadDir/Remove of <envDir> as main, no read added file:ReadDir@92,registry:Host@234,whole:Route@175,whole:Route@218 2244e9b3f55645ecf0517dfaee84e7e249100caab8ee4c9b95a43f1488e244e4 |
| @legacy fb57253c5df7995d72db5ee037f3fc7b9d447cdc985c679a9dc8bc7c7fe3a6c7 cli.go hibernateRail legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: refuses hibernation when the row names a unit; reads Host and Unit; a refusal only registry:Host@260,registry:Unit@251,registry:Unit@50 c7b235783315042a44675dedf7f44502c665645019c4252fc59da7caaf0dbff9 |
| @@ -9,7 +9,7 @@ |
| @legacy ea1f41202767f2ced44bdb6ef97582e3079d642fb9c1935a69264ded9b6cd0dc internal/appconfig/dropin.go ensureDropInDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: Lstat then Mkdir 0755 of /etc/systemd/system/<unit>.d, then trustedDir (rootstate.OpenTrustedDirFrom anchored at /): the directory and every directory above it root-owned, not group- or other-writable, no symlink, before any write into it (round 4, census E3); refuses a symlink or a non-directory file:Lstat@108 7e02409aad01382657dfef0bb4b362f9a7d3af1a140b7d67942efc6c1399fae9 |
| @legacy 423cff0df4767cb23a5d9c7f48b37f255e767c143455c6dbc28c565aa972af39 internal/appconfig/dropin.go hasPending legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: Lstat of <unit>.d/carlos-env.pending, the reload-owed marker file:Lstat@53 bc3e359c355a5476d06ef8eb4e593dcea63707c6347579fe6460412244f4014f |
| @legacy d2d3aa8635955422ddb0a95f4c559abced65ce70ef7ce77b4f8384fb25e4231e internal/appconfig/dropin.go unitDirs legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: ReadDir of /etc/systemd/system listing *.service.d, symlinked entries reported and never entered file:ReadDir@69 2b0f8c17563054dc9c7e3c654682d457700c60962c65beb33e4f53ba5635beb3 |
| -@legacy 685d04e183e01a6b26c5d8b6e7941b5550653888c9d67ecb152d674aec0ff712 internal/appconfig/rootread.go rootRead legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one reader for invariant C, a thin wrapper: rootstate.OpenTrustedFileFrom anchored at / (every component root-owned, not group/other writable, O_NOFOLLOW by directory descriptor; the file a one-link regular file with the same checks) then ReadAll from that descriptor capped at 1 MiB; used for the base file, the declaration and an existing drop-in; nothing else opens those files file:ReadAll@273 22a70b3d2a0522bbbe85c03808e714cabff83d9c6f83d4baa4c6c4fc04e9e3bc |
| +@legacy f526b22a469ab3f4ebc7ec9c41a1bac8916626c52a10ec4c2f135e056dfdf38f internal/appconfig/rootread.go rootRead legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one reader for invariant C, a thin wrapper: rootstate.OpenTrustedFileFrom anchored at / (every component root-owned, not group/other writable, O_NOFOLLOW by directory descriptor; the file a one-link regular file with the same checks) then ReadAll from that descriptor capped at 1 MiB, an empty file returned as empty bytes (distinct from absent); used for the base file, the declaration and an existing drop-in; nothing else opens those files file:ReadAll@273 92e47bb38eeccf3fed9dd9cccde2f7b4a796ab369bd02a1d5d65b27a4e332689 |
| @legacy 8ae1f8ff103eab8aec944ffd43807cfdc91a6e18d2e0b46528131ab1c2cb834c internal/appconfig/stamped.go StampShape legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: wraps stampShapeReason as an error; whole Route whole:Route@69 623c049e3ce08e71fed6640151d4f9d34713425b4381bd713223dda6a2d5736e |
| @legacy c31d8a98e1d73052596e7099742b629a9575e42ee5f264371feba326ff16c08d internal/appconfig/stamped.go Stamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped predicate on Unit, App, Kind and Status (#114 §3.1) registry:App@64,registry:Kind@108,registry:Kind@83,registry:Status@136,registry:Status@155,registry:Unit@47 4de90bac814075c17c5048c43229f9f66a6e4898f344c44f45432b4ddf3329eb |
| @legacy 768e9e50512c2026affe8e44bf724d3dfca55c94370b5303c21b12de8554c435 internal/appconfig/stamped.go stampShapeReason legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the supported shape rail (addr upstream, no socket, no hibernate) as a fixed string per rail; reads Socket, Addr, Addrs, Hibernate, Unit registry:Addr@229,registry:Addrs@246,registry:Hibernate@340,registry:Socket@66,registry:Unit@214,registry:Unit@325,registry:Unit@468 5e530f8530bee39d8fdcb7cf008cd05d0290c91013c5730b95b2666df13a2a23 |
| @@ -18,10 +18,12 @@ |
| @legacy 656f499ed708bf7aca46cf83a9551e61dcd227081ecaf7f19f8b6d7f8e96f376 internal/appconfig/sync.go finishHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the ack and restart half of the former syncHostClaimed; reads moved from it, none added registry:Hibernate@2060,registry:Host@1144,registry:Host@1796,registry:Host@2009,registry:Host@2265,registry:Host@2355,registry:Host@2574,registry:Host@569,whole:Route@593,whole:Route@713 75b74fbe948d169dca1d5a2c987d5492afdabb82229ac118cd3a19a0021b6aad |
| @legacy d0b3d52369d4338a0e7504867e689a69644c09eb4bcf53b74add3e4d96b8d5af internal/appconfig/sync.go prepareHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the read, hostname rail, key-loss guard and render half of the former syncHostClaimed (file:ReadFile of <envDir>/<host>.env); reads moved from it, none added; shared by the stamped path file:ReadFile@622,registry:App@3625,registry:App@3646,registry:App@3994,registry:App@4052,registry:Environment@3010,registry:Environment@3074,registry:Host@353,registry:Host@3616,registry:Host@370,registry:Host@388,registry:Host@3985,registry:Host@407,registry:Host@4200,registry:Host@432,registry:Host@532,registry:Host@593,registry:Host@739,whole:Route@4136 8573fdebae572097d992d0f1aeb52fb5f7aeeaf02489b47bb3985e56ca4064e7 |
| @legacy f94a1602396134285fbc9331c9dad506fbf5bd32790c7d0895db06cbb0ccd3b2 internal/appconfig/syncexec.go BlockedStamps legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the door-side rails (shape, name, hostname, one-route-per-unit) over the box's routes for the notice; registry reads only, fixed reason strings registry:App@375,registry:Environment@465,registry:Host@252,registry:Host@701,registry:Host@804,registry:Host@860,registry:Host@903,registry:Host@927,registry:Host@999,registry:Unit@1097,registry:Unit@220,registry:Unit@273,registry:Unit@755,registry:Unit@828,registry:Unit@952,whole:Route@135,whole:Route@168,whole:Route@186,whole:Route@334,whole:Route@368,whole:Route@413,whole:Route@657,whole:Route@727 d6124f7570e1ecd4a15f79ceeca1c345ba027791af6d52d748941a2d704e4d68 |
| -@legacy b08cf30bd3bf7f3070cb3735138235dc83ff2832d1354f92abeb4ecb43d609c0 internal/appconfig/unitsync.go applyStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: spec §3.2 steps 3-7: prints the idle declared units; before the daemon-reload, and before each restart, the declaration file is re-read through the trusted reader and its digest compared with planning's (declGuard, round 4 P1-3), a change abandoning the rest of the pass; per marked unit readDropIn through rootRead, post-reload probe, the two-path EnvironmentFiles check, DeclaredBinding again, then restart and clear the marker; drift reported for unmarked units; reads whole Route of the prepared work whole:Route@2423 5702dc25c67519d536d4e8e1ba30f1adf8ed7c15416fb5d5e461c58d5a5951f2 |
| -@legacy e8b765fa8d2bd746fd465ccd4380f30a26f678680d0cb4e6b1cce2f4639d3f79 internal/appconfig/unitsync.go planStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped rail before anything is touched: shape, name, hostname, one-route-per-unit, then the declaration (invariant A: loadDeclarations through rootRead of /etc/carlos/named-units.json, one JSON document with nothing after it, DeclaredBinding must name this unit, host, account and app; a registry row alone never authorises; an unreadable file refuses all), the declaration digest kept for the guard, then ops.Probe (one systemctl show -p Id,LoadState,EnvironmentFiles), then readDropIn through rootRead for the unmanaged-file guard; declared units no route names are listed as idle; refuses on any failure; reads Host and Unit of rows already listed registry:Host@473,registry:Host@542,registry:Host@629,registry:Host@677,registry:Host@701,registry:Host@727,registry:Host@796,registry:Unit@596,registry:Unit@761,registry:Unit@786,whole:Route@1303,whole:Route@409,whole:Route@443,whole:Route@467,whole:Route@484,whole:Route@514 bbb366baf596b3df488fc4af7ca4d7bb24e75e3a5321a4ee37b29d2f075bd5ea |
| -@legacy e7aa66b878de19daafcc43e528cd14604468d9fc677ada4e8d945beef0d16411 internal/appconfig/unitsync.go prepareStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: DeclaredBinding again before any write (invariant A), then prepareHost, the carriage-return rail, the overlap rail (envFileNames of the base file through rootRead, names only, invariant B's printable-ASCII grammar), ensureDropInDir (trusted directory), readDropIn through rootRead (marker-owned or refused), then the declaration digest re-checked before the pending marker, the env write and the drop-in write (declGuard); commitHost of <envDir>/<host>.env, writeDropIn; reads Host and Unit of the row registry:Host@1119,registry:Host@1608,registry:Host@188,registry:Host@1897,registry:Host@2075,registry:Host@2251,registry:Host@2404,registry:Host@2540,registry:Host@2921,registry:Host@3085,registry:Host@3230,registry:Host@3277,registry:Host@3435,registry:Host@3585,registry:Host@3668,registry:Host@3749,registry:Host@512,registry:Unit@435,whole:Route@197,whole:Route@201,whole:Route@416,whole:Route@562 4f05dc82324b0efc15edc75f6d740d3579d808df7e93aa2b44ce2ce6ff4016b8 |
| -@legacy 3c2e9307099e989f66091fe0ac996345869190a3a7e7a06a039947ba31edac96 internal/appconfig/unitsync.go stampedPlan.declaredHostRefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: invariant A at the dispatch (round 4 P1-1): for a host the declaration names, the row must be a deliverable stamp bound by DeclaredBinding or the host is refused with the reason and its env file left untouched; reads Host, Backing, Unit and whole Route of the row; nothing else is read registry:Backing@478,registry:Host@136,registry:Host@441,registry:Host@761,registry:Unit@490,whole:Route@200,whole:Route@540 e1548b63ba6184209dd8d86126e2e7c93705c49e3bca82d331be2f8b8f785b36 |
| +@legacy 0cac91dea581dd6e024f230222fae477ebd8a6c870f914d38c17c1920059272e internal/appconfig/unitsync.go applyStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: spec §3.2 steps 3-7: prints the idle declared units, one reload if a marker exists, per marked unit readDropIn through rootRead, post-reload probe, the two-path EnvironmentFiles check, DeclaredBinding again against the pass's snapshot, then restart and clear the marker; drift reported for unmarked units; the per-mutation re-reads are gone (the file is serialised with the pass by the flock); reads whole Route of the prepared work whole:Route@2309 f7e3f974fd798f079040b8a7e15780847a8058608d3c8ef2cd52a335b5e269a6 |
| +@legacy 23d5a37720e73d73460194a0e6e7aabfc51ab65aa4c6cf924f446b3fbecb6b86 internal/appconfig/unitsync.go planStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped rail before anything is touched: shape, name, hostname, one-route-per-unit, then the declaration (invariant A: loadDeclarations, one read of /etc/carlos/named-units.json through rootRead under the pass's flock, one JSON document with nothing after it, DeclaredBinding must name this unit, host, account and app; a registry row alone never authorises; an absent file declares nothing, an empty or invalid file refuses all), the hosts surviving drop-ins still name (referencedEnvHosts, each drop-in read through rootRead), then ops.Probe (one systemctl show), then readDropIn through rootRead for the unmanaged-file guard; declared units no route names are listed as idle; refuses on any failure; reads Host and Unit of rows already listed registry:Host@477,registry:Host@546,registry:Host@633,registry:Host@681,registry:Host@705,registry:Host@731,registry:Host@800,registry:Unit@600,registry:Unit@765,registry:Unit@790,whole:Route@1307,whole:Route@413,whole:Route@447,whole:Route@471,whole:Route@488,whole:Route@518 3b9d3f0a2a50b26fafd2cfdd87ebc9aea01c92ddadd78c1710a1da28501a233e |
| +@legacy c42b566b24e3cc466b5bc644e03c6368b2ad4f571e455fd3f87fa9e1a92ed64e internal/appconfig/unitsync.go prepareStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: DeclaredBinding again against the pass's snapshot before any write (invariant A), then prepareHost, the carriage-return rail, the overlap rail (envFileNames of the base file through rootRead, names only, invariant B's printable-ASCII grammar), ensureDropInDir (trusted directory), readDropIn through rootRead (marker-owned or refused), writePending before any mutation, commitHost of <envDir>/<host>.env, writeDropIn; the per-mutation re-reads are gone; reads Host and Unit of the row registry:Host@1119,registry:Host@1608,registry:Host@188,registry:Host@1897,registry:Host@2075,registry:Host@2251,registry:Host@2404,registry:Host@2540,registry:Host@2867,registry:Host@2931,registry:Host@3110,registry:Host@3193,registry:Host@3274,registry:Host@512,registry:Unit@435,whole:Route@197,whole:Route@201,whole:Route@416,whole:Route@562 25e646b5995689149a3df4804918a4b14eaa4e1ef372628f31e07162852a0838 |
| +@legacy da0e1b2805e59d64bbf22c335d6e011207cc4afd82c24fd4256f562201109bb7 internal/appconfig/unitsync.go stampedPlan.declaredHostRefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: invariant A at the dispatch: for a host the snapshot's declaration names, the row must be a deliverable stamp bound by DeclaredBinding; for a host whose env file a surviving carlos drop-in still loads (census R3-E1), no row but that drop-in's own current declaration may rewrite it until the drop-in is reaped; either refusal names the reason and leaves the env file untouched; reads Host, Backing, Unit and whole Route of the row; nothing else is read registry:Backing@900,registry:Host@1183,registry:Host@136,registry:Host@180,registry:Host@547,registry:Host@863,registry:Unit@912,whole:Route@622,whole:Route@962 cad00339d1e553e776fe3d66d23db330ec0e9b7c633776a42b6d530c9cb1d7cb |
| +@legacy 65f987b2a03593f28e6d2e7d66bbbdb1b57d89e6452cc534a9c33f76cd32da72 internal/host/unitops.go InstallNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one carlos writer of /etc/carlos/named-units.json: validates the bytes with appconfig.ValidateDeclarations (the pass's decoder), takes the config-sync flock (<envDir>/.sync.lock, the lock SyncUnits holds for a whole pass), writes <dst>.tmp beside the file with O_CREATE|O_EXCL 0644, fsync, rename over dst, fsync of the directory (file:OpenFile of the temp and file:Open of the directory); root-owned because the verb runs as root file:Open@801,file:OpenFile@307 5c3d7dbe731703897f30a8e48f884df1324a1fa751605e82b32272b6074c7246 |
| +@legacy eed454ba6090eb225ebb5f10fb8223b81ea84d604b2510638c52672f4cea3e6c internal/host/unitops.go RunSystemNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: carlos system named-units install <file>: refuses unless euid 0, reads <file> (file:ReadFile of an operator-given path, as root, by root's own choice at the command line) and hands the bytes to InstallNamedUnits; prints the installed path file:ReadFile@260 6da9af129899b1b6a54d32bb93fff8fcffa2041592db6597ff2dde8a46a4a5aa |
| @legacy a5acd79601a6b02d3f53e134f2ee7d1bf33f9bca674b76f5cf7ba38563dfc3f9 internal/host/unitops.go daemonReload legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: exec systemctl daemon-reload, once per pass when a marker exists file:Command@41 f8a106f3a32e5fcbe3fb9a9225b51caaf70e15537071b56c62fca5e5c1b9437a |
| @legacy b154b7b002875296a8e6c95171090b8b59d569eb9ee8ce73b3b3e89859d70009 internal/host/unitops.go lockConfigSync legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: OpenFile <envDir>/.sync.lock (0644, create) and an exclusive flock for the whole config pass file:OpenFile@73 f928ef83094cc4ef541439864c6bb2602f700024755de2efd43821f18de25184 |
| @legacy 6b179fdbca98258f8f70c3fa96332e01def4567170b6561159a00e1156c6ee20 internal/host/unitops.go probeUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: exec systemctl show -p Id,LoadState,EnvironmentFiles <units>, unit names already passed DeliverableUnitName; parsed positionally, a count mismatch is an error file:Command@170 b13aded711feeec8bfab26d90f24aebf1628bd057229c2dce6de78fe3750b095 |
| @@ -31,7 +33,7 @@ |
| @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 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 986cdd82bf550e19a73b443d3b387b8b8860baa7cc5b96a1ae230a1122a002bc 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 for the pass; a host the declaration names is admitted only as its declaration's own deliverable stamp (declaredHostRefusal, round 4 P1-1): 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; both eligibility gates admit Stamped routes; the instance overlay is fetched for a stamped route as for a unit-backed one; the stampedForDelivery branch prints plan refusals or prepares the route; reapDropIns and applyStamped after the loop; the env reaper keeps declared hosts and runs only with the declarations read and unchanged; reads Host, Backing and Unit of rows already listed data-literal@13410,registry:App@5400,registry:App@7775,registry:Backing@1031,registry:Backing@13359,registry:Backing@9702,registry:Environment@5408,registry:Environment@7783,registry:Environment@8040,registry:Host@10728,registry:Host@11276,registry:Host@1128,registry:Host@1222,registry:Host@12400,registry:Host@12470,registry:Host@12533,registry:Host@1257,registry:Host@12591,registry:Host@12682,registry:Host@13527,registry:Host@13594,registry:Host@2335,registry:Host@5216,registry:Host@7501,registry:Host@7567,registry:Host@8183,registry:Host@9822,registry:Unit@12409,whole:Route@1000,whole:Route@1024,whole:Route@11818,whole:Route@12740,whole:Route@13604,whole:Route@14131,whole:Route@14700,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@7398,whole:Route@7423,whole:Route@7438,whole:Route@7648,whole:Route@7770,whole:Route@9748 4cafcf12ddc25f2b8e3f146dda40c6bd23a195aae5c16d54351e3b86d82f25f2 |
| +@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 |
| @legacy 49b042bc6dadca1c4b50e81c833438f4f59bddae7c4158d76f5609caf0dba584 internal/appconfig/syncexec.go execRouteBase legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=excludes a route naming a unit (rt.Unit != "") from every exec shape (#114 §3.1) registry:App@98,registry:Backing@179,registry:Kind@54,registry:Platform@115,registry:Status@133,registry:Status@152,registry:Unit@219 7e7f23f29bd585146a96c396a4336e488d149cff3b7474c01ce4a900c8872721 |
| @legacy ed56b1b5abc55ec6a4cacb8f2df6ab40018934b96cc69445cef68402dd953dfc cli.go runRouteHibernate legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos route hibernate refuses a row with a runtime first (its hibernation is fixed at mint), before any dry run or other rail; reads Host and Runtime of the row already read; a refusal only;rev3=census-ruling-named-unit-delivery-114;basis=hibernateRail refuses hibernation on a stamped row before the daemon check (#114 §3.1, codex R3-5); reads Host and Unit of the row already read; a refusal only, no read added registry:App@2812,registry:Hibernate@3557,registry:Hibernate@3844,registry:Host@1052,registry:Host@2748,registry:Host@2908,registry:Host@3227,registry:Host@3320,registry:Host@3646,registry:Host@3712,registry:Host@3835,registry:Host@525,registry:Provisioned@1086,registry:Replication@4467,registry:Replication@4638,registry:Runtime@345,whole:Route@2807,whole:Route@2859,whole:Route@3061,whole:Route@3066,whole:Route@3407,whole:Route@564 48565b382ceb8a48814fdaac42260a8a05c599ced7ecb356e9d2cf7d067168f2 |
| @legacy 0603f75e5df0b0d771066e7d6a2db73c1d37294ceae960548e494445484ec34a internal/appconfig/sync.go UnitConfigApps legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=gates on unitDelivered (a carlos-app@ backing or a unit stamp) instead of the inline Backing test; the Backing read moved into unitDelivered; no read added registry:App@224,whole:Route@130,whole:Route@159,whole:Route@219 2413026f4d60335f3fc14f729634d2ee98e97280bae4213cb0ab98cf4f6c9672 |
| @@ -41,13 +43,15 @@ |
| cli.go runRouteUnit legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=calls unitRail with the proposed unit so the door validates the row that would result (#114 spec §3.1, codex R3-5); read sites unchanged registry:Host@1070,registry:Host@161,registry:Host@348,registry:Host@421,registry:Host@541,registry:Unit@267,registry:Unit@559,whole:Route@107 d2f2d94904e4fc87a572d56982b18114ff1fdbff7e7681f5753c7c864810077e |
| internal/appconfig/sync.go reap legacy accepted-legacy accepted-legacy;rev3=J1,J4;basis=route-and-input;rev3=census-ruling-named-unit-delivery-114;basis=keeps every host the named-units declaration names as well as every registry host (round 4 P1-2, census E2); called only when the declaration file was read and unchanged since planning; the same ReadDir/Remove of <envDir> as main, no read added file:ReadDir@92,registry:Host@234,whole:Route@175,whole:Route@218 2244e9b3f55645ecf0517dfaee84e7e249100caab8ee4c9b95a43f1488e244e4 |
| internal/host/agent.go runAdoptUnderRootRelease authority B3,E1,E2,E3 rev3=census-ruling-self-serve-moves-1;basis=root claim/adopt/update controller uid 0: builds root's lifetime judge once from the host-claim switch and hands it to both productionRestartRequestPass calls; read sites unchanged, offsets moved; the preceding B3,E1,E2,E3 classification retained;rev3=census-ruling-claims-cleanup-r1;basis=claims cleanup R1: the claims shutdown timeout is the host constant claimsShutdownLimit (120s) instead of hostbox.RequestLimit (120s); no read added or changed;rev3=census-ruling-named-unit-delivery-114;basis=config sync is appconfig.SyncUnits with productionUnitOps (drop-in root /etc/systemd/system, base dir /etc/carlos/units, the declaration file /etc/carlos/named-units.json, systemctl probe/reload/restart, the config flock); no proof binding and no bucket read for delivery (Paul's ruling on #114: a root-owned declaration decides); the comment at the restart callback rewritten; read sites unchanged whole:Route@11183,whole:Route@18479,whole:Route@18515,whole:Route@8425 f17b29328e5595214240090a1322469777c5291dde2009d9ad6dcd5b567b44e2 |
| +system.go runSystem authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops the claims case (host.RunSystemClaims, deleted); every other branch unchanged; no read added;rev3=census-ruling-nearest-region-a;basis=adds the hosts-used family to the system dispatch (carlos system hosts-used status, one GET of a console door as the operator); every existing command branch unchanged; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops the "join" case (host.RunSystemJoin, deleted with internal/host/joinroot.go, its only caller) and its line in the usage text; every other branch unchanged; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the system verb dispatch gains named-units, routed to host.RunSystemNamedUnits; no read of its own 6baf2581a7f6a4cfd0af0360992ea31b4c1fa18a210f7dd3743662bc7e147380 |
| +system.go systemVerb authority B,C,D,F,G,J4 rev3=census-ruling-self-serve-moves-1;identity=explicit operator CLI uid 0;basis=adds the lifetimes family to the system dispatch (carlos system lifetimes cutover, a console door call as the operator); every existing command branch unchanged;rev3=census-ruling-claims-cleanup-r2;basis=claims cleanup R2: drops "claims" from the verb list, so it now falls to the unknown-verb message; no read added;rev3=census-ruling-nearest-region-a;basis=adds "hosts-used" to the verb list, routed to runSystemHostsUsedVerb; no read added;rev3=census-ruling-region-ha-p1a;basis=explicit operator CLI and root units, uid 0: drops "join" from the verb list, so `carlos system join` now falls to the unknown-verb message; no read added;rev3=census-ruling-named-unit-delivery-114;basis=the known-verb list gains named-units; no read of its own 05b5f6f76ae222ce71d31533cd1219b1625680621f9cb92b8c528f9d9f6ca2c7 |
| cli.go hibernateRail legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: refuses hibernation when the row names a unit; reads Host and Unit; a refusal only registry:Host@260,registry:Unit@251,registry:Unit@50 c7b235783315042a44675dedf7f44502c665645019c4252fc59da7caaf0dbff9 |
| internal/appconfig/declarations.go declarations.DeclaredBinding legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: THE decider for invariant A: the declaration (from /etc/carlos/named-units.json, loaded through rootRead) that names rt.Unit must name rt.Host, release.RouteAccount(rt) and rt.App exactly, or an error with the reason; reads Host, App, Unit and whole Route of the row; nothing else is read registry:App@235,registry:App@470,registry:Host@215,registry:Host@435,registry:Unit@100,registry:Unit@189,registry:Unit@398,whole:Route@281,whole:Route@465 75d780079996ee68505f851b32becdf7d2405d53e98f518ad69d9e008c8cc700 |
| internal/appconfig/dropin.go dirIsPlain legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: Lstat of <DropInRoot>/<unit>.d; a symlink or non-directory is not entered file:Lstat@47 f27da3a5aaab58aee69179dd7cf52b0ec9cf572e1ed6cc4e6599e3cdced78d59 |
| internal/appconfig/dropin.go ensureDropInDir legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: Lstat then Mkdir 0755 of /etc/systemd/system/<unit>.d, then trustedDir (rootstate.OpenTrustedDirFrom anchored at /): the directory and every directory above it root-owned, not group- or other-writable, no symlink, before any write into it (round 4, census E3); refuses a symlink or a non-directory file:Lstat@108 7e02409aad01382657dfef0bb4b362f9a7d3af1a140b7d67942efc6c1399fae9 |
| internal/appconfig/dropin.go hasPending legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: Lstat of <unit>.d/carlos-env.pending, the reload-owed marker file:Lstat@53 bc3e359c355a5476d06ef8eb4e593dcea63707c6347579fe6460412244f4014f |
| internal/appconfig/dropin.go unitDirs legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: ReadDir of /etc/systemd/system listing *.service.d, symlinked entries reported and never entered file:ReadDir@69 2b0f8c17563054dc9c7e3c654682d457700c60962c65beb33e4f53ba5635beb3 |
| -internal/appconfig/rootread.go rootRead legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one reader for invariant C, a thin wrapper: rootstate.OpenTrustedFileFrom anchored at / (every component root-owned, not group/other writable, O_NOFOLLOW by directory descriptor; the file a one-link regular file with the same checks) then ReadAll from that descriptor capped at 1 MiB; used for the base file, the declaration and an existing drop-in; nothing else opens those files file:ReadAll@273 22a70b3d2a0522bbbe85c03808e714cabff83d9c6f83d4baa4c6c4fc04e9e3bc |
| +internal/appconfig/rootread.go rootRead legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one reader for invariant C, a thin wrapper: rootstate.OpenTrustedFileFrom anchored at / (every component root-owned, not group/other writable, O_NOFOLLOW by directory descriptor; the file a one-link regular file with the same checks) then ReadAll from that descriptor capped at 1 MiB, an empty file returned as empty bytes (distinct from absent); used for the base file, the declaration and an existing drop-in; nothing else opens those files file:ReadAll@273 92e47bb38eeccf3fed9dd9cccde2f7b4a796ab369bd02a1d5d65b27a4e332689 |
| internal/appconfig/stamped.go StampShape legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: wraps stampShapeReason as an error; whole Route whole:Route@69 623c049e3ce08e71fed6640151d4f9d34713425b4381bd713223dda6a2d5736e |
| internal/appconfig/stamped.go Stamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped predicate on Unit, App, Kind and Status (#114 §3.1) registry:App@64,registry:Kind@108,registry:Kind@83,registry:Status@136,registry:Status@155,registry:Unit@47 4de90bac814075c17c5048c43229f9f66a6e4898f344c44f45432b4ddf3329eb |
| internal/appconfig/stamped.go stampShapeReason legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the supported shape rail (addr upstream, no socket, no hibernate) as a fixed string per rail; reads Socket, Addr, Addrs, Hibernate, Unit registry:Addr@229,registry:Addrs@246,registry:Hibernate@340,registry:Socket@66,registry:Unit@214,registry:Unit@325,registry:Unit@468 5e530f8530bee39d8fdcb7cf008cd05d0290c91013c5730b95b2666df13a2a23 |
| @@ -56,10 +60,12 @@ internal/appconfig/stamped.go unitDelivered legacy accepted-legacy accepted-lega |
| internal/appconfig/sync.go finishHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the ack and restart half of the former syncHostClaimed; reads moved from it, none added registry:Hibernate@2060,registry:Host@1144,registry:Host@1796,registry:Host@2009,registry:Host@2265,registry:Host@2355,registry:Host@2574,registry:Host@569,whole:Route@593,whole:Route@713 75b74fbe948d169dca1d5a2c987d5492afdabb82229ac118cd3a19a0021b6aad |
| internal/appconfig/sync.go prepareHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the read, hostname rail, key-loss guard and render half of the former syncHostClaimed (file:ReadFile of <envDir>/<host>.env); reads moved from it, none added; shared by the stamped path file:ReadFile@622,registry:App@3625,registry:App@3646,registry:App@3994,registry:App@4052,registry:Environment@3010,registry:Environment@3074,registry:Host@353,registry:Host@3616,registry:Host@370,registry:Host@388,registry:Host@3985,registry:Host@407,registry:Host@4200,registry:Host@432,registry:Host@532,registry:Host@593,registry:Host@739,whole:Route@4136 8573fdebae572097d992d0f1aeb52fb5f7aeeaf02489b47bb3985e56ca4064e7 |
| internal/appconfig/syncexec.go BlockedStamps legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the door-side rails (shape, name, hostname, one-route-per-unit) over the box's routes for the notice; registry reads only, fixed reason strings registry:App@375,registry:Environment@465,registry:Host@252,registry:Host@701,registry:Host@804,registry:Host@860,registry:Host@903,registry:Host@927,registry:Host@999,registry:Unit@1097,registry:Unit@220,registry:Unit@273,registry:Unit@755,registry:Unit@828,registry:Unit@952,whole:Route@135,whole:Route@168,whole:Route@186,whole:Route@334,whole:Route@368,whole:Route@413,whole:Route@657,whole:Route@727 d6124f7570e1ecd4a15f79ceeca1c345ba027791af6d52d748941a2d704e4d68 |
| -internal/appconfig/unitsync.go applyStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: spec §3.2 steps 3-7: prints the idle declared units; before the daemon-reload, and before each restart, the declaration file is re-read through the trusted reader and its digest compared with planning's (declGuard, round 4 P1-3), a change abandoning the rest of the pass; per marked unit readDropIn through rootRead, post-reload probe, the two-path EnvironmentFiles check, DeclaredBinding again, then restart and clear the marker; drift reported for unmarked units; reads whole Route of the prepared work whole:Route@2423 5702dc25c67519d536d4e8e1ba30f1adf8ed7c15416fb5d5e461c58d5a5951f2 |
| -internal/appconfig/unitsync.go planStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped rail before anything is touched: shape, name, hostname, one-route-per-unit, then the declaration (invariant A: loadDeclarations through rootRead of /etc/carlos/named-units.json, one JSON document with nothing after it, DeclaredBinding must name this unit, host, account and app; a registry row alone never authorises; an unreadable file refuses all), the declaration digest kept for the guard, then ops.Probe (one systemctl show -p Id,LoadState,EnvironmentFiles), then readDropIn through rootRead for the unmanaged-file guard; declared units no route names are listed as idle; refuses on any failure; reads Host and Unit of rows already listed registry:Host@473,registry:Host@542,registry:Host@629,registry:Host@677,registry:Host@701,registry:Host@727,registry:Host@796,registry:Unit@596,registry:Unit@761,registry:Unit@786,whole:Route@1303,whole:Route@409,whole:Route@443,whole:Route@467,whole:Route@484,whole:Route@514 bbb366baf596b3df488fc4af7ca4d7bb24e75e3a5321a4ee37b29d2f075bd5ea |
| -internal/appconfig/unitsync.go prepareStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: DeclaredBinding again before any write (invariant A), then prepareHost, the carriage-return rail, the overlap rail (envFileNames of the base file through rootRead, names only, invariant B's printable-ASCII grammar), ensureDropInDir (trusted directory), readDropIn through rootRead (marker-owned or refused), then the declaration digest re-checked before the pending marker, the env write and the drop-in write (declGuard); commitHost of <envDir>/<host>.env, writeDropIn; reads Host and Unit of the row registry:Host@1119,registry:Host@1608,registry:Host@188,registry:Host@1897,registry:Host@2075,registry:Host@2251,registry:Host@2404,registry:Host@2540,registry:Host@2921,registry:Host@3085,registry:Host@3230,registry:Host@3277,registry:Host@3435,registry:Host@3585,registry:Host@3668,registry:Host@3749,registry:Host@512,registry:Unit@435,whole:Route@197,whole:Route@201,whole:Route@416,whole:Route@562 4f05dc82324b0efc15edc75f6d740d3579d808df7e93aa2b44ce2ce6ff4016b8 |
| -internal/appconfig/unitsync.go stampedPlan.declaredHostRefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: invariant A at the dispatch (round 4 P1-1): for a host the declaration names, the row must be a deliverable stamp bound by DeclaredBinding or the host is refused with the reason and its env file left untouched; reads Host, Backing, Unit and whole Route of the row; nothing else is read registry:Backing@478,registry:Host@136,registry:Host@441,registry:Host@761,registry:Unit@490,whole:Route@200,whole:Route@540 e1548b63ba6184209dd8d86126e2e7c93705c49e3bca82d331be2f8b8f785b36 |
| +internal/appconfig/unitsync.go applyStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: spec §3.2 steps 3-7: prints the idle declared units, one reload if a marker exists, per marked unit readDropIn through rootRead, post-reload probe, the two-path EnvironmentFiles check, DeclaredBinding again against the pass's snapshot, then restart and clear the marker; drift reported for unmarked units; the per-mutation re-reads are gone (the file is serialised with the pass by the flock); reads whole Route of the prepared work whole:Route@2309 f7e3f974fd798f079040b8a7e15780847a8058608d3c8ef2cd52a335b5e269a6 |
| +internal/appconfig/unitsync.go planStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the stamped rail before anything is touched: shape, name, hostname, one-route-per-unit, then the declaration (invariant A: loadDeclarations, one read of /etc/carlos/named-units.json through rootRead under the pass's flock, one JSON document with nothing after it, DeclaredBinding must name this unit, host, account and app; a registry row alone never authorises; an absent file declares nothing, an empty or invalid file refuses all), the hosts surviving drop-ins still name (referencedEnvHosts, each drop-in read through rootRead), then ops.Probe (one systemctl show), then readDropIn through rootRead for the unmanaged-file guard; declared units no route names are listed as idle; refuses on any failure; reads Host and Unit of rows already listed registry:Host@477,registry:Host@546,registry:Host@633,registry:Host@681,registry:Host@705,registry:Host@731,registry:Host@800,registry:Unit@600,registry:Unit@765,registry:Unit@790,whole:Route@1307,whole:Route@413,whole:Route@447,whole:Route@471,whole:Route@488,whole:Route@518 3b9d3f0a2a50b26fafd2cfdd87ebc9aea01c92ddadd78c1710a1da28501a233e |
| +internal/appconfig/unitsync.go prepareStamped legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: DeclaredBinding again against the pass's snapshot before any write (invariant A), then prepareHost, the carriage-return rail, the overlap rail (envFileNames of the base file through rootRead, names only, invariant B's printable-ASCII grammar), ensureDropInDir (trusted directory), readDropIn through rootRead (marker-owned or refused), writePending before any mutation, commitHost of <envDir>/<host>.env, writeDropIn; the per-mutation re-reads are gone; reads Host and Unit of the row registry:Host@1119,registry:Host@1608,registry:Host@188,registry:Host@1897,registry:Host@2075,registry:Host@2251,registry:Host@2404,registry:Host@2540,registry:Host@2867,registry:Host@2931,registry:Host@3110,registry:Host@3193,registry:Host@3274,registry:Host@512,registry:Unit@435,whole:Route@197,whole:Route@201,whole:Route@416,whole:Route@562 25e646b5995689149a3df4804918a4b14eaa4e1ef372628f31e07162852a0838 |
| +internal/appconfig/unitsync.go stampedPlan.declaredHostRefusal legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: invariant A at the dispatch: for a host the snapshot's declaration names, the row must be a deliverable stamp bound by DeclaredBinding; for a host whose env file a surviving carlos drop-in still loads (census R3-E1), no row but that drop-in's own current declaration may rewrite it until the drop-in is reaped; either refusal names the reason and leaves the env file untouched; reads Host, Backing, Unit and whole Route of the row; nothing else is read registry:Backing@900,registry:Host@1183,registry:Host@136,registry:Host@180,registry:Host@547,registry:Host@863,registry:Unit@912,whole:Route@622,whole:Route@962 cad00339d1e553e776fe3d66d23db330ec0e9b7c633776a42b6d530c9cb1d7cb |
| +internal/host/unitops.go InstallNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: the one carlos writer of /etc/carlos/named-units.json: validates the bytes with appconfig.ValidateDeclarations (the pass's decoder), takes the config-sync flock (<envDir>/.sync.lock, the lock SyncUnits holds for a whole pass), writes <dst>.tmp beside the file with O_CREATE|O_EXCL 0644, fsync, rename over dst, fsync of the directory (file:OpenFile of the temp and file:Open of the directory); root-owned because the verb runs as root file:Open@801,file:OpenFile@307 5c3d7dbe731703897f30a8e48f884df1324a1fa751605e82b32272b6074c7246 |
| +internal/host/unitops.go RunSystemNamedUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: carlos system named-units install <file>: refuses unless euid 0, reads <file> (file:ReadFile of an operator-given path, as root, by root's own choice at the command line) and hands the bytes to InstallNamedUnits; prints the installed path file:ReadFile@260 6da9af129899b1b6a54d32bb93fff8fcffa2041592db6597ff2dde8a46a4a5aa |
| internal/host/unitops.go daemonReload legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: exec systemctl daemon-reload, once per pass when a marker exists file:Command@41 f8a106f3a32e5fcbe3fb9a9225b51caaf70e15537071b56c62fca5e5c1b9437a |
| internal/host/unitops.go lockConfigSync legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: OpenFile <envDir>/.sync.lock (0644, create) and an exclusive flock for the whole config pass file:OpenFile@73 f928ef83094cc4ef541439864c6bb2602f700024755de2efd43821f18de25184 |
| internal/host/unitops.go probeUnits legacy accepted-legacy accepted-legacy;rev3=census-ruling-named-unit-delivery-114;basis=new: exec systemctl show -p Id,LoadState,EnvironmentFiles <units>, unit names already passed DeliverableUnitName; parsed positionally, a count mismatch is an error file:Command@170 b13aded711feeec8bfab26d90f24aebf1628bd057229c2dce6de78fe3750b095 |
| @@ -69,14 +75,14 @@ internal/rootstate/file_linux.go OpenTrustedFileFrom legacy accepted-legacy acce |
| 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 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 for the pass; a host the declaration names is admitted only as its declaration's own deliverable stamp (declaredHostRefusal, round 4 P1-1): 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; both eligibility gates admit Stamped routes; the instance overlay is fetched for a stamped route as for a unit-backed one; the stampedForDelivery branch prints plan refusals or prepares the route; reapDropIns and applyStamped after the loop; the env reaper keeps declared hosts and runs only with the declarations read and unchanged; reads Host, Backing and Unit of rows already listed data-literal@13410,registry:App@5400,registry:App@7775,registry:Backing@1031,registry:Backing@13359,registry:Backing@9702,registry:Environment@5408,registry:Environment@7783,registry:Environment@8040,registry:Host@10728,registry:Host@11276,registry:Host@1128,registry:Host@1222,registry:Host@12400,registry:Host@12470,registry:Host@12533,registry:Host@1257,registry:Host@12591,registry:Host@12682,registry:Host@13527,registry:Host@13594,registry:Host@2335,registry:Host@5216,registry:Host@7501,registry:Host@7567,registry:Host@8183,registry:Host@9822,registry:Unit@12409,whole:Route@1000,whole:Route@1024,whole:Route@11818,whole:Route@12740,whole:Route@13604,whole:Route@14131,whole:Route@14700,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@7398,whole:Route@7423,whole:Route@7438,whole:Route@7648,whole:Route@7770,whole:Route@9748 4cafcf12ddc25f2b8e3f146dda40c6bd23a195aae5c16d54351e3b86d82f25f2 |
| +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 |
| internal/appconfig/syncexec.go execRouteBase legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=excludes a route naming a unit (rt.Unit != "") from every exec shape (#114 §3.1) registry:App@98,registry:Backing@179,registry:Kind@54,registry:Platform@115,registry:Status@133,registry:Status@152,registry:Unit@219 7e7f23f29bd585146a96c396a4336e488d149cff3b7474c01ce4a900c8872721 |
| cli.go runRouteHibernate legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 2: carlos route hibernate refuses a row with a runtime first (its hibernation is fixed at mint), before any dry run or other rail; reads Host and Runtime of the row already read; a refusal only;rev3=census-ruling-named-unit-delivery-114;basis=hibernateRail refuses hibernation on a stamped row before the daemon check (#114 §3.1, codex R3-5); reads Host and Unit of the row already read; a refusal only, no read added registry:App@2812,registry:Hibernate@3557,registry:Hibernate@3844,registry:Host@1052,registry:Host@2748,registry:Host@2908,registry:Host@3227,registry:Host@3320,registry:Host@3646,registry:Host@3712,registry:Host@3835,registry:Host@525,registry:Provisioned@1086,registry:Replication@4467,registry:Replication@4638,registry:Runtime@345,whole:Route@2807,whole:Route@2859,whole:Route@3061,whole:Route@3066,whole:Route@3407,whole:Route@564 48565b382ceb8a48814fdaac42260a8a05c599ced7ecb356e9d2cf7d067168f2 |
| internal/appconfig/sync.go UnitConfigApps legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-named-unit-delivery-114;basis=gates on unitDelivered (a carlos-app@ backing or a unit stamp) instead of the inline Backing test; the Backing read moved into unitDelivered; no read added registry:App@224,whole:Route@130,whole:Route@159,whole:Route@219 2413026f4d60335f3fc14f729634d2ee98e97280bae4213cb0ab98cf4f6c9672 |
| 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 . 642c0c29b1d64d697a6a670ecd447a6585d6584a32cacaa1c69edd0f2596edb7 |
| -@coverage internal/appconfig 261f00671f269d33ded16f37e761440e6351360200934d2245e64e72bb9a468d |
| -@coverage internal/host e04ac8fec369c8cd6b271bbd0fd2b57f54e3865e6595c42853beeb2134a6cbe9 |
| +@coverage . 0316e7465190f27fe476d6a82d6a66aa7db904422b6bad025f3f82e08a932481 |
| +@coverage internal/appconfig 208689da4f6f653a576afa47f4e08f31e29724120739378d2568586bfd239f11 |
| +@coverage internal/host 6e8bb82d44cb8dc49d59382f9240d87f3b22507ba65ba8fb765c8245b422945d |
| @coverage internal/rootstate 85c218bdbc208067e69083deacb87b2330b8971418f24c1f1bd3f0399915e3c4 |