carlos / platform Public

census: re-propose ha-departure-evidence on the moved main

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev e1cc740467a77891555db1e414cb2de8f77a173a parent 645a0e2
3 files changed, +40 −0
  • docs/superpowers/notes/census-proposal-ha-departure-evidence.md +26 −0
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-ha-departure-evidence.tsv +13 −0

CI cancelled — superseded by a newer push — run details

CI log
=== gate ===
go: downloading go1.26.10 (linux/arm64)
go version go1.26.10 linux/arm64
opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1
  tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz
  tofu: downloaded, digest verified
  aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip
  aws: downloaded, digest verified
  archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip
  archive: downloaded, digest verified
  installed in /tmp/carlos-opentofu-GNquOL
.amadan/test-gate.sh
go: downloading github.com/aws/aws-sdk-go-v2 v1.44.0
go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0
go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/smithy-go v1.28.1
go: downloading github.com/benbjohnson/litestream v0.5.14
go: downloading github.com/superfly/ltx v0.5.1
go: downloading golang.org/x/net v0.62.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading github.com/aws/aws-sdk-go-v2/service/sns v1.43.0
go: downloading golang.org/x/crypto v0.58.0
go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0
go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0
go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2
go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0
go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1
go: downloading golang.org/x/sys v0.49.0
go: downloading github.com/oschwald/maxminddb-golang v1.13.1
go: downloading github.com/pion/logging v0.2.4
go: downloading github.com/pion/stun/v3 v3.1.5
go: downloading github.com/pion/turn/v4 v4.1.4
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.40
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/pion/transport/v4 v4.0.2
go: downloading github.com/pion/dtls/v3 v3.1.4
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18
go: downloading golang.org/x/sync v0.24.0
go: downloading github.com/lmittmann/tint v1.1.3
go: downloading github.com/prometheus/client_golang v1.17.0
go: downloading github.com/pion/randutil v0.1.0
go: downloading github.com/wlynxg/anet v0.0.5
go: downloading github.com/prometheus/client_model v0.5.0
go: downloading github.com/beorn7/perks v1.0.1
go: downloading github.com/prometheus/procfs v0.12.0
go: downloading google.golang.org/protobuf v1.36.10
go: downloading github.com/cespare/xxhash/v2 v2.3.0
go: downloading github.com/prometheus/common v0.45.0
go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0
go: downloading golang.org/x/text v0.43.0
go: downloading modernc.org/sqlite v1.55.0
go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e
go: downloading github.com/klauspost/compress v1.20.2
go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0
go: downloading github.com/pierrec/lz4/v4 v4.1.22
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/libc v1.74.1
go: downloading modernc.org/mathutil v1.7.1
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec

amadan: job cancelled — a newer push superseded it

Intent

Attributed to this commit: 89.1 g CO₂e (9,217,623 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on ha-departure-evidence, 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-ha-departure-evidence.md b/docs/superpowers/notes/census-proposal-ha-departure-evidence.md
new file mode 100644
index 000000000..bc7629f55
--- /dev/null
+++ b/docs/superpowers/notes/census-proposal-ha-departure-evidence.md
@@ -0,0 +1,26 @@
+# Census approval: ha-departure-evidence
+
+Ruling `census-ruling-ha-departure-evidence`. The independent reviewer approves or rejects every change below, 2 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+
+| unit | change | read sites | what changed |
+|---|---|---|---|
+| `internal/host/hadepartures.go` `Controller.step` | sites | +whole:HAPendingTermination ×2 | A pending hint whose bound identity has an unknown or placement-null observation gets code evidence_no_observation: no enqueue, no enrollment, no completion or takeover authority. It claims a page through the new retry_hint_once op (falling back to the ordinary hourly retry if the server refuses it) and marks the hint paged only after PageIdentity succeeds. Reads only the local journal. |
+| `internal/registry/ha_journal.go` `Registry.haJournal` | sites | +file:QueryRowContext, +registry:Account ×4, +registry:At ×5, +registry:Code ×8, +registry:Found ×2, +registry:Hint ×2, +registry:IID ×4, +registry:Region ×4, +registry:sql, +whole:HAPendingTermination ×2, +whole:haJournalResponse ×8 | New ops retry_hint_once (reads the hint's own last_error, claims the existing global hourly page slot, writes next_attempt/last_page/last_error) and hint_paged (sets last_error to code plus paged when it still equals code). Same tables, same transaction helper, no new authority. |
+
+Envelopes re-pinned: `internal/host`, `internal/registry`.
+
+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.go` `Controller.step`: legacy, task accepted-legacy. Basis: 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.
+- `internal/registry/ha_journal.go` `Registry.haJournal`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: read/write bounded termination inbox, pending departures, verified identity cache and retry/cursor state in the existing SQLite registry with remote parity. No reusable receipt, arbitrary path, import/completion/start authority; retries and page times survive replay. B3 fix r1: Add atomic compact hint enrollment, bounded due reads, received-time guarded removal and hourly page claims. Retain old inbox APIs for migration, no queue receipt or authority bit. All reads/writes stay in the existing SQLite registry with remote parity. B4: Extend the existing registry journal/schema/RPC with scan state, guarded completion phases, durable bounded retry count and one receiver-wide identity summary claim/count. All state stays in the existing database; no queue receipt is persisted and no import/start authority is granted by an inbox entry. B4 fix r2: Delegate existing identity RPC operations to historical storage helpers. Remote interface unchanged; historical ref/iid lookups retain the old binding and ref-only lookups return the latest incarnation. B4 fix r3: Inventory-only waiting resets RetryCount like scan/pending and retains the caller 30-second schedule. Add an atomic claim against the existing singleton identity-page row, shared with retry_hint. Existing database and HAJournal RPC only; no filesystem path or identity authority added. B5: Stream pending departure bodies from the existing registry to count all incomplete rows and find oldest enrollment, including delayed retries. Additive enrollment timestamp retains age when evidence is reobserved. No new path or execution input.
+
+New dispositions, which census-propose wrote and the reviewer checks against the unit's reads and the diff:
+
+- new `internal/registry/ha_journal.go:Registry.MarkPendingTerminationPaged`: reads +whole:HAPendingTermination ×2; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_journal.go:Registry.RetryPendingTerminationOnce`: reads +registry:Found, +whole:HAPendingTermination ×2; written legacy, accepted-legacy, frozen
+
+Seal: `9fb6041c2fe2f33edf7cc2a0fb6dc05092015414b89cab3610ebcfc04c21d5b0` → `abec41f2e06395bd5732e1280564b0c375704d26d1bec796a7287ea81ea35bc6`.
+
+Overlay: `internal/provision/testdata/plan14-root-reads-ha-departure-evidence.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 721bc6e11..012038ca3 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -278,3 +278,4 @@ plan14-root-reads-stateless-scale-1-memory-env.tsv 47ebd73418bcbe1bdf9cf34a2b94e
plan14-root-reads-group-revoke-readback-1255.tsv 47ebd73418bcbe1bdf9cf34a2b94e3393a1279aea58f9ee0aca3f0cfe42b9132
plan14-root-reads-precert-dns01-1293.tsv b2f039a12bb284c9a36b391339e25e3f77ec94a3d4e38389ec9ef75261d7873f
plan14-root-reads-fleet-client-address-1348.tsv 9fb6041c2fe2f33edf7cc2a0fb6dc05092015414b89cab3610ebcfc04c21d5b0
+plan14-root-reads-ha-departure-evidence.tsv abec41f2e06395bd5732e1280564b0c375704d26d1bec796a7287ea81ea35bc6
diff --git a/internal/provision/testdata/plan14-root-reads-ha-departure-evidence.tsv b/internal/provision/testdata/plan14-root-reads-ha-departure-evidence.tsv
new file mode 100644
index 000000000..6753ab2f7
--- /dev/null
+++ b/internal/provision/testdata/plan14-root-reads-ha-departure-evidence.tsv
@@ -0,0 +1,13 @@
+# Census overlay ha-departure-evidence, written by census-propose (#369). census-ruling-ha-departure-evidence, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-ha-departure-evidence.md.
+# 0 body, 2 sites, 2 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 2 new dispositions: 0 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 de5290a2011654dd25871ee9b7dfbb95045989f5b944dc01f1165095dc1ebf24 internal/registry/ha_journal.go Registry.MarkPendingTerminationPaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-ha-departure-evidence;basis=New wrapper over the hint_paged op; local journal only. whole:HAPendingTermination@176,whole:HAPendingTermination@182 d45e190a96beaf27eeadc9800ac113e51cedb36a3a395d0a67128911d60cc6bc
+@legacy c7456932708add3564c8741b2a12a3bd09b44e04c8559c21ff2e80cd822770fa internal/registry/ha_journal.go Registry.RetryPendingTerminationOnce legacy accepted-legacy accepted-legacy;rev3=census-ruling-ha-departure-evidence;basis=New wrapper over the retry_hint_once op; local journal only. registry:Found@243,whole:HAPendingTermination@205,whole:HAPendingTermination@211 61ae470c9b622b0dfd3906278bb4b121b22a43c0ab98712738a0685dbbedb311
+@legacy 62d62e395fe09b5233aa5a33b508678a158c373d3c1da530f5dad05af1890587 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.;rev3=census-ruling-ha-departure-evidence;basis=A pending hint whose bound identity has an unknown or placement-null observation gets code evidence_no_observation: no enqueue, no enrollment, no completion or takeover authority. It claims a page through the new retry_hint_once op (falling back to the ordinary hourly retry if the server refuses it) and marks the hint paged only after PageIdentity succeeds. Reads only the local journal. file:Walk@2717,registry:Body@1979,registry:IID@2554,registry:IID@2971,registry:IID@3757,registry:IID@3790,registry:IID@4736,registry:IID@4894,registry:Key@2081,registry:Key@2317,registry:LastBlocked@2872,registry:NextAttempt@6456,registry:NextAttempt@6481,registry:ReceivedAt@2300,registry:ReceivedAt@3688,whole:HADeparture@6346,whole:HADeparture@6432,whole:HADeparture@6456,whole:HADeparture@6519,whole:HADeparture@6526,whole:HADeparture@6734,whole:HADeparture@7702,whole:HADeparture@8025,whole:HAPendingTermination@2495,whole:HAPendingTermination@2912,whole:HAPendingTermination@3599,whole:HAPendingTermination@3882,whole:HAPendingTermination@4110,whole:HAPendingTermination@4251,whole:HAPendingTermination@4812,whole:HAPendingTermination@4995,whole:HAPendingTermination@5566,whole:HATerminationInbox@1939 23e9712dcf7767ed2657a16736a9214d153ca614039a5674207c9ed29cd377f1
+@legacy 5fe23589bbdc7284705ca00509168de124ef3eb23dcfa7e0ecbcff6b2cd4e535 internal/registry/ha_journal.go Registry.haJournal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: read/write bounded termination inbox, pending departures, verified identity cache and retry/cursor state in the existing SQLite registry with remote parity. No reusable receipt, arbitrary path, import/completion/start authority; retries and page times survive replay. B3 fix r1: Add atomic compact hint enrollment, bounded due reads, received-time guarded removal and hourly page claims. Retain old inbox APIs for migration, no queue receipt or authority bit. All reads/writes stay in the existing SQLite registry with remote parity. B4: Extend the existing registry journal/schema/RPC with scan state, guarded completion phases, durable bounded retry count and one receiver-wide identity summary claim/count. All state stays in the existing database; no queue receipt is persisted and no import/start authority is granted by an inbox entry. B4 fix r2: Delegate existing identity RPC operations to historical storage helpers. Remote interface unchanged; historical ref/iid lookups retain the old binding and ref-only lookups return the latest incarnation. B4 fix r3: Inventory-only waiting resets RetryCount like scan/pending and retains the caller 30-second schedule. Add an atomic claim against the existing singleton identity-page row, shared with retry_hint. Existing database and HAJournal RPC only; no filesystem path or identity authority added. B5: Stream pending departure bodies from the existing registry to count all incomplete rows and find oldest enrollment, including delayed retries. Additive enrollment timestamp retains age when evidence is reobserved. No new path or execution input.;rev3=census-ruling-ha-departure-evidence;basis=New ops retry_hint_once (reads the hint's own last_error, claims the existing global hourly page slot, writes next_attempt/last_page/last_error) and hint_paged (sets last_error to code plus paged when it still equals code). Same tables, same transaction helper, no new authority. file:QueryContext@10790,file:QueryContext@2354,file:QueryContext@291,file:QueryContext@8926,file:QueryRowContext@11660,file:QueryRowContext@1271,file:QueryRowContext@13545,file:QueryRowContext@4616,file:QueryRowContext@6283,file:QueryRowContext@7125,file:QueryRowContext@8203,file:QueryRowContext@8403,file:Walk@13181,file:Walk@13204,file:Walk@13225,file:Walk@13245,file:Walk@13318,file:Walk@13741,registry:Account@1498,registry:Account@1978,registry:Account@2744,registry:Account@3169,registry:Account@3537,registry:Account@4279,registry:Account@4729,registry:Account@5505,registry:Account@5724,registry:Account@6096,registry:At@10977,registry:At@1098,registry:At@1117,registry:At@12106,registry:At@12609,registry:At@12634,registry:At@2571,registry:At@3530,registry:At@3577,registry:At@3918,registry:At@3937,registry:At@4244,registry:At@5082,registry:At@5101,registry:At@5453,registry:At@5492,registry:At@5691,registry:At@6517,registry:At@6534,registry:At@6675,registry:At@7337,registry:At@7721,registry:At@7938,registry:At@866,registry:At@8748,registry:At@8767,registry:At@9116,registry:Body@7900,registry:Body@8059,registry:Body@8728,registry:Body@9309,registry:Code@11872,registry:Code@11900,registry:Code@11920,registry:Code@11943,registry:Code@12935,registry:Code@4271,registry:Code@4404,registry:Code@4437,registry:Code@4890,registry:Code@5266,registry:Code@5852,registry:Code@5885,registry:Code@6087,registry:Code@6124,registry:Code@9774,registry:Count@1352,registry:Count@623,registry:Departure@9812,registry:Departures@11437,registry:Departures@11461,registry:EnrolledAt@652,registry:EnrolledAt@6599,registry:EnrolledAt@6626,registry:EnrolledAt@9989,registry:Found@1208,registry:Found@12770,registry:Found@13101,registry:Found@3705,registry:Found@4072,registry:Found@5237,registry:Found@5282,registry:Found@7817,registry:HAJournal@225,registry:Hint@1482,registry:Hint@3034,registry:Hint@3251,registry:Hint@4392,registry:Hint@5840,registry:Hints@2950,registry:Hints@2969,registry:ID@11729,registry:ID@12398,registry:ID@12616,registry:ID@12943,registry:ID@13140,registry:ID@6374,registry:ID@6896,registry:ID@7222,registry:ID@7703,registry:ID@7862,registry:ID@7880,registry:ID@8048,registry:ID@8722,registry:IID@1566,registry:IID@1585,registry:IID@1999,registry:IID@2767,registry:IID@3190,registry:IID@3558,registry:IID@4300,registry:IID@4750,registry:IID@5526,registry:IID@5745,registry:IID@6117,registry:Identity@13055,registry:Identity@13087,registry:Inbox@9460,registry:Inbox@9479,registry:InventoryGeneration@6682,registry:Key@10532,registry:Key@10627,registry:Key@13146,registry:Key@2098,registry:Key@2193,registry:Key@9283,registry:Key@9616,registry:Key@9782,registry:Keys@13181,registry:Keys@13245,registry:LastError@10068,registry:LastError@11344,registry:LastError@2794,registry:LastError@9332,registry:LastPage@10041,registry:LastPage@11403,registry:LastPage@2916,registry:Limit@10715,registry:Limit@10730,registry:Limit@10984,registry:Limit@2279,registry:Limit@2294,registry:Limit@2578,registry:Limit@8851,registry:Limit@8866,registry:Limit@9123,registry:MessageID@9293,registry:Next@12162,registry:Next@12177,registry:Next@12926,registry:Next@9765,registry:NextAttempt@10087,registry:NextAttempt@10478,registry:NextAttempt@11366,registry:NextAttempt@2879,registry:NextAttempt@9421,registry:Offset@13204,registry:Offset@13225,registry:Oldest@718,registry:Oldest@759,registry:Oldest@785,registry:Op@254,registry:Page@12448,registry:Phase@10019,registry:Phase@11325,registry:Phase@6711,registry:ProofDigest@9888,registry:ProofKey@9868,registry:ReceivedAt@1599,registry:ReceivedAt@2018,registry:ReceivedAt@2045,registry:ReceivedAt@2845,registry:ReceivedAt@3209,registry:ReceivedAt@9385,registry:Region@1522,registry:Region@1544,registry:Region@1989,registry:Region@2756,registry:Region@3180,registry:Region@3548,registry:Region@4290,registry:Region@4740,registry:Region@5516,registry:Region@5735,registry:Region@6107,registry:RetryCount@11971,registry:RetryCount@12125,registry:RetryCount@12201,registry:RetryCount@12220,registry:Summary@623,registry:Summary@718,registry:Summary@759,registry:Summary@785,registry:Walk@13181,registry:Walk@13204,registry:Walk@13225,registry:Walk@13245,registry:Walk@13318,registry:Walk@13741,registry:remote@111,registry:remote@142,registry:sql@10790,registry:sql@1271,registry:sql@13374,registry:sql@13545,registry:sql@2354,registry:sql@291,registry:sql@3052,registry:sql@5943,registry:sql@8926,registry:sql@926,registry:sql@9545,registry:sql@9655,whole:HABoxIdentity@13057,whole:HABoxIdentity@13091,whole:HADeparture@10142,whole:HADeparture@11284,whole:HADeparture@11441,whole:HADeparture@11465,whole:HADeparture@11477,whole:HADeparture@11831,whole:HADeparture@12270,whole:HADeparture@582,whole:HADeparture@6476,whole:HADeparture@6756,whole:HADeparture@9814,whole:HADepartureSummary@627,whole:HADepartureSummary@722,whole:HADepartureSummary@763,whole:HADepartureSummary@789,whole:HAIdentityWalk@13183,whole:HAIdentityWalk@13206,whole:HAIdentityWalk@13227,whole:HAIdentityWalk@13247,whole:HAIdentityWalk@13320,whole:HAIdentityWalk@13745,whole:HAPendingTermination@1484,whole:HAPendingTermination@2954,whole:HAPendingTermination@2973,whole:HAPendingTermination@2980,whole:HAPendingTermination@3036,whole:HAPendingTermination@3253,whole:HAPendingTermination@4394,whole:HAPendingTermination@5842,whole:HATerminationInbox@9464,whole:HATerminationInbox@9483,whole:HATerminationInbox@9490,whole:haJournalRequest@1458,whole:haJournalRequest@196,whole:haJournalRequest@207,whole:haJournalResponse@10171,whole:haJournalResponse@10254,whole:haJournalResponse@10516,whole:haJournalResponse@10657,whole:haJournalResponse@10755,whole:haJournalResponse@11019,whole:haJournalResponse@11240,whole:haJournalResponse@11310,whole:haJournalResponse@11600,whole:haJournalResponse@1166,whole:haJournalResponse@11769,whole:haJournalResponse@11856,whole:haJournalResponse@12301,whole:haJournalResponse@1236,whole:haJournalResponse@12427,whole:haJournalResponse@12685,whole:haJournalResponse@12755,whole:haJournalResponse@12971,whole:haJournalResponse@13270,whole:haJournalResponse@13352,whole:haJournalResponse@13679,whole:haJournalResponse@1372,whole:haJournalResponse@13774,whole:haJournalResponse@13803,whole:haJournalResponse@1633,whole:haJournalResponse@1727,whole:haJournalResponse@2082,whole:haJournalResponse@2223,whole:haJournalResponse@230,whole:haJournalResponse@2319,whole:haJournalResponse@2613,whole:haJournalResponse@2830,whole:haJournalResponse@3330,whole:haJournalResponse@3626,whole:haJournalResponse@3692,whole:haJournalResponse@3988,whole:haJournalResponse@399,whole:haJournalResponse@4057,whole:haJournalResponse@4329,whole:haJournalResponse@4462,whole:haJournalResponse@4556,whole:haJournalResponse@4828,whole:haJournalResponse@4852,whole:haJournalResponse@5152,whole:haJournalResponse@518,whole:haJournalResponse@5222,whole:haJournalResponse@5782,whole:haJournalResponse@5910,whole:haJournalResponse@608,whole:haJournalResponse@6223,whole:haJournalResponse@6414,whole:haJournalResponse@6501,whole:haJournalResponse@6572,whole:haJournalResponse@6785,whole:haJournalResponse@6924,whole:haJournalResponse@7050,whole:haJournalResponse@7309,whole:haJournalResponse@7362,whole:haJournalResponse@7784,whole:haJournalResponse@7964,whole:haJournalResponse@8144,whole:haJournalResponse@8325,whole:haJournalResponse@8365,whole:haJournalResponse@8507,whole:haJournalResponse@8569,whole:haJournalResponse@8800,whole:haJournalResponse@8891,whole:haJournalResponse@892,whole:haJournalResponse@9158,whole:haJournalResponse@9370,whole:haJournalResponse@9965,whole:remoteClient@113,whole:remoteClient@144 a80082cbe79d8f9f5f0cf09d6d83b7bbf169c14fed3a694cca4a26845d1cd36e
+internal/registry/ha_journal.go Registry.MarkPendingTerminationPaged legacy accepted-legacy accepted-legacy;rev3=census-ruling-ha-departure-evidence;basis=New wrapper over the hint_paged op; local journal only. whole:HAPendingTermination@176,whole:HAPendingTermination@182 d45e190a96beaf27eeadc9800ac113e51cedb36a3a395d0a67128911d60cc6bc
+internal/registry/ha_journal.go Registry.RetryPendingTerminationOnce legacy accepted-legacy accepted-legacy;rev3=census-ruling-ha-departure-evidence;basis=New wrapper over the retry_hint_once op; local journal only. registry:Found@243,whole:HAPendingTermination@205,whole:HAPendingTermination@211 61ae470c9b622b0dfd3906278bb4b121b22a43c0ab98712738a0685dbbedb311
+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.;rev3=census-ruling-ha-departure-evidence;basis=A pending hint whose bound identity has an unknown or placement-null observation gets code evidence_no_observation: no enqueue, no enrollment, no completion or takeover authority. It claims a page through the new retry_hint_once op (falling back to the ordinary hourly retry if the server refuses it) and marks the hint paged only after PageIdentity succeeds. Reads only the local journal. file:Walk@2717,registry:Body@1979,registry:IID@2554,registry:IID@2971,registry:IID@3757,registry:IID@3790,registry:IID@4736,registry:IID@4894,registry:Key@2081,registry:Key@2317,registry:LastBlocked@2872,registry:NextAttempt@6456,registry:NextAttempt@6481,registry:ReceivedAt@2300,registry:ReceivedAt@3688,whole:HADeparture@6346,whole:HADeparture@6432,whole:HADeparture@6456,whole:HADeparture@6519,whole:HADeparture@6526,whole:HADeparture@6734,whole:HADeparture@7702,whole:HADeparture@8025,whole:HAPendingTermination@2495,whole:HAPendingTermination@2912,whole:HAPendingTermination@3599,whole:HAPendingTermination@3882,whole:HAPendingTermination@4110,whole:HAPendingTermination@4251,whole:HAPendingTermination@4812,whole:HAPendingTermination@4995,whole:HAPendingTermination@5566,whole:HATerminationInbox@1939 23e9712dcf7767ed2657a16736a9214d153ca614039a5674207c9ed29cd377f1
+internal/registry/ha_journal.go Registry.haJournal legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B3b: read/write bounded termination inbox, pending departures, verified identity cache and retry/cursor state in the existing SQLite registry with remote parity. No reusable receipt, arbitrary path, import/completion/start authority; retries and page times survive replay. B3 fix r1: Add atomic compact hint enrollment, bounded due reads, received-time guarded removal and hourly page claims. Retain old inbox APIs for migration, no queue receipt or authority bit. All reads/writes stay in the existing SQLite registry with remote parity. B4: Extend the existing registry journal/schema/RPC with scan state, guarded completion phases, durable bounded retry count and one receiver-wide identity summary claim/count. All state stays in the existing database; no queue receipt is persisted and no import/start authority is granted by an inbox entry. B4 fix r2: Delegate existing identity RPC operations to historical storage helpers. Remote interface unchanged; historical ref/iid lookups retain the old binding and ref-only lookups return the latest incarnation. B4 fix r3: Inventory-only waiting resets RetryCount like scan/pending and retains the caller 30-second schedule. Add an atomic claim against the existing singleton identity-page row, shared with retry_hint. Existing database and HAJournal RPC only; no filesystem path or identity authority added. B5: Stream pending departure bodies from the existing registry to count all incomplete rows and find oldest enrollment, including delayed retries. Additive enrollment timestamp retains age when evidence is reobserved. No new path or execution input.;rev3=census-ruling-ha-departure-evidence;basis=New ops retry_hint_once (reads the hint's own last_error, claims the existing global hourly page slot, writes next_attempt/last_page/last_error) and hint_paged (sets last_error to code plus paged when it still equals code). Same tables, same transaction helper, no new authority. file:QueryContext@10790,file:QueryContext@2354,file:QueryContext@291,file:QueryContext@8926,file:QueryRowContext@11660,file:QueryRowContext@1271,file:QueryRowContext@13545,file:QueryRowContext@4616,file:QueryRowContext@6283,file:QueryRowContext@7125,file:QueryRowContext@8203,file:QueryRowContext@8403,file:Walk@13181,file:Walk@13204,file:Walk@13225,file:Walk@13245,file:Walk@13318,file:Walk@13741,registry:Account@1498,registry:Account@1978,registry:Account@2744,registry:Account@3169,registry:Account@3537,registry:Account@4279,registry:Account@4729,registry:Account@5505,registry:Account@5724,registry:Account@6096,registry:At@10977,registry:At@1098,registry:At@1117,registry:At@12106,registry:At@12609,registry:At@12634,registry:At@2571,registry:At@3530,registry:At@3577,registry:At@3918,registry:At@3937,registry:At@4244,registry:At@5082,registry:At@5101,registry:At@5453,registry:At@5492,registry:At@5691,registry:At@6517,registry:At@6534,registry:At@6675,registry:At@7337,registry:At@7721,registry:At@7938,registry:At@866,registry:At@8748,registry:At@8767,registry:At@9116,registry:Body@7900,registry:Body@8059,registry:Body@8728,registry:Body@9309,registry:Code@11872,registry:Code@11900,registry:Code@11920,registry:Code@11943,registry:Code@12935,registry:Code@4271,registry:Code@4404,registry:Code@4437,registry:Code@4890,registry:Code@5266,registry:Code@5852,registry:Code@5885,registry:Code@6087,registry:Code@6124,registry:Code@9774,registry:Count@1352,registry:Count@623,registry:Departure@9812,registry:Departures@11437,registry:Departures@11461,registry:EnrolledAt@652,registry:EnrolledAt@6599,registry:EnrolledAt@6626,registry:EnrolledAt@9989,registry:Found@1208,registry:Found@12770,registry:Found@13101,registry:Found@3705,registry:Found@4072,registry:Found@5237,registry:Found@5282,registry:Found@7817,registry:HAJournal@225,registry:Hint@1482,registry:Hint@3034,registry:Hint@3251,registry:Hint@4392,registry:Hint@5840,registry:Hints@2950,registry:Hints@2969,registry:ID@11729,registry:ID@12398,registry:ID@12616,registry:ID@12943,registry:ID@13140,registry:ID@6374,registry:ID@6896,registry:ID@7222,registry:ID@7703,registry:ID@7862,registry:ID@7880,registry:ID@8048,registry:ID@8722,registry:IID@1566,registry:IID@1585,registry:IID@1999,registry:IID@2767,registry:IID@3190,registry:IID@3558,registry:IID@4300,registry:IID@4750,registry:IID@5526,registry:IID@5745,registry:IID@6117,registry:Identity@13055,registry:Identity@13087,registry:Inbox@9460,registry:Inbox@9479,registry:InventoryGeneration@6682,registry:Key@10532,registry:Key@10627,registry:Key@13146,registry:Key@2098,registry:Key@2193,registry:Key@9283,registry:Key@9616,registry:Key@9782,registry:Keys@13181,registry:Keys@13245,registry:LastError@10068,registry:LastError@11344,registry:LastError@2794,registry:LastError@9332,registry:LastPage@10041,registry:LastPage@11403,registry:LastPage@2916,registry:Limit@10715,registry:Limit@10730,registry:Limit@10984,registry:Limit@2279,registry:Limit@2294,registry:Limit@2578,registry:Limit@8851,registry:Limit@8866,registry:Limit@9123,registry:MessageID@9293,registry:Next@12162,registry:Next@12177,registry:Next@12926,registry:Next@9765,registry:NextAttempt@10087,registry:NextAttempt@10478,registry:NextAttempt@11366,registry:NextAttempt@2879,registry:NextAttempt@9421,registry:Offset@13204,registry:Offset@13225,registry:Oldest@718,registry:Oldest@759,registry:Oldest@785,registry:Op@254,registry:Page@12448,registry:Phase@10019,registry:Phase@11325,registry:Phase@6711,registry:ProofDigest@9888,registry:ProofKey@9868,registry:ReceivedAt@1599,registry:ReceivedAt@2018,registry:ReceivedAt@2045,registry:ReceivedAt@2845,registry:ReceivedAt@3209,registry:ReceivedAt@9385,registry:Region@1522,registry:Region@1544,registry:Region@1989,registry:Region@2756,registry:Region@3180,registry:Region@3548,registry:Region@4290,registry:Region@4740,registry:Region@5516,registry:Region@5735,registry:Region@6107,registry:RetryCount@11971,registry:RetryCount@12125,registry:RetryCount@12201,registry:RetryCount@12220,registry:Summary@623,registry:Summary@718,registry:Summary@759,registry:Summary@785,registry:Walk@13181,registry:Walk@13204,registry:Walk@13225,registry:Walk@13245,registry:Walk@13318,registry:Walk@13741,registry:remote@111,registry:remote@142,registry:sql@10790,registry:sql@1271,registry:sql@13374,registry:sql@13545,registry:sql@2354,registry:sql@291,registry:sql@3052,registry:sql@5943,registry:sql@8926,registry:sql@926,registry:sql@9545,registry:sql@9655,whole:HABoxIdentity@13057,whole:HABoxIdentity@13091,whole:HADeparture@10142,whole:HADeparture@11284,whole:HADeparture@11441,whole:HADeparture@11465,whole:HADeparture@11477,whole:HADeparture@11831,whole:HADeparture@12270,whole:HADeparture@582,whole:HADeparture@6476,whole:HADeparture@6756,whole:HADeparture@9814,whole:HADepartureSummary@627,whole:HADepartureSummary@722,whole:HADepartureSummary@763,whole:HADepartureSummary@789,whole:HAIdentityWalk@13183,whole:HAIdentityWalk@13206,whole:HAIdentityWalk@13227,whole:HAIdentityWalk@13247,whole:HAIdentityWalk@13320,whole:HAIdentityWalk@13745,whole:HAPendingTermination@1484,whole:HAPendingTermination@2954,whole:HAPendingTermination@2973,whole:HAPendingTermination@2980,whole:HAPendingTermination@3036,whole:HAPendingTermination@3253,whole:HAPendingTermination@4394,whole:HAPendingTermination@5842,whole:HATerminationInbox@9464,whole:HATerminationInbox@9483,whole:HATerminationInbox@9490,whole:haJournalRequest@1458,whole:haJournalRequest@196,whole:haJournalRequest@207,whole:haJournalResponse@10171,whole:haJournalResponse@10254,whole:haJournalResponse@10516,whole:haJournalResponse@10657,whole:haJournalResponse@10755,whole:haJournalResponse@11019,whole:haJournalResponse@11240,whole:haJournalResponse@11310,whole:haJournalResponse@11600,whole:haJournalResponse@1166,whole:haJournalResponse@11769,whole:haJournalResponse@11856,whole:haJournalResponse@12301,whole:haJournalResponse@1236,whole:haJournalResponse@12427,whole:haJournalResponse@12685,whole:haJournalResponse@12755,whole:haJournalResponse@12971,whole:haJournalResponse@13270,whole:haJournalResponse@13352,whole:haJournalResponse@13679,whole:haJournalResponse@1372,whole:haJournalResponse@13774,whole:haJournalResponse@13803,whole:haJournalResponse@1633,whole:haJournalResponse@1727,whole:haJournalResponse@2082,whole:haJournalResponse@2223,whole:haJournalResponse@230,whole:haJournalResponse@2319,whole:haJournalResponse@2613,whole:haJournalResponse@2830,whole:haJournalResponse@3330,whole:haJournalResponse@3626,whole:haJournalResponse@3692,whole:haJournalResponse@3988,whole:haJournalResponse@399,whole:haJournalResponse@4057,whole:haJournalResponse@4329,whole:haJournalResponse@4462,whole:haJournalResponse@4556,whole:haJournalResponse@4828,whole:haJournalResponse@4852,whole:haJournalResponse@5152,whole:haJournalResponse@518,whole:haJournalResponse@5222,whole:haJournalResponse@5782,whole:haJournalResponse@5910,whole:haJournalResponse@608,whole:haJournalResponse@6223,whole:haJournalResponse@6414,whole:haJournalResponse@6501,whole:haJournalResponse@6572,whole:haJournalResponse@6785,whole:haJournalResponse@6924,whole:haJournalResponse@7050,whole:haJournalResponse@7309,whole:haJournalResponse@7362,whole:haJournalResponse@7784,whole:haJournalResponse@7964,whole:haJournalResponse@8144,whole:haJournalResponse@8325,whole:haJournalResponse@8365,whole:haJournalResponse@8507,whole:haJournalResponse@8569,whole:haJournalResponse@8800,whole:haJournalResponse@8891,whole:haJournalResponse@892,whole:haJournalResponse@9158,whole:haJournalResponse@9370,whole:haJournalResponse@9965,whole:remoteClient@113,whole:remoteClient@144 a80082cbe79d8f9f5f0cf09d6d83b7bbf169c14fed3a694cca4a26845d1cd36e
+@coverage internal/host 24eb7bac37c5c2c95eb112e3ac343885377fd8f3c0c48798150bd279b22ec78f
+@coverage internal/registry aafbb8b28884b13ccc7d81bd049e5f53e2a512c3e40fc21f9b64fd6fb9f512f9