carlos / platform Public

provision: record the G3 census proposal

Refresh the reviewed DNS record-change digest and retire the health-check
record-key site. Propose the root-read overlay for departure checkpoints,
missing-host checks, steering wiring and the changed package envelopes.

The record-write and root-read census tests pass. Independent unit and
envelope approval remains required before merge.
Co-Authored-By: GPT-6 Astra <noreply@openai.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev ba4f795afc9cbdfc9ef908d65bfb8a2f547191df parent b598677
4 files changed, +56 −2
  • docs/superpowers/notes/census-proposal-region-ha-g3-fixes.md +30 −0
  • internal/provision/plan9_b8_census_test.go +1 −2
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-region-ha-g3-fixes.tsv +24 −0

CI passed — run details

Intent

Attributed to this commit: 41.9 g CO₂e (5,222,849 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-g3-fixes, 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-g3-fixes.md b/docs/superpowers/notes/census-proposal-region-ha-g3-fixes.md
new file mode 100644
index 000000000..2bbba1ccd
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-region-ha-g3-fixes.md
@@ -0,0 +1,30 @@
+# Census approval: region-ha-g3-fixes
+
+Ruling `census-ruling-region-ha-g3-fixes`. The independent reviewer approves or rejects every change below, 8 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/host/hadepartures_scan.go` `Controller.retryScan` | body | unchanged (1) | Delegate to retryScanAt with the existing 30-second default. Same HADeparture read, durable retry and hourly page gates; no new read. |
+
+Envelopes re-pinned: `internal/host`, `internal/provision`, `internal/registry`, `internal/steering`.
+
+Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
+
+Recorded dispositions, which each change must still satisfy:
+
+- `internal/host/hadepartures_scan.go` `Controller.retryScan`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read only the bound departure to persist bounded retry timing and the existing hourly per-departure page claim. No completion authority. Fix r1/P15: bound detached retry bookkeeping to five seconds so cancellation still records backoff/page. Permission episodes use only the structured ha_departure_permission_fault code and key, never wake-state prose. B4 fix r4/P18: Retained fixed edges use the existing persisted 30/60/120/300-second retry and hourly departure claim, emitting only ha_departure_edges_retained plus the key. Skip generic prose paging for that code. B4 fix r5: After the existing durable hourly claim succeeds for retained fixed edges, keep the structured log and send PageOperator a warning with subject ha_departure_edges_retained and body code/key/box fields through the existing bounded alert sinks. Return delivery errors; never call the generic C3 page for this state. No new read site or completion authority. B5: Emit permission notice only on permission_new, the persisted fault-episode transition; suppress repeat hourly permission logs. Other departure pages retain the durable hourly claim.;rev3=census-ruling-region-ha-followups;basis=Use the approved operator text for permission-fault and retained-edges notices and pages. Keep persisted retry timing, permission-episode suppression and the hourly page claim unchanged; no new read or completion authority.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/host/hadepartures_scan.go:Controller.checkMissingDepartureHosts`: reads +registry:Hosts ×2, +registry:Lifetime ×3, +registry:NotBefore, +registry:Observed, +registry:Phase, +registry:Result ×2, +registry:Unresolved ×3, +whole:HADepartureHostScan ×3; written legacy, accepted-legacy, frozen
+- new `internal/host/hadepartures_scan.go:Controller.retryScanAt`: reads +whole:HADeparture; written legacy, accepted-legacy, frozen
+- new `internal/host/hadepartures_scan.go:departureScanCoverage`: reads +registry:Cursor, +registry:NotBefore ×7, +registry:RecordDigest, +registry:Unresolved ×3, +registry:Visited ×2, +registry:Waiting ×2, +whole:HADepartureVisit ×6; written legacy, accepted-legacy, frozen
+- new `internal/host/steering_loop.go:steeringPassFor`: reads +whole:Route; written legacy, accepted-legacy, frozen
+- other `changed registry schema`: closed only if it is the registry schema (re-pinned)
+- quiet `internal/host/steering_loop.go:steeringLoop`: reads nothing now; retired while it reads nothing (or its row keeps no sites)
+- reads `internal/host/hadepartures_scan.go:Controller.ScanPass`: -registry:Cursor ×4, -registry:Generation ×2, +registry:NotBefore ×7, +registry:RecordDigest, -registry:Rescan, -registry:Unresolved ×15, +registry:Visited ×8, +registry:Waiting ×5, +whole:HADeparture, +whole:HADepartureScan ×2, +whole:HADepartureVisit ×12; keeps legacy, task accepted-legacy
+- reads `internal/host/hadepartures_scan.go:Controller.complete`: -registry:Cursor, -registry:DeleteUncertain, +registry:EdgesETag ×2, -registry:Generation ×2, -registry:Rescan, +whole:HADeparture, +whole:HADepartureScan; keeps legacy, task accepted-legacy
+
+Seal: `61027a32e31cb7ce017304f526f668c26980999e2699a3013a82e2630164143e` → `b127bd35f340edddcaecf834128dd57d245cfeacca0aad38eaba938f3db8d922`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-region-ha-g3-fixes.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/internal/provision/plan9_b8_census_test.go b/internal/provision/plan9_b8_census_test.go
index d18ccde3b..205059a69 100644
--- a/internal/provision/plan9_b8_census_test.go
+++ b/internal/provision/plan9_b8_census_test.go
@@ -1084,10 +1084,9 @@ var plan9B8CensusInventory = []censusEntry{
{"internal/schedule/status.go", "claimRawWriteStatus", "nonrecord", "sel:Put", "ebad18e2a51ccd81fe73023cb18e475073eebba0a0c754cd858aae6a5dc72d58"},
{"internal/status/fleet.go", "putOverwrite", "nonrecord", "sel:Put", "527894a121c90ff71bc0ed9758ca423a576990456d5751f82fe7963dd77dc3c6"},
{"internal/status/snapshot.go", "WriteBox", "nonrecord", "sel:Put", "7583ce524d0606dbf9e5d60cdd550be8d0f6080e72737ad7f5c9043843d83394"},
- {"internal/steering/route53.go", "gcHealthChecks", "key-site", "key:recordKey", "8f73ccc805fad4b9442a283c193eef72f9dacc19dcf75afab4d4f5707a41b7fa"},
{"internal/steering/route53.go", "recordKey", "key-site", "key:recordKey", "44de1074a7fdcd31ef0da6f187c4d0554949e774b315a7bfacc0b65b44b4226f"},
{"internal/steering/route53.go", "partitionManaged", "key-site", "key:recordKey", "f4d5ee2ee3afc988a7725a4f6ed6d9edfc01d08f5c44f57492d2f282fdee281a"},
- {"internal/steering/route53.go", "recordChanges", "key-site", "key:recordKey", "d057e8edd577f1e8fd9b48936f96f108cbd543d9133b17073d8c29bb67500c82"},
+ {"internal/steering/route53.go", "recordChanges", "key-site", "key:recordKey", "af11ce0ee5c8213b63465af7505d904a1369784137c0c2f5062608d3e401a2d9"},
// Domain-registration self-review: recordKey identifies a Route 53 DNS
// record set by name, type and set identifier, as in steering above.
// SetManaged uses these keys in a local wanted map and sends DNS changes
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index feebf54e9..ed62cd532 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -113,3 +113,4 @@ plan14-root-reads-region-ha-g2-fixes.tsv 3c1d54d297da31d147cdb4e1ad4627f759c8cb8
plan14-root-reads-fix-asset-e2e-unsized-flake.tsv 3c1d54d297da31d147cdb4e1ad4627f759c8cb8eae2db53cc92218db35e59c7b
plan14-root-reads-region-ha-g2r-fixes.tsv 5c6f157c56e24dc835edc534c5dc0e043e6527e8116e5bb470e68e4fd271796c
plan14-root-reads-fix-incomplete-domains-pass.tsv 61027a32e31cb7ce017304f526f668c26980999e2699a3013a82e2630164143e
+plan14-root-reads-region-ha-g3-fixes.tsv b127bd35f340edddcaecf834128dd57d245cfeacca0aad38eaba938f3db8d922
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-g3-fixes.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-g3-fixes.tsv
new file mode 100644
index 000000000..33bc7b8ae
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-region-ha-g3-fixes.tsv
@@ -0,0 +1,24 @@
+# Census overlay region-ha-g3-fixes, written by census-propose (#369). census-ruling-region-ha-g3-fixes, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-g3-fixes.md.
+# 1 body, 0 sites, 4 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 8 new dispositions: 2 reads re-frozen at their disposition with the claim, 4 new units frozen accepted-legacy, 1 quiet units retired while they read nothing, 1 other.
+@legacy fd90605f37309323e9eadbc22388355d569ec9c9c307c4db05eb807474081a50 internal/host/hadepartures_scan.go Controller.retryScan legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read only the bound departure to persist bounded retry timing and the existing hourly per-departure page claim. No completion authority. Fix r1/P15: bound detached retry bookkeeping to five seconds so cancellation still records backoff/page. Permission episodes use only the structured ha_departure_permission_fault code and key, never wake-state prose. B4 fix r4/P18: Retained fixed edges use the existing persisted 30/60/120/300-second retry and hourly departure claim, emitting only ha_departure_edges_retained plus the key. Skip generic prose paging for that code. B4 fix r5: After the existing durable hourly claim succeeds for retained fixed edges, keep the structured log and send PageOperator a warning with subject ha_departure_edges_retained and body code/key/box fields through the existing bounded alert sinks. Return delivery errors; never call the generic C3 page for this state. No new read site or completion authority. B5: Emit permission notice only on permission_new, the persisted fault-episode transition; suppress repeat hourly permission logs. Other departure pages retain the durable hourly claim.;rev3=census-ruling-region-ha-followups;basis=Use the approved operator text for permission-fault and retained-edges notices and pages. Keep persisted retry timing, permission-episode suppression and the hourly page claim unchanged; no new read or completion authority.;rev3=census-ruling-region-ha-g3-fixes;basis=Delegate to retryScanAt with the existing 30-second default. Same HADeparture read, durable retry and hourly page gates; no new read. whole:HADeparture@168 a81384cdb2ae98b14b7078b4a1d506436f52e67a203be93072474512d48e69ab
+@legacy 61c8f05c6bf45a440607eb37df76ae98c9d92d39eec81ad9ff8da7e488c73216 internal/host/hadepartures_scan.go Controller.checkMissingDepartureHosts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=For pending journal hosts absent from current inventory, read the existing regional lock prefix once before completing a walk. Dead-owned/released, malformed, errored, non-advancing or unverified-successor locks remain blockers. Absent locks discharge this walk; validated higher-generation successors mark superseded. For self, read HAAdoption and reject unfinished receipts. New reads: existing journal Hosts/Lifetime/Observed/Result, lock at Prefix(host), and existing adoption receipt keyed by host/lifetime/departure. registry:Hosts@1278,registry:Hosts@322,registry:Lifetime@635,registry:Lifetime@727,registry:Lifetime@988,registry:NotBefore@1248,registry:Observed@765,registry:Phase@1037,registry:Result@1220,registry:Result@354,registry:Unresolved@1070,registry:Unresolved@1187,registry:Unresolved@833,whole:HADepartureHostScan@1280,whole:HADepartureHostScan@1294,whole:HADepartureHostScan@324 9a5b4814a99df5962421b935243b6d3c04f9c504b3770c5860eb0f4ad2ea4c9e
+@legacy da222f4aecab1bfe466bb77bb229e4439c6a9e3d56533276453fbe32594c2470 internal/host/hadepartures_scan.go Controller.retryScanAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=Extract existing bounded detached retry/page logic and accept the computed next-attempt time. Reads the same HADeparture fields and calls the same registry retry API; permission and retained-edges notices unchanged. whole:HADeparture@1070 2bcb69a361207bf5aec5993bca78285d506f9e9466e5e9eccee19c1764afb523
+@legacy 6f73d31fb09083e5f854c852bf89edfec9df7adbb9cc059df18c05aeebc9117f internal/host/hadepartures_scan.go departureScanCoverage legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=Count only current matching record revisions in Visited; aggregate blockers and lease waits and reset Cursor to zero. Reads HADepartureVisit RecordDigest, Unresolved, NotBefore and scan Visited/Waiting/NotBefore; no filesystem or remote read. registry:Cursor@170,registry:NotBefore@215,registry:NotBefore@435,registry:NotBefore@479,registry:NotBefore@503,registry:NotBefore@522,registry:NotBefore@541,registry:NotBefore@555,registry:RecordDigest@315,registry:Unresolved@180,registry:Unresolved@392,registry:Unresolved@410,registry:Visited@285,registry:Visited@580,registry:Waiting@194,registry:Waiting@461,whole:HADepartureVisit@287,whole:HADepartureVisit@367,whole:HADepartureVisit@385,whole:HADepartureVisit@582,whole:HADepartureVisit@592,whole:HADepartureVisit@612 ae38684c8dee6ee1d7a586db663709d858085335d02ca22a5737a68a51565c40
+@legacy 6202d5a99c9525d15f8b28733a8bed91b793113f624889f6805608fc44675ecf internal/host/steering_loop.go steeringPassFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=Extract the production steering pass closure; read the same judged routes and edges then call ConvergeDeployment. The whole Route read moved from steeringLoop; no new authority or data source. whole:Route@396 95069914026988f1af8b403f1aeaa0a99d19e449978d2acfc1a63fb27fef46f4
+@legacy 71e04edb1914b35ff57f574cf7b7aa3add7f4e4751d833561fdfe8b2fc654978 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 per-record revision visits across inventory publications; separate lease waits from blockers; check missing pending hosts before completion; persist Cursor as zero for rollback. Reads Visited, Waiting, NotBefore and the existing departure/scan state; missing-host lock and receipt reads are in checkMissingDepartureHosts. registry:Cursor@2032,registry:Cursor@2122,registry:Cursor@8080,registry:Generation@2094,registry:Generation@7350,registry:Hosts@2275,registry:Hosts@2295,registry:Hosts@3407,registry:Hosts@3475,registry:Hosts@5453,registry:Hosts@5840,registry:Hosts@6076,registry:Hosts@6720,registry:InventoryGeneration@1913,registry:Lifetime@3436,registry:NotBefore@2191,registry:NotBefore@3335,registry:NotBefore@3778,registry:NotBefore@3819,registry:NotBefore@3844,registry:NotBefore@5421,registry:NotBefore@5810,registry:NotBefore@6040,registry:NotBefore@6106,registry:NotBefore@7865,registry:NotBefore@7919,registry:NotBefore@8133,registry:Observed@4992,registry:Observed@5139,registry:Observed@5693,registry:Observed@5727,registry:Phase@1448,registry:Phase@2049,registry:Phase@2353,registry:Phase@4709,registry:Phase@634,registry:Phase@689,registry:Phase@729,registry:RecordDigest@3022,registry:RecordDigest@3740,registry:RecordDigest@5750,registry:Rescan@2137,registry:Rescan@3720,registry:Rescan@4878,registry:Rescan@6142,registry:Rescan@7642,registry:Rescan@8030,registry:Result@5391,registry:Result@5785,registry:Result@6686,registry:Unresolved@2156,registry:Unresolved@3241,registry:Unresolved@6744,registry:Unresolved@7513,registry:Unresolved@7758,registry:Unresolved@8041,registry:Unresolved@8096,registry:Version@6418,registry:Visited@2073,registry:Visited@2219,registry:Visited@2997,registry:Visited@3192,registry:Visited@3268,registry:Visited@3362,registry:Visited@6771,registry:Visited@8162,registry:Waiting@2175,registry:Waiting@7773,registry:Waiting@7848,registry:Waiting@8062,registry:Waiting@8116,whole:HADeparture@1111,whole:HADeparture@1230,whole:HADeparture@1415,whole:HADeparture@1704,whole:HADeparture@2486,whole:HADeparture@2683,whole:HADeparture@2839,whole:HADeparture@350,whole:HADeparture@392,whole:HADeparture@4989,whole:HADeparture@6386,whole:HADeparture@6522,whole:HADeparture@6878,whole:HADeparture@7478,whole:HADeparture@8347,whole:HADeparture@8485,whole:HADeparture@914,whole:HADepartureHostScan@2277,whole:HADepartureHostScan@2297,whole:HADepartureHostScan@3409,whole:HADepartureHostScan@3477,whole:HADepartureHostScan@3511,whole:HADepartureHostScan@5455,whole:HADepartureHostScan@5471,whole:HADepartureHostScan@5512,whole:HADepartureHostScan@5842,whole:HADepartureHostScan@5858,whole:HADepartureHostScan@6078,whole:HADepartureHostScan@6094,whole:HADepartureHostScan@6722,whole:HADepartureHostScan@6738,whole:HADepartureScan@6323,whole:HADepartureScan@7341,whole:HADepartureScan@7482,whole:HADepartureScan@8281,whole:HADepartureVisit@2075,whole:HADepartureVisit@2221,whole:HADepartureVisit@2999,whole:HADepartureVisit@3194,whole:HADepartureVisit@3212,whole:HADepartureVisit@3270,whole:HADepartureVisit@3288,whole:HADepartureVisit@3364,whole:HADepartureVisit@3382,whole:HADepartureVisit@6773,whole:HADepartureVisit@6791,whole:HADepartureVisit@8164 8d2a16ed9f8fd41d8c98423ac80719137d3798d405e44f8ee843870a12b9e6a9
+@legacy 40a122eac1bd891fc52ee97c9df415273b11902d503b41eb994e562271a1034c 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. registry:DeleteUncertain@3813,registry:DeleteUncertain@4198,registry:EdgesETag@1894,registry:EdgesETag@2906,registry:Hosts@5037,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:Version@665,whole:HADeparture@2846,whole:HADeparture@315,whole:HADeparture@442,whole:HADeparture@5086,whole:HADepartureHostScan@5039,whole:HADepartureScan@1718,whole:HADepartureScan@643 0aedc09a9abfc4d815293aed8515b5553cc0ed3c8ac34615f11cc9c062c5c843
+internal/host/hadepartures_scan.go Controller.retryScan legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B4: Read only the bound departure to persist bounded retry timing and the existing hourly per-departure page claim. No completion authority. Fix r1/P15: bound detached retry bookkeeping to five seconds so cancellation still records backoff/page. Permission episodes use only the structured ha_departure_permission_fault code and key, never wake-state prose. B4 fix r4/P18: Retained fixed edges use the existing persisted 30/60/120/300-second retry and hourly departure claim, emitting only ha_departure_edges_retained plus the key. Skip generic prose paging for that code. B4 fix r5: After the existing durable hourly claim succeeds for retained fixed edges, keep the structured log and send PageOperator a warning with subject ha_departure_edges_retained and body code/key/box fields through the existing bounded alert sinks. Return delivery errors; never call the generic C3 page for this state. No new read site or completion authority. B5: Emit permission notice only on permission_new, the persisted fault-episode transition; suppress repeat hourly permission logs. Other departure pages retain the durable hourly claim.;rev3=census-ruling-region-ha-followups;basis=Use the approved operator text for permission-fault and retained-edges notices and pages. Keep persisted retry timing, permission-episode suppression and the hourly page claim unchanged; no new read or completion authority.;rev3=census-ruling-region-ha-g3-fixes;basis=Delegate to retryScanAt with the existing 30-second default. Same HADeparture read, durable retry and hourly page gates; no new read. whole:HADeparture@168 a81384cdb2ae98b14b7078b4a1d506436f52e67a203be93072474512d48e69ab
+internal/host/hadepartures_scan.go Controller.checkMissingDepartureHosts legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=For pending journal hosts absent from current inventory, read the existing regional lock prefix once before completing a walk. Dead-owned/released, malformed, errored, non-advancing or unverified-successor locks remain blockers. Absent locks discharge this walk; validated higher-generation successors mark superseded. For self, read HAAdoption and reject unfinished receipts. New reads: existing journal Hosts/Lifetime/Observed/Result, lock at Prefix(host), and existing adoption receipt keyed by host/lifetime/departure. registry:Hosts@1278,registry:Hosts@322,registry:Lifetime@635,registry:Lifetime@727,registry:Lifetime@988,registry:NotBefore@1248,registry:Observed@765,registry:Phase@1037,registry:Result@1220,registry:Result@354,registry:Unresolved@1070,registry:Unresolved@1187,registry:Unresolved@833,whole:HADepartureHostScan@1280,whole:HADepartureHostScan@1294,whole:HADepartureHostScan@324 9a5b4814a99df5962421b935243b6d3c04f9c504b3770c5860eb0f4ad2ea4c9e
+internal/host/hadepartures_scan.go Controller.retryScanAt legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=Extract existing bounded detached retry/page logic and accept the computed next-attempt time. Reads the same HADeparture fields and calls the same registry retry API; permission and retained-edges notices unchanged. whole:HADeparture@1070 2bcb69a361207bf5aec5993bca78285d506f9e9466e5e9eccee19c1764afb523
+internal/host/hadepartures_scan.go departureScanCoverage legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=Count only current matching record revisions in Visited; aggregate blockers and lease waits and reset Cursor to zero. Reads HADepartureVisit RecordDigest, Unresolved, NotBefore and scan Visited/Waiting/NotBefore; no filesystem or remote read. registry:Cursor@170,registry:NotBefore@215,registry:NotBefore@435,registry:NotBefore@479,registry:NotBefore@503,registry:NotBefore@522,registry:NotBefore@541,registry:NotBefore@555,registry:RecordDigest@315,registry:Unresolved@180,registry:Unresolved@392,registry:Unresolved@410,registry:Visited@285,registry:Visited@580,registry:Waiting@194,registry:Waiting@461,whole:HADepartureVisit@287,whole:HADepartureVisit@367,whole:HADepartureVisit@385,whole:HADepartureVisit@582,whole:HADepartureVisit@592,whole:HADepartureVisit@612 ae38684c8dee6ee1d7a586db663709d858085335d02ca22a5737a68a51565c40
+internal/host/steering_loop.go steeringPassFor legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-g3-fixes;basis=Extract the production steering pass closure; read the same judged routes and edges then call ConvergeDeployment. The whole Route read moved from steeringLoop; no new authority or data source. whole:Route@396 95069914026988f1af8b403f1aeaa0a99d19e449978d2acfc1a63fb27fef46f4
+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 per-record revision visits across inventory publications; separate lease waits from blockers; check missing pending hosts before completion; persist Cursor as zero for rollback. Reads Visited, Waiting, NotBefore and the existing departure/scan state; missing-host lock and receipt reads are in checkMissingDepartureHosts. registry:Cursor@2032,registry:Cursor@2122,registry:Cursor@8080,registry:Generation@2094,registry:Generation@7350,registry:Hosts@2275,registry:Hosts@2295,registry:Hosts@3407,registry:Hosts@3475,registry:Hosts@5453,registry:Hosts@5840,registry:Hosts@6076,registry:Hosts@6720,registry:InventoryGeneration@1913,registry:Lifetime@3436,registry:NotBefore@2191,registry:NotBefore@3335,registry:NotBefore@3778,registry:NotBefore@3819,registry:NotBefore@3844,registry:NotBefore@5421,registry:NotBefore@5810,registry:NotBefore@6040,registry:NotBefore@6106,registry:NotBefore@7865,registry:NotBefore@7919,registry:NotBefore@8133,registry:Observed@4992,registry:Observed@5139,registry:Observed@5693,registry:Observed@5727,registry:Phase@1448,registry:Phase@2049,registry:Phase@2353,registry:Phase@4709,registry:Phase@634,registry:Phase@689,registry:Phase@729,registry:RecordDigest@3022,registry:RecordDigest@3740,registry:RecordDigest@5750,registry:Rescan@2137,registry:Rescan@3720,registry:Rescan@4878,registry:Rescan@6142,registry:Rescan@7642,registry:Rescan@8030,registry:Result@5391,registry:Result@5785,registry:Result@6686,registry:Unresolved@2156,registry:Unresolved@3241,registry:Unresolved@6744,registry:Unresolved@7513,registry:Unresolved@7758,registry:Unresolved@8041,registry:Unresolved@8096,registry:Version@6418,registry:Visited@2073,registry:Visited@2219,registry:Visited@2997,registry:Visited@3192,registry:Visited@3268,registry:Visited@3362,registry:Visited@6771,registry:Visited@8162,registry:Waiting@2175,registry:Waiting@7773,registry:Waiting@7848,registry:Waiting@8062,registry:Waiting@8116,whole:HADeparture@1111,whole:HADeparture@1230,whole:HADeparture@1415,whole:HADeparture@1704,whole:HADeparture@2486,whole:HADeparture@2683,whole:HADeparture@2839,whole:HADeparture@350,whole:HADeparture@392,whole:HADeparture@4989,whole:HADeparture@6386,whole:HADeparture@6522,whole:HADeparture@6878,whole:HADeparture@7478,whole:HADeparture@8347,whole:HADeparture@8485,whole:HADeparture@914,whole:HADepartureHostScan@2277,whole:HADepartureHostScan@2297,whole:HADepartureHostScan@3409,whole:HADepartureHostScan@3477,whole:HADepartureHostScan@3511,whole:HADepartureHostScan@5455,whole:HADepartureHostScan@5471,whole:HADepartureHostScan@5512,whole:HADepartureHostScan@5842,whole:HADepartureHostScan@5858,whole:HADepartureHostScan@6078,whole:HADepartureHostScan@6094,whole:HADepartureHostScan@6722,whole:HADepartureHostScan@6738,whole:HADepartureScan@6323,whole:HADepartureScan@7341,whole:HADepartureScan@7482,whole:HADepartureScan@8281,whole:HADepartureVisit@2075,whole:HADepartureVisit@2221,whole:HADepartureVisit@2999,whole:HADepartureVisit@3194,whole:HADepartureVisit@3212,whole:HADepartureVisit@3270,whole:HADepartureVisit@3288,whole:HADepartureVisit@3364,whole:HADepartureVisit@3382,whole:HADepartureVisit@6773,whole:HADepartureVisit@6791,whole:HADepartureVisit@8164 8d2a16ed9f8fd41d8c98423ac80719137d3798d405e44f8ee843870a12b9e6a9
+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. registry:DeleteUncertain@3813,registry:DeleteUncertain@4198,registry:EdgesETag@1894,registry:EdgesETag@2906,registry:Hosts@5037,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:Version@665,whole:HADeparture@2846,whole:HADeparture@315,whole:HADeparture@442,whole:HADeparture@5086,whole:HADepartureHostScan@5039,whole:HADepartureScan@1718,whole:HADepartureScan@643 0aedc09a9abfc4d815293aed8515b5553cc0ed3c8ac34615f11cc9c062c5c843
+@remove internal/host/steering_loop.go steeringLoop
+@removed internal/host/steering_loop.go steeringLoop H3 census-ruling-region-ha-g3-fixes;basis=Delegate the existing pass to steeringPassFor; the Route read moved to that unit, leaving no direct root read here.
+@coverage internal/host 9f7006a2d75dd00f2383bffbceba8bfae7684fa63863d51a7410dfeaa287320c
+@coverage internal/provision fcb48f5e278cb8f41fc1936c21f588fbd9b37cb9949d18f3739fc8752c4c3161
+@coverage internal/registry 623b8ffe1ec5dcc73e5c44c05fc4286706e8a806f02482516ae0e79199a7ffbc
+@coverage internal/steering a85aad113abbdd1cd59816655a2df03a9a1c329808066bfe44420686d8cbbda7
+@fields ?,A,Account,Accounts,AcquiredGeneration,AddedAt,Addr,Addrs,Adoption,Alias,Aliases,Alive,AllowAbsent,App,Archives,Args,AssetGen,AssetsOff,Assigned,Assignment,At,Attempts,B,Backing,Basis,Binding,Blocked,Body,Bucket,BuildState,By,Callback,CallbackError,CallbackFailed,Canary,Caps,CertExpiresAt,Changed,Channel,CheckedAt,Claim,ClaimIncarnation,ClaimOwner,ClaimOwnership,ClaimRowID,ClaimStamp,Class,Code,Column,Contents,Copies,Count,CreatedAt,Cursor,DBPath,DNSCheckedAt,DNSStatus,Deadline,Default,DeleteUncertain,Demand,DemoExpiresAt,DemoHost,DemoID,DemoLifetime,Departure,DepartureIID,DepartureRef,Departures,Digest,DoneBefore,DrainingSince,Due,DueAt,Duty,EdgesETag,EgressAllow,EnrolledAt,Env,EnvBefore,Environment,Error,ErrorKind,ExcludeHosts,ExpectGood,ExpectOp,ExpectPair,Expected,ExpectedPair,F,Failed,FenceGen,Field,FillLegacyRegistration,Fleet,FleetBox,FleetBoxes,FleetLabel,Fleets,Found,From,FromDB,FromOp,FromSock,Gate,Generation,GoodDemand,GoodDigest,GoodVersion,HA,HAJournal,Hash,Health,Held,Hibernate,Hint,Hints,HoldOp,HolderEpoch,HolderIID,HolderRef,Host,Hosts,ID,IID,Id,IdValue,Identity,Idle,IdleSeconds,Import,ImportGate,Inbox,Incarnation,InventoryGeneration,Journal,Keep,Key,KeyFP,Keys,Kind,Label,LabelledAt,LastAt,LastBlocked,LastError,LastMs,LastPage,LastStatus,Lifetime,Limit,LockETag,LockGeneration,Managed,MaxRun,MaxRunSeconds,MessageID,Method,Moved,Ms,Name,Next,NextAt,NextAttempt,NextDue,NextGood,NextValue,NotBefore,Now,Number,Number64,Observation,Observed,ObservedValue,Offset,Old,Oldest,On,OnConflict,Op,Original,Owner,Ownership,P,Page,Pair,Path,Paths,PermissionAlerted,Phase,Platform,PolicyExpiresAt,Pool,Prefix,Prev,PrevVersion,ProofDigest,ProofKey,Provisioned,Pub,RDs,RateLimit,Raw,Receipt,ReceivedAt,RecordDigest,RecordKey,Ref,Region,Regional,Registration,Replica,ReplicaIncarnation,ReplicaLife,ReplicaRevision,Replicas,Replication,Rescan,Result,Retirement,RetryCount,Revision,Route,Routes,Row,Rows,Runtime,Scan,SecretsKeyFP,SecretsKeySetAt,SecretsKeySetBy,SecretsPub,Seed,SeedID,SeedSource,Sequence,ServingSeq,ServingVersion,Size,Slug,Socket,Spec,Sqid,StartedAt,State,Stateless,Status,StatusNamed,Steering,StringMap,Summary,T,TValue,Tags,Target,Targets,Text,Timer,Timers,Times,To,ToDB,ToOp,ToSock,TokenHash,Tunnel,Type,Unit,Unresolved,UpdateSettings,Ver,Version,ViewKey,Visited,W,Waiting,Wake,WakeDigest,WakeIncarnation,Walk,Wildcards,closed,conn,connect,ctx,d,dec,done,enc,full,input,mu,output,path,readOnly,remote,sql,wait