| index 598738b74..c5e4d5534 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv |
| @@ -11,27 +11,27 @@ |
| @legacy 2106e0d304d6aa9b8426ae43bd49dd44a18c101e7bed4a8d496dc3cdeb94ef3a internal/hostfiles/restore.go Restore legacy accepted-legacy accepted-legacy;rev3=merge-ruling-2;basis=Restore delegates to shared descriptor-root implementation; generic payload restoration remains legacy.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: passes nil for restore's new baseline argument; the one site unchanged, nothing else changed;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3 fix round 1: passes nil for restore's new shadowed argument, so it fetches, writes and removes exactly what it did; the same reads. restore gains that argument (a caller's Shadowed func over the manifest it has already read and validated): a live entry it names, after the overlap rule, is skipped before any fetch and reported in RestoreStats.Shadowed. It only leaves things out; nothing new is opened, read or followed. RestoreRootBaselineShadowed is new, RestoreRootBaseline is it with nil. file:OpenRoot@219 6a3b0e25de6d9ff6e644810d70a7056840e6cca7fa72db98542f990d4598fd30 |
| @legacy 64a0a282f5729c49a65c572b8af2c81c58ae0edff176220c0ddf892be8b27204 internal/activator/escrow.go ExecBackend.EscrowSweep legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, the agent as carlos (carlos-edge.service), no root caller, from escrowLoop: classifies each row against the rows handed in (Classify), keeps eligible rows known not HA from memory (haKnown, no read), and in host order from a round-robin cursor stats each escrowed file (stampAt) and publishes the changed ones, 8 at a time, at most 256 a sweep (sweepPublish); a box without a files store or key does nothing; opens nothing outside the rows' own data directories; writes only the hibernate bucket's files/0 prefix and the ledger Fix round 1: a host whose instance lease this box does not hold (holdsLease) is skipped, and one with a conflict marker counts as failing and is not published; the report is tallied through one lock (P1-4). registry:Host@1079,registry:Host@1098,registry:Host@1249,registry:Host@1782,registry:Host@2128,registry:Host@2385,registry:Host@2459,registry:Host@536,registry:Host@761,registry:Host@795,registry:Host@833,registry:Host@923,whole:Route@1001,whole:Route@1088,whole:Route@1107,whole:Route@1258,whole:Route@1576,whole:Route@1784,whole:Route@2014,whole:Route@2130,whole:Route@2387,whole:Route@2461,whole:Route@356,whole:Route@519,whole:Route@587,whole:Route@653,whole:Route@706,whole:Route@980,whole:Route@984 c3067eb671bdbba75100a0398840a1c293fb55b777e155703169d3ae2e71ccd2 |
| @legacy 90f2d51840159dd44037a8eb60115e037f27c635d74652028b368bda6fcd35b8 internal/activator/escrow.go ExecBackend.SecretsEscrowed legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: haHostNow or escrowEligible; reads only what the HA classification already reads whole:Route@123,whole:Route@198 c22d35df72f67d7222efd0b0f09d51c42275ad4a10d637598fdc8b822f6333bd |
| -@legacy c7e39531f926452a19521b0399f157fa65ea04f015d2c185cee19cb585f07bab internal/activator/escrow.go ExecBackend.bucketManifest legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 1: new: the host's files manifest in the hibernate bucket, the launch preparation's read when there is one (unless fresh), else one GET: hostfiles.Open with a sealing key (the publisher installed for the launch's publish), hostfiles.Load without; kept as the preparation's read; the agent as carlos (carlos-edge.service), no root caller file:Open@408,registry:Host@170,registry:Host@241,registry:Host@370,registry:Host@954,whole:Route@329 a993cc65cd23b5568160c431ee28184109ad4375e9099a31cde921dd0e3fa379 |
| +@legacy 970a6723774a046c49c0ccf43f56363f6bd1c422721b668a3598fa29a973bdba internal/activator/escrow.go ExecBackend.bucketManifest legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 1: new: the host's files manifest in the hibernate bucket, the launch preparation's read when there is one (unless fresh), else one GET: hostfiles.Open with a sealing key (the publisher installed for the launch's publish), hostfiles.Load without; kept as the preparation's read; the agent as carlos (carlos-edge.service), no root caller Fix round 4: a manifest it reads is kept as what this process knows the bucket holds (learnBucket, the one writer of escrowState.known) and as the preparation's read; a failed read wraps errEscrowUnreadable; the same reads. file:Open@407,registry:Host@170,registry:Host@241,registry:Host@272,whole:Route@360 1442be94eb93bb9c65a32a8f2f338573bf0797e048109386d7c227262cf2cdb9 |
| @legacy e09ff3985fbdf89d3d133238891b9b20a32ed82155e249c81218579816b4fd5a internal/activator/escrow.go ExecBackend.envDivergence legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 3: new: opens the manifest's sealed env (escrowEnvOf, ReadSealed: one GET) and names each variable the activator mints into the env (CARLOS_ADMIN_TOKEN, CARLOS_INSTANCE_KEY) whose escrowed value the local bytes do not carry; reads nothing local itself; only refuses (through its callers); the agent as carlos (carlos-edge.service), no root caller whole:Route@176 b57510f2dc862d4c5b2e0e594d77bae6bb84bdee12b77c742e152468bed406c0 |
| @legacy 97fc560e1b1b84ecc13660f4bc1d364e45dfffac3607637f02db89ad52eef2b1 internal/activator/escrow.go ExecBackend.escrowChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: compares each escrowed file's stamp (stampAt, beneath the row's data directory) with the last kept one; reads no bytes Fix round 1 (P1-4): the stamps are copied under the escrow mutex, entry by entry, before they are compared; the same opens, no read added. registry:Host@122,registry:Host@444 12b8759b8473bb17eca3ad8b9912ba23f522dca54f2fe1c309b619fd72a3a879 |
| @legacy 573f35211cf44372a958e8c843433a88bcaedbf5df7e0e007ba3ce427f3eb5cf internal/activator/escrow.go ExecBackend.escrowConflict legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 1: new: os.Lstat of <data>/.escrow/<host>.conflict, the agent's own directory; present, every launch, mint and publish of the host is refused with an alert naming the file for an operator to remove; only refuses; the agent as carlos (carlos-edge.service), no root caller Fix round 2: the alert text names the divergence generally (local secrets differ from the escrow); the same Lstat. file:Lstat@117 c3b7c49a46a5c2c9159ced89438b91dc935fd8fb7d05b71293b31082019917b8 |
| @legacy 6afc54fc8c764b2bc4cc78a200ef13ea4f3a5bf540abe1b0e4a81dd524ba53b2 internal/activator/escrow.go ExecBackend.escrowConflictFound legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 2: new: the refusal for a divergent trio item: tries to write the host's conflict marker (writeEscrowMarker: EnsureDirBeneath <data>/.escrow 0700, a 0600 temp, rename, fsync), logs if it cannot, and returns the alert; the refusal holds either way, since every later publish finds the same divergence; only refuses; the agent as carlos (carlos-edge.service), no root caller Fix round 3: the alert names the env file too, since a platform-minted env variable can diverge; the same marker write. registry:Host@144,registry:Host@186,registry:Host@355,registry:Host@815 4ba873a1921b08b719df7439460635663bd9197d7326e55411ac7648e55387b0 |
| -@legacy 75fc854a11bddecec1e2694b3c3dde3e6756e2a819d3b10f088a11d0c48d19d5 internal/activator/escrow.go ExecBackend.escrowDivergence legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix rounds 2-3: new: the write-once check over a publish's staged reads: an escrowed instance.key or report.token whose keyed digest differs (no request), and, when the env's digest differs, envDivergence; only refuses (through its caller); the agent as carlos (carlos-edge.service), no root caller whole:Route@520 4b3979ccd01db815060a64f784cf0f4f8a2799220d1ae538a8eb36213578c0a1 |
| +@legacy c821367ef21efd68fe9898672fb919e7a8bd4350c4b19f3e034f15997d18dd8e internal/activator/escrow.go ExecBackend.escrowDivergence legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix rounds 2-3: new: the write-once check over a publish's staged reads: an escrowed instance.key or report.token whose keyed digest differs (no request), and, when the env's digest differs, envDivergence; only refuses (through its caller); the agent as carlos (carlos-edge.service), no root caller Fix round 4: the trio is decided first, by digest, and a divergent trio file is the verdict before the sealed env is read; the same reads. whole:Route@718 4173cffbe82a9a9f1daefbbe282d4d9af6b2d8231496ddbc113187c50237f841 |
| @legacy 254a354a40269aaae37fee1c09f3fa5a46763943c83ba128748dc51e3f1a46fe internal/activator/escrow.go ExecBackend.escrowEligible legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: escrowEligibleAt on pathsFor's classification whole:Route@105,whole:Route@90 038966cd4221f6cbafe0eb80bdbf7ec69b54d36a34c0ea22a53746d2acac63fe |
| @legacy ea8e33b8cda7a3bf9671cfec5fbb8f90ad01be56378d7558af9520f6c25519c8 internal/activator/escrow.go ExecBackend.escrowEligibleAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: a pure predicate over the row and a classification: ActivatorManaged, not unit, sidecar, HA, replica, held, a valid host shape and app, flat or nested, on a box with a hibernate bucket; reads only row fields registry:App@295,registry:HA@163,registry:HoldOp@186,registry:Host@265,registry:Replica@172,registry:Status@221,registry:Unit@126,whole:Route@119 5df0c11ddde0ec351b062b87863396108d2fe48b7b4e390ca69daf377e0cac58 |
| -@legacy a7d3afeb8f7275c5636a65cace92ecf2e4a2d4f2fa5f3fa2278494f27ec2d2bb internal/activator/escrow.go ExecBackend.escrowEnvOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the sealed env item opened with hostfiles.ReadSealed under this box's key and the row's binding (sha256, v2 envelope, binding and MAC checked); found false when the manifest holds none; a failure wraps ErrEscrowNotReady registry:Host@389,whole:Route@230 dd6e1f3a3e8299303a3f9c2f89d2ec2f952dbdcb45264ac39484abc925b2e415 |
| +@legacy 673688307eb21478f1e87181bb426f5d89e1718b4b3a6dfd74f6ec28095c332b internal/activator/escrow.go ExecBackend.escrowEnvOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the sealed env item opened with hostfiles.ReadSealed under this box's key and the row's binding (sha256, v2 envelope, binding and MAC checked); found false when the manifest holds none; a failure wraps ErrEscrowNotReady Fix round 4: a fetch that fails or an envelope that does not open wraps errEscrowUnreadable (no longer ErrEscrowNotReady); the same reads. registry:Host@389,whole:Route@230 9404ba8cc9fd1946e4f0b3b8f610c4eaf66686898a1e4c48304e1d2da06e4e1d |
| @legacy a1acc9186a4b1f7cb650320e76c3d65ed536a9b4b5b3b5c8ec04779032d8631e internal/activator/escrow.go ExecBackend.escrowMintGuard legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: on a box that is not ready refuses every mint (ErrEscrowNotReady); otherwise, once and only when a producer would mint, bucketEscrowEnv, and refuses (ErrInstanceKeyDeferred) when the escrowed env holds the variable; a mint it allows is noted in memory; only refuses Fix round 0 (controller readiness ruling): with no files store it is nil, and the producer mints as before 3a; with a files store and no sealing key it reads the bucket manifest at the mint (keylessEscrowed, fresh) and refuses (ErrEscrowNotReady) when the bucket holds any sealed item or the cutover marker for the host, and otherwise lets the mint go ahead (logged once); only refuses. Fix round 1: with a key it refuses while the conflict marker exists or while this box does not hold the host's lease (ErrInstanceKeyDeferred); its bucket read is bucketManifest, the preparation's shared read unless fresh (the backfill); without a key its keyless read is the same, with no cache across launches (P1-3); only refuses. Fix round 2: no longer notes the mints it allows in memory; only refuses. registry:Host@683,registry:Host@756,whole:Route@1064,whole:Route@125,whole:Route@209,whole:Route@291,whole:Route@527,whole:Route@898 5ba26a63e4d4f3944484f2a2257c1b43336f1ec9ed02cf56510558ccb685a310 |
| @legacy 4936d243b2f0dfe0070b2ed97ea46ff79d868bedc54deefec132baadba1410ee internal/activator/escrow.go ExecBackend.escrowModeOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 0 (controller readiness ruling): new: escrowNoStore when FilesStore is nil, escrowNoKey when escrowReady fails, else escrowOn; reads nothing whole:Route@147 6bfaddec7936f24f6756c8c68547d6a7fa54dd0523db9024e2f71924a2e7ecee |
| @legacy 2483746d1c63202a3c641199ea442261483853bea1b112ec3f2afc4772011d26 internal/activator/escrow.go ExecBackend.escrowOff legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 0: new: one log line per host per process saying escrow is off and why; reads nothing registry:Host@309,registry:Host@87 6f3a552d5af240733241ea7befefa194706a70770e8bdc4f3c444ac48cf8f8c3 |
| @legacy 73fa77e711e182b4777ae6346795af7d5a36c4f1c231714ff2415806bffeafff internal/activator/escrow.go ExecBackend.escrowReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: FilesStore and EscrowKey set and sealerFor succeeds; reads nothing whole:Route@165 fb7390d8f2ce1653619c3b365a3f804e5e1a0bb6f77210972a83453ebda42316 |
| -@legacy e4a1412c2d6cdafc02b37db74f74bab2b9f17c5d61d4291b955cad79519b7ce2 internal/activator/escrow.go ExecBackend.escrowReread legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, after a superseded publish: hostfiles.Open of the host's files manifest, and, when this box noted a mint, the sealed env (escrowEnvOf) and the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory, to refuse publishing over an escrowed secret of another value; the agent as carlos (carlos-edge.service), no root caller; only refuses Fix round 1: the conflict check is mintedConflict (on this card), which also persists the conflict marker. Fix round 2: only re-reads and installs the publisher; the conflict check is the next publish's write-once check. Fix round 3: after the re-read, reads the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory and refuses (escrowConflictFound) when a minted variable the bucket now escrows differs (envDivergence), before the caller retries; only refuses. file:Open@284,registry:Host@122,registry:Host@332,registry:Host@553,registry:Host@844,whole:Route@1022,whole:Route@1124,whole:Route@193 38d3251f07d0b938c52eca3311b890af7e34b7fac62fac8a99904b20ee4f7f30 |
| -@legacy eaccb20d9481b5280d36080ab17bafec188f42218aee6f23cb9c3f4066114552 internal/activator/escrow.go ExecBackend.escrowedLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, the launch path for an eligible host: captureLaunchEnv once, publishEscrowAt over those bytes, SealedAcknowledged on the commit, and the env parsed from the captured bytes; on a supersession escrowReread and the launch preparation again (ensureAdminTokenFor, ensureInstanceKeyFor) once; a not-ready box launches only a host its ledger shows escrowed; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): before the capture, the box's mode: no files store, instanceEnvLayer exactly as before 3a (logged once); no sealing key, a host whose ledger shows it escrowed launches on instanceEnvLayer (logged), otherwise keylessEscrowed (the answer this launch's restore read, within haSecretsBudget, else one GET) refuses when the bucket holds an escrow and launches on instanceEnvLayer when it holds none; nothing is published in either. Fix round 1: ends the launch's preparation; refuses while the conflict marker exists, and with a key while this box does not hold the host's lease; an ALERT from the publish fails the launch; the keyless decision uses the preparation's read. Fix round 3: a publish that answers errEscrowNoLease (the lease lost before the commit) refuses the launch with an error saying so, never the later-launch fallback. registry:Host@1039,registry:Host@1100,registry:Host@1182,registry:Host@1337,registry:Host@1422,registry:Host@145,registry:Host@1590,registry:Host@1792,registry:Host@2054,registry:Host@2215,registry:Host@238,registry:Host@2671,registry:Host@2839,registry:Host@2960,registry:Host@3134,registry:Host@3350,registry:Host@635,registry:Host@764,registry:Host@809,registry:Host@912,whole:Route@1244,whole:Route@1470,whole:Route@1699,whole:Route@1957,whole:Route@205,whole:Route@2117,whole:Route@331,whole:Route@374,whole:Route@419,whole:Route@469,whole:Route@516,whole:Route@691,whole:Route@735,whole:Route@959 e89777bda97cc3c2b2aa6a2ae9c61d01833fc41805180dd06777911570d585de |
| +@legacy 3cdf2f267286555d7a790e8b36246e522f6dee0c833b4288a6bac4e0b4990712 internal/activator/escrow.go ExecBackend.escrowReread legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, after a superseded publish: hostfiles.Open of the host's files manifest, and, when this box noted a mint, the sealed env (escrowEnvOf) and the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory, to refuse publishing over an escrowed secret of another value; the agent as carlos (carlos-edge.service), no root caller; only refuses Fix round 1: the conflict check is mintedConflict (on this card), which also persists the conflict marker. Fix round 2: only re-reads and installs the publisher; the conflict check is the next publish's write-once check. Fix round 3: after the re-read, reads the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory and refuses (escrowConflictFound) when a minted variable the bucket now escrows differs (envDivergence), before the caller retries; only refuses. Fix round 4: the re-read manifest feeds what this process knows (learnBucket) once it parses; a failed open wraps errEscrowUnreadable; the same reads. file:Open@284,registry:Host@122,registry:Host@332,registry:Host@668,registry:Host@882,whole:Route@1060,whole:Route@1162,whole:Route@193 f70b1d13550a8edbb7898dfb2ed851635525b67e564f8b1dcc782cc3a6692081 |
| +@legacy ae753ddac8a3ccc3109288a243cbda434abbe148d09b7ec9854f376bf1d76e0f internal/activator/escrow.go ExecBackend.escrowedLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, the launch path for an eligible host: captureLaunchEnv once, publishEscrowAt over those bytes, SealedAcknowledged on the commit, and the env parsed from the captured bytes; on a supersession escrowReread and the launch preparation again (ensureAdminTokenFor, ensureInstanceKeyFor) once; a not-ready box launches only a host its ledger shows escrowed; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): before the capture, the box's mode: no files store, instanceEnvLayer exactly as before 3a (logged once); no sealing key, a host whose ledger shows it escrowed launches on instanceEnvLayer (logged), otherwise keylessEscrowed (the answer this launch's restore read, within haSecretsBudget, else one GET) refuses when the bucket holds an escrow and launches on instanceEnvLayer when it holds none; nothing is published in either. Fix round 1: ends the launch's preparation; refuses while the conflict marker exists, and with a key while this box does not hold the host's lease; an ALERT from the publish fails the launch; the keyless decision uses the preparation's read. Fix round 3: a publish that answers errEscrowNoLease (the lease lost before the commit) refuses the launch with an error saying so, never the later-launch fallback. Fix round 4: a publish that answers errEscrowUnreadable or ErrEscrowNotReady (the manifest or sealed env could not be read, or does not open here) refuses the launch, never the later-launch fallback; only refuses. registry:Host@1039,registry:Host@1100,registry:Host@1182,registry:Host@1337,registry:Host@1422,registry:Host@145,registry:Host@1590,registry:Host@1792,registry:Host@2054,registry:Host@2215,registry:Host@238,registry:Host@2671,registry:Host@3074,registry:Host@3242,registry:Host@3363,registry:Host@3537,registry:Host@3753,registry:Host@635,registry:Host@764,registry:Host@809,registry:Host@912,whole:Route@1244,whole:Route@1470,whole:Route@1699,whole:Route@1957,whole:Route@205,whole:Route@2117,whole:Route@331,whole:Route@374,whole:Route@419,whole:Route@469,whole:Route@516,whole:Route@691,whole:Route@735,whole:Route@959 1a0e785327a5266385e14f925bdcc4b010ecc0479d17a9ba9f10b887eeeed642 |
| @legacy aa6c1694a6bfba03769ad089b3715610848596875e636952cf981c59a1761de3 internal/activator/escrow.go ExecBackend.haKnown legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the HA classification from memory only (haWakes, haLegacyRoute, the row's mark, the lifetime index); reads nothing registry:HA@185,registry:Host@274,registry:Host@95,whole:Route@151 4ecae90469fb6eda421464ca4509db7ddf4e5180180377867d3804b95bfd0c23 |
| @legacy 69525c0419368661b947b49ab6f3af889f98804e603f9e5fdf1fd71aa534e030 internal/activator/escrow.go ExecBackend.keylessEscrowed legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix rounds 0-1: new, on a box with a files store and no sealing key: whether the bucket holds an escrow for the host (any sealed item or the cutover marker), from bucketManifest: the read of the launch preparation in progress, or one hostfiles.Load (one GET); nothing is cached across launches (fix round 1, P1-3); a failed read is an error and the caller refuses; the agent as carlos (carlos-edge.service), no root caller whole:Route@146 5a14a5881e81f9b401a1f8321659e75cc6165a5477db6cacc89b6c7f9e5bee08 |
| -@legacy 03adcc3ddc576e39f355b774273543874e745e96269145e98fac6d8772ba0220 internal/activator/escrow.go ExecBackend.openEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the host's publisher, from its ledger (readEscrowLedger: readCappedFile, O_NOFOLLOW, 32 MiB, under <data>/.escrow, the agent's own directory) with no request, else hostfiles.Open (one GET); the agent as carlos (carlos-edge.service), no root caller Fix round 1: marks the host checked when it reads the bucket; the same reads. Fix round 2: the ledger is read through ledgerFor (none while this process marks it untrusted); the same reads. Fix round 3: a bucket read is kept as what this process knows the bucket holds (noteKnown), replacing the checked flag; the same reads. file:Open@737,registry:Host@528,registry:Host@584,whole:Route@415 a407fe03838dc525b8e587bb8137b90b131c1e4dd8e9382f5325260293f50220 |
| +@legacy 34756b70c68c328711aa4a685703ff133d45795b4e295681ac2d4f6ed3a241d7 internal/activator/escrow.go ExecBackend.openEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the host's publisher, from its ledger (readEscrowLedger: readCappedFile, O_NOFOLLOW, 32 MiB, under <data>/.escrow, the agent's own directory) with no request, else hostfiles.Open (one GET); the agent as carlos (carlos-edge.service), no root caller Fix round 1: marks the host checked when it reads the bucket; the same reads. Fix round 2: the ledger is read through ledgerFor (none while this process marks it untrusted); the same reads. Fix round 3: a bucket read is kept as what this process knows the bucket holds (noteKnown), replacing the checked flag; the same reads. Fix round 4: only an open from the bucket feeds what this process knows (learnBucket); an open from the ledger feeds nothing; a failed open or an unparseable manifest wraps errEscrowUnreadable; the same reads. file:Open@737,registry:Host@528,registry:Host@584,whole:Route@415 5669dd51f456b1ce38c1c7848b30ab0202e87aef8fa63f6d5517c2c734e51f83 |
| @legacy c7f95f454a974537377434c9993beebc3b0761e814ae369a8e1e29a5c3fc5474 internal/activator/escrow.go ExecBackend.publishEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: publishEscrowAt on pathsFor whole:Route@149,whole:Route@164 e61757f12a116ef8bf819dcad7136f810c51dfa9f7104ceb7f810efece48cc29 |
| @legacy f6e622ed3b9e219a616ce6bf2f951b3e50c7897bd6e8a7f59ddb335fcbf8e3db internal/activator/escrow.go ExecBackend.publishEscrowAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: escrowReady and the layout checked, then publishEscrowLocked under the host's lock Fix round 1: refuses while the conflict marker exists or while this box does not hold the host's lease (P1-2), before anything is read. registry:Host@223,registry:Host@269,registry:Host@340,registry:Host@376,registry:Host@435,registry:Host@556,registry:Host@653,whole:Route@157,whole:Route@733 5e2b655605216fcaa50ddfd0511ca4ce913a8716582932a13debf22c4876f117 |
| -@legacy 0bae26d2175d5d2555ea748c9dc069b8ecdd277c2571ff64bf33a8a7295da0d5 internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). registry:Host@2078,registry:Host@2342,registry:Host@3914,registry:Host@3944,registry:Host@4480,registry:Host@574,whole:Route@2269,whole:Route@2871,whole:Route@2990 d7e1bab9bb4a873a19ff5d5a235042269f675b9e7b12d49aa5c3a82e2936b200 |
| +@legacy 7ab242be81f362e47876b9fa723f57cb92e5dcf83aa77615e4e1eb7b3ead6bd0 internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). Fix round 4: only a commit that wrote (the baseline's ETag moved) feeds what this process knows (learnBucket) and writes the ledger; a no-op commit on a ledger-opened publisher feeds nothing; the same reads and writes. registry:Host@2078,registry:Host@2342,registry:Host@3957,registry:Host@3987,registry:Host@5029,registry:Host@574,whole:Route@2269,whole:Route@2914,whole:Route@3033 b42b036e80f7fcb398924d5def55bb0d1ff9af8f5e478c305080f002c7ead83d |
| @legacy b053870b57f516eddc82775c8a662b701c49173c2171cad2ef2d27cb7cde688a internal/activator/escrow.go ExecBackend.restoreEscrowIfMissing legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: checks each escrowed file with instancefs.OpenBeneathOrAbsent beneath the row's data directory; when one is absent, hostfiles.Open of the host's manifest, ReadSealed of each missing item, and writeIfAbsent (instancefs.WriteAtomic of a temp, then RenameBetweenNoReplace, so a present file is never replaced; EnsureDirBeneath for the files directory, 0700); on a box that is not ready it refuses unless the ledger shows the host escrowed and the env file is here; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): with no files store it does nothing (logged once); with no sealing key it restores nothing: a ledger here and an env file here go on, otherwise keylessEscrowed refuses when the bucket holds an escrow and goes on as before 3a when it holds none. Fix round 1: the conflict marker first, then the mode (P2-5): no files store, nothing; no key, the preparation's keyless read before any file check. With a key, each trio file is checked with OpenBeneathOrAbsent (a link or FIFO is not missing); the bucket is read (bucketManifest, the preparation's one GET) only for a missing env file, or a missing trio file the ledger says was escrowed, or with no ledger once per agent start (P2-6); the same writes. Fix round 2: the ledger is read through ledgerFor, and while it is untrusted (its write and the stale ledger's removal both failed) a missing trio file always reads the bucket; the same reads and writes. Fix round 3: the ledger no longer decides a restore: a missing trio file reads the bucket unless this process itself saw the bucket's manifest for the host (its read or its commit, escrowState.known) without the item; the same reads and writes otherwise. registry:Host@1027,registry:Host@1145,registry:Host@138,registry:Host@1853,registry:Host@2721,registry:Host@571,registry:Host@652,registry:Host@698,registry:Host@801,whole:Route@1654,whole:Route@1750,whole:Route@200,whole:Route@241,whole:Route@314,whole:Route@360,whole:Route@477 335cb066c95f026fba5e99df8f86252ee6a50b48f799d7b1042460c2ec188642 |
| @legacy 7d7ae676fe3d33d027489b397a804eaa184295667ad039688aed3757f662ab9d internal/activator/escrow.go ExecBackend.sweepPublish legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: publishEscrowAt, and on a supersession escrowReread and one more publish; a second one is the alert registry:Host@404,whole:Route@142,whole:Route@232,whole:Route@312 71bfee868a2ca8e3371cfc3c628b6ab5d8730ca48fcd099e7932049fe1e12a69 |
| @legacy c89cfff20022faa5af3e07251a620b1b63e0b42f350483a6efec4162efdd1cca internal/activator/escrow.go Service.EscrowSweep legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the backend's EscrowSweep, nothing for a backend without one whole:Route@184 8ed0ea62a9807b7c43b3576d01f096bfe366c21bcc3be040831a3f1b80d1b123 |
| @@ -73,27 +73,27 @@ internal/host/agent.go runAgent authority B,C,D,F rev3=census-ruling-self-serve- |
| internal/hostfiles/restore.go Restore legacy accepted-legacy accepted-legacy;rev3=merge-ruling-2;basis=Restore delegates to shared descriptor-root implementation; generic payload restoration remains legacy.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: passes nil for restore's new baseline argument; the one site unchanged, nothing else changed;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 3 fix round 1: passes nil for restore's new shadowed argument, so it fetches, writes and removes exactly what it did; the same reads. restore gains that argument (a caller's Shadowed func over the manifest it has already read and validated): a live entry it names, after the overlap rule, is skipped before any fetch and reported in RestoreStats.Shadowed. It only leaves things out; nothing new is opened, read or followed. RestoreRootBaselineShadowed is new, RestoreRootBaseline is it with nil. file:OpenRoot@219 6a3b0e25de6d9ff6e644810d70a7056840e6cca7fa72db98542f990d4598fd30 |
| internal/activator/escrow.go ExecBackend.EscrowSweep legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, the agent as carlos (carlos-edge.service), no root caller, from escrowLoop: classifies each row against the rows handed in (Classify), keeps eligible rows known not HA from memory (haKnown, no read), and in host order from a round-robin cursor stats each escrowed file (stampAt) and publishes the changed ones, 8 at a time, at most 256 a sweep (sweepPublish); a box without a files store or key does nothing; opens nothing outside the rows' own data directories; writes only the hibernate bucket's files/0 prefix and the ledger Fix round 1: a host whose instance lease this box does not hold (holdsLease) is skipped, and one with a conflict marker counts as failing and is not published; the report is tallied through one lock (P1-4). registry:Host@1079,registry:Host@1098,registry:Host@1249,registry:Host@1782,registry:Host@2128,registry:Host@2385,registry:Host@2459,registry:Host@536,registry:Host@761,registry:Host@795,registry:Host@833,registry:Host@923,whole:Route@1001,whole:Route@1088,whole:Route@1107,whole:Route@1258,whole:Route@1576,whole:Route@1784,whole:Route@2014,whole:Route@2130,whole:Route@2387,whole:Route@2461,whole:Route@356,whole:Route@519,whole:Route@587,whole:Route@653,whole:Route@706,whole:Route@980,whole:Route@984 c3067eb671bdbba75100a0398840a1c293fb55b777e155703169d3ae2e71ccd2 |
| internal/activator/escrow.go ExecBackend.SecretsEscrowed legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: haHostNow or escrowEligible; reads only what the HA classification already reads whole:Route@123,whole:Route@198 c22d35df72f67d7222efd0b0f09d51c42275ad4a10d637598fdc8b822f6333bd |
| -internal/activator/escrow.go ExecBackend.bucketManifest legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 1: new: the host's files manifest in the hibernate bucket, the launch preparation's read when there is one (unless fresh), else one GET: hostfiles.Open with a sealing key (the publisher installed for the launch's publish), hostfiles.Load without; kept as the preparation's read; the agent as carlos (carlos-edge.service), no root caller file:Open@408,registry:Host@170,registry:Host@241,registry:Host@370,registry:Host@954,whole:Route@329 a993cc65cd23b5568160c431ee28184109ad4375e9099a31cde921dd0e3fa379 |
| +internal/activator/escrow.go ExecBackend.bucketManifest legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 1: new: the host's files manifest in the hibernate bucket, the launch preparation's read when there is one (unless fresh), else one GET: hostfiles.Open with a sealing key (the publisher installed for the launch's publish), hostfiles.Load without; kept as the preparation's read; the agent as carlos (carlos-edge.service), no root caller Fix round 4: a manifest it reads is kept as what this process knows the bucket holds (learnBucket, the one writer of escrowState.known) and as the preparation's read; a failed read wraps errEscrowUnreadable; the same reads. file:Open@407,registry:Host@170,registry:Host@241,registry:Host@272,whole:Route@360 1442be94eb93bb9c65a32a8f2f338573bf0797e048109386d7c227262cf2cdb9 |
| internal/activator/escrow.go ExecBackend.envDivergence legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 3: new: opens the manifest's sealed env (escrowEnvOf, ReadSealed: one GET) and names each variable the activator mints into the env (CARLOS_ADMIN_TOKEN, CARLOS_INSTANCE_KEY) whose escrowed value the local bytes do not carry; reads nothing local itself; only refuses (through its callers); the agent as carlos (carlos-edge.service), no root caller whole:Route@176 b57510f2dc862d4c5b2e0e594d77bae6bb84bdee12b77c742e152468bed406c0 |
| internal/activator/escrow.go ExecBackend.escrowChanged legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: compares each escrowed file's stamp (stampAt, beneath the row's data directory) with the last kept one; reads no bytes Fix round 1 (P1-4): the stamps are copied under the escrow mutex, entry by entry, before they are compared; the same opens, no read added. registry:Host@122,registry:Host@444 12b8759b8473bb17eca3ad8b9912ba23f522dca54f2fe1c309b619fd72a3a879 |
| internal/activator/escrow.go ExecBackend.escrowConflict legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 1: new: os.Lstat of <data>/.escrow/<host>.conflict, the agent's own directory; present, every launch, mint and publish of the host is refused with an alert naming the file for an operator to remove; only refuses; the agent as carlos (carlos-edge.service), no root caller Fix round 2: the alert text names the divergence generally (local secrets differ from the escrow); the same Lstat. file:Lstat@117 c3b7c49a46a5c2c9159ced89438b91dc935fd8fb7d05b71293b31082019917b8 |
| internal/activator/escrow.go ExecBackend.escrowConflictFound legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 2: new: the refusal for a divergent trio item: tries to write the host's conflict marker (writeEscrowMarker: EnsureDirBeneath <data>/.escrow 0700, a 0600 temp, rename, fsync), logs if it cannot, and returns the alert; the refusal holds either way, since every later publish finds the same divergence; only refuses; the agent as carlos (carlos-edge.service), no root caller Fix round 3: the alert names the env file too, since a platform-minted env variable can diverge; the same marker write. registry:Host@144,registry:Host@186,registry:Host@355,registry:Host@815 4ba873a1921b08b719df7439460635663bd9197d7326e55411ac7648e55387b0 |
| -internal/activator/escrow.go ExecBackend.escrowDivergence legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix rounds 2-3: new: the write-once check over a publish's staged reads: an escrowed instance.key or report.token whose keyed digest differs (no request), and, when the env's digest differs, envDivergence; only refuses (through its caller); the agent as carlos (carlos-edge.service), no root caller whole:Route@520 4b3979ccd01db815060a64f784cf0f4f8a2799220d1ae538a8eb36213578c0a1 |
| +internal/activator/escrow.go ExecBackend.escrowDivergence legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix rounds 2-3: new: the write-once check over a publish's staged reads: an escrowed instance.key or report.token whose keyed digest differs (no request), and, when the env's digest differs, envDivergence; only refuses (through its caller); the agent as carlos (carlos-edge.service), no root caller Fix round 4: the trio is decided first, by digest, and a divergent trio file is the verdict before the sealed env is read; the same reads. whole:Route@718 4173cffbe82a9a9f1daefbbe282d4d9af6b2d8231496ddbc113187c50237f841 |
| internal/activator/escrow.go ExecBackend.escrowEligible legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: escrowEligibleAt on pathsFor's classification whole:Route@105,whole:Route@90 038966cd4221f6cbafe0eb80bdbf7ec69b54d36a34c0ea22a53746d2acac63fe |
| internal/activator/escrow.go ExecBackend.escrowEligibleAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: a pure predicate over the row and a classification: ActivatorManaged, not unit, sidecar, HA, replica, held, a valid host shape and app, flat or nested, on a box with a hibernate bucket; reads only row fields registry:App@295,registry:HA@163,registry:HoldOp@186,registry:Host@265,registry:Replica@172,registry:Status@221,registry:Unit@126,whole:Route@119 5df0c11ddde0ec351b062b87863396108d2fe48b7b4e390ca69daf377e0cac58 |
| -internal/activator/escrow.go ExecBackend.escrowEnvOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the sealed env item opened with hostfiles.ReadSealed under this box's key and the row's binding (sha256, v2 envelope, binding and MAC checked); found false when the manifest holds none; a failure wraps ErrEscrowNotReady registry:Host@389,whole:Route@230 dd6e1f3a3e8299303a3f9c2f89d2ec2f952dbdcb45264ac39484abc925b2e415 |
| +internal/activator/escrow.go ExecBackend.escrowEnvOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the sealed env item opened with hostfiles.ReadSealed under this box's key and the row's binding (sha256, v2 envelope, binding and MAC checked); found false when the manifest holds none; a failure wraps ErrEscrowNotReady Fix round 4: a fetch that fails or an envelope that does not open wraps errEscrowUnreadable (no longer ErrEscrowNotReady); the same reads. registry:Host@389,whole:Route@230 9404ba8cc9fd1946e4f0b3b8f610c4eaf66686898a1e4c48304e1d2da06e4e1d |
| internal/activator/escrow.go ExecBackend.escrowMintGuard legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: on a box that is not ready refuses every mint (ErrEscrowNotReady); otherwise, once and only when a producer would mint, bucketEscrowEnv, and refuses (ErrInstanceKeyDeferred) when the escrowed env holds the variable; a mint it allows is noted in memory; only refuses Fix round 0 (controller readiness ruling): with no files store it is nil, and the producer mints as before 3a; with a files store and no sealing key it reads the bucket manifest at the mint (keylessEscrowed, fresh) and refuses (ErrEscrowNotReady) when the bucket holds any sealed item or the cutover marker for the host, and otherwise lets the mint go ahead (logged once); only refuses. Fix round 1: with a key it refuses while the conflict marker exists or while this box does not hold the host's lease (ErrInstanceKeyDeferred); its bucket read is bucketManifest, the preparation's shared read unless fresh (the backfill); without a key its keyless read is the same, with no cache across launches (P1-3); only refuses. Fix round 2: no longer notes the mints it allows in memory; only refuses. registry:Host@683,registry:Host@756,whole:Route@1064,whole:Route@125,whole:Route@209,whole:Route@291,whole:Route@527,whole:Route@898 5ba26a63e4d4f3944484f2a2257c1b43336f1ec9ed02cf56510558ccb685a310 |
| internal/activator/escrow.go ExecBackend.escrowModeOf legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 0 (controller readiness ruling): new: escrowNoStore when FilesStore is nil, escrowNoKey when escrowReady fails, else escrowOn; reads nothing whole:Route@147 6bfaddec7936f24f6756c8c68547d6a7fa54dd0523db9024e2f71924a2e7ecee |
| internal/activator/escrow.go ExecBackend.escrowOff legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix round 0: new: one log line per host per process saying escrow is off and why; reads nothing registry:Host@309,registry:Host@87 6f3a552d5af240733241ea7befefa194706a70770e8bdc4f3c444ac48cf8f8c3 |
| internal/activator/escrow.go ExecBackend.escrowReady legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: FilesStore and EscrowKey set and sealerFor succeeds; reads nothing whole:Route@165 fb7390d8f2ce1653619c3b365a3f804e5e1a0bb6f77210972a83453ebda42316 |
| -internal/activator/escrow.go ExecBackend.escrowReread legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, after a superseded publish: hostfiles.Open of the host's files manifest, and, when this box noted a mint, the sealed env (escrowEnvOf) and the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory, to refuse publishing over an escrowed secret of another value; the agent as carlos (carlos-edge.service), no root caller; only refuses Fix round 1: the conflict check is mintedConflict (on this card), which also persists the conflict marker. Fix round 2: only re-reads and installs the publisher; the conflict check is the next publish's write-once check. Fix round 3: after the re-read, reads the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory and refuses (escrowConflictFound) when a minted variable the bucket now escrows differs (envDivergence), before the caller retries; only refuses. file:Open@284,registry:Host@122,registry:Host@332,registry:Host@553,registry:Host@844,whole:Route@1022,whole:Route@1124,whole:Route@193 38d3251f07d0b938c52eca3311b890af7e34b7fac62fac8a99904b20ee4f7f30 |
| -internal/activator/escrow.go ExecBackend.escrowedLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, the launch path for an eligible host: captureLaunchEnv once, publishEscrowAt over those bytes, SealedAcknowledged on the commit, and the env parsed from the captured bytes; on a supersession escrowReread and the launch preparation again (ensureAdminTokenFor, ensureInstanceKeyFor) once; a not-ready box launches only a host its ledger shows escrowed; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): before the capture, the box's mode: no files store, instanceEnvLayer exactly as before 3a (logged once); no sealing key, a host whose ledger shows it escrowed launches on instanceEnvLayer (logged), otherwise keylessEscrowed (the answer this launch's restore read, within haSecretsBudget, else one GET) refuses when the bucket holds an escrow and launches on instanceEnvLayer when it holds none; nothing is published in either. Fix round 1: ends the launch's preparation; refuses while the conflict marker exists, and with a key while this box does not hold the host's lease; an ALERT from the publish fails the launch; the keyless decision uses the preparation's read. Fix round 3: a publish that answers errEscrowNoLease (the lease lost before the commit) refuses the launch with an error saying so, never the later-launch fallback. registry:Host@1039,registry:Host@1100,registry:Host@1182,registry:Host@1337,registry:Host@1422,registry:Host@145,registry:Host@1590,registry:Host@1792,registry:Host@2054,registry:Host@2215,registry:Host@238,registry:Host@2671,registry:Host@2839,registry:Host@2960,registry:Host@3134,registry:Host@3350,registry:Host@635,registry:Host@764,registry:Host@809,registry:Host@912,whole:Route@1244,whole:Route@1470,whole:Route@1699,whole:Route@1957,whole:Route@205,whole:Route@2117,whole:Route@331,whole:Route@374,whole:Route@419,whole:Route@469,whole:Route@516,whole:Route@691,whole:Route@735,whole:Route@959 e89777bda97cc3c2b2aa6a2ae9c61d01833fc41805180dd06777911570d585de |
| +internal/activator/escrow.go ExecBackend.escrowReread legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, after a superseded publish: hostfiles.Open of the host's files manifest, and, when this box noted a mint, the sealed env (escrowEnvOf) and the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory, to refuse publishing over an escrowed secret of another value; the agent as carlos (carlos-edge.service), no root caller; only refuses Fix round 1: the conflict check is mintedConflict (on this card), which also persists the conflict marker. Fix round 2: only re-reads and installs the publisher; the conflict check is the next publish's write-once check. Fix round 3: after the re-read, reads the local env file with instancefs.ReadBeneathLimitOrAbsent (1 MiB, no link followed) beneath the row's data directory and refuses (escrowConflictFound) when a minted variable the bucket now escrows differs (envDivergence), before the caller retries; only refuses. Fix round 4: the re-read manifest feeds what this process knows (learnBucket) once it parses; a failed open wraps errEscrowUnreadable; the same reads. file:Open@284,registry:Host@122,registry:Host@332,registry:Host@668,registry:Host@882,whole:Route@1060,whole:Route@1162,whole:Route@193 f70b1d13550a8edbb7898dfb2ed851635525b67e564f8b1dcc782cc3a6692081 |
| +internal/activator/escrow.go ExecBackend.escrowedLaunchEnv legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new, the launch path for an eligible host: captureLaunchEnv once, publishEscrowAt over those bytes, SealedAcknowledged on the commit, and the env parsed from the captured bytes; on a supersession escrowReread and the launch preparation again (ensureAdminTokenFor, ensureInstanceKeyFor) once; a not-ready box launches only a host its ledger shows escrowed; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): before the capture, the box's mode: no files store, instanceEnvLayer exactly as before 3a (logged once); no sealing key, a host whose ledger shows it escrowed launches on instanceEnvLayer (logged), otherwise keylessEscrowed (the answer this launch's restore read, within haSecretsBudget, else one GET) refuses when the bucket holds an escrow and launches on instanceEnvLayer when it holds none; nothing is published in either. Fix round 1: ends the launch's preparation; refuses while the conflict marker exists, and with a key while this box does not hold the host's lease; an ALERT from the publish fails the launch; the keyless decision uses the preparation's read. Fix round 3: a publish that answers errEscrowNoLease (the lease lost before the commit) refuses the launch with an error saying so, never the later-launch fallback. Fix round 4: a publish that answers errEscrowUnreadable or ErrEscrowNotReady (the manifest or sealed env could not be read, or does not open here) refuses the launch, never the later-launch fallback; only refuses. registry:Host@1039,registry:Host@1100,registry:Host@1182,registry:Host@1337,registry:Host@1422,registry:Host@145,registry:Host@1590,registry:Host@1792,registry:Host@2054,registry:Host@2215,registry:Host@238,registry:Host@2671,registry:Host@3074,registry:Host@3242,registry:Host@3363,registry:Host@3537,registry:Host@3753,registry:Host@635,registry:Host@764,registry:Host@809,registry:Host@912,whole:Route@1244,whole:Route@1470,whole:Route@1699,whole:Route@1957,whole:Route@205,whole:Route@2117,whole:Route@331,whole:Route@374,whole:Route@419,whole:Route@469,whole:Route@516,whole:Route@691,whole:Route@735,whole:Route@959 1a0e785327a5266385e14f925bdcc4b010ecc0479d17a9ba9f10b887eeeed642 |
| internal/activator/escrow.go ExecBackend.haKnown legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the HA classification from memory only (haWakes, haLegacyRoute, the row's mark, the lifetime index); reads nothing registry:HA@185,registry:Host@274,registry:Host@95,whole:Route@151 4ecae90469fb6eda421464ca4509db7ddf4e5180180377867d3804b95bfd0c23 |
| internal/activator/escrow.go ExecBackend.keylessEscrowed legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4 fix rounds 0-1: new, on a box with a files store and no sealing key: whether the bucket holds an escrow for the host (any sealed item or the cutover marker), from bucketManifest: the read of the launch preparation in progress, or one hostfiles.Load (one GET); nothing is cached across launches (fix round 1, P1-3); a failed read is an error and the caller refuses; the agent as carlos (carlos-edge.service), no root caller whole:Route@146 5a14a5881e81f9b401a1f8321659e75cc6165a5477db6cacc89b6c7f9e5bee08 |
| -internal/activator/escrow.go ExecBackend.openEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the host's publisher, from its ledger (readEscrowLedger: readCappedFile, O_NOFOLLOW, 32 MiB, under <data>/.escrow, the agent's own directory) with no request, else hostfiles.Open (one GET); the agent as carlos (carlos-edge.service), no root caller Fix round 1: marks the host checked when it reads the bucket; the same reads. Fix round 2: the ledger is read through ledgerFor (none while this process marks it untrusted); the same reads. Fix round 3: a bucket read is kept as what this process knows the bucket holds (noteKnown), replacing the checked flag; the same reads. file:Open@737,registry:Host@528,registry:Host@584,whole:Route@415 a407fe03838dc525b8e587bb8137b90b131c1e4dd8e9382f5325260293f50220 |
| +internal/activator/escrow.go ExecBackend.openEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the host's publisher, from its ledger (readEscrowLedger: readCappedFile, O_NOFOLLOW, 32 MiB, under <data>/.escrow, the agent's own directory) with no request, else hostfiles.Open (one GET); the agent as carlos (carlos-edge.service), no root caller Fix round 1: marks the host checked when it reads the bucket; the same reads. Fix round 2: the ledger is read through ledgerFor (none while this process marks it untrusted); the same reads. Fix round 3: a bucket read is kept as what this process knows the bucket holds (noteKnown), replacing the checked flag; the same reads. Fix round 4: only an open from the bucket feeds what this process knows (learnBucket); an open from the ledger feeds nothing; a failed open or an unparseable manifest wraps errEscrowUnreadable; the same reads. file:Open@737,registry:Host@528,registry:Host@584,whole:Route@415 5669dd51f456b1ce38c1c7848b30ab0202e87aef8fa63f6d5517c2c734e51f83 |
| internal/activator/escrow.go ExecBackend.publishEscrow legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: publishEscrowAt on pathsFor whole:Route@149,whole:Route@164 e61757f12a116ef8bf819dcad7136f810c51dfa9f7104ceb7f810efece48cc29 |
| internal/activator/escrow.go ExecBackend.publishEscrowAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: escrowReady and the layout checked, then publishEscrowLocked under the host's lock Fix round 1: refuses while the conflict marker exists or while this box does not hold the host's lease (P1-2), before anything is read. registry:Host@223,registry:Host@269,registry:Host@340,registry:Host@376,registry:Host@435,registry:Host@556,registry:Host@653,whole:Route@157,whole:Route@733 5e2b655605216fcaa50ddfd0511ca4ce913a8716582932a13debf22c4876f117 |
| -internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). registry:Host@2078,registry:Host@2342,registry:Host@3914,registry:Host@3944,registry:Host@4480,registry:Host@574,whole:Route@2269,whole:Route@2871,whole:Route@2990 d7e1bab9bb4a873a19ff5d5a235042269f675b9e7b12d49aa5c3a82e2936b200 |
| +internal/activator/escrow.go ExecBackend.publishEscrowLocked legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: reads <host>.env (unless the launch's capture is handed in), <host>/instance.key and <host>/report.token with readStamped beneath the row's data directory, seals what changed (StageSealed), DropRawSecrets of the constant raw names, commits, and writes the ledger (writeEscrowLedger: EnsureDirBeneath .escrow 0700, a 0600 temp, rename, fsync); an absent file stages nothing; a refused file publishes nothing for it; the agent as carlos (carlos-edge.service), no root caller Fix round 1: before staging, mintedConflict on the baseline it would replace, so a secret this box minted is never published over another escrowed value (P1-1). Fix round 2 (P1-1, P1-2, stale ledger): before staging, the write-once check (escrowDivergence, keyed digests only, no request): a staged instance.key or report.token whose escrowed item has another digest refuses the publish (escrowConflictFound); then, under the operation lock just before the commit, the lease again (holdsLease): lost, nothing is committed and the staged state is dropped; after a commit the ledger through keepLedger (written, else the stale one removed with RemoveBeneath under <data>/.escrow, else marked untrusted in memory). Fix round 3: escrowDivergence also holds the env's minted variables write-once (one GET of the sealed env, only when the env changed); the committed manifest is kept as what this process knows (noteKnown). Fix round 4: only a commit that wrote (the baseline's ETag moved) feeds what this process knows (learnBucket) and writes the ledger; a no-op commit on a ledger-opened publisher feeds nothing; the same reads and writes. registry:Host@2078,registry:Host@2342,registry:Host@3957,registry:Host@3987,registry:Host@5029,registry:Host@574,whole:Route@2269,whole:Route@2914,whole:Route@3033 b42b036e80f7fcb398924d5def55bb0d1ff9af8f5e478c305080f002c7ead83d |
| internal/activator/escrow.go ExecBackend.restoreEscrowIfMissing legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: checks each escrowed file with instancefs.OpenBeneathOrAbsent beneath the row's data directory; when one is absent, hostfiles.Open of the host's manifest, ReadSealed of each missing item, and writeIfAbsent (instancefs.WriteAtomic of a temp, then RenameBetweenNoReplace, so a present file is never replaced; EnsureDirBeneath for the files directory, 0700); on a box that is not ready it refuses unless the ledger shows the host escrowed and the env file is here; the agent as carlos (carlos-edge.service), no root caller Fix round 0 (controller readiness ruling): with no files store it does nothing (logged once); with no sealing key it restores nothing: a ledger here and an env file here go on, otherwise keylessEscrowed refuses when the bucket holds an escrow and goes on as before 3a when it holds none. Fix round 1: the conflict marker first, then the mode (P2-5): no files store, nothing; no key, the preparation's keyless read before any file check. With a key, each trio file is checked with OpenBeneathOrAbsent (a link or FIFO is not missing); the bucket is read (bucketManifest, the preparation's one GET) only for a missing env file, or a missing trio file the ledger says was escrowed, or with no ledger once per agent start (P2-6); the same writes. Fix round 2: the ledger is read through ledgerFor, and while it is untrusted (its write and the stale ledger's removal both failed) a missing trio file always reads the bucket; the same reads and writes. Fix round 3: the ledger no longer decides a restore: a missing trio file reads the bucket unless this process itself saw the bucket's manifest for the host (its read or its commit, escrowState.known) without the item; the same reads and writes otherwise. registry:Host@1027,registry:Host@1145,registry:Host@138,registry:Host@1853,registry:Host@2721,registry:Host@571,registry:Host@652,registry:Host@698,registry:Host@801,whole:Route@1654,whole:Route@1750,whole:Route@200,whole:Route@241,whole:Route@314,whole:Route@360,whole:Route@477 335cb066c95f026fba5e99df8f86252ee6a50b48f799d7b1042460c2ec188642 |
| internal/activator/escrow.go ExecBackend.sweepPublish legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: publishEscrowAt, and on a supersession escrowReread and one more publish; a second one is the alert registry:Host@404,whole:Route@142,whole:Route@232,whole:Route@312 71bfee868a2ca8e3371cfc3c628b6ab5d8730ca48fcd099e7932049fe1e12a69 |
| internal/activator/escrow.go Service.EscrowSweep legacy accepted-legacy accepted-legacy;rev3=census-ruling-durability-3a-escrow;basis=durability 3a Task 4: new: the backend's EscrowSweep, nothing for a backend without one whole:Route@184 8ed0ea62a9807b7c43b3576d01f096bfe366c21bcc3be040831a3f1b80d1b123 |
| @@ -133,7 +133,7 @@ internal/activator/paths.go ExecBackend.pathsFor legacy accepted-legacy accepted |
| @removed internal/activator/hasecrets.go SplitBackend.haScheduledToken H3 census-ruling-durability-3a-escrow;absent;basis=durability 3a Task 4: renamed to SplitBackend.escrowedScheduledToken (on this card) |
| @remove internal/host/schedule_wiring.go scheduleHostHA |
| @removed internal/host/schedule_wiring.go scheduleHostHA H3 census-ruling-durability-3a-escrow;absent;basis=durability 3a Task 4: renamed to scheduleHostEscrowed (on this card), asking SecretsEscrowed instead of IsHA |
| -@coverage internal/activator 3b745c7c395b03f6a18d4957438a694c9fb08ea9820ab962311f96ddb7eecc3f |
| +@coverage internal/activator 5f2e58a9596531578ce8d51fcfc2de02ed1807dd714f50e02eb13fcfb1f9249e |
| @coverage internal/host c12e11dd2fbfb5936e5256007db85a88f96cb12f3d1c74c551ff7ec5f52f9355 |
| @coverage internal/hostfiles a0b0deb2779b183ee3f3578d1112ac5f723d930e40690a55eaaaa2644a24a9ad |
| @coverage internal/layout f845fa728b0935279454d8b01023c5d6dae1c985061a41229cf0686e829f5c12 |