| index ff4c8b9cf..cd7fdabab 100644 |
| --- a/internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv |
| +++ b/internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv |
| @@ -1,14 +1,16 @@ |
| # Census overlay region-ha-dr5, written by census-propose (#369). census-ruling-region-ha-dr5, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-dr5.md. |
| # 0 body, 1 sites, 3 envelope: each changed unit re-frozen at its existing disposition with its claim appended. |
| -# 3 new dispositions: 2 reads re-frozen at their disposition with the claim, 1 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| +# 4 new dispositions: 2 reads re-frozen at their disposition with the claim, 2 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 0 other. |
| @legacy 7f842c66968b4bde381264f9314a984c738d693f5462e631485914f2847d97d5 internal/host/hadepartures_scan.go Controller.unserved legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-dr5;basis=DR-5 spec 7.5 rules 2-3: reads the policy, the in-memory departure view, local identity bindings (Resolve) and local journal departure rows; group references only count as proven gone. No remote read, no root input from tenants. whole:HADeparture@818 e7d3be108620a819fac614b85980739d6dc6053afc7d21864f4d8c84091f0159 |
| +@legacy 5a4e715660f744d181e2d6a717bb2e47e95654d13a37a3742c4b0ab89f61975b internal/host/hadepartures_scan.go Controller.unservedRevoked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-dr5;basis=DR-5 R2: rechecks unserved discharges before the edges delete; reads inventory records, scan Hosts, the in-memory view, policy and local journal rows via unserved(). No remote read. registry:Hosts@239,registry:Lifetime@297,registry:Result@263,whole:HADeparture@404,whole:HADepartureHostScan@241 90d33b186039e32bae766867aaedaf5c8595f631de537cf4fa93ea0c87a70c51 |
| @legacy 64696ef227105be80a2318eafb57825f9e8f0b9763ee910f77363737f3cbe39a internal/host/hadepartures.go Controller.step legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: resolve bound same-scope identities, persist validated termination proof before enrollment, and replay bounded pending work outside consumer/fold locks. Existing regional data client and shared cache; inventory only restricts completion, never lifecycle. B3 fix r1: Describe before proof access on suspicion paths. Normalize validated legacy inbox entries in atomic transactions, process bounded per-iid pending pages, and persist hourly escalation. Delete unrelated rows only after complete applicable walks and guarded received timestamps. Acquire/completion authority unchanged. B4: Count unresolved durable hints for the globally throttled summary and call the bounded scanner outside the fold. Acknowledge unrelated hints only after complete applicable discovery; complete departure acknowledgment reads durable state. B4 fix r3: Include refused fixed-box replacements in the existing structured receiver summary, sharing its persisted hourly page claim with pending hints. Read only local refusal state and registry page state; no additional cloud request or completion authority.;rev3=census-ruling-region-ha-p3b;basis=Register admitted departure work and cancel/join it during closure before existing confirmation/import processing. Existing 23 read sites and lease/termination proofs remain; no new root input or takeover permission.;rev3=census-ruling-region-ha-g2-fixes;basis=Include identity and underlying paging errors in existing failure logs; new IID field read only, no new external read or termination authority.;rev3=census-ruling-region-ha-dr5;basis=DR-5: scans every due departure per step (at most 8), reading departure rows from the local journal (PendingDepartures) to detect progress; same ScanPass per departure, no new remote read. file:Walk@2717,registry:Body@1979,registry:IID@2554,registry:IID@2971,registry:IID@3324,registry:IID@3357,registry:IID@4038,registry:IID@4196,registry:Key@2081,registry:Key@2317,registry:LastBlocked@2872,registry:NextAttempt@5620,registry:NextAttempt@5645,registry:ReceivedAt@2300,registry:ReceivedAt@3255,whole:HADeparture@5510,whole:HADeparture@5596,whole:HADeparture@5620,whole:HADeparture@5683,whole:HADeparture@5690,whole:HADeparture@5898,whole:HADeparture@6866,whole:HADeparture@7189,whole:HAPendingTermination@2495,whole:HAPendingTermination@2912,whole:HAPendingTermination@3166,whole:HAPendingTermination@3449,whole:HAPendingTermination@3555,whole:HAPendingTermination@4114,whole:HAPendingTermination@4730,whole:HATerminationInbox@1939 277d5872fe89124b960a7957f0c2595d983f2dbdb8379c812d7df3f5be5081dd |
| -@legacy 4c6597aebce8d4d14eb913c74e7b30f4f34919ca2e786c14eb915034e2c972eb internal/host/hadepartures_scan.go Controller.complete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read the durable departure/scan and current inventory, then conditionally delete only the retained exact edges key/revision. Reread uncertain results and refuse replacement identities. Persist deletion and acknowledged index phases before complete; queue receipts stay in memory and only complete rows acknowledge. Fresh process evidence is required before authority checkpoint reuse. Fix r1/P15: ignore the old scan-level ETag override and delete only the original departure ETag. Exact-key readback retries the same tag; a changed tag is never deleted and advances only with a different verified iid under the same ref/account/scope, otherwise holds and pages. Persist permission fault episodes; route completion faults through bounded retry. No new filesystem or executable input. B4 fix r4/P18 supersedes fixed-ref deletion: only the deterministic account/iid group reference may delete its retained exact ETag. Every other ref performs an exact-key GET and stays pending unless absent or the existing verified newer-incarnation check succeeds; the live replacement file is left intact. Group revision changes stay pending. No new key or authority read. B5: Increment completion counter only after the durable complete phase; C4 ordering stays after that commit.;rev3=census-ruling-region-ha-p3b;basis=Require registered admitted work before completing a departure or acknowledging it. Existing coverage, inventory, lease and successor reads remain; closed members defer rather than clear obligations.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: drops the per-departure nudge bookkeeping (moved to a fixed-size global limiter). Completion gates, exact-ETag deletion and reads unchanged.;rev3=census-ruling-region-ha-g3-fixes;basis=Require current inventory visit coverage and re-read group edges before conditional deletion. Verify identity and scope before rebinding a changed ETag; preserve fixed-ref retention and exact-ETag deletion. Reads scan EdgesETag and coverage state; no new object key or read source.;rev3=census-ruling-region-ha-dr2;basis=DR-2: after the edges phases, calls retireStatusSnapshot, which for a deterministic account/iid group reference only does one GET of status/boxes/<ref>.json in the deployment store and a conditional delete of that exact revision (ETag). Best-effort and time-bounded (at most 5 s, always leaving 2 s of the step for the completion save; Astra R1 P2): any failure or timeout is logged and never holds completion, paging or acknowledgement. Fixed refs untouched. No filesystem, executable or new authority read; no change to the edges deletion, completion gates or ordering.;rev3=census-ruling-region-ha-dr5;basis=DR-5: the completion log counts imported hosts only (reads scan Hosts Result); no behaviour change. registry:DeleteUncertain@3813,registry:DeleteUncertain@4198,registry:EdgesETag@1894,registry:EdgesETag@2906,registry:Hosts@5049,registry:InventoryGeneration@1846,registry:PermissionAlerted@2426,registry:PermissionAlerted@3559,registry:PermissionAlerted@4342,registry:PermissionAlerted@4746,registry:PermissionAlerted@841,registry:PermissionAlerted@883,registry:Phase@1002,registry:Phase@1042,registry:Phase@1538,registry:Phase@262,registry:Phase@3692,registry:Phase@4460,registry:Phase@680,registry:Phase@950,registry:Phase@967,registry:Result@5064,registry:Version@665,whole:HADeparture@2846,whole:HADeparture@315,whole:HADeparture@442,whole:HADeparture@4872,whole:HADeparture@5226,whole:HADepartureHostScan@5051,whole:HADepartureScan@1718,whole:HADepartureScan@643 e6229100c8ebc330751408bfe14f3e453310a927155509c496c630870a0b269b |
| +@legacy 0830394438e22c5b07ac539a7e72a993f70171cbde3d132a186bcabeca9a1617 internal/host/hadepartures_scan.go Controller.complete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read the durable departure/scan and current inventory, then conditionally delete only the retained exact edges key/revision. Reread uncertain results and refuse replacement identities. Persist deletion and acknowledged index phases before complete; queue receipts stay in memory and only complete rows acknowledge. Fresh process evidence is required before authority checkpoint reuse. Fix r1/P15: ignore the old scan-level ETag override and delete only the original departure ETag. Exact-key readback retries the same tag; a changed tag is never deleted and advances only with a different verified iid under the same ref/account/scope, otherwise holds and pages. Persist permission fault episodes; route completion faults through bounded retry. No new filesystem or executable input. B4 fix r4/P18 supersedes fixed-ref deletion: only the deterministic account/iid group reference may delete its retained exact ETag. Every other ref performs an exact-key GET and stays pending unless absent or the existing verified newer-incarnation check succeeds; the live replacement file is left intact. Group revision changes stay pending. No new key or authority read. B5: Increment completion counter only after the durable complete phase; C4 ordering stays after that commit.;rev3=census-ruling-region-ha-p3b;basis=Require registered admitted work before completing a departure or acknowledging it. Existing coverage, inventory, lease and successor reads remain; closed members defer rather than clear obligations.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: drops the per-departure nudge bookkeeping (moved to a fixed-size global limiter). Completion gates, exact-ETag deletion and reads unchanged.;rev3=census-ruling-region-ha-g3-fixes;basis=Require current inventory visit coverage and re-read group edges before conditional deletion. Verify identity and scope before rebinding a changed ETag; preserve fixed-ref retention and exact-ETag deletion. Reads scan EdgesETag and coverage state; no new object key or read source.;rev3=census-ruling-region-ha-dr2;basis=DR-2: after the edges phases, calls retireStatusSnapshot, which for a deterministic account/iid group reference only does one GET of status/boxes/<ref>.json in the deployment store and a conditional delete of that exact revision (ETag). Best-effort and time-bounded (at most 5 s, always leaving 2 s of the step for the completion save; Astra R1 P2): any failure or timeout is logged and never holds completion, paging or acknowledgement. Fixed refs untouched. No filesystem, executable or new authority read; no change to the edges deletion, completion gates or ordering.;rev3=census-ruling-region-ha-dr5;basis=DR-5: before the edges delete, revalidates unserved discharges (unservedRevoked: local view, policy, journal only) and on failure resets the walk; the completion log counts imported hosts only. No new remote read. registry:DeleteUncertain@4362,registry:DeleteUncertain@4747,registry:EdgesETag@2443,registry:EdgesETag@3455,registry:Hosts@5598,registry:InventoryGeneration@2395,registry:PermissionAlerted@2975,registry:PermissionAlerted@4108,registry:PermissionAlerted@4891,registry:PermissionAlerted@5295,registry:PermissionAlerted@841,registry:PermissionAlerted@883,registry:Phase@1002,registry:Phase@1042,registry:Phase@1538,registry:Phase@262,registry:Phase@4241,registry:Phase@5009,registry:Phase@680,registry:Phase@950,registry:Phase@967,registry:Rescan@2261,registry:Result@5613,registry:Version@665,registry:Visited@2281,whole:HADeparture@2142,whole:HADeparture@315,whole:HADeparture@3395,whole:HADeparture@442,whole:HADeparture@5421,whole:HADeparture@5775,whole:HADepartureHostScan@5600,whole:HADepartureScan@1718,whole:HADepartureScan@2145,whole:HADepartureScan@643,whole:HADepartureVisit@2283 f7e07b7b6d3bfe61522f9d6c5fab3e57d7dd408dd70f89f58df07d42d7690c30 |
| @legacy 8fb7c1c742120e2de584eef28bef6b6c99f40843ec65c490fbe19b5c3ed46ed2 internal/host/hadepartures_scan.go Controller.ScanPass legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read authoritative pre-filter inventory, exact canonical lock revisions through one page reader, local scan checkpoints and adoption receipts. Persist source identity before the sole AdoptHost importer; validate later successor identity/lifetime/generation and require a fresh full zero-match rescan. Unknown state, unsupported hosts and missing previously matched locks refuse completion. No process launch or tenancy expansion. Preserve checkpoints across walks of identical record bytes; persist the current inventory generation separately and recheck source freshness/completeness before every page and deletion. Placement changes cannot filter the lock census. Fix r1/P15: classify legacy and unrelated locks as zero only before any D match; keep strict successor checks for previously matched hosts and hold malformed HA identities. Compare read start to expiry. Resume authority-complete deletion without rescanning unchanged inventory; persist evidence and scan errors with bounded retry. B4 fix r2: Inventory-only waits request the existing hourly page only after observed evidence is older than ChangeIndexBackstop plus 10 percent. Freshness and completion gates are unchanged; no new read. B5: Route the unchanged AdoptHost callback through measured telemetry; no new authority or lock read.;rev3=census-ruling-region-ha-p3b;basis=Gate and register the existing departure scan with admission before any work. Existing registry/object reads remain, closed members do not import, and shutdown cancels/joins registered work; no new root input.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: when a departure is blocked only on inventory freshness, signals the bounded early backstop round (global 60 s spacing, three per evidence) instead of waiting for the 30 min backstop. FreshAfter/I3 gates unchanged; no walk inside the step; no new read.;rev3=census-ruling-region-ha-g3-fixes;basis=Track current record revisions across inventory publications; separate lease waits from blockers and persist Cursor as zero for rollback. Drop removed records from coverage while retaining adoption or validated-successor gates for current hosts. Use the bounded lock-prefix listing only after validating every current host prefix; preserve per-host reads for known duties and fall back to the existing 32-host scan when listing evidence is unavailable. Cache listing evidence only in this process under scanMu, invalidate it on blocked work or inventory changes, and permit 128 reads with proven listing coverage. Added reads include departure LastError, host scan state and registry Hosts; the new remote read is a bounded LIST of the configured lock prefix in the existing data bucket.;rev3=census-ruling-region-ha-dr5;basis=DR-5 spec 7.5: a host this box cannot adopt only because of its pool is recorded unserved (Result) when the in-memory departure view shows no possible server; reads local journal departure rows and scan Hosts/Rescan only. No import, no lock write, no new remote read; the rescan is due at once. registry:Cursor@2032,registry:Cursor@2122,registry:Cursor@9032,registry:Generation@2094,registry:Generation@8297,registry:Hosts@2306,registry:Hosts@2326,registry:Hosts@3329,registry:Hosts@3949,registry:Hosts@4017,registry:Hosts@6025,registry:Hosts@6412,registry:Hosts@6870,registry:Hosts@6984,registry:Hosts@7742,registry:InventoryGeneration@1913,registry:LastError@2902,registry:Lifetime@3978,registry:NotBefore@2191,registry:NotBefore@3877,registry:NotBefore@4350,registry:NotBefore@4391,registry:NotBefore@4416,registry:NotBefore@5993,registry:NotBefore@6382,registry:NotBefore@6834,registry:NotBefore@6900,registry:NotBefore@8706,registry:NotBefore@8760,registry:NotBefore@9085,registry:Observed@5564,registry:Observed@5711,registry:Observed@6265,registry:Observed@6299,registry:Phase@1448,registry:Phase@2049,registry:Phase@2384,registry:Phase@5281,registry:Phase@634,registry:Phase@689,registry:Phase@729,registry:RecordDigest@3259,registry:RecordDigest@4312,registry:RecordDigest@6322,registry:Rescan@2137,registry:Rescan@4292,registry:Rescan@5450,registry:Rescan@7164,registry:Rescan@8483,registry:Rescan@8871,registry:Rescan@8924,registry:Result@5963,registry:Result@6357,registry:Result@6950,registry:Result@7708,registry:Unresolved@2156,registry:Unresolved@3783,registry:Unresolved@7766,registry:Unresolved@8354,registry:Unresolved@8599,registry:Unresolved@8882,registry:Unresolved@9048,registry:Version@7440,registry:Visited@2073,registry:Visited@2219,registry:Visited@3234,registry:Visited@3734,registry:Visited@3810,registry:Visited@3904,registry:Visited@7793,registry:Visited@9114,registry:Waiting@2175,registry:Waiting@8614,registry:Waiting@8689,registry:Waiting@8903,registry:Waiting@9068,whole:HADeparture@1111,whole:HADeparture@1230,whole:HADeparture@1415,whole:HADeparture@1704,whole:HADeparture@2517,whole:HADeparture@2714,whole:HADeparture@2870,whole:HADeparture@3005,whole:HADeparture@350,whole:HADeparture@392,whole:HADeparture@5561,whole:HADeparture@6664,whole:HADeparture@7408,whole:HADeparture@7544,whole:HADeparture@7900,whole:HADeparture@914,whole:HADeparture@9331,whole:HADeparture@9500,whole:HADepartureHostScan@2308,whole:HADepartureHostScan@2328,whole:HADepartureHostScan@3331,whole:HADepartureHostScan@3951,whole:HADepartureHostScan@4019,whole:HADepartureHostScan@4053,whole:HADepartureHostScan@6027,whole:HADepartureHostScan@6043,whole:HADepartureHostScan@6084,whole:HADepartureHostScan@6414,whole:HADepartureHostScan@6430,whole:HADepartureHostScan@6872,whole:HADepartureHostScan@6888,whole:HADepartureHostScan@6986,whole:HADepartureHostScan@7002,whole:HADepartureHostScan@7744,whole:HADepartureHostScan@7760,whole:HADepartureScan@7345,whole:HADepartureScan@8288,whole:HADepartureScan@9265,whole:HADepartureVisit@2075,whole:HADepartureVisit@2221,whole:HADepartureVisit@3236,whole:HADepartureVisit@3736,whole:HADepartureVisit@3754,whole:HADepartureVisit@3812,whole:HADepartureVisit@3830,whole:HADepartureVisit@3906,whole:HADepartureVisit@3924,whole:HADepartureVisit@7795,whole:HADepartureVisit@7813,whole:HADepartureVisit@9116 d5e9f4748365fdb80b58221d5bdc286bd422b5d969f0d436c3107c3dbd92b415 |
| internal/host/hadepartures_scan.go Controller.unserved legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-dr5;basis=DR-5 spec 7.5 rules 2-3: reads the policy, the in-memory departure view, local identity bindings (Resolve) and local journal departure rows; group references only count as proven gone. No remote read, no root input from tenants. whole:HADeparture@818 e7d3be108620a819fac614b85980739d6dc6053afc7d21864f4d8c84091f0159 |
| +internal/host/hadepartures_scan.go Controller.unservedRevoked legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-dr5;basis=DR-5 R2: rechecks unserved discharges before the edges delete; reads inventory records, scan Hosts, the in-memory view, policy and local journal rows via unserved(). No remote read. registry:Hosts@239,registry:Lifetime@297,registry:Result@263,whole:HADeparture@404,whole:HADepartureHostScan@241 90d33b186039e32bae766867aaedaf5c8595f631de537cf4fa93ea0c87a70c51 |
| internal/host/hadepartures.go Controller.step legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: resolve bound same-scope identities, persist validated termination proof before enrollment, and replay bounded pending work outside consumer/fold locks. Existing regional data client and shared cache; inventory only restricts completion, never lifecycle. B3 fix r1: Describe before proof access on suspicion paths. Normalize validated legacy inbox entries in atomic transactions, process bounded per-iid pending pages, and persist hourly escalation. Delete unrelated rows only after complete applicable walks and guarded received timestamps. Acquire/completion authority unchanged. B4: Count unresolved durable hints for the globally throttled summary and call the bounded scanner outside the fold. Acknowledge unrelated hints only after complete applicable discovery; complete departure acknowledgment reads durable state. B4 fix r3: Include refused fixed-box replacements in the existing structured receiver summary, sharing its persisted hourly page claim with pending hints. Read only local refusal state and registry page state; no additional cloud request or completion authority.;rev3=census-ruling-region-ha-p3b;basis=Register admitted departure work and cancel/join it during closure before existing confirmation/import processing. Existing 23 read sites and lease/termination proofs remain; no new root input or takeover permission.;rev3=census-ruling-region-ha-g2-fixes;basis=Include identity and underlying paging errors in existing failure logs; new IID field read only, no new external read or termination authority.;rev3=census-ruling-region-ha-dr5;basis=DR-5: scans every due departure per step (at most 8), reading departure rows from the local journal (PendingDepartures) to detect progress; same ScanPass per departure, no new remote read. file:Walk@2717,registry:Body@1979,registry:IID@2554,registry:IID@2971,registry:IID@3324,registry:IID@3357,registry:IID@4038,registry:IID@4196,registry:Key@2081,registry:Key@2317,registry:LastBlocked@2872,registry:NextAttempt@5620,registry:NextAttempt@5645,registry:ReceivedAt@2300,registry:ReceivedAt@3255,whole:HADeparture@5510,whole:HADeparture@5596,whole:HADeparture@5620,whole:HADeparture@5683,whole:HADeparture@5690,whole:HADeparture@5898,whole:HADeparture@6866,whole:HADeparture@7189,whole:HAPendingTermination@2495,whole:HAPendingTermination@2912,whole:HAPendingTermination@3166,whole:HAPendingTermination@3449,whole:HAPendingTermination@3555,whole:HAPendingTermination@4114,whole:HAPendingTermination@4730,whole:HATerminationInbox@1939 277d5872fe89124b960a7957f0c2595d983f2dbdb8379c812d7df3f5be5081dd |
| -internal/host/hadepartures_scan.go Controller.complete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read the durable departure/scan and current inventory, then conditionally delete only the retained exact edges key/revision. Reread uncertain results and refuse replacement identities. Persist deletion and acknowledged index phases before complete; queue receipts stay in memory and only complete rows acknowledge. Fresh process evidence is required before authority checkpoint reuse. Fix r1/P15: ignore the old scan-level ETag override and delete only the original departure ETag. Exact-key readback retries the same tag; a changed tag is never deleted and advances only with a different verified iid under the same ref/account/scope, otherwise holds and pages. Persist permission fault episodes; route completion faults through bounded retry. No new filesystem or executable input. B4 fix r4/P18 supersedes fixed-ref deletion: only the deterministic account/iid group reference may delete its retained exact ETag. Every other ref performs an exact-key GET and stays pending unless absent or the existing verified newer-incarnation check succeeds; the live replacement file is left intact. Group revision changes stay pending. No new key or authority read. B5: Increment completion counter only after the durable complete phase; C4 ordering stays after that commit.;rev3=census-ruling-region-ha-p3b;basis=Require registered admitted work before completing a departure or acknowledging it. Existing coverage, inventory, lease and successor reads remain; closed members defer rather than clear obligations.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: drops the per-departure nudge bookkeeping (moved to a fixed-size global limiter). Completion gates, exact-ETag deletion and reads unchanged.;rev3=census-ruling-region-ha-g3-fixes;basis=Require current inventory visit coverage and re-read group edges before conditional deletion. Verify identity and scope before rebinding a changed ETag; preserve fixed-ref retention and exact-ETag deletion. Reads scan EdgesETag and coverage state; no new object key or read source.;rev3=census-ruling-region-ha-dr2;basis=DR-2: after the edges phases, calls retireStatusSnapshot, which for a deterministic account/iid group reference only does one GET of status/boxes/<ref>.json in the deployment store and a conditional delete of that exact revision (ETag). Best-effort and time-bounded (at most 5 s, always leaving 2 s of the step for the completion save; Astra R1 P2): any failure or timeout is logged and never holds completion, paging or acknowledgement. Fixed refs untouched. No filesystem, executable or new authority read; no change to the edges deletion, completion gates or ordering.;rev3=census-ruling-region-ha-dr5;basis=DR-5: the completion log counts imported hosts only (reads scan Hosts Result); no behaviour change. registry:DeleteUncertain@3813,registry:DeleteUncertain@4198,registry:EdgesETag@1894,registry:EdgesETag@2906,registry:Hosts@5049,registry:InventoryGeneration@1846,registry:PermissionAlerted@2426,registry:PermissionAlerted@3559,registry:PermissionAlerted@4342,registry:PermissionAlerted@4746,registry:PermissionAlerted@841,registry:PermissionAlerted@883,registry:Phase@1002,registry:Phase@1042,registry:Phase@1538,registry:Phase@262,registry:Phase@3692,registry:Phase@4460,registry:Phase@680,registry:Phase@950,registry:Phase@967,registry:Result@5064,registry:Version@665,whole:HADeparture@2846,whole:HADeparture@315,whole:HADeparture@442,whole:HADeparture@4872,whole:HADeparture@5226,whole:HADepartureHostScan@5051,whole:HADepartureScan@1718,whole:HADepartureScan@643 e6229100c8ebc330751408bfe14f3e453310a927155509c496c630870a0b269b |
| +internal/host/hadepartures_scan.go Controller.complete legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read the durable departure/scan and current inventory, then conditionally delete only the retained exact edges key/revision. Reread uncertain results and refuse replacement identities. Persist deletion and acknowledged index phases before complete; queue receipts stay in memory and only complete rows acknowledge. Fresh process evidence is required before authority checkpoint reuse. Fix r1/P15: ignore the old scan-level ETag override and delete only the original departure ETag. Exact-key readback retries the same tag; a changed tag is never deleted and advances only with a different verified iid under the same ref/account/scope, otherwise holds and pages. Persist permission fault episodes; route completion faults through bounded retry. No new filesystem or executable input. B4 fix r4/P18 supersedes fixed-ref deletion: only the deterministic account/iid group reference may delete its retained exact ETag. Every other ref performs an exact-key GET and stays pending unless absent or the existing verified newer-incarnation check succeeds; the live replacement file is left intact. Group revision changes stay pending. No new key or authority read. B5: Increment completion counter only after the durable complete phase; C4 ordering stays after that commit.;rev3=census-ruling-region-ha-p3b;basis=Require registered admitted work before completing a departure or acknowledging it. Existing coverage, inventory, lease and successor reads remain; closed members defer rather than clear obligations.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: drops the per-departure nudge bookkeeping (moved to a fixed-size global limiter). Completion gates, exact-ETag deletion and reads unchanged.;rev3=census-ruling-region-ha-g3-fixes;basis=Require current inventory visit coverage and re-read group edges before conditional deletion. Verify identity and scope before rebinding a changed ETag; preserve fixed-ref retention and exact-ETag deletion. Reads scan EdgesETag and coverage state; no new object key or read source.;rev3=census-ruling-region-ha-dr2;basis=DR-2: after the edges phases, calls retireStatusSnapshot, which for a deterministic account/iid group reference only does one GET of status/boxes/<ref>.json in the deployment store and a conditional delete of that exact revision (ETag). Best-effort and time-bounded (at most 5 s, always leaving 2 s of the step for the completion save; Astra R1 P2): any failure or timeout is logged and never holds completion, paging or acknowledgement. Fixed refs untouched. No filesystem, executable or new authority read; no change to the edges deletion, completion gates or ordering.;rev3=census-ruling-region-ha-dr5;basis=DR-5: before the edges delete, revalidates unserved discharges (unservedRevoked: local view, policy, journal only) and on failure resets the walk; the completion log counts imported hosts only. No new remote read. registry:DeleteUncertain@4362,registry:DeleteUncertain@4747,registry:EdgesETag@2443,registry:EdgesETag@3455,registry:Hosts@5598,registry:InventoryGeneration@2395,registry:PermissionAlerted@2975,registry:PermissionAlerted@4108,registry:PermissionAlerted@4891,registry:PermissionAlerted@5295,registry:PermissionAlerted@841,registry:PermissionAlerted@883,registry:Phase@1002,registry:Phase@1042,registry:Phase@1538,registry:Phase@262,registry:Phase@4241,registry:Phase@5009,registry:Phase@680,registry:Phase@950,registry:Phase@967,registry:Rescan@2261,registry:Result@5613,registry:Version@665,registry:Visited@2281,whole:HADeparture@2142,whole:HADeparture@315,whole:HADeparture@3395,whole:HADeparture@442,whole:HADeparture@5421,whole:HADeparture@5775,whole:HADepartureHostScan@5600,whole:HADepartureScan@1718,whole:HADepartureScan@2145,whole:HADepartureScan@643,whole:HADepartureVisit@2283 f7e07b7b6d3bfe61522f9d6c5fab3e57d7dd408dd70f89f58df07d42d7690c30 |
| internal/host/hadepartures_scan.go Controller.ScanPass legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read authoritative pre-filter inventory, exact canonical lock revisions through one page reader, local scan checkpoints and adoption receipts. Persist source identity before the sole AdoptHost importer; validate later successor identity/lifetime/generation and require a fresh full zero-match rescan. Unknown state, unsupported hosts and missing previously matched locks refuse completion. No process launch or tenancy expansion. Preserve checkpoints across walks of identical record bytes; persist the current inventory generation separately and recheck source freshness/completeness before every page and deletion. Placement changes cannot filter the lock census. Fix r1/P15: classify legacy and unrelated locks as zero only before any D match; keep strict successor checks for previously matched hosts and hold malformed HA identities. Compare read start to expiry. Resume authority-complete deletion without rescanning unchanged inventory; persist evidence and scan errors with bounded retry. B4 fix r2: Inventory-only waits request the existing hourly page only after observed evidence is older than ChangeIndexBackstop plus 10 percent. Freshness and completion gates are unchanged; no new read. B5: Route the unchanged AdoptHost callback through measured telemetry; no new authority or lock read.;rev3=census-ruling-region-ha-p3b;basis=Gate and register the existing departure scan with admission before any work. Existing registry/object reads remain, closed members do not import, and shutdown cancels/joins registered work; no new root input.;rev3=census-ruling-region-ha-g2r-fixes;basis=W3: when a departure is blocked only on inventory freshness, signals the bounded early backstop round (global 60 s spacing, three per evidence) instead of waiting for the 30 min backstop. FreshAfter/I3 gates unchanged; no walk inside the step; no new read.;rev3=census-ruling-region-ha-g3-fixes;basis=Track current record revisions across inventory publications; separate lease waits from blockers and persist Cursor as zero for rollback. Drop removed records from coverage while retaining adoption or validated-successor gates for current hosts. Use the bounded lock-prefix listing only after validating every current host prefix; preserve per-host reads for known duties and fall back to the existing 32-host scan when listing evidence is unavailable. Cache listing evidence only in this process under scanMu, invalidate it on blocked work or inventory changes, and permit 128 reads with proven listing coverage. Added reads include departure LastError, host scan state and registry Hosts; the new remote read is a bounded LIST of the configured lock prefix in the existing data bucket.;rev3=census-ruling-region-ha-dr5;basis=DR-5 spec 7.5: a host this box cannot adopt only because of its pool is recorded unserved (Result) when the in-memory departure view shows no possible server; reads local journal departure rows and scan Hosts/Rescan only. No import, no lock write, no new remote read; the rescan is due at once. registry:Cursor@2032,registry:Cursor@2122,registry:Cursor@9032,registry:Generation@2094,registry:Generation@8297,registry:Hosts@2306,registry:Hosts@2326,registry:Hosts@3329,registry:Hosts@3949,registry:Hosts@4017,registry:Hosts@6025,registry:Hosts@6412,registry:Hosts@6870,registry:Hosts@6984,registry:Hosts@7742,registry:InventoryGeneration@1913,registry:LastError@2902,registry:Lifetime@3978,registry:NotBefore@2191,registry:NotBefore@3877,registry:NotBefore@4350,registry:NotBefore@4391,registry:NotBefore@4416,registry:NotBefore@5993,registry:NotBefore@6382,registry:NotBefore@6834,registry:NotBefore@6900,registry:NotBefore@8706,registry:NotBefore@8760,registry:NotBefore@9085,registry:Observed@5564,registry:Observed@5711,registry:Observed@6265,registry:Observed@6299,registry:Phase@1448,registry:Phase@2049,registry:Phase@2384,registry:Phase@5281,registry:Phase@634,registry:Phase@689,registry:Phase@729,registry:RecordDigest@3259,registry:RecordDigest@4312,registry:RecordDigest@6322,registry:Rescan@2137,registry:Rescan@4292,registry:Rescan@5450,registry:Rescan@7164,registry:Rescan@8483,registry:Rescan@8871,registry:Rescan@8924,registry:Result@5963,registry:Result@6357,registry:Result@6950,registry:Result@7708,registry:Unresolved@2156,registry:Unresolved@3783,registry:Unresolved@7766,registry:Unresolved@8354,registry:Unresolved@8599,registry:Unresolved@8882,registry:Unresolved@9048,registry:Version@7440,registry:Visited@2073,registry:Visited@2219,registry:Visited@3234,registry:Visited@3734,registry:Visited@3810,registry:Visited@3904,registry:Visited@7793,registry:Visited@9114,registry:Waiting@2175,registry:Waiting@8614,registry:Waiting@8689,registry:Waiting@8903,registry:Waiting@9068,whole:HADeparture@1111,whole:HADeparture@1230,whole:HADeparture@1415,whole:HADeparture@1704,whole:HADeparture@2517,whole:HADeparture@2714,whole:HADeparture@2870,whole:HADeparture@3005,whole:HADeparture@350,whole:HADeparture@392,whole:HADeparture@5561,whole:HADeparture@6664,whole:HADeparture@7408,whole:HADeparture@7544,whole:HADeparture@7900,whole:HADeparture@914,whole:HADeparture@9331,whole:HADeparture@9500,whole:HADepartureHostScan@2308,whole:HADepartureHostScan@2328,whole:HADepartureHostScan@3331,whole:HADepartureHostScan@3951,whole:HADepartureHostScan@4019,whole:HADepartureHostScan@4053,whole:HADepartureHostScan@6027,whole:HADepartureHostScan@6043,whole:HADepartureHostScan@6084,whole:HADepartureHostScan@6414,whole:HADepartureHostScan@6430,whole:HADepartureHostScan@6872,whole:HADepartureHostScan@6888,whole:HADepartureHostScan@6986,whole:HADepartureHostScan@7002,whole:HADepartureHostScan@7744,whole:HADepartureHostScan@7760,whole:HADepartureScan@7345,whole:HADepartureScan@8288,whole:HADepartureScan@9265,whole:HADepartureVisit@2075,whole:HADepartureVisit@2221,whole:HADepartureVisit@3236,whole:HADepartureVisit@3736,whole:HADepartureVisit@3754,whole:HADepartureVisit@3812,whole:HADepartureVisit@3830,whole:HADepartureVisit@3906,whole:HADepartureVisit@3924,whole:HADepartureVisit@7795,whole:HADepartureVisit@7813,whole:HADepartureVisit@9116 d5e9f4748365fdb80b58221d5bdc286bd422b5d969f0d436c3107c3dbd92b415 |
| @coverage internal/edge 606121c04922bdd826c5ecec3e2c1a34fe0d4c4972da03b21ec4522f701881eb |
| @coverage internal/hadeparture 2ad007bad5ec3ca5b3df1c4303de384e5fe3732a2fa9c006af0f44589a9a8e17 |
| -@coverage internal/host 79d6ee4faabfc4707b91634e243f3ba5757c04f56a9debed341f5387974103e9 |
| +@coverage internal/host deaa405e7f14ef02542c90d91c3405eea4ae941574cf630e300a84b51a2555d6 |