| new file mode 100644 |
| index 000000000..d6713210f |
| --- /dev/null |
| +++ b/internal/provision/testdata/plan14-root-reads-audit-bugs-2.tsv |
| @@ -0,0 +1,14 @@ |
| +# Census overlay audit-bugs-2, written by census-propose (#369). census-ruling-audit-bugs-2, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-audit-bugs-2.md. |
| +# 4 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| +@legacy 51a7ec904ec6d600eaa102b5d87f46c9c3d9417745dc91b9106420b3a7a00051 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). Durability 3a Task 5: for each lease-held candidate, the host's held publisher (st.pub under the escrow lock) is handed to noteRawBaseline. Reads only manifests this process already holds (no request, no file opened); calls the detector, which logs and calls ExecBackend.OnRawSecret; nothing else changes. The +registry:Host sites are rt.Host as the state key and the detector's argument.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: use coordinator authority for stateless projections and the unchanged serving lease for stateful rows; followers are skipped without I/O; no new poll loop or file path.;rev3=census-ruling-audit-bugs-2;basis=a failed publish is logged as an alert when isEscrowAlert (errors.As on the new escrowAlert type) says so, instead of strings.HasPrefix(err.Error(), "ALERT: "), so a joined or wrapped alert is logged plainly rather than once an hour as a routine failure; logging only, no new read registry:Host@1009,registry:Host@1046,registry:Host@1136,registry:Host@1292,registry:Host@1311,registry:Host@1462,registry:Host@1995,registry:Host@2341,registry:Host@2575,registry:Host@2649,registry:Host@536,registry:Host@800,registry:Host@938,whole:Route@1193,whole:Route@1197,whole:Route@1214,whole:Route@1301,whole:Route@1320,whole:Route@1471,whole:Route@1789,whole:Route@1997,whole:Route@2227,whole:Route@2343,whole:Route@2577,whole:Route@2651,whole:Route@356,whole:Route@519,whole:Route@587,whole:Route@653,whole:Route@706,whole:Route@771 1e14fab5e73211227bc9e3149d0b2ebd8275776b9e29b186bb66df72f12bb626 |
| +@legacy 4e7267d7dedb59073fb53828c363fd955744195215cf62f75cb88999946943b6 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.;rev3=census-ruling-audit-bugs-2;basis=the refusal is built with newEscrowAlert (an escrowAlert with the identical text) instead of fmt.Errorf; the same Lstat, no new read file:Lstat@117 2813507167377d322febb10abcb556a42d56f1a4b0715bbf190da36dd8e63c40 |
| +@legacy 5de0a4472b24b196937fe2ea4749207e45a3cd2f1caad5e14669d5bd5124ad60 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.;rev3=census-ruling-audit-bugs-2;basis=the alert is built with newEscrowAlert (an escrowAlert with the identical text) instead of fmt.Errorf; the same marker write, no new read registry:Host@144,registry:Host@186,registry:Host@355,registry:Host@819 0d17cb55ff4c39a7d079fcf81d6900467347159b3c35d01bd2358dc457a99a82 |
| +@legacy a01e384e755d13eccb2be5fddb1cef0f68946fb6a8c9062309b5a0dfe6ce91ea 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.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: followers take read-only escrow verification/restore and never open the publisher; stateless coordinator requires ready escrow. Existing stateful publish, first-launch and conflict branches preserved.;rev3=census-ruling-audit-bugs-2;basis=the publish's alert branch matches isEscrowAlert(err) (errors.As) instead of the "ALERT: " prefix, so a joined or wrapped alert also refuses the launch as an alert; a joined alert was already refused via errEscrowUnreadable; only refuses, no new read registry:Host@1012,registry:Host@1115,registry:Host@1242,registry:Host@1390,registry:Host@145,registry:Host@1545,registry:Host@1630,registry:Host@1798,registry:Host@2000,registry:Host@2262,registry:Host@2423,registry:Host@2842,registry:Host@3245,registry:Host@3413,registry:Host@3534,registry:Host@3708,registry:Host@3924,registry:Host@441,registry:Host@838,registry:Host@967,registry:Stateless@158,registry:Stateless@249,whole:Route@1162,whole:Route@1313,whole:Route@1452,whole:Route@1678,whole:Route@1907,whole:Route@198,whole:Route@2165,whole:Route@2325,whole:Route@238,whole:Route@290,whole:Route@408,whole:Route@534,whole:Route@577,whole:Route@622,whole:Route@672,whole:Route@719,whole:Route@894,whole:Route@938 3b98f460b501e2b650cf5502c2407dcdaf281d8aabd0930e9fd09e1fb9e0249e |
| +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). Durability 3a Task 5: for each lease-held candidate, the host's held publisher (st.pub under the escrow lock) is handed to noteRawBaseline. Reads only manifests this process already holds (no request, no file opened); calls the detector, which logs and calls ExecBackend.OnRawSecret; nothing else changes. The +registry:Host sites are rt.Host as the state key and the detector's argument.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: use coordinator authority for stateless projections and the unchanged serving lease for stateful rows; followers are skipped without I/O; no new poll loop or file path.;rev3=census-ruling-audit-bugs-2;basis=a failed publish is logged as an alert when isEscrowAlert (errors.As on the new escrowAlert type) says so, instead of strings.HasPrefix(err.Error(), "ALERT: "), so a joined or wrapped alert is logged plainly rather than once an hour as a routine failure; logging only, no new read registry:Host@1009,registry:Host@1046,registry:Host@1136,registry:Host@1292,registry:Host@1311,registry:Host@1462,registry:Host@1995,registry:Host@2341,registry:Host@2575,registry:Host@2649,registry:Host@536,registry:Host@800,registry:Host@938,whole:Route@1193,whole:Route@1197,whole:Route@1214,whole:Route@1301,whole:Route@1320,whole:Route@1471,whole:Route@1789,whole:Route@1997,whole:Route@2227,whole:Route@2343,whole:Route@2577,whole:Route@2651,whole:Route@356,whole:Route@519,whole:Route@587,whole:Route@653,whole:Route@706,whole:Route@771 1e14fab5e73211227bc9e3149d0b2ebd8275776b9e29b186bb66df72f12bb626 |
| +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.;rev3=census-ruling-audit-bugs-2;basis=the refusal is built with newEscrowAlert (an escrowAlert with the identical text) instead of fmt.Errorf; the same Lstat, no new read file:Lstat@117 2813507167377d322febb10abcb556a42d56f1a4b0715bbf190da36dd8e63c40 |
| +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.;rev3=census-ruling-audit-bugs-2;basis=the alert is built with newEscrowAlert (an escrowAlert with the identical text) instead of fmt.Errorf; the same marker write, no new read registry:Host@144,registry:Host@186,registry:Host@355,registry:Host@819 0d17cb55ff4c39a7d079fcf81d6900467347159b3c35d01bd2358dc457a99a82 |
| +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.;rev3=census-ruling-stateless-replicas-1;basis=Task 3b: followers take read-only escrow verification/restore and never open the publisher; stateless coordinator requires ready escrow. Existing stateful publish, first-launch and conflict branches preserved.;rev3=census-ruling-audit-bugs-2;basis=the publish's alert branch matches isEscrowAlert(err) (errors.As) instead of the "ALERT: " prefix, so a joined or wrapped alert also refuses the launch as an alert; a joined alert was already refused via errEscrowUnreadable; only refuses, no new read registry:Host@1012,registry:Host@1115,registry:Host@1242,registry:Host@1390,registry:Host@145,registry:Host@1545,registry:Host@1630,registry:Host@1798,registry:Host@2000,registry:Host@2262,registry:Host@2423,registry:Host@2842,registry:Host@3245,registry:Host@3413,registry:Host@3534,registry:Host@3708,registry:Host@3924,registry:Host@441,registry:Host@838,registry:Host@967,registry:Stateless@158,registry:Stateless@249,whole:Route@1162,whole:Route@1313,whole:Route@1452,whole:Route@1678,whole:Route@1907,whole:Route@198,whole:Route@2165,whole:Route@2325,whole:Route@238,whole:Route@290,whole:Route@408,whole:Route@534,whole:Route@577,whole:Route@622,whole:Route@672,whole:Route@719,whole:Route@894,whole:Route@938 3b98f460b501e2b650cf5502c2407dcdaf281d8aabd0930e9fd09e1fb9e0249e |
| +@coverage . e0e1c2cf1540c9e2c196b7ed48b23c2a666d296157de709ca06b45236e770f83 |
| +@coverage internal/activator 09d8de3860da15a033b9b5230383bec93eb95cff029659f7dd001ac64e958eab |
| +@coverage internal/host 6df021316e61c65f4f539fd8d74b27533fdee2d4eee3237ba2060e15a2cd1985 |
| +@coverage internal/ledger 01aa8d104e7820e67739da46c184cc3c27d252e8584fe7d25e28909d14311024 |