carlos / platform Public

region HA DR-5: census claim states the amended ScanPass basis

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f0ab0227ec328994fe27e476e9c9a53bd25204a6 parent 7d527d1
3 files changed, +5 −5
  • docs/superpowers/notes/census-proposal-region-ha-dr5.md +2 −2
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv +2 −2

CI passed — run details

Intent

Human

<task-notification> <task-id>b4pn6iqv2</task-id> <tool-use-id>toolu_01F6pwGzWJKys87bx9kizz6b</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/ab9165e6-6d36-4d3d-bb2d-70e5360d614e/tasks/b4pn6iqv2.output</output-file> <status>completed</status> <summary>Background command "Wait for census verdict and CI on tip" completed (exit code 0)</summary> </task-notification>

Attributed to this commit: 13.8 g CO₂e (1,714,334 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on fix/region-ha-dr5, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.

diff --git a/docs/superpowers/notes/census-proposal-region-ha-dr5.md b/docs/superpowers/notes/census-proposal-region-ha-dr5.md
index 92eb95c61..5d3cd6038 100644
--- a/docs/superpowers/notes/census-proposal-region-ha-dr5.md
+++ b/docs/superpowers/notes/census-proposal-region-ha-dr5.md
@@ -4,7 +4,7 @@ Ruling `census-ruling-region-ha-dr5`. The independent reviewer approves or rejec
| unit | change | read sites | what changed |
|---|---|---|---|
-| `internal/host/hadepartures_scan.go` `Controller.ScanPass` | sites | +registry:Hosts, +registry:Rescan, +registry:Result, +whole:HADeparture, +whole:HADepartureHostScan ×2 | 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. |
+| `internal/host/hadepartures_scan.go` `Controller.ScanPass` | sites | +registry:Hosts, +registry:Rescan, +registry:Result, +whole:HADeparture, +whole:HADepartureHostScan ×2 | BASIS AMENDED by spec 7.5 (DR-5, approved by agent manager 8a3d302 for the region HA standing approval): the B4 completion gate "adoption or validated successor" becomes "adoption, validated successor, or unserved discharge". A host may be discharged unserved only when (1) its lock is a valid release marker naming the departed box or a held lock whose expiry this box read as passed, (2) this box would adopt it but for the pool (placement, HA, lifetime, kind and sidecar rules, not denied), and (3) the complete in-memory departure view shows no in-scope box that serves or may serve the pool, other than group members with a departure enrolled in this box journal (fixed refs never count as gone; unknown served_pools blocks). Every unserved discharge is rechecked at one finalization gate immediately before the conditional edges delete. An unserved host is never imported and its lock is never written, so no lease authority moves; the full zero-match rescan still runs, with unserved hosts the only allowed matches. Inputs: served_pools comes from edges files that only box roles write (already trusted by this scan for identity and by placement); a box agent that lies can at most let a departure finish without import, which it can already cause by deleting edges files with its own role. No new remote read; reads Hosts/Rescan/Result from the local journal. The rescan is due at once. |
Envelopes re-pinned: `internal/edge`, `internal/hadeparture`, `internal/host`.
@@ -21,6 +21,6 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- reads `internal/host/hadepartures.go:Controller.step`: +registry:NextAttempt ×2, +whole:HADeparture ×5; keeps legacy, task accepted-legacy
- reads `internal/host/hadepartures_scan.go:Controller.complete`: +registry:DeleteUncertain, +registry:Rescan, +registry:Result, +registry:Visited, +whole:HADeparture, +whole:HADepartureScan, +whole:HADepartureVisit; keeps legacy, task accepted-legacy
-Seal: `feba66806ddfcbdfaf369d72413bb18e75162263b6f82f117fccf1b75497986a` → `381b9cc87fb118a0c07687e4b36c771e4670bb54c9e75aa1732ebbb9aa70bfea`.
+Seal: `feba66806ddfcbdfaf369d72413bb18e75162263b6f82f117fccf1b75497986a` → `f19eb78c1da1475cbf8e11a3d6c394d828aa1c8f88ae24469fe8d473581b934b`.
Overlay: `internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 6f8ef7de8..a2c022f12 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -125,4 +125,4 @@ plan14-root-reads-region-ha-graceful-terminate-t2.tsv 687cf7744aecdf8a238dcdb805
plan14-root-reads-static-sweep-periodic.tsv 3dc3f6657527133a251c028772315bdd333b04c318fbbc6d90ef5047f15408ed
plan14-root-reads-agent-login-link.tsv e820ef22ac677cd49aa9ca3f70d6bca9dea061bce3184ca86f0a3fc98f8de0eb
plan14-root-reads-fix-activator-backoff-flake.tsv feba66806ddfcbdfaf369d72413bb18e75162263b6f82f117fccf1b75497986a
-plan14-root-reads-region-ha-dr5.tsv 381b9cc87fb118a0c07687e4b36c771e4670bb54c9e75aa1732ebbb9aa70bfea
+plan14-root-reads-region-ha-dr5.tsv f19eb78c1da1475cbf8e11a3d6c394d828aa1c8f88ae24469fe8d473581b934b
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv
index b2d9eed17..6c8e14c51 100644
--- a/internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv
+++ b/internal/provision/testdata/plan14-root-reads-region-ha-dr5.tsv
@@ -5,12 +5,12 @@
@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 b999756cd33f81ac8295b7e438270220d42d14e8f22ed7af128d56146adba05a 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: one finalization gate immediately before the conditional edges delete revalidates unserved discharges (unservedRevoked: local view, policy, journal only); on failure clears DeleteUncertain and resets to a fresh walk before any delete. The completion log counts imported hosts only. No new remote read. registry:DeleteUncertain@3813,registry:DeleteUncertain@4544,registry:DeleteUncertain@4997,registry:EdgesETag@1894,registry:EdgesETag@2906,registry:Hosts@5848,registry:InventoryGeneration@1846,registry:PermissionAlerted@2426,registry:PermissionAlerted@3559,registry:PermissionAlerted@5141,registry:PermissionAlerted@5545,registry:PermissionAlerted@841,registry:PermissionAlerted@883,registry:Phase@1002,registry:Phase@1042,registry:Phase@1538,registry:Phase@262,registry:Phase@3692,registry:Phase@5259,registry:Phase@680,registry:Phase@950,registry:Phase@967,registry:Rescan@4574,registry:Result@5863,registry:Version@665,registry:Visited@4595,whole:HADeparture@2846,whole:HADeparture@315,whole:HADeparture@442,whole:HADeparture@4423,whole:HADeparture@5671,whole:HADeparture@6025,whole:HADepartureHostScan@5850,whole:HADepartureScan@1718,whole:HADepartureScan@4426,whole:HADepartureScan@643,whole:HADepartureVisit@4597 6b87823a40a3a54378a9e560498344dd4dca51121bdce723a015e586f511529e
-@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
+@legacy dd1911346527d92267e5256bbb43128ce7a3a001d00168ecc0d1ebe1031b7efa 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=BASIS AMENDED by spec 7.5 (DR-5, approved by agent manager 8a3d302 for the region HA standing approval): the B4 completion gate "adoption or validated successor" becomes "adoption, validated successor, or unserved discharge". A host may be discharged unserved only when (1) its lock is a valid release marker naming the departed box or a held lock whose expiry this box read as passed, (2) this box would adopt it but for the pool (placement, HA, lifetime, kind and sidecar rules, not denied), and (3) the complete in-memory departure view shows no in-scope box that serves or may serve the pool, other than group members with a departure enrolled in this box journal (fixed refs never count as gone; unknown served_pools blocks). Every unserved discharge is rechecked at one finalization gate immediately before the conditional edges delete. An unserved host is never imported and its lock is never written, so no lease authority moves; the full zero-match rescan still runs, with unserved hosts the only allowed matches. Inputs: served_pools comes from edges files that only box roles write (already trusted by this scan for identity and by placement); a box agent that lies can at most let a departure finish without import, which it can already cause by deleting edges files with its own role. No new remote read; reads Hosts/Rescan/Result from the local journal. 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: one finalization gate immediately before the conditional edges delete revalidates unserved discharges (unservedRevoked: local view, policy, journal only); on failure clears DeleteUncertain and resets to a fresh walk before any delete. The completion log counts imported hosts only. No new remote read. registry:DeleteUncertain@3813,registry:DeleteUncertain@4544,registry:DeleteUncertain@4997,registry:EdgesETag@1894,registry:EdgesETag@2906,registry:Hosts@5848,registry:InventoryGeneration@1846,registry:PermissionAlerted@2426,registry:PermissionAlerted@3559,registry:PermissionAlerted@5141,registry:PermissionAlerted@5545,registry:PermissionAlerted@841,registry:PermissionAlerted@883,registry:Phase@1002,registry:Phase@1042,registry:Phase@1538,registry:Phase@262,registry:Phase@3692,registry:Phase@5259,registry:Phase@680,registry:Phase@950,registry:Phase@967,registry:Rescan@4574,registry:Result@5863,registry:Version@665,registry:Visited@4595,whole:HADeparture@2846,whole:HADeparture@315,whole:HADeparture@442,whole:HADeparture@4423,whole:HADeparture@5671,whole:HADeparture@6025,whole:HADepartureHostScan@5850,whole:HADepartureScan@1718,whole:HADepartureScan@4426,whole:HADepartureScan@643,whole:HADepartureVisit@4597 6b87823a40a3a54378a9e560498344dd4dca51121bdce723a015e586f511529e
-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.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=BASIS AMENDED by spec 7.5 (DR-5, approved by agent manager 8a3d302 for the region HA standing approval): the B4 completion gate "adoption or validated successor" becomes "adoption, validated successor, or unserved discharge". A host may be discharged unserved only when (1) its lock is a valid release marker naming the departed box or a held lock whose expiry this box read as passed, (2) this box would adopt it but for the pool (placement, HA, lifetime, kind and sidecar rules, not denied), and (3) the complete in-memory departure view shows no in-scope box that serves or may serve the pool, other than group members with a departure enrolled in this box journal (fixed refs never count as gone; unknown served_pools blocks). Every unserved discharge is rechecked at one finalization gate immediately before the conditional edges delete. An unserved host is never imported and its lock is never written, so no lease authority moves; the full zero-match rescan still runs, with unserved hosts the only allowed matches. Inputs: served_pools comes from edges files that only box roles write (already trusted by this scan for identity and by placement); a box agent that lies can at most let a departure finish without import, which it can already cause by deleting edges files with its own role. No new remote read; reads Hosts/Rescan/Result from the local journal. 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 0216862068121257153b8dae9865cb78f67b21e7d8007163518b4895d48b50ee