carlos / platform Public

ha: expose receipt migration SQL to inventory and refresh census

Make the migration schema constant so the route-write inventory can resolve it. Refresh the slice census proposal and accumulated claims for the reviewed Task B2 fix scope.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev bc1d3b6872c89e3b154398454ec2190f26360402 parent 814bfc4
5 files changed, +72 −59
  • docs/superpowers/notes/census-proposal-region-ha-p1b3b-t.md +17 −13
  • docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md +16 −13
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv +37 −31
  • internal/registry/ha_departures.go +1 −1

CI failed — run details

Intent

Attributed to this commit: 16.0 g CO₂e (1,938,744 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on region-ha-p1b3b-duties, 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-p1b3b-t.md b/docs/superpowers/notes/census-proposal-region-ha-p1b3b-t.md
index c2c47b29b..58f383e19 100644
--- a/docs/superpowers/notes/census-proposal-region-ha-p1b3b-t.md
+++ b/docs/superpowers/notes/census-proposal-region-ha-p1b3b-t.md
@@ -1,6 +1,6 @@
# Census approval: region-ha-p1b3b-t
-Ruling `census-ruling-region-ha-p1b3b-t`. The independent reviewer approves or rejects every change below, 43 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
+Ruling `census-ruling-region-ha-p1b3b-t`. The independent reviewer approves or rejects every change below, 45 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -15,6 +15,7 @@ Ruling `census-ruling-region-ha-p1b3b-t`. The independent reviewer approves or r
| `internal/activator/activator.go` `Service.wake` | sites | +whole:Route | Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence. |
| `internal/activator/harelease.go` `Service.releaseHAClean` | sites | +whole:Route | Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged. |
| `internal/activator/hatakeover.go` `ExecBackend.ownerTerminated` | sites | +registry:Host | Read route Host for structured departure-finalize telemetry; retain the same confirmation callback and visitor alarm behavior. |
+| `internal/activator/hawake.go` `ExecBackend.acquireClassified` | sites | +whole:Route | Select the restriction-only AcquireHAForDuty for background contexts, including sticky HA reclassification; observe successful ordinary acquires to clear stale suppression. Add a whole-route observer argument; no new authority. B2 binds the current authoritative lifetime and advances local revision before HA acquire, invalidating concurrent adoption I/O. Ordinary lease authority and restore ordering remain unchanged. B2 fix r1: advance the local duty revision with an unconditional registry UPDATE before acquire; remove pre-acquire lifetime CAS and basis clearing. Failed acquire preserves adopted state. Existing lease validation and successful-acquire observer remain. |
| `internal/host/schedule_wiring.go` `activatorDeliverer.deliverSelected` | sites | +whole:Route ×2 | Wrap local delivery in WithDuty so lease loss returns a deferred control result before timer bookkeeping. Add whole-route arguments; no remote forwarding. |
| `internal/schedule/runner.go` `Runner.fire` | sites | -registry:Host ×4, -registry:Name ×2, -whole:Route ×5, -whole:Timer ×2 | Call WithDuty before token preparation; record non-deferred pre-delivery wake errors through the existing retry and event policy after timerStillDue. Adds spec and whole timer/route reads for record. Advance only known non-owner recurring occurrences through the existing registration/DueAt guard; no second outcome after callback execution. |
@@ -35,6 +36,7 @@ Recorded dispositions, which each change must still satisfy:
- `internal/activator/activator.go` `Service.wake`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.
- `internal/activator/harelease.go` `Service.releaseHAClean`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4
- `internal/activator/hatakeover.go` `ExecBackend.ownerTerminated`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1b1;basis=new (region HA P1b-1): returns nil without eb.OwnerTerminated; else a closure calling it with the lock owner's instance id (from the HA lock, written by a box agent) and logging rt.Host on a takeover and, at most once a minute per host, on an error; the id goes only to EC2 DescribeInstances in this box's own account and region and is checked against the reply (termfence.SameAccountTerminated); root never calls it
+- `internal/activator/hawake.go` `ExecBackend.acquireClassified`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the acquire's classification: a legacy route (sidecar, hand-added or not an instance) takes lease.Acquire and refuses on an HA-format lock; otherwise isHA (a record read error fails the wake, never falls back to legacy); not HA takes lease.Acquire, and an HA-format lock there marks the host HA for good and continues; HA requires haContained before any lock request, then lease.AcquireHA with the same-box proof; held and refused leases map to errLeaseHeld and errLeaseRefused (leaseError); +registry:Host, +whole:Route x7;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: the HA acquire's Proofs gain OwnerTerminated (b.ownerTerminated(ctx, rt)) beside SameBoxEmpty; one more whole:Route site passes the route to ownerTerminated; nothing new is read; the proof is consulted only by hafresh.DecideAcquire for another box's expired HA lock;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 7, two-box fleet test): the two legacy acquires call b.acquireLegacy(ctx, prefix), which is acquireLegacyLease exactly when ExecBackend.LeaseIdentity is nil and LeaseTTL is 0 (the agent never sets them), otherwise lease.AcquireAs with that identity and TTL. The classification, the HA path and every refusal are unchanged. Read sites unchanged (9). Agent, not root.
- `internal/host/schedule_wiring.go` `activatorDeliverer.deliverSelected`: legacy, task accepted-legacy. Basis: accepted-legacy;rev3=J1;basis=root-route
- `internal/schedule/runner.go` `Runner.fire`: hint, task E2. Basis: accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=root-route (main: J1) PROPOSED E46: captured claim selection and root journal mutation; root RPC outside service host exclusion; SQL/route data never grants root authority. Executing identity: service controller; root for inventory/retirement callbacks. moves-offline-fixes: with Skip set (only the agent's runner sets it, scheduleSkip), the row is read again before the token and a skipped host gets no token and no record; class and task unchanged
@@ -42,11 +44,12 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/activator/haadopt.go:ExecBackend.adoptionCurrent`: reads +registry:Account ×2, +registry:App ×2, +registry:DBPath ×2, +registry:HoldOp, +registry:Host, +registry:ImportGate, +registry:Kind ×2, +registry:Replica, +registry:Status, +registry:Tunnel, +whole:Pair, +whole:Route ×3; written legacy, accepted-legacy, frozen
- new `internal/activator/haadopt.go:ExecBackend.adoptionWake`: reads +registry:Sequence ×2, +registry:WakeDigest ×3, +whole:HAWakeImport ×7; written legacy, accepted-legacy, frozen
-- new `internal/activator/haadopt.go:ExecBackend.bindDutyLifetime`: reads +registry:Host ×3, +registry:Revision, +whole:DutyState ×3, +whole:Route; written legacy, accepted-legacy, frozen
+- new `internal/activator/haadopt.go:ExecBackend.bindDutyLifetime`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/activator/haadopt.go:Service.AdoptHost`: reads +registry:AcquiredGeneration ×7, +registry:DepartureIID ×2, +registry:DepartureRef ×2, +registry:ExpectedPair, +registry:Host ×18, +registry:Lifetime ×2, +registry:LockETag, +registry:LockGeneration ×2, +registry:Phase ×9, +registry:Receipt, +registry:Revision ×2, +registry:Sequence ×2, +registry:WakeDigest ×2, +whole:HAAdoption ×2, +whole:HAWakeImport ×8, +whole:Pair ×4, +whole:Route ×17; written legacy, accepted-legacy, frozen
- new `internal/activator/haadopt.go:Service.adoptionAwakeSuccessor`: reads +registry:Host ×2, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/activator/haadopt.go:adoptionBackend`: reads +whole:Route ×2; written legacy, accepted-legacy, frozen
- new `internal/activator/haadopt.go:adoptionPair`: reads +registry:Incarnation, +registry:ServingSeq; written legacy, accepted-legacy, frozen
+- new `internal/activator/haadopt.go:bindDutyLifetime`: reads +registry:Host ×3, +registry:Revision, +whole:DutyState ×3, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/activator/haduties.go:DutyForTick`: reads +whole:Timer; written legacy, accepted-legacy, frozen
- new `internal/activator/haduties.go:Service.Duty`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/activator/haduties.go:Service.WithDuty`: reads +registry:Host ×2, +whole:Route ×3; written legacy, accepted-legacy, frozen
@@ -62,14 +65,16 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/edge/wakeplacement.go:Edge.DutySnapshot`: reads +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/host/runs.go:runsWorker.dutyStillOwned`: reads +registry:HA, +registry:Host, +whole:Route; written legacy, accepted-legacy, frozen
- new `internal/host/runs.go:runsWorker.pickupOwned`: reads +whole:Route ×5; written legacy, accepted-legacy, frozen
-- new `internal/hostfiles/wake.go:RegistryWake`: reads +registry:Timers ×2, +whole:HAWakeImport ×2, +whole:Timer ×2; written legacy, accepted-legacy, frozen
-- new `internal/registry/ha_departures.go:Registry.CompareHAAdoption`: reads +registry:AcquiredGeneration ×2, +registry:Changed, +registry:Incarnation, +registry:Lifetime ×2, +registry:LockETag, +registry:LockGeneration ×2, +registry:Phase ×6, +registry:Receipt, +registry:Sequence, +registry:ServingSeq, +registry:WakeDigest, +registry:remote ×2, +whole:HAAdoption ×2, +whole:Pair ×2, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
-- new `internal/registry/ha_departures.go:Registry.HAAdoption`: reads +file:QueryRowContext, +registry:AcquiredGeneration, +registry:Adoption, +registry:Changed, +registry:DepartureIID, +registry:DepartureRef, +registry:LockETag, +registry:LockGeneration, +registry:Phase, +registry:Sequence, +registry:WakeDigest, +registry:remote ×2, +registry:sql, +whole:HAAdoption ×3, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
-- new `internal/registry/ha_departures.go:Registry.ImportHAWake`: reads +file:QueryRowContext ×2, +registry:DepartureIID ×3, +registry:DepartureRef ×3, +registry:Import, +registry:Incarnation, +registry:Lifetime ×4, +registry:LockETag ×3, +registry:LockGeneration ×3, +registry:Receipt ×3, +registry:Revision, +registry:Sequence, +registry:ServingSeq, +registry:WakeDigest ×2, +registry:remote ×2, +whole:HAWakeImport ×4, +whole:Pair ×4, +whole:claimTransaction, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
-- new `internal/registry/ha_departures.go:Registry.ReplaceHAWake`: reads +registry:remote ×2, +whole:HAWakeImport ×4, +whole:claimTransaction, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
-- new `internal/registry/ha_departures.go:Registry.migrateHAAdoptions`: reads +file:Exec, +registry:sql; written legacy, accepted-legacy, frozen
-- new `internal/registry/ha_departures.go:ValidateHAWake`: reads +registry:Attempts, +registry:ClaimOwnership, +registry:DueAt, +registry:Host, +registry:Kind, +registry:LastAt, +registry:Name ×3, +registry:NextAt, +registry:NextDue, +registry:Path ×5, +registry:Registration, +registry:Replication, +registry:Spec, +registry:Timers, +whole:ClaimOwnership, +whole:Timer; written legacy, accepted-legacy, frozen
-- new `internal/registry/ha_departures.go:replaceHAWake`: reads +file:QueryRowContext ×2, +registry:Attempts, +registry:ClaimIncarnation, +registry:ClaimOwner, +registry:ClaimOwnership ×3, +registry:ClaimRowID ×2, +registry:ClaimStamp, +registry:CreatedAt, +registry:DueAt, +registry:ExpectedPair ×3, +registry:Incarnation, +registry:Kind ×2, +registry:LastAt, +registry:LastMs, +registry:LastStatus, +registry:Lifetime, +registry:Name, +registry:NextAt, +registry:NextDue, +registry:Path, +registry:Registration ×2, +registry:Replication, +registry:ServingSeq, +registry:Spec, +registry:Timers, +whole:ClaimOwnership ×3, +whole:Pair ×3, +whole:Timer; written legacy, accepted-legacy, frozen
+- new `internal/hostfiles/wake.go:RegistryWake`: reads +whole:HAWakeImport ×3; written legacy, accepted-legacy, frozen
+- new `internal/hostfiles/wake.go:registryWake`: reads +registry:Timers ×2, +whole:HAWakeImport, +whole:Timer ×2; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_departures.go:Registry.CompareHAAdoption`: reads +registry:AcquiredGeneration ×2, +registry:Binding, +registry:Changed, +registry:Incarnation, +registry:Lifetime ×2, +registry:LockETag, +registry:LockGeneration ×2, +registry:Phase ×6, +registry:Receipt, +registry:Sequence, +registry:ServingSeq, +registry:WakeDigest, +registry:remote ×2, +whole:HAAdoption ×2, +whole:Pair ×2, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_departures.go:Registry.HAAdoption`: reads +file:QueryRowContext, +registry:AcquiredGeneration, +registry:Adoption, +registry:Binding, +registry:Changed, +registry:DepartureIID, +registry:DepartureRef, +registry:LockETag, +registry:LockGeneration, +registry:Phase, +registry:Sequence, +registry:WakeDigest, +registry:remote ×2, +registry:sql, +whole:HAAdoption ×3, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_departures.go:Registry.ImportHAWake`: reads +file:QueryRowContext ×2, +registry:DepartureIID ×3, +registry:DepartureRef ×3, +registry:Import, +registry:Incarnation, +registry:Lifetime ×4, +registry:LockETag ×3, +registry:LockGeneration ×3, +registry:Receipt ×4, +registry:Revision, +registry:Sequence, +registry:ServingSeq, +registry:WakeDigest ×2, +registry:remote ×2, +whole:HAWakeImport ×4, +whole:Pair ×4, +whole:claimTransaction, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_departures.go:Registry.ReplaceHAWake`: reads +registry:ClaimOwnership ×2, +registry:Host ×2, +registry:Replication ×2, +registry:Timers, +registry:remote ×2, +whole:ClaimOwnership ×2, +whole:HAWakeImport ×3, +whole:Timer, +whole:claimTransaction, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_departures.go:Registry.migrateHAAdoptions`: reads +file:QueryRowContext; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_departures.go:ValidateHAWake`: reads +registry:Attempts ×2, +registry:ClaimOwnership ×2, +registry:DueAt ×2, +registry:Host ×2, +registry:Kind ×2, +registry:LastAt ×2, +registry:Name ×5, +registry:NextAt ×2, +registry:NextDue ×2, +registry:Path ×7, +registry:Registration ×2, +registry:Replication ×2, +registry:Spec ×2, +registry:Timers, +whole:ClaimOwnership ×2, +whole:Timer; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_departures.go:replaceHAWake`: reads +file:QueryRowContext ×2, +file:Read, +registry:Attempts, +registry:ClaimIncarnation, +registry:ClaimOwner, +registry:ClaimOwnership ×3, +registry:ClaimRowID ×2, +registry:ClaimStamp, +registry:CreatedAt, +registry:DueAt, +registry:ExpectedPair ×3, +registry:Incarnation, +registry:Kind ×2, +registry:LastAt, +registry:LastMs, +registry:LastStatus, +registry:Lifetime, +registry:Name, +registry:NextAt, +registry:NextDue, +registry:Path, +registry:Registration ×4, +registry:Replication, +registry:ServingSeq, +registry:Spec, +registry:Timers, +whole:ClaimOwnership ×3, +whole:Pair ×3, +whole:Timer; written legacy, accepted-legacy, frozen
+- new `internal/registry/ha_duties.go:Registry.AdvanceHADuty`: reads +registry:remote ×2, +registry:sql, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
- new `internal/registry/ha_duties.go:Registry.BindHADuty`: reads +registry:Changed, +registry:Incarnation, +registry:ServingSeq, +registry:remote ×2, +registry:sql, +whole:Pair ×2, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
- new `internal/registry/ha_duties.go:Registry.CompareDuty`: reads +registry:Basis ×6, +registry:Changed, +registry:HolderEpoch, +registry:HolderIID, +registry:HolderRef, +registry:NotBefore ×2, +registry:ViewKey, +registry:remote ×2, +registry:sql, +whole:DutyState ×2, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
- new `internal/registry/ha_duties.go:Registry.HADuty`: reads +file:QueryRow, +registry:Basis, +registry:Changed, +registry:Duty, +registry:HolderEpoch, +registry:HolderIID, +registry:HolderRef, +registry:NotBefore, +registry:Revision ×2, +registry:ViewKey, +registry:remote ×2, +registry:sql, +whole:DutyState ×3, +whole:remoteClient ×2; written legacy, accepted-legacy, frozen
@@ -79,11 +84,10 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/schedule/runner.go:OldDutyTick`: reads +registry:Kind, +whole:Timer; written legacy, accepted-legacy, frozen
- new `internal/schedule/runner.go:Runner.fireOwned`: reads +registry:Host ×4, +registry:Name ×2, +registry:Spec ×2, +whole:Route ×9, +whole:Timer ×8; written legacy, accepted-legacy, frozen
- other `changed registry schema`: closed only if it is the registry schema (re-pinned)
-- reads `internal/activator/hawake.go:ExecBackend.acquireClassified`: +registry:Basis, +registry:Revision, +whole:DutyState, +whole:Route ×2; keeps legacy, task accepted-legacy
- reads `internal/host/runs.go:runsWorker.pickup`: +registry:HA, +whole:Route; keeps legacy, task accepted-legacy
- reads `internal/hostfiles/wake.go:ImportWake`: +whole:HAWakeImport, -whole:Route, -whole:Timer ×3; keeps legacy, task accepted-legacy
-- reads `internal/registry/remote_dispatch.go:Registry.dispatchRemote`: +registry:Adoption ×2, +registry:Changed ×5, +registry:Duty ×3, +registry:Expected, +registry:Host ×8, +registry:Import, +registry:Lifetime ×5, +registry:Pair ×3, +registry:Receipt, +registry:Revision ×3, +registry:Wake ×2, +whole:DutyState ×3, +whole:HAAdoption ×2, +whole:HAWakeImport ×2, +whole:Pair ×3; keeps hint, task E2
+- reads `internal/registry/remote_dispatch.go:Registry.dispatchRemote`: +registry:Adoption ×2, +registry:Changed ×5, +registry:Duty ×3, +registry:Expected, +registry:Host ×9, +registry:Import, +registry:Lifetime ×5, +registry:Pair ×3, +registry:Receipt, +registry:Revision ×3, +registry:Wake ×2, +whole:DutyState ×3, +whole:HAAdoption ×2, +whole:HAWakeImport ×2, +whole:Pair ×3; keeps hint, task E2
-Seal: `7e30dee4fb52370555ad173512d7f03782f0fbed725a8a6bf4f7e31f52c23668` → `7aa71b5794417f163f16727f0e5692b6fd6dd838037b42dbd8b2150f24043f9e`.
+Seal: `7e30dee4fb52370555ad173512d7f03782f0fbed725a8a6bf4f7e31f52c23668` → `9356045944d3461023a45c398a16754ac25730350c4dfe27794f4396d564d54e`.
Overlay: `internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv`, appended to `internal/provision/testdata/plan14-root-reads-chain.tsv`.
diff --git a/docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md b/docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md
index d270bc756..b98ea3e1c 100644
--- a/docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md
+++ b/docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md
@@ -4,7 +4,7 @@ internal/activator/activator.go:type Service Add the B2 DutyStore interface fiel
internal/activator/activator.go:Service.ServeScheduled Run the local scheduled request under WithDuty and retain existing HTTP refusal text; add route arguments to background admission and error handling. No forwarding.
internal/activator/activator.go:Service.wake Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence.
internal/activator/harelease.go:Service.releaseHAClean Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged.
-internal/activator/hawake.go:ExecBackend.acquireClassified Select the restriction-only AcquireHAForDuty for background contexts, including sticky HA reclassification; observe successful ordinary acquires to clear stale suppression. Add a whole-route observer argument; no new authority. B2 binds the current authoritative lifetime and advances local revision before HA acquire, invalidating concurrent adoption I/O. Ordinary lease authority and restore ordering remain unchanged.
+internal/activator/hawake.go:ExecBackend.acquireClassified Select the restriction-only AcquireHAForDuty for background contexts, including sticky HA reclassification; observe successful ordinary acquires to clear stale suppression. Add a whole-route observer argument; no new authority. B2 binds the current authoritative lifetime and advances local revision before HA acquire, invalidating concurrent adoption I/O. Ordinary lease authority and restore ordering remain unchanged. B2 fix r1: advance the local duty revision with an unconditional registry UPDATE before acquire; remove pre-acquire lifetime CAS and basis clearing. Failed acquire preserves adopted state. Existing lease validation and successful-acquire observer remain.
internal/edge/wakeplacement.go:homeMap.wakeSnapshot Expose fresh compatible peer membership separately from per-host eligible serving entries for suppression invalidation. Existing home/pool/scope filtering remains; no new reads.
internal/host/agent.go:runAgent Wire Service.SetDutyView to the live edge DutySnapshot in the ready callback. No new read; no new loop or cloud operation. B2 wires the registry as the persistent DutyStore before service startup; no new cloud or filesystem path.
internal/host/schedule_wiring.go:newScheduleDeps Wire Runner.WithDuty before token access through the existing Service. No new read.
@@ -30,26 +30,29 @@ internal/registry/registry.go:Registry.migrate Create local HA duty/replay table
internal/activator/hatakeover.go:ExecBackend.ownerTerminated Read route Host for structured departure-finalize telemetry; retain the same confirmation callback and visitor alarm behavior.
internal/activator/haadopt.go:ExecBackend.adoptionCurrent Read the current registry route and authoritative lifetime index/record; compare Pair, account, app, DB path, kind and admission fields before effects. Refusal only.
internal/activator/haadopt.go:ExecBackend.adoptionWake Read only the configured files manifest and its validated wake object. Validate wire state and reuse only bytes already checked against an equal digest; never fetch DB, file-tree or secret objects.
-internal/activator/haadopt.go:ExecBackend.bindDutyLifetime Read existing local duty revision and bind only current record facts to the registry Pair; changed binding invalidates old authority and receipt access.
+internal/activator/haadopt.go:ExecBackend.bindDutyLifetime Read existing local duty revision and bind only current record facts to the registry Pair; changed binding invalidates old authority and receipt access. B2 fix r1: delegate to the shared DutyStore binding helper; the same current-record precondition and guarded Pair/revision binding remain.
internal/activator/haadopt.go:Service.AdoptHost Serialize through the existing host operation state. Read local route/revision/receipt plus configured lock/manifest/wake objects; use only restricted ordinary acquire, exact guarded restore, ordinary unclean release and verified readback for adoption. No process launch, local-copy reuse or secret access.
internal/activator/haadopt.go:adoptionBackend Select the existing ExecBackend through SplitBackend using the route; no I/O.
internal/activator/haadopt.go:adoptionPair Read route Incarnation and ServingSeq for transaction comparisons; no I/O.
-internal/activator/haduties.go:Service.dutyState Read the current registry route and existing authoritative lifetime before binding/loading the persistent DutyStore. Pending import never produces adopted basis.
+internal/activator/haduties.go:Service.dutyState Read the current registry route and existing authoritative lifetime before binding/loading the persistent DutyStore. Pending import never produces adopted basis. B2 fix r1: validate current route and authoritative lifetime for every DutyStore, including wrapped and remote stores; use interface Get/HADuty/BindHADuty instead of a concrete registry assertion. Existing record and local registry reads only.
internal/activator/haduties.go:Service.saveDuty DutyState is now an alias of registry.DutyState, so existing revision and state reads enter the registry census. Save behavior and CAS remain advisory.
internal/activator/haduties.go:dutyRefusal DutyState alias makes the existing holder and deadline reads visible to the registry census; refusal behavior unchanged.
-internal/hostfiles/wake.go:RegistryWake Convert wire timers into registry rows, checking wake version/host and shared timer grammar before effects; no I/O.
-internal/registry/ha_departures.go:Registry.CompareHAAdoption Read local duty revision, lifetime/Pair, binding and exact receipt phase before a transactional legal phase transition; adopted basis is written only by the central finalizer after verified marker readback.
-internal/registry/ha_departures.go:Registry.HAAdoption Query local receipt progress only while its binding matches the active route lifetime; remote transport returns the same result. Historical receipts remain inaccessible after retirement.
-internal/registry/ha_departures.go:Registry.ImportHAWake Validate all state then transactionally compare current Pair, lifetime, binding, revision and receipt before replacing rows and recording pending authority. Replays never replace rows.
-internal/registry/ha_departures.go:Registry.ReplaceHAWake Validate and atomically replace the acquired lease wake state; local receipt or revision never outranks that manifest. Optional lifetime/Pair guard prevents replacement across retirement.
-internal/registry/ha_departures.go:Registry.migrateHAAdoptions Create the host-receipt table in the existing registry connection; no new path, external object, queue or termination evidence.
-internal/registry/ha_departures.go:ValidateHAWake Read supplied timer/wake fields for name, path, duplicate, kind/spec and replication validation. Reuse the extracted scheduling grammar; no I/O.
-internal/registry/ha_departures.go:replaceHAWake Query current route and optional lifetime/Pair under one SQLite transaction; replace timers, next_due and replication together. Preserve existing claim ownership when enabled; never resolve an external path.
+internal/hostfiles/wake.go:RegistryWake Convert wire timers into registry rows, checking wake version/host and shared timer grammar before effects; no I/O. B2 fix r1: adoption keeps strict validation after shared wire conversion; no I/O added.
+internal/registry/ha_departures.go:Registry.CompareHAAdoption Read local duty revision, lifetime/Pair, binding and exact receipt phase before a transactional legal phase transition; adopted basis is written only by the central finalizer after verified marker readback. B2 fix r1: require the caller receipt Binding as well as the current live binding, Pair, revision and phase. An old receipt cannot finalize a fresh binding even with identical lock fields.
+internal/registry/ha_departures.go:Registry.HAAdoption Query local receipt progress only while its binding matches the active route lifetime; remote transport returns the same result. Historical receipts remain inaccessible after retirement. B2 fix r1: read and return the current receipt Binding over the existing registry transport; old bindings remain inaccessible to live adoption.
+internal/registry/ha_departures.go:Registry.ImportHAWake Validate all state then transactionally compare current Pair, lifetime, binding, revision and receipt before replacing rows and recording pending authority. Replays never replace rows. B2 fix r1: find replay receipts only within the current binding; an older binding remains history and permits a new guarded import. Preserve Pair/lifetime/revision checks and no authority from import.
+internal/registry/ha_departures.go:Registry.ReplaceHAWake Validate and atomically replace the acquired lease wake state; local receipt or revision never outranks that manifest. Optional lifetime/Pair guard prevents replacement across retirement. B2 fix r1: ordinary restore permits legacy timer grammar and empty registration while keeping host, replication and claim-ownership checks; adoption validates strictly before reaching this exact replacement. No new root path.
+internal/registry/ha_departures.go:Registry.migrateHAAdoptions Create the host-receipt table in the existing registry connection; no new path, external object, queue or termination evidence. B2 fix r1: transactionally migrate the existing receipt table to a binding-inclusive primary key, copying all existing rows and phases. Read SQLite table metadata for idempotence; no external path read.
+internal/registry/ha_departures.go:ValidateHAWake Read supplied timer/wake fields for name, path, duplicate, kind/spec and replication validation. Reuse the extracted scheduling grammar; no I/O. B2 fix r1: preserve strict adoption validation and report host and the specific failing timer/wake field. Additional field reads format diagnostics only; no I/O.
+internal/registry/ha_departures.go:replaceHAWake Query current route and optional lifetime/Pair under one SQLite transaction; replace timers, next_due and replication together. Preserve existing claim ownership when enabled; never resolve an external path. B2 fix r1: synthesize a cryptographically random registration for an empty legacy registration inside the existing atomic replacement. rand.Read is OS entropy, not a tenant-named file. Nonempty registrations and claim attribution remain unchanged.
internal/registry/ha_duties.go:Registry.BindHADuty Compare active route Pair and captured revision before changing its authoritative lifetime binding; clear basis and suppression on change.
internal/registry/ha_duties.go:Registry.CompareDuty Compare lifetime/revision/active state and persist advisory basis/suppression. Cannot create adopted basis; only preserve a basis already finalized.
internal/registry/ha_duties.go:Registry.HADuty Read local duty metadata from the existing registry or its remote transport; mismatched/inactive lifetime returns no authority.
internal/registry/ha_duties.go:Registry.LoadDuty Load persisted duty state or initialize an unbound live row with captured revision; refuse an already different binding.
internal/registry/ha_duties.go:Registry.migrateHADuties Create local duties and revision/binding triggers. Timer and relevant route mutations advance revision in their own transaction; retirement/recreation clears authority and suppression.
-internal/hostfiles/wake.go:ImportWake Delegate validated conversion to one atomic ReplaceHAWake transaction instead of three independent writes; no lease or file effect.
-internal/registry/remote_dispatch.go:Registry.dispatchRemote Dispatch typed duty, import, exact replacement and guarded receipt operations through the existing service-user registry transport, preserving comparisons and errors.
+internal/hostfiles/wake.go:ImportWake Delegate validated conversion to one atomic ReplaceHAWake transaction instead of three independent writes; no lease or file effect. B2 fix r1: ordinary acquired-lease restore converts legacy wire rows without adoption-only timer grammar restrictions. Version, host and replication remain checked before the atomic exact replacement.
+internal/registry/remote_dispatch.go:Registry.dispatchRemote Dispatch typed duty, import, exact replacement and guarded receipt operations through the existing service-user registry transport, preserving comparisons and errors. B2 fix r1: dispatch AdvanceHADuty through the existing service-user registry channel and error mapping, reading the request Host only. Read-only method allowlist remains unchanged.
internal/activator/haadopt.go:Service.adoptionAwakeSuccessor Read the configured lock and current route/lifetime to recognize an already awake local successor with strictly later generation and independently bound ref/iid. Recheck HoldsAwake before returning Superseded; no registry or lease writes.
+internal/activator/haadopt.go:bindDutyLifetime B2 fix r1: shared interface-based local duty lookup and guarded lifetime binding, using the current record validated by the caller. Reads existing host, revision and Pair; no new path or authority.
+internal/hostfiles/wake.go:registryWake B2 fix r1: shared pure wire conversion validates version, host and replication, wraps ErrHAWake with host and failing field, and preserves all timer fields. No path or I/O added.
+internal/registry/ha_duties.go:Registry.AdvanceHADuty B2 fix r1: existing registry connection unconditionally increments revision for the active host before ordinary acquire, without changing lifetime, binding or authority basis. Same remote transport; no new path.
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index 9d863a418..e17322c54 100644
--- a/internal/provision/testdata/plan14-root-reads-chain.tsv
+++ b/internal/provision/testdata/plan14-root-reads-chain.tsv
@@ -67,4 +67,4 @@ plan14-root-reads-domains-zone-credentials.tsv 3b6cd29b87d2728254936722ab45fdadc
plan14-root-reads-devbox-identity.tsv 66a5df05f18f70c3162ad05aa316c1e69c0f053d54f8b682262c266d6aa50772
plan14-root-reads-region-ha-home-placement.tsv b0304f75d2c5f1b9818d0f282b89c00c00b33e3f9bf974031687527c191fb161
plan14-root-reads-storedoor-stream-get.tsv 7e30dee4fb52370555ad173512d7f03782f0fbed725a8a6bf4f7e31f52c23668
-plan14-root-reads-region-ha-p1b3b-t.tsv 7aa71b5794417f163f16727f0e5692b6fd6dd838037b42dbd8b2150f24043f9e
+plan14-root-reads-region-ha-p1b3b-t.tsv 9356045944d3461023a45c398a16754ac25730350c4dfe27794f4396d564d54e
diff --git a/internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv b/internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv
index f7be82efd..2a0839962 100644
--- a/internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv
+++ b/internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv
@@ -1,6 +1,6 @@
# Census overlay region-ha-p1b3b-t, written by census-propose (#369). census-ruling-region-ha-p1b3b-t, approved on #280 before the merge; the approval card is docs/superpowers/notes/census-proposal-region-ha-p1b3b-t.md.
-# 7 body, 6 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
-# 43 new dispositions: 4 reads re-frozen at their disposition with the claim, 38 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
+# 7 body, 7 sites, 9 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 45 new dispositions: 3 reads re-frozen at their disposition with the claim, 41 new units frozen accepted-legacy, 0 quiet units retired while they read nothing, 1 other.
@legacy 76aeefcc3063f48d5e854bd81482a114455b6182ba9544399042a8cb07dbb79a internal/activator/activator.go Service.begin legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-edge-request-records;basis=gains a req *http.Request parameter and one edge.MarkWoke(req) call on the path that starts a wake, so the edge's request record can say which request woke the app; no read added;rev3=census-ruling-remote-instance-metrics;basis=the entries-map insertion goes through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: before an entry is made, a resident inside its backoff answers errResidentBackoff, and a rootfs row must pass the locked admission (rootfsRefusalLocked) and then the backend's rootfs gates off a.mu (rootfsStartRefusal, within the request's wait bound) before Acquire, Restore or the live link; the gate key is recorded on the entry; adds refusals before the lease only;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p1b3b-t;basis=Carry background-duty provenance into a new singleflight entry; a visitor waiting on its deferred refusal retries with ordinary visitor authority. No read added. registry:Host@1146,registry:Host@1457,registry:Host@3513,registry:Host@3670,registry:Host@562,whole:Route@2011,whole:Route@2098,whole:Route@2179,whole:Route@2440,whole:Route@2550,whole:Route@2724,whole:Route@3522,whole:Route@3529 6dfb9ff708ed5fc62b5184ff03fb2df8e1e9fe5d84244b4c9979f3c27f3d7168
@legacy ee74269fe59778aca77cdc1c5ccca3fb0cb3322a7e8de49686c4966a86388d6c internal/activator/activator.go Service.sweepOnce legacy accepted-legacy accepted-legacy;rev3=PROPOSED-seed;basis=census-ruling-FS-R6; registry remains legacy; PROPOSED-plans-2-box-limits: the sweep also narrows an entry's idle window to its account's plan idle through the SetIdleFor hook (never lengthens it; always-on workers and held probe entries are untouched; the hibernate, inflight and held-for-tick guards are unchanged).;rev3=census-ruling-plans-4c-box-throttle;basis=after the worker max_run branch, stops a non-worker entry past the plans continuous-awake ceiling (maxRunFor, passed the row), busy or not, never mid-command (plans 4c). One more whole-row read: the row handed to the hook, as idleFor already is. This bypasses the inflight and held-for-tick protections the idle stop keeps, on purpose: escalated by Astra and ACCEPTED by Paul (census owner), 2026-10-25.;rev3=census-ruling-plans-4d-lapse;basis=stops a live entry the turned-off hook names (never mid-command, never a move's active probe), stands down an exited worker it names instead of restarting it (Astra finding 4), and skips such rows in the due loop and the always-on arm so they are not woken (plans 4d). Four more whole-row reads: the row handed to the hook (a.disabled), as idleFor and maxRunFor already are. Only stops or skips.;rev3=census-ruling-remote-instance-metrics;basis=its two entries-map insertions go through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more call at the top, a.retryOwedMarkers() (harelease.go), which starts at most one background lease.RetryPending pass over owed region HA release markers, off a.mu; the due query, idle, max-run and lapse logic are unchanged; the same 38 sites, no read added; merge of origin/main d7ae1d76: main's change is kept as main has it (census-ruling-remote-instance-metrics: its two entries-map insertions go through putEntryLocked); this branch's change is the same as above; read sites the same 38, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a resident (Route.Resident) is never stopped for idleness or by the continuous-awake ceiling; the due-wake check is left on Hibernate (comment); stops less, not more;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: an entry whose host has a release record open (the in-memory a.releaseOps[e.host]) is not stopped by its plan's turn-off, by idleness or by the continuous-awake ceiling until the record goes; one more sweep pass, reapReleaseOpsLocked, retries an unproven release's stop (through finishPendingStops); the same 39 read sites, no read added; stops less, not more;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 9 (PF-18): the four checks that left an entry with a run attached alone (e.cmd == nil) now read holdsAttachedLocked(e), a run or a session attached, so a session holds the idle sleep, the plans awake ceiling, the plans turned-off stop and the turned-off worker's stand-down as a run does; in-memory under a.mu; only keeps an entry awake longer; no read added, read sites unchanged;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p1b3b-t;basis=Tag due entries as background duties; the wake evaluates the gate off a.mu before acquire or token preparation. No read added. registry:Hibernate@10805,registry:Hibernate@14563,registry:Hibernate@23821,registry:Hibernate@5680,registry:Hibernate@7879,registry:Host@23890,registry:Host@23948,registry:Host@24415,registry:Host@24508,registry:Host@25260,registry:Host@25361,registry:Host@26425,registry:Host@26712,registry:Host@26768,registry:NextDue@25198,registry:Status@23837,whole:Route@10807,whole:Route@11666,whole:Route@14565,whole:Route@16498,whole:Route@18208,whole:Route@18398,whole:Route@18691,whole:Route@18863,whole:Route@19010,whole:Route@23221,whole:Route@23997,whole:Route@24912,whole:Route@25269,whole:Route@25276,whole:Route@26240,whole:Route@26541,whole:Route@26745,whole:Route@5491,whole:Route@5682,whole:Route@7712,whole:Route@7881,whole:Route@8074,whole:Route@8537 bb62b361b6dff7e47fa68665994a5b73860a499107a67c32af002c608bc936fd
@legacy ebed63ce52f359e7554f0fa5c285656548b89ff2aa30032636c28ec98d37fe65 internal/edge/wakeplacement.go homeMap.wakeSnapshot legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3a;basis=Project cold-wake candidates from one immutable cached edges fold using the local route's canonical host, release.RouteAccount and app. Reads only in-memory route fields, cached publication additions and mirrored signing keys; no filesystem, registry, store or root authority added. Reject malformed placement evidence independently of the unchanged holder decoder; preserve explicit local safety denials even when stale.;rev3=census-ruling-region-ha-home-placement;basis=none: accepts the omitted/empty home placement, refuses explicit null; same in-memory fold reads, no new read;rev3=census-ruling-region-ha-p1b3b-t;basis=Expose fresh compatible peer membership separately from per-host eligible serving entries for suppression invalidation. Existing home/pool/scope filtering remains; no new reads. registry:App@2370,registry:Host@1412,whole:Route@1443 35b52d47574c903f65776ba3c476ab38457c93caf027279263774e084023c03d
@@ -8,17 +8,18 @@
@legacy ae8a982ca0849a01741e5577c326fc7b4c8fc2fdc0617de90f4b4a58afadc41f internal/registry/registry.go Registry.migrate legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), on every registry open; a box CLI verb that opens the registry directly runs it as whoever runs the verb: census-ruling-seeded-instances's body with two more columns added to routes (incarnation and serving_seq, INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule); self-serve moves 1 Task 7;rev3=census-ruling-rootfs-apps-2;basis=one more ALTER TABLE, routes ADD COLUMN runtime TEXT NOT NULL DEFAULT '', beside main's rate_limit, assets_off, asset_gen, incarnation and serving_seq (the last four from the merges of origin/main 3c33f2eb and 953b9fda); the same sixteen sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328/#329 plan 1 Task 4: three more ALTER TABLE statements in the existing loop, routes ADD COLUMN egress_allow, size and policy_expires_at, each TEXT NOT NULL DEFAULT '' and idempotent through the duplicate-column rule; the same sixteen sites, no read added.;rev3=census-ruling-region-ha-p1a;basis=one more ALTER TABLE in the existing loop: routes ADD COLUMN ha INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule; the same sixteen sites, no read added;rev3=census-ruling-ha-p1a-433;basis=the registry's SQLite side as carlos (agent, registry child; a box CLI verb that opens the registry directly runs it as whoever runs it), on every registry open: the ALTER TABLE routes statements are now built from the one migration definition routeAddedColumns (addedColumn name, type, default; review r1 P2): for each entry without the Claim mark, "ALTER TABLE routes ADD COLUMN " + spec(), byte for byte the statements main runs, in main's order, under the same duplicate-column rule. +registry:Claim is that mark, +whole:addedColumn the struct. Every name, type and default is an in-binary literal; no statement added, removed or changed; no read added.;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: one more CREATE TABLE IF NOT EXISTS regional_domains (host TEXT PRIMARY KEY, target, account, app, region TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL DEFAULT 0), beside wildcard_domains; the added sites are that statement (+file:Exec, +registry:sql), an in-binary literal; additive, no existing statement changed;rev3=census-ruling-region-ha-p1b3b-t;basis=Create local HA duty/replay tables and revision triggers in the existing registry connection; no new database path. file:Exec@1694,file:Exec@2248,file:Exec@3186,file:Exec@3465,file:Exec@4328,file:Exec@4504,file:Exec@51,file:Exec@600,file:Exec@963,registry:Claim@525,registry:sql@1694,registry:sql@2248,registry:sql@3186,registry:sql@3465,registry:sql@4328,registry:sql@4504,registry:sql@51,registry:sql@600,registry:sql@963,whole:addedColumn@500 c1f7b84329329b6e6508187c7b17d8b5917257800ddb58d60d6e4500dd9d97ab
@legacy 0ba72f271652762c5d3515d89457c2a91ea61b7f21dcd3c8cb2c62db49012ee2 internal/activator/haadopt.go ExecBackend.adoptionCurrent legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the current registry route and authoritative lifetime index/record; compare Pair, account, app, DB path, kind and admission fields before effects. Refusal only. registry:Account@222,registry:Account@237,registry:App@251,registry:App@262,registry:DBPath@272,registry:DBPath@286,registry:HoldOp@322,registry:Host@128,registry:ImportGate@342,registry:Kind@299,registry:Kind@311,registry:Replica@366,registry:Status@401,registry:Tunnel@381,whole:Pair@214,whole:Route@174,whole:Route@202,whole:Route@487 5254a172500177ca70cdaa8a04eca26977bd3494d40354ac44904ad9dd4b9ff7
@legacy 9e1066b0701a2907ef3565ed3bb63789241af783a325fd8fa1c9f10d6568e806 internal/activator/haadopt.go ExecBackend.adoptionWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read only the configured files manifest and its validated wake object. Validate wire state and reuse only bytes already checked against an equal digest; never fetch DB, file-tree or secret objects. registry:Sequence@1148,registry:Sequence@745,registry:WakeDigest@1168,registry:WakeDigest@646,registry:WakeDigest@684,whole:HAWakeImport@1137,whole:HAWakeImport@1198,whole:HAWakeImport@548,whole:HAWakeImport@646,whole:HAWakeImport@684,whole:HAWakeImport@732,whole:HAWakeImport@778 492e282c3a6c817c6818226bbd554c7ecb02c284b828bceb86edb21670d5927a
-@legacy d56b3f146d98007386dcb8b9851ca3234be9f505224c1f51340115cf8bc9b5b3 internal/activator/haadopt.go ExecBackend.bindDutyLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read existing local duty revision and bind only current record facts to the registry Pair; changed binding invalidates old authority and receipt access. registry:Host@155,registry:Host@256,registry:Host@422,registry:Revision@289,whole:DutyState@202,whole:DutyState@327,whole:DutyState@361,whole:Route@278 a5a2a03c9f1695761901a08f2d4ce3d34c1384f6391336e176bf2446a20ffffc
+@legacy cf2302e7ec421ae1accbc18cfa570c46fbeef965c21077855db576f5f1b86636 internal/activator/haadopt.go ExecBackend.bindDutyLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read existing local duty revision and bind only current record facts to the registry Pair; changed binding invalidates old authority and receipt access. B2 fix r1: delegate to the shared DutyStore binding helper; the same current-record precondition and guarded Pair/revision binding remain. whole:Route@164 3c2b541b493ce0a7d41941c05de80319702d7004ad3f06c109c5c6ab774dad03
@legacy 87230d13977408a12363209f3d015f9710f289a016a0d1e04d930e01b92a9c42 internal/activator/haadopt.go Service.AdoptHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Serialize through the existing host operation state. Read local route/revision/receipt plus configured lock/manifest/wake objects; use only restricted ordinary acquire, exact guarded restore, ordinary unclean release and verified readback for adoption. No process launch, local-copy reuse or secret access. registry:AcquiredGeneration@2326,registry:AcquiredGeneration@2699,registry:AcquiredGeneration@3477,registry:AcquiredGeneration@4089,registry:AcquiredGeneration@4180,registry:AcquiredGeneration@4819,registry:AcquiredGeneration@4910,registry:DepartureIID@1797,registry:DepartureIID@5418,registry:DepartureRef@1761,registry:DepartureRef@5402,registry:ExpectedPair@7476,registry:Host@1162,registry:Host@1258,registry:Host@1330,registry:Host@1399,registry:Host@1665,registry:Host@2040,registry:Host@2543,registry:Host@2880,registry:Host@3267,registry:Host@5231,registry:Host@5652,registry:Host@5837,registry:Host@6389,registry:Host@7238,registry:Host@7540,registry:Host@8103,registry:Host@861,registry:Host@959,registry:Lifetime@5454,registry:Lifetime@7445,registry:LockETag@5489,registry:LockGeneration@1833,registry:LockGeneration@5501,registry:Phase@2658,registry:Phase@2675,registry:Phase@3017,registry:Phase@3055,registry:Phase@3111,registry:Phase@4121,registry:Phase@4213,registry:Phase@4763,registry:Phase@4851,registry:Receipt@5478,registry:Revision@2899,registry:Revision@5466,registry:Sequence@2803,registry:Sequence@2823,registry:WakeDigest@2762,registry:WakeDigest@2784,whole:HAAdoption@2916,whole:HAAdoption@5793,whole:HAWakeImport@2745,whole:HAWakeImport@5373,whole:HAWakeImport@5389,whole:HAWakeImport@5397,whole:HAWakeImport@5671,whole:HAWakeImport@7247,whole:HAWakeImport@7549,whole:HAWakeImport@7641,whole:Pair@2893,whole:Pair@5665,whole:Pair@7482,whole:Pair@7502,whole:Route@1128,whole:Route@1171,whole:Route@1178,whole:Route@138,whole:Route@193,whole:Route@2475,whole:Route@3177,whole:Route@4490,whole:Route@453,whole:Route@531,whole:Route@5320,whole:Route@6532,whole:Route@6577,whole:Route@6749,whole:Route@723,whole:Route@7334,whole:Route@889 08ea0276802063cdd4b011db9367a1884d197a0ce0b27442d6904898e973566e
@legacy b77a83881e9c9b4683781ea536a6fd51448f76689edad3203ddff8f135619e5b internal/activator/haadopt.go Service.adoptionAwakeSuccessor legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the configured lock and current route/lifetime to recognize an already awake local successor with strictly later generation and independently bound ref/iid. Recheck HoldsAwake before returning Superseded; no registry or lease writes. registry:Host@259,registry:Host@747,whole:Route@680 8f6636a01e491f63ba53fb1e59934574d1294455205938fda8ec9904cd96f53e
@legacy 17d2ac28599c58a17d0ffe8e4363aea230de40796debec2e9c6d6678a76a6991 internal/activator/haadopt.go adoptionBackend legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Select the existing ExecBackend through SplitBackend using the route; no I/O. whole:Route@143,whole:Route@148 e39ed566dc3449f24f809a034b0c042a36fa725ecc363d3278a724b3a35efbaa
@legacy 5af143443d17393af4faf8cd0acf844bbce0fb0351c42f114e554c957a333de6 internal/activator/haadopt.go adoptionPair legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route Incarnation and ServingSeq for transaction comparisons; no I/O. registry:Incarnation@88,registry:ServingSeq@116 f483f537f1c75292004bcdc934e45f153f92df6935e082a16af6aabcc6f2a43f
+@legacy 42542cb8831b1e94096defdc46f3d60fe5c081b5d19367ab02114c136e0ba5cc internal/activator/haadopt.go bindDutyLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B2 fix r1: shared interface-based local duty lookup and guarded lifetime binding, using the current record validated by the caller. Reads existing host, revision and Pair; no new path or authority. registry:Host@150,registry:Host@246,registry:Host@407,registry:Revision@279,whole:DutyState@197,whole:DutyState@317,whole:DutyState@351,whole:Route@268 e80fee0cc4bc3aae1f910a25a8e0e614a82f0c69bd5558e792895804d6a453c6
@legacy 33abbadcf662e15febe8dd2b8f8866c830890cc4bd4c77583470d246a9094d65 internal/activator/haduties.go DutyForTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the observed timer through the shared old-occurrence predicate; once-timers are never aged out. whole:Timer@120 f9a9c2fce154cf37b1d1e5ef03319ad0c4c546ad88a1aa78812b7401428995e5
@legacy 008e2ff03d5955fe5de43f0c98b7e5d7ec91773a58ed35544263401989edd905 internal/activator/haduties.go Service.Duty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Pass the local route into dutyInput and the pure chooser. Advisory decision only; no acquire or start. whole:Route@118 15122e8a380cccc304994a0f390ed0de98eb37a765d2362df73a0f6b79dae78e
@legacy 2506ebeb35560294d55dd2429da67f210297deb7283930c371c0ad3b3463e97e internal/activator/haduties.go Service.WithDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route host for owned-awake checks and pass provisioned managed instances to restricted singleflight wake before producer writes, including cached legacy rows that discover sticky HA at acquire. Other route kinds keep their path; no authority bypass. registry:Host@584,registry:Host@673,whole:Route@143,whole:Route@422,whole:Route@503 69e34dcb9430c114b0765adffc97be60b72ea939c5c38296bffd7a3bec0d804d
@legacy 09fd90e353664d4096e744d96b61a5726ee6fe1bbe332ab9eb714a3e3c71b9a1 internal/activator/haduties.go Service.allowDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Recheck lifetime and duty policy on every classified CAS round. Return a non-owner subtype only for a known foreign holder; self expiry and local denial remain deferred. Existing suppression writes and acquire restrictions retained; no read added. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:HolderRef@1126,registry:Host@1237,registry:Host@555,registry:NotBefore@471,registry:ViewKey@1156,whole:DutyState@1258,whole:DutyState@1262,whole:DutyState@1342,whole:DutyState@317,whole:DutyState@465,whole:DutyState@576,whole:DutyState@580,whole:Route@141,whole:Route@974 2ed5e21384e91dfe599e1267994579859a267c7b9ca3a0da77ce8f93a048a552
@legacy 485328c93be720d3f59b3520cf4bde01171b4ba402b548f345df0b535044bc8f internal/activator/haduties.go Service.dutyInput legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read HA classification/lifetime from the existing backend and route host, HA, replica, tunnel, import gate and status; read advisory DutyStore state and cached home projection outside a.mu. No new filesystem or bucket path. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:Basis@1148,registry:HA@244,registry:HolderEpoch@1383,registry:HolderIID@1225,registry:HolderIID@1427,registry:HolderRef@1161,registry:HolderRef@1211,registry:HolderRef@1413,registry:Host@1079,registry:Host@122,registry:Host@510,registry:Host@576,registry:ImportGate@690,registry:NotBefore@1453,registry:NotBefore@1509,registry:Replica@657,registry:Status@714,registry:Status@733,registry:Tunnel@671,registry:ViewKey@1256,whole:DutyState@1126,whole:DutyState@1537,whole:Route@149,whole:Route@216,whole:Route@312,whole:Route@604,whole:Route@885 9cdbbbd19a900153cc5dd6959366c5ec6042816dcb7f97b46d85476823eaf1c5
-@legacy 032a83a19a5315dae3d2a73c29cde2ad3ed0f7f4d0381904db7b53780d38abd4 internal/activator/haduties.go Service.dutyState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the current registry route and existing authoritative lifetime before binding/loading the persistent DutyStore. Pending import never produces adopted basis. whole:DutyState@767,whole:Route@255,whole:Route@354,whole:Route@462,whole:Route@638 06d446e724e6ea211612f0c35f5832c7766548008ba3ebbbedfb99b5fabd11f0
+@legacy 23b89f70a1efd1736d34d5d40c28415376fc896dc84286c58b54fae77df5939f internal/activator/haduties.go Service.dutyState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the current registry route and existing authoritative lifetime before binding/loading the persistent DutyStore. Pending import never produces adopted basis. B2 fix r1: validate current route and authoritative lifetime for every DutyStore, including wrapped and remote stores; use interface Get/HADuty/BindHADuty instead of a concrete registry assertion. Existing record and local registry reads only. whole:DutyState@657,whole:Route@203,whole:Route@295,whole:Route@399,whole:Route@579 89eab5cb43c9c4b3de9914d7b242e11ca20b8a574b4d812c39ff3b0efc0189e9
@legacy 59652118acae1b2772a4525629210093270ebd9e18b0d80fc34a1b717ea95046 internal/activator/haduties.go Service.rememberDutyAcquired legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route host to clear peer suppression only after ordinary acquire succeeds, including visitor wakes. Local advisory state cannot authorize the lease. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:Host@163,registry:Host@234,whole:DutyState@255 74cb5761e354994ad43172ae0f4c4e4c5410a2792492f69d32d100c2dbabed46
@legacy 4d9325894f840ab9dd2c1752810974b6223a31f4db4de469a3962e7c106ce590 internal/activator/haduties.go Service.rememberDutyRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route host to record successful local release basis keyed to the acquired host lifetime. Failed marker writes never reach this hook. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:Host@162,registry:Host@233,whole:DutyState@254 80319f17d46f84e3164bb46ff6ca0bd834f624288644c3f1b3a9fa0b789dc616
@legacy 0642aa65559a8ceb931b0efa13b20f7ac655fcc96dde398949bdf3cd2b53bcd3 internal/activator/haduties.go Service.restrictDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Bind background restriction to the host lifetime. Use existing duty state to distinguish known peer suppression from local denial before allowing timer aging; no new I/O beyond dutyInput. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. whole:DutyState@230,whole:Route@130,whole:Route@362 9402653561e1731804358972911dd3990a878a9034b512e13b45b2ac8fba8a9f
@@ -28,14 +29,16 @@
@legacy 780da2b6b37d2fc6e2baa16c11257cb492226e4e553679ecc244186fb90d70d4 internal/edge/wakeplacement.go Edge.DutySnapshot legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Pass the route to the existing cached home projection; no store reads, network reads or new publication. whole:Route@108 fa66b0bb586cb9a3214d818fbe40181f3ca7d5655f5af4ac259377cf4d5c133d
@legacy e154d74a30627fba72d2c1f0dd79786d939df5bb9d54a7866d799ec855d90465 internal/host/runs.go runsWorker.dutyStillOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route HA/host and existing service classification; after sink construction require an HA route still held awake locally before RunPick. Refusal only. registry:HA@309,registry:Host@287,whole:Route@237 d7b9c563b32e042e798ffbd98633be9a8eb13eaa68b574693be5937b1cd95ded
@legacy 32bf4eac2498036ddb8b662a319b1ea1af72c75509b3c62ae283614b635abdc4 internal/host/runs.go runsWorker.pickupOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Gate pickup and detached exec. When the detached gate refuses before exec, finish with the existing RefusedIncarnation result, close the picked sink and forget the active handle. Existing guarded sink Finish and cleanup paths are reused; no new input or path read. whole:Route@1180,whole:Route@1946,whole:Route@2020,whole:Route@2288,whole:Route@956 8e426a60b8e738d2dec98df9788d37bcaecbc9726c745e22a39e17ddd9abfdee
-@legacy a91f87c8890199a4a247c9b3e102056da4365987a0f9e3fa43daf0ee6c4f25db internal/hostfiles/wake.go RegistryWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Convert wire timers into registry rows, checking wake version/host and shared timer grammar before effects; no I/O. registry:Timers@284,registry:Timers@306,whole:HAWakeImport@587,whole:HAWakeImport@624,whole:Timer@290,whole:Timer@312 fa0be86a4b4a67da13e127a51905532f7edccee30a84b92c159ad4d6b19d4bba
-@legacy 9b328e13ed07321e2fcc0931e36895007ce7ffa631e0db5690b62454197c19f6 internal/registry/ha_departures.go Registry.CompareHAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read local duty revision, lifetime/Pair, binding and exact receipt phase before a transactional legal phase transition; adopted basis is written only by the central finalizer after verified marker readback. registry:AcquiredGeneration@1612,registry:AcquiredGeneration@366,registry:Changed@336,registry:Incarnation@1161,registry:Lifetime@1133,registry:Lifetime@1666,registry:LockETag@1699,registry:LockGeneration@1711,registry:LockGeneration@389,registry:Phase@1603,registry:Phase@1858,registry:Phase@411,registry:Phase@572,registry:Phase@628,registry:Phase@689,registry:Receipt@1678,registry:Sequence@1648,registry:ServingSeq@1179,registry:WakeDigest@1634,registry:remote@150,registry:remote@182,whole:HAAdoption@308,whole:HAAdoption@318,whole:Pair@256,whole:Pair@262,whole:remoteClient@152,whole:remoteClient@184 cf8772db67541b84ecb80c57a61427625ae39e467eb9c7b15dc0b5dd0f9e2214
-@legacy fc066eaff468d3cfc93095eecc601887b1df4bb1385b799db2fadca3292072f8 internal/registry/ha_departures.go Registry.HAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query local receipt progress only while its binding matches the active route lifetime; remote transport returns the same result. Historical receipts remain inaccessible after retirement. file:QueryRowContext@352,registry:AcquiredGeneration@755,registry:Adoption@259,registry:Changed@273,registry:DepartureIID@795,registry:DepartureRef@778,registry:LockETag@685,registry:LockGeneration@698,registry:Phase@745,registry:Sequence@732,registry:WakeDigest@717,registry:remote@111,registry:remote@143,registry:sql@352,whole:HAAdoption@263,whole:HAAdoption@856,whole:HAAdoption@881,whole:remoteClient@113,whole:remoteClient@145 c237de70749278359454cfe5795f3802647dadd24806f4e96a914072afdcb12c
-@legacy 46343d2d3e4af175a73085d532612ed6e192ae4b2464f6f1c14ebd9a1c8bb6b9 internal/registry/ha_departures.go Registry.ImportHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate all state then transactionally compare current Pair, lifetime, binding, revision and receipt before replacing rows and recording pending authority. Replays never replace rows. file:QueryRowContext@1432,file:QueryRowContext@797,registry:DepartureIID@1895,registry:DepartureIID@2556,registry:DepartureIID@394,registry:DepartureRef@1861,registry:DepartureRef@2540,registry:DepartureRef@370,registry:Import@266,registry:Incarnation@1029,registry:Lifetime@1219,registry:Lifetime@1616,registry:Lifetime@2463,registry:Lifetime@418,registry:LockETag@1797,registry:LockETag@2475,registry:LockETag@457,registry:LockGeneration@1825,registry:LockGeneration@2487,registry:LockGeneration@499,registry:Receipt@1599,registry:Receipt@2446,registry:Receipt@438,registry:Revision@2072,registry:Sequence@2519,registry:ServingSeq@1048,registry:WakeDigest@2505,registry:WakeDigest@477,registry:remote@125,registry:remote@157,whole:HAWakeImport@2156,whole:HAWakeImport@242,whole:HAWakeImport@248,whole:HAWakeImport@317,whole:Pair@1233,whole:Pair@1241,whole:Pair@226,whole:Pair@232,whole:claimTransaction@2146,whole:remoteClient@127,whole:remoteClient@159 14493a51df048a87f9df1e1f899647366acbf682092bce9cc262c1795bb7068f
-@legacy b7a4b67359d1c8d6b9ff084ae95ffa50b1f52196d2bf70512c4436ae1380a5fd internal/registry/ha_departures.go Registry.ReplaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate and atomically replace the acquired lease wake state; local receipt or revision never outranks that manifest. Optional lifetime/Pair guard prevents replacement across retirement. registry:remote@125,registry:remote@95,whole:HAWakeImport@195,whole:HAWakeImport@201,whole:HAWakeImport@258,whole:HAWakeImport@431,whole:claimTransaction@421,whole:remoteClient@127,whole:remoteClient@97 58e2ba452feb396ea64d6f280554122020486721301588d29b44b0e8c9797e2c
-@legacy feb88ca3d48df0beb51eb597eaddd778194f5eb9109151f5c8ddefa337f090c5 internal/registry/ha_departures.go Registry.migrateHAAdoptions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Create the host-receipt table in the existing registry connection; no new path, external object, queue or termination evidence. file:Exec@59,registry:sql@59 4650aa0307467c048f2a788e9d63903cc3f3438c28f65477d94b065b5385cfb8
-@legacy cd31ea496bb9f046fda6a25215a137ac1c05540855439efb8ef120608fcff45a internal/registry/ha_departures.go ValidateHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read supplied timer/wake fields for name, path, duplicate, kind/spec and replication validation. Reuse the extracted scheduling grammar; no I/O. registry:Attempts@460,registry:ClaimOwnership@385,registry:DueAt@429,registry:Host@291,registry:Kind@281,registry:LastAt@444,registry:Name@334,registry:Name@350,registry:Name@508,registry:NextAt@413,registry:NextDue@75,registry:Path@555,registry:Path@586,registry:Path@622,registry:Path@656,registry:Path@693,registry:Registration@361,registry:Replication@110,registry:Spec@241,registry:Timers@195,whole:ClaimOwnership@387,whole:Timer@197 2f228199b3c797da7e79d4d7bb58b0d7d508f45b5d584e792edaae13e2a8199d
-@legacy 79f354a81814b8640bac0517237ce0ceae8136d359f8fd3f708404fa82967dca internal/registry/ha_departures.go replaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query current route and optional lifetime/Pair under one SQLite transaction; replace timers, next_due and replication together. Preserve existing claim ownership when enabled; never resolve an external path. file:QueryRowContext@154,file:QueryRowContext@545,registry:Attempts@1191,registry:ClaimIncarnation@1241,registry:ClaimOwner@1275,registry:ClaimOwnership@888,registry:ClaimOwnership@919,registry:ClaimOwnership@938,registry:ClaimRowID@1289,registry:ClaimRowID@959,registry:ClaimStamp@1261,registry:CreatedAt@1203,registry:DueAt@1216,registry:ExpectedPair@103,registry:ExpectedPair@355,registry:ExpectedPair@383,registry:Incarnation@355,registry:Kind@1123,registry:Kind@667,registry:LastAt@1157,registry:LastMs@1181,registry:LastStatus@1167,registry:Lifetime@410,registry:Name@1115,registry:NextAt@1147,registry:NextDue@1449,registry:Path@1139,registry:Registration@1225,registry:Registration@974,registry:Replication@1460,registry:ServingSeq@383,registry:Spec@1131,registry:Timers@840,whole:ClaimOwnership@891,whole:ClaimOwnership@921,whole:ClaimOwnership@941,whole:Pair@105,whole:Pair@357,whole:Pair@385,whole:Timer@842 3fa4a363f34443bb23f3512bafa25219ddc6c7d6046f9227441a9f67e8c13f0c
+@legacy 2631277f66e8a62ef010f25c2373081a1b660891dac60b7500bef99b9dbe6f93 internal/hostfiles/wake.go RegistryWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Convert wire timers into registry rows, checking wake version/host and shared timer grammar before effects; no I/O. B2 fix r1: adoption keeps strict validation after shared wire conversion; no I/O added. whole:HAWakeImport@142,whole:HAWakeImport@164,whole:HAWakeImport@201 4846985dc07c4bb0a2668caf66abbef5e7677b90ce6d689e60ea0612bce3b51b
+@legacy 5fd4614c38f99b82e9b24c77dece8efc8d2dc5907901bd6d446e77e8c544162d internal/hostfiles/wake.go registryWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B2 fix r1: shared pure wire conversion validates version, host and replication, wraps ErrHAWake with host and failing field, and preserves all timer fields. No path or I/O added. registry:Timers@645,registry:Timers@667,whole:HAWakeImport@948,whole:Timer@651,whole:Timer@673 e7458b1b2b9841f19eefc4b3edbd711a793d5338441e46728b74f042263c8ec2
+@legacy a2b62e94eaaa857563bd16d98df29f3d247debe875acf34b3f94ab60abff7cd4 internal/registry/ha_departures.go Registry.CompareHAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read local duty revision, lifetime/Pair, binding and exact receipt phase before a transactional legal phase transition; adopted basis is written only by the central finalizer after verified marker readback. B2 fix r1: require the caller receipt Binding as well as the current live binding, Pair, revision and phase. An old receipt cannot finalize a fresh binding even with identical lock fields. registry:AcquiredGeneration@1626,registry:AcquiredGeneration@366,registry:Binding@1743,registry:Changed@336,registry:Incarnation@1161,registry:Lifetime@1133,registry:Lifetime@1680,registry:LockETag@1713,registry:LockGeneration@1725,registry:LockGeneration@389,registry:Phase@1617,registry:Phase@1883,registry:Phase@411,registry:Phase@572,registry:Phase@628,registry:Phase@689,registry:Receipt@1692,registry:Sequence@1662,registry:ServingSeq@1179,registry:WakeDigest@1648,registry:remote@150,registry:remote@182,whole:HAAdoption@308,whole:HAAdoption@318,whole:Pair@256,whole:Pair@262,whole:remoteClient@152,whole:remoteClient@184 1b8a41739174eabe7806831c30cf0c1e493d89990d7be25273ceb688b5f905f0
+@legacy de3e9915fb9a783b46b433a72733ef042c0d4c4b790a0cfaef23f03fb4e7e56d internal/registry/ha_departures.go Registry.HAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query local receipt progress only while its binding matches the active route lifetime; remote transport returns the same result. Historical receipts remain inaccessible after retirement. B2 fix r1: read and return the current receipt Binding over the existing registry transport; old bindings remain inaccessible to live adoption. file:QueryRowContext@352,registry:AcquiredGeneration@763,registry:Adoption@259,registry:Binding@820,registry:Changed@273,registry:DepartureIID@803,registry:DepartureRef@786,registry:LockETag@693,registry:LockGeneration@706,registry:Phase@753,registry:Sequence@740,registry:WakeDigest@725,registry:remote@111,registry:remote@143,registry:sql@352,whole:HAAdoption@263,whole:HAAdoption@876,whole:HAAdoption@901,whole:remoteClient@113,whole:remoteClient@145 9f0971563d1b8a049461dffa4503ed9820c098402d1e8924894b26fca4d6820b
+@legacy c031bf43f6e2111bf158d6bb2c45ccc56718ee257e981d473738a2de9a7c362f internal/registry/ha_departures.go Registry.ImportHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate all state then transactionally compare current Pair, lifetime, binding, revision and receipt before replacing rows and recording pending authority. Replays never replace rows. B2 fix r1: find replay receipts only within the current binding; an older binding remains history and permits a new guarded import. Preserve Pair/lifetime/revision checks and no authority from import. file:QueryRowContext@1447,file:QueryRowContext@839,registry:DepartureIID@1841,registry:DepartureIID@2502,registry:DepartureIID@394,registry:DepartureRef@1807,registry:DepartureRef@2486,registry:DepartureRef@370,registry:Import@266,registry:Incarnation@1071,registry:Lifetime@1261,registry:Lifetime@1637,registry:Lifetime@2409,registry:Lifetime@418,registry:LockETag@1743,registry:LockETag@2421,registry:LockETag@457,registry:LockGeneration@1771,registry:LockGeneration@2433,registry:LockGeneration@499,registry:Receipt@1620,registry:Receipt@2392,registry:Receipt@438,registry:Receipt@588,registry:Revision@2018,registry:Sequence@2465,registry:ServingSeq@1090,registry:WakeDigest@2451,registry:WakeDigest@477,registry:remote@125,registry:remote@157,whole:HAWakeImport@2102,whole:HAWakeImport@242,whole:HAWakeImport@248,whole:HAWakeImport@317,whole:Pair@1275,whole:Pair@1283,whole:Pair@226,whole:Pair@232,whole:claimTransaction@2092,whole:remoteClient@127,whole:remoteClient@159 2ee12b90ef3f1342a0597577ab79c0716d23268e255277cad7e03015130730c6
+@legacy 4b9fa26d3c82d6a6bcfeecb2103ef6d43e532b579685119d358b2d228e379277 internal/registry/ha_departures.go Registry.ReplaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate and atomically replace the acquired lease wake state; local receipt or revision never outranks that manifest. Optional lifetime/Pair guard prevents replacement across retirement. B2 fix r1: ordinary restore permits legacy timer grammar and empty registration while keeping host, replication and claim-ownership checks; adoption validates strictly before reaching this exact replacement. No new root path. registry:ClaimOwnership@363,registry:ClaimOwnership@447,registry:Host@474,registry:Host@537,registry:Replication@248,registry:Replication@310,registry:Timers@347,registry:remote@125,registry:remote@95,whole:ClaimOwnership@365,whole:ClaimOwnership@449,whole:HAWakeImport@195,whole:HAWakeImport@201,whole:HAWakeImport@692,whole:Timer@349,whole:claimTransaction@682,whole:remoteClient@127,whole:remoteClient@97 0df849a61c17173aff1d251669629255729bb8cf120d8accd50bb828bc090610
+@legacy 906f5b518039168721c979d82c348362dbf97fb5a4fda32fa3a571389c308a23 internal/registry/ha_departures.go Registry.migrateHAAdoptions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Create the host-receipt table in the existing registry connection; no new path, external object, queue or termination evidence. B2 fix r1: transactionally migrate the existing receipt table to a binding-inclusive primary key, copying all existing rows and phases. Read SQLite table metadata for idempotence; no external path read. file:QueryRowContext@723 12ca2f6802c46bda86c24b63879555ec340622c52f9a6db0fdb6de3778c32119
+@legacy 6a6f49f51870b1161e9804866552fc19f11f2235e494f64c4c93af473bab518b internal/registry/ha_departures.go ValidateHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read supplied timer/wake fields for name, path, duplicate, kind/spec and replication validation. Reuse the extracted scheduling grammar; no I/O. B2 fix r1: preserve strict adoption validation and report host and the specific failing timer/wake field. Additional field reads format diagnostics only; no I/O. registry:Attempts@1268,registry:Attempts@1334,registry:ClaimOwnership@915,registry:ClaimOwnership@998,registry:DueAt@1107,registry:DueAt@1168,registry:Host@398,registry:Host@460,registry:Kind@844,registry:Kind@898,registry:LastAt@1186,registry:LastAt@1249,registry:Name@379,registry:Name@502,registry:Name@518,registry:Name@573,registry:Name@592,registry:NextAt@1025,registry:NextAt@1088,registry:NextDue@125,registry:NextDue@183,registry:Path@1382,registry:Path@1413,registry:Path@1449,registry:Path@1483,registry:Path@1520,registry:Path@1637,registry:Path@1766,registry:Registration@612,registry:Registration@688,registry:Replication@219,registry:Replication@281,registry:Spec@743,registry:Spec@814,registry:Timers@345,whole:ClaimOwnership@1000,whole:ClaimOwnership@917,whole:Timer@347 c6efec0ab69c79e32cb63cd1601440ee96d60cfeecb3b2f6e2dd14b224bcb887
+@legacy 1d66611402913ae979c7b0f815907824f484a617de324872d1131c702dd37073 internal/registry/ha_departures.go replaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query current route and optional lifetime/Pair under one SQLite transaction; replace timers, next_due and replication together. Preserve existing claim ownership when enabled; never resolve an external path. B2 fix r1: synthesize a cryptographically random registration for an empty legacy registration inside the existing atomic replacement. rand.Read is OS entropy, not a tenant-named file. Nonempty registrations and claim attribution remain unchanged. file:QueryRowContext@154,file:QueryRowContext@545,file:Read@914,registry:Attempts@1355,registry:ClaimIncarnation@1405,registry:ClaimOwner@1439,registry:ClaimOwnership@1052,registry:ClaimOwnership@1083,registry:ClaimOwnership@1102,registry:ClaimRowID@1123,registry:ClaimRowID@1453,registry:ClaimStamp@1425,registry:CreatedAt@1367,registry:DueAt@1380,registry:ExpectedPair@103,registry:ExpectedPair@355,registry:ExpectedPair@383,registry:Incarnation@355,registry:Kind@1287,registry:Kind@667,registry:LastAt@1321,registry:LastMs@1345,registry:LastStatus@1331,registry:Lifetime@410,registry:Name@1279,registry:NextAt@1311,registry:NextDue@1613,registry:Path@1303,registry:Registration@1138,registry:Registration@1389,registry:Registration@856,registry:Registration@968,registry:Replication@1624,registry:ServingSeq@383,registry:Spec@1295,registry:Timers@840,whole:ClaimOwnership@1055,whole:ClaimOwnership@1085,whole:ClaimOwnership@1105,whole:Pair@105,whole:Pair@357,whole:Pair@385,whole:Timer@842 b22d865c0815a84b2377c8a04031f2611dff9192f96ea8928924433f2b7a186d
+@legacy 03f9042a0ef2672e596c9148998b24d6d2cd5e57347c5b2b6f744d482ae10678 internal/registry/ha_duties.go Registry.AdvanceHADuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B2 fix r1: existing registry connection unconditionally increments revision for the active host before ordinary acquire, without changing lifetime, binding or authority basis. Same remote transport; no new path. registry:remote@109,registry:remote@79,registry:sql@212,whole:remoteClient@111,whole:remoteClient@81 dcae31822613834c66d24a4fbef9b0a191ca3b779493337ed9df709a7af696fa
@legacy 01a0429a74a7cb190d038d95a02e2c7f50addd5ea8d9a55cf32fc0ec48dc6443 internal/registry/ha_duties.go Registry.BindHADuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Compare active route Pair and captured revision before changing its authoritative lifetime binding; clear basis and suppression on change. registry:Changed@295,registry:Incarnation@772,registry:ServingSeq@790,registry:remote@129,registry:remote@161,registry:sql@381,whole:Pair@228,whole:Pair@234,whole:remoteClient@131,whole:remoteClient@163 462faa643bfccd5e908dd5aae913157e56047ec64197358dfeea7a889a63c594
@legacy 412982c337f81c649f8583e682c3f7c4f03740ead564f967b6e5993c2cdf86a0 internal/registry/ha_duties.go Registry.CompareDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Compare lifetime/revision/active state and persist advisory basis/suppression. Cannot create adopted basis; only preserve a basis already finalized. registry:Basis@311,registry:Basis@331,registry:Basis@363,registry:Basis@396,registry:Basis@810,registry:Basis@918,registry:Changed@287,registry:HolderEpoch@868,registry:HolderIID@838,registry:HolderRef@822,registry:NotBefore@475,registry:NotBefore@514,registry:ViewKey@854,registry:remote@124,registry:remote@156,registry:sql@576,whole:DutyState@260,whole:DutyState@266,whole:remoteClient@126,whole:remoteClient@158 91fb5e1534c512cd1702eeb2b069e829103ee780cc34310ba428ee1fa2a5f116
@legacy 6f6dc16c1fd5d0df952f2cb30ad66b3fb2d95dc21740a2c99900d7f61093da94 internal/registry/ha_duties.go Registry.HADuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read local duty metadata from the existing registry or its remote transport; mismatched/inactive lifetime returns no authority. file:QueryRow@309,registry:Basis@489,registry:Changed@220,registry:Duty@210,registry:HolderEpoch@539,registry:HolderIID@513,registry:HolderRef@499,registry:NotBefore@793,registry:Revision@467,registry:Revision@743,registry:ViewKey@527,registry:remote@112,registry:remote@80,registry:sql@309,whole:DutyState@214,whole:DutyState@663,whole:DutyState@862,whole:remoteClient@114,whole:remoteClient@82 6d6ecfb20f798554349488d42fc2fb633161361867640ef8fcf481e621cc2445
@@ -44,13 +47,13 @@
@legacy 15e8e57aa35412027f3907fd0de751274f9e72641e5c16f6da4b88cb2acf7a37 internal/registry/timers.go Registry.AdvanceDutyTimer legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Update only local recurring timer progress with registration, DueAt and NextAt comparisons. Read timer fields and existing registry sql/remote handles; no last-delivery stamp, once deletion or external path. file:Exec@218,registry:DueAt@416,registry:Host@384,registry:Kind@143,registry:Name@392,registry:NextAt@171,registry:NextAt@425,registry:Registration@400,registry:remote@77,registry:sql@218,whole:remoteClient@79 ce0f893ed21cc2f5df3ca365f9b27d9904b969fd8fff1d68b4cd4f4676d0bb69
@legacy 7c6c9fedebd681f46078f51a51142fb1c5df461465e20fb86abf88bf3a2bb964 internal/schedule/runner.go OldDutyTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read timer kind and natural due occurrence; only recurring occurrences at least 15 minutes old qualify. No writes. registry:Kind@82,whole:Timer@71 b7f99aa2e76858e06675d9aa6b9266600423714cfd7585860eeed12021eaa0f0
@legacy 351bcef78f571f8c2b6d857aa635cc7e6806782b7a9741ec83fd10c7696da63f internal/schedule/runner.go Runner.fireOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Existing fire body moved beneath admission; deferred delivery now returns without recording a failure. Same token preparation, parsing, guarded row checks and delivery authority. registry:Host@248,registry:Host@390,registry:Host@696,registry:Host@842,registry:Name@257,registry:Name@399,registry:Spec@153,registry:Spec@265,whole:Route@1010,whole:Route@1207,whole:Route@1509,whole:Route@1572,whole:Route@1776,whole:Route@667,whole:Route@747,whole:Route@773,whole:Route@884,whole:Timer@1014,whole:Timer@113,whole:Timer@1211,whole:Timer@1311,whole:Timer@1513,whole:Timer@1780,whole:Timer@322,whole:Timer@888 6cfedad07127980fe70c6206ec8e2f994c2b6ffc2017b60ddaaeba4faeb0e25f
-@legacy 95a7bd7d5dcbbc95c0d1da528070c27f93a20cb3431a21ab354c6a923976201f internal/activator/hawake.go ExecBackend.acquireClassified legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the acquire's classification: a legacy route (sidecar, hand-added or not an instance) takes lease.Acquire and refuses on an HA-format lock; otherwise isHA (a record read error fails the wake, never falls back to legacy); not HA takes lease.Acquire, and an HA-format lock there marks the host HA for good and continues; HA requires haContained before any lock request, then lease.AcquireHA with the same-box proof; held and refused leases map to errLeaseHeld and errLeaseRefused (leaseError); +registry:Host, +whole:Route x7;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: the HA acquire's Proofs gain OwnerTerminated (b.ownerTerminated(ctx, rt)) beside SameBoxEmpty; one more whole:Route site passes the route to ownerTerminated; nothing new is read; the proof is consulted only by hafresh.DecideAcquire for another box's expired HA lock;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 7, two-box fleet test): the two legacy acquires call b.acquireLegacy(ctx, prefix), which is acquireLegacyLease exactly when ExecBackend.LeaseIdentity is nil and LeaseTTL is 0 (the agent never sets them), otherwise lease.AcquireAs with that identity and TTL. The classification, the HA path and every refusal are unchanged. Read sites unchanged (9). Agent, not root.;rev3=census-ruling-region-ha-p1b3b-t;basis=Select the restriction-only AcquireHAForDuty for background contexts, including sticky HA reclassification; observe successful ordinary acquires to clear stale suppression. Add a whole-route observer argument; no new authority. B2 binds the current authoritative lifetime and advances local revision before HA acquire, invalidating concurrent adoption I/O. Ordinary lease authority and restore ordering remain unchanged. registry:Basis@1331,registry:Host@106,registry:Revision@1401,whole:DutyState@1413,whole:Route@1137,whole:Route@1274,whole:Route@1572,whole:Route@1617,whole:Route@195,whole:Route@2214,whole:Route@2310,whole:Route@533,whole:Route@584,whole:Route@834 97e8ca4ae87da0aa126b8bacfaf3c8ba446e2771a30abb03df303c861dc9dfc0
@legacy c4860d69f95a542d19c0664c392a5981581b38837d90a3d8294d6cd0a25f0757 internal/host/runs.go runsWorker.pickup legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), its runs worker: a picked run's detached execution runs under provision.WithLifetimes of the worker's judge, so execute's record writes refuse a stale record; read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 16 (ruling R7): on a fleet box a run already let go is skipped before any read; the pickup CAS moves behind the run's sink (sinkFor: the bucket's, as before, or on a fleet box the run door relay once a grant verifies); one more whole-Route site, the row this box already owns passed to sinkFor; nothing new opened, run or followed;rev3=census-ruling-region-ha-p1b3b-t;basis=Wrap both bucket and relay pickup in the service duty gate; refuse an HA route when no gate exists. Reads HA and passes the route; existing pickup moved to pickupOwned. registry:HA@343,whole:Route@244,whole:Route@308,whole:Route@388 42cb4d25952fb42237296d5050bd2e21b7ecc6ff5bdb1ebae1a13d26efe648bf
-@legacy 0e04609e3758a0900e002d4e83b0a5a3acb3b9a69ff09ab6cf42d6200f806fec internal/hostfiles/wake.go ImportWake legacy accepted-legacy accepted-legacy;rev3=J1,J2,J4;basis=root-route;rev3=census-ruling-region-ha-p1b3b-t;basis=Delegate validated conversion to one atomic ReplaceHAWake transaction instead of three independent writes; no lease or file effect. whole:HAWakeImport@200 c1fa57ce9de9cb527c7a08173c1be9f50481a073d10bc810631d506a1d79ecb5
+@legacy d0746eb23c748ad143658bd480e66e3604bacf56875576adeb83254efa4e436d internal/hostfiles/wake.go ImportWake legacy accepted-legacy accepted-legacy;rev3=J1,J2,J4;basis=root-route;rev3=census-ruling-region-ha-p1b3b-t;basis=Delegate validated conversion to one atomic ReplaceHAWake transaction instead of three independent writes; no lease or file effect. B2 fix r1: ordinary acquired-lease restore converts legacy wire rows without adoption-only timer grammar restrictions. Version, host and replication remain checked before the atomic exact replacement. whole:HAWakeImport@200 b3d3c13dc1a985b2e4c333b29658a129e808dc3cc2b1321a7acddec9d01cf7e0
@legacy 338c8f8dbc28811430676648d55a97266f32903b9b1e56a4b9683ca287446de5 internal/activator/activator.go Service.ServeScheduled legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-plans-4d-lapse;basis=answers a scheduled request to a route the turned-off hook names with the maintenance response before serve (plans 4d). One more whole-row read: the row handed to the hook (a.disabled), as the fence and maxRunFor are asked.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: wraps the proxy so that, after the wake, fillScheduledToken(r, rt) sets an HA host's tick bearer token from its restored env file; an error there logs (+registry:Host, rt.Host) and answers 503 with Retry-After: 5; a non-HA host's tick is left as the runner built it; +whole:Route is rt handed to fillScheduledToken; keeps legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned (a hibernating instance, or an instance with a runtime) instead of Kind and Hibernate inline; reads the same fields plus Runtime through the method;rev3=census-ruling-region-ha-p1b3b-t;basis=Run the local scheduled request under WithDuty and retain existing HTTP refusal text; add route arguments to background admission and error handling. No forwarding. registry:Host@669,registry:Status@146,registry:Status@165,whole:Route@1143,whole:Route@248,whole:Route@600,whole:Route@883,whole:Route@964 41bcecc8605bfc52536690da309860ffc7464646dd4e2dbf577fc2bd287c9061
@legacy 1bfd691c54e4630c5bb20af14bc1150e618f977ab487206a9baac77d59366876 internal/activator/activator.go Service.wake legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence. registry:Socket@8151,registry:Socket@8312,registry:Stateless@10394,registry:Stateless@9646,whole:Route@10396,whole:Route@1047,whole:Route@1350,whole:Route@2865,whole:Route@2992,whole:Route@3049,whole:Route@417,whole:Route@6399,whole:Route@8104,whole:Route@8153,whole:Route@8314,whole:Route@9637,whole:Route@9692 6204eb606d27d250370fc2a8a821195ea3eb3b8648e7656c52a25d1488a8c2b7
@legacy 099d44a548d58566d3366996f115bda81c0e28a4fbc089adee218f5dea8476fb internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4;rev3=census-ruling-region-ha-p1b3b-t;basis=Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged. registry:Host@1825,whole:Route@102,whole:Route@1098,whole:Route@1236,whole:Route@1734,whole:Route@244 1d28991be7fe53f505751cde1f9822ffee9598d2eea3834eda94f42406315236
@legacy 3a8138aa3c125359a30ff09994bbf3afc480d6d5420cdd809c9979c6e89f977f internal/activator/hatakeover.go ExecBackend.ownerTerminated legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b1;basis=new (region HA P1b-1): returns nil without eb.OwnerTerminated; else a closure calling it with the lock owner's instance id (from the HA lock, written by a box agent) and logging rt.Host on a takeover and, at most once a minute per host, on an error; the id goes only to EC2 DescribeInstances in this box's own account and region and is checked against the reply (termfence.SameAccountTerminated); root never calls it;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route Host for structured departure-finalize telemetry; retain the same confirmation callback and visitor alarm behavior. registry:Host@378,registry:Host@472,registry:Host@638 7082fa0f1b04d12676d4e0abf5d7bafaf4041fa3910e89c230ff4eba1949d785
+@legacy 4a4ae159ec27f48f9ed01c75ed36c37fff5dfc7f0ddc1c031acbdde973a6c4ad internal/activator/hawake.go ExecBackend.acquireClassified legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the acquire's classification: a legacy route (sidecar, hand-added or not an instance) takes lease.Acquire and refuses on an HA-format lock; otherwise isHA (a record read error fails the wake, never falls back to legacy); not HA takes lease.Acquire, and an HA-format lock there marks the host HA for good and continues; HA requires haContained before any lock request, then lease.AcquireHA with the same-box proof; held and refused leases map to errLeaseHeld and errLeaseRefused (leaseError); +registry:Host, +whole:Route x7;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: the HA acquire's Proofs gain OwnerTerminated (b.ownerTerminated(ctx, rt)) beside SameBoxEmpty; one more whole:Route site passes the route to ownerTerminated; nothing new is read; the proof is consulted only by hafresh.DecideAcquire for another box's expired HA lock;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 7, two-box fleet test): the two legacy acquires call b.acquireLegacy(ctx, prefix), which is acquireLegacyLease exactly when ExecBackend.LeaseIdentity is nil and LeaseTTL is 0 (the agent never sets them), otherwise lease.AcquireAs with that identity and TTL. The classification, the HA path and every refusal are unchanged. Read sites unchanged (9). Agent, not root.;rev3=census-ruling-region-ha-p1b3b-t;basis=Select the restriction-only AcquireHAForDuty for background contexts, including sticky HA reclassification; observe successful ordinary acquires to clear stale suppression. Add a whole-route observer argument; no new authority. B2 binds the current authoritative lifetime and advances local revision before HA acquire, invalidating concurrent adoption I/O. Ordinary lease authority and restore ordering remain unchanged. B2 fix r1: advance the local duty revision with an unconditional registry UPDATE before acquire; remove pre-acquire lifetime CAS and basis clearing. Failed acquire preserves adopted state. Existing lease validation and successful-acquire observer remain. registry:Host@106,whole:Route@1137,whole:Route@1369,whole:Route@1414,whole:Route@195,whole:Route@2011,whole:Route@2107,whole:Route@533,whole:Route@584,whole:Route@834 0fe9f632cf33a6371eda5a5ffa7f02e5346e76d7d4f889d991809c4f418aaf2f
@legacy b63fb307ecc0f675fab8628b5615fdb07abad1986396b70bc968395c561033cd internal/host/schedule_wiring.go activatorDeliverer.deliverSelected legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1b3b-t;basis=Wrap local delivery in WithDuty so lease loss returns a deferred control result before timer bookkeeping. Add whole-route arguments; no remote forwarding. registry:Host@539,registry:Host@821,registry:Socket@185,registry:Socket@2615,registry:Socket@861,whole:Route@1741,whole:Route@1865,whole:Route@1941,whole:Route@2014,whole:Route@759 afd339dd7acde53dc86f0f55c0a83fa41845bb23825b94ac7fb11ace3330b648
internal/activator/activator.go Service.begin legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-edge-request-records;basis=gains a req *http.Request parameter and one edge.MarkWoke(req) call on the path that starts a wake, so the edge's request record can say which request woke the app; no read added;rev3=census-ruling-remote-instance-metrics;basis=the entries-map insertion goes through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: before an entry is made, a resident inside its backoff answers errResidentBackoff, and a rootfs row must pass the locked admission (rootfsRefusalLocked) and then the backend's rootfs gates off a.mu (rootfsStartRefusal, within the request's wait bound) before Acquire, Restore or the live link; the gate key is recorded on the entry; adds refusals before the lease only;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p1b3b-t;basis=Carry background-duty provenance into a new singleflight entry; a visitor waiting on its deferred refusal retries with ordinary visitor authority. No read added. registry:Host@1146,registry:Host@1457,registry:Host@3513,registry:Host@3670,registry:Host@562,whole:Route@2011,whole:Route@2098,whole:Route@2179,whole:Route@2440,whole:Route@2550,whole:Route@2724,whole:Route@3522,whole:Route@3529 6dfb9ff708ed5fc62b5184ff03fb2df8e1e9fe5d84244b4c9979f3c27f3d7168
internal/activator/activator.go Service.sweepOnce legacy accepted-legacy accepted-legacy;rev3=PROPOSED-seed;basis=census-ruling-FS-R6; registry remains legacy; PROPOSED-plans-2-box-limits: the sweep also narrows an entry's idle window to its account's plan idle through the SetIdleFor hook (never lengthens it; always-on workers and held probe entries are untouched; the hibernate, inflight and held-for-tick guards are unchanged).;rev3=census-ruling-plans-4c-box-throttle;basis=after the worker max_run branch, stops a non-worker entry past the plans continuous-awake ceiling (maxRunFor, passed the row), busy or not, never mid-command (plans 4c). One more whole-row read: the row handed to the hook, as idleFor already is. This bypasses the inflight and held-for-tick protections the idle stop keeps, on purpose: escalated by Astra and ACCEPTED by Paul (census owner), 2026-10-25.;rev3=census-ruling-plans-4d-lapse;basis=stops a live entry the turned-off hook names (never mid-command, never a move's active probe), stands down an exited worker it names instead of restarting it (Astra finding 4), and skips such rows in the due loop and the always-on arm so they are not woken (plans 4d). Four more whole-row reads: the row handed to the hook (a.disabled), as idleFor and maxRunFor already are. Only stops or skips.;rev3=census-ruling-remote-instance-metrics;basis=its two entries-map insertions go through putEntryLocked (which also notes the route's tenant in memory for the metrics sampler); no read added;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: one more call at the top, a.retryOwedMarkers() (harelease.go), which starts at most one background lease.RetryPending pass over owed region HA release markers, off a.mu; the due query, idle, max-run and lapse logic are unchanged; the same 38 sites, no read added; merge of origin/main d7ae1d76: main's change is kept as main has it (census-ruling-remote-instance-metrics: its two entries-map insertions go through putEntryLocked); this branch's change is the same as above; read sites the same 38, offsets moved;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 8: a resident (Route.Resident) is never stopped for idleness or by the continuous-awake ceiling; the due-wake check is left on Hibernate (comment); stops less, not more;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R: an entry whose host has a release record open (the in-memory a.releaseOps[e.host]) is not stopped by its plan's turn-off, by idleness or by the continuous-awake ceiling until the record goes; one more sweep pass, reapReleaseOpsLocked, retries an unproven release's stop (through finishPendingStops); the same 39 read sites, no read added; stops less, not more;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 9 (PF-18): the four checks that left an entry with a run attached alone (e.cmd == nil) now read holdsAttachedLocked(e), a run or a session attached, so a session holds the idle sleep, the plans awake ceiling, the plans turned-off stop and the turned-off worker's stand-down as a run does; in-memory under a.mu; only keeps an entry awake longer; no read added, read sites unchanged;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Read serving lease health through servingError: stateless generations use local lifecycle/process supervision, while stateful generations keep the existing lease checks. No new I/O.;rev3=census-ruling-region-ha-p1b3b-t;basis=Tag due entries as background duties; the wake evaluates the gate off a.mu before acquire or token preparation. No read added. registry:Hibernate@10805,registry:Hibernate@14563,registry:Hibernate@23821,registry:Hibernate@5680,registry:Hibernate@7879,registry:Host@23890,registry:Host@23948,registry:Host@24415,registry:Host@24508,registry:Host@25260,registry:Host@25361,registry:Host@26425,registry:Host@26712,registry:Host@26768,registry:NextDue@25198,registry:Status@23837,whole:Route@10807,whole:Route@11666,whole:Route@14565,whole:Route@16498,whole:Route@18208,whole:Route@18398,whole:Route@18691,whole:Route@18863,whole:Route@19010,whole:Route@23221,whole:Route@23997,whole:Route@24912,whole:Route@25269,whole:Route@25276,whole:Route@26240,whole:Route@26541,whole:Route@26745,whole:Route@5491,whole:Route@5682,whole:Route@7712,whole:Route@7881,whole:Route@8074,whole:Route@8537 bb62b361b6dff7e47fa68665994a5b73860a499107a67c32af002c608bc936fd
@@ -61,17 +64,18 @@ internal/host/schedule_wiring.go newScheduleDeps legacy accepted-legacy accepted
internal/registry/registry.go Registry.migrate legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the registry's SQLite side, as carlos: in the agent (/opt/carlos/carlos agent, carlos-edge.service) and in the registry child (carlos __registry-child, which a root pass forks as the service user), on every registry open; a box CLI verb that opens the registry directly runs it as whoever runs the verb: census-ruling-seeded-instances's body with two more columns added to routes (incarnation and serving_seq, INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule); self-serve moves 1 Task 7;rev3=census-ruling-rootfs-apps-2;basis=one more ALTER TABLE, routes ADD COLUMN runtime TEXT NOT NULL DEFAULT '', beside main's rate_limit, assets_off, asset_gen, incarnation and serving_seq (the last four from the merges of origin/main 3c33f2eb and 953b9fda); the same sixteen sites, no read added;rev3=census-ruling-instance-egress-sizes-328-329;basis=#328/#329 plan 1 Task 4: three more ALTER TABLE statements in the existing loop, routes ADD COLUMN egress_allow, size and policy_expires_at, each TEXT NOT NULL DEFAULT '' and idempotent through the duplicate-column rule; the same sixteen sites, no read added.;rev3=census-ruling-region-ha-p1a;basis=one more ALTER TABLE in the existing loop: routes ADD COLUMN ha INTEGER NOT NULL DEFAULT 0, idempotent through the duplicate-column rule; the same sixteen sites, no read added;rev3=census-ruling-ha-p1a-433;basis=the registry's SQLite side as carlos (agent, registry child; a box CLI verb that opens the registry directly runs it as whoever runs it), on every registry open: the ALTER TABLE routes statements are now built from the one migration definition routeAddedColumns (addedColumn name, type, default; review r1 P2): for each entry without the Claim mark, "ALTER TABLE routes ADD COLUMN " + spec(), byte for byte the statements main runs, in main's order, under the same duplicate-column rule. +registry:Claim is that mark, +whole:addedColumn the struct. Every name, type and default is an in-binary literal; no statement added, removed or changed; no read added.;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: one more CREATE TABLE IF NOT EXISTS regional_domains (host TEXT PRIMARY KEY, target, account, app, region TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL DEFAULT 0), beside wildcard_domains; the added sites are that statement (+file:Exec, +registry:sql), an in-binary literal; additive, no existing statement changed;rev3=census-ruling-region-ha-p1b3b-t;basis=Create local HA duty/replay tables and revision triggers in the existing registry connection; no new database path. file:Exec@1694,file:Exec@2248,file:Exec@3186,file:Exec@3465,file:Exec@4328,file:Exec@4504,file:Exec@51,file:Exec@600,file:Exec@963,registry:Claim@525,registry:sql@1694,registry:sql@2248,registry:sql@3186,registry:sql@3465,registry:sql@4328,registry:sql@4504,registry:sql@51,registry:sql@600,registry:sql@963,whole:addedColumn@500 c1f7b84329329b6e6508187c7b17d8b5917257800ddb58d60d6e4500dd9d97ab
internal/activator/haadopt.go ExecBackend.adoptionCurrent legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the current registry route and authoritative lifetime index/record; compare Pair, account, app, DB path, kind and admission fields before effects. Refusal only. registry:Account@222,registry:Account@237,registry:App@251,registry:App@262,registry:DBPath@272,registry:DBPath@286,registry:HoldOp@322,registry:Host@128,registry:ImportGate@342,registry:Kind@299,registry:Kind@311,registry:Replica@366,registry:Status@401,registry:Tunnel@381,whole:Pair@214,whole:Route@174,whole:Route@202,whole:Route@487 5254a172500177ca70cdaa8a04eca26977bd3494d40354ac44904ad9dd4b9ff7
internal/activator/haadopt.go ExecBackend.adoptionWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read only the configured files manifest and its validated wake object. Validate wire state and reuse only bytes already checked against an equal digest; never fetch DB, file-tree or secret objects. registry:Sequence@1148,registry:Sequence@745,registry:WakeDigest@1168,registry:WakeDigest@646,registry:WakeDigest@684,whole:HAWakeImport@1137,whole:HAWakeImport@1198,whole:HAWakeImport@548,whole:HAWakeImport@646,whole:HAWakeImport@684,whole:HAWakeImport@732,whole:HAWakeImport@778 492e282c3a6c817c6818226bbd554c7ecb02c284b828bceb86edb21670d5927a
-internal/activator/haadopt.go ExecBackend.bindDutyLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read existing local duty revision and bind only current record facts to the registry Pair; changed binding invalidates old authority and receipt access. registry:Host@155,registry:Host@256,registry:Host@422,registry:Revision@289,whole:DutyState@202,whole:DutyState@327,whole:DutyState@361,whole:Route@278 a5a2a03c9f1695761901a08f2d4ce3d34c1384f6391336e176bf2446a20ffffc
+internal/activator/haadopt.go ExecBackend.bindDutyLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read existing local duty revision and bind only current record facts to the registry Pair; changed binding invalidates old authority and receipt access. B2 fix r1: delegate to the shared DutyStore binding helper; the same current-record precondition and guarded Pair/revision binding remain. whole:Route@164 3c2b541b493ce0a7d41941c05de80319702d7004ad3f06c109c5c6ab774dad03
internal/activator/haadopt.go Service.AdoptHost legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Serialize through the existing host operation state. Read local route/revision/receipt plus configured lock/manifest/wake objects; use only restricted ordinary acquire, exact guarded restore, ordinary unclean release and verified readback for adoption. No process launch, local-copy reuse or secret access. registry:AcquiredGeneration@2326,registry:AcquiredGeneration@2699,registry:AcquiredGeneration@3477,registry:AcquiredGeneration@4089,registry:AcquiredGeneration@4180,registry:AcquiredGeneration@4819,registry:AcquiredGeneration@4910,registry:DepartureIID@1797,registry:DepartureIID@5418,registry:DepartureRef@1761,registry:DepartureRef@5402,registry:ExpectedPair@7476,registry:Host@1162,registry:Host@1258,registry:Host@1330,registry:Host@1399,registry:Host@1665,registry:Host@2040,registry:Host@2543,registry:Host@2880,registry:Host@3267,registry:Host@5231,registry:Host@5652,registry:Host@5837,registry:Host@6389,registry:Host@7238,registry:Host@7540,registry:Host@8103,registry:Host@861,registry:Host@959,registry:Lifetime@5454,registry:Lifetime@7445,registry:LockETag@5489,registry:LockGeneration@1833,registry:LockGeneration@5501,registry:Phase@2658,registry:Phase@2675,registry:Phase@3017,registry:Phase@3055,registry:Phase@3111,registry:Phase@4121,registry:Phase@4213,registry:Phase@4763,registry:Phase@4851,registry:Receipt@5478,registry:Revision@2899,registry:Revision@5466,registry:Sequence@2803,registry:Sequence@2823,registry:WakeDigest@2762,registry:WakeDigest@2784,whole:HAAdoption@2916,whole:HAAdoption@5793,whole:HAWakeImport@2745,whole:HAWakeImport@5373,whole:HAWakeImport@5389,whole:HAWakeImport@5397,whole:HAWakeImport@5671,whole:HAWakeImport@7247,whole:HAWakeImport@7549,whole:HAWakeImport@7641,whole:Pair@2893,whole:Pair@5665,whole:Pair@7482,whole:Pair@7502,whole:Route@1128,whole:Route@1171,whole:Route@1178,whole:Route@138,whole:Route@193,whole:Route@2475,whole:Route@3177,whole:Route@4490,whole:Route@453,whole:Route@531,whole:Route@5320,whole:Route@6532,whole:Route@6577,whole:Route@6749,whole:Route@723,whole:Route@7334,whole:Route@889 08ea0276802063cdd4b011db9367a1884d197a0ce0b27442d6904898e973566e
internal/activator/haadopt.go Service.adoptionAwakeSuccessor legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the configured lock and current route/lifetime to recognize an already awake local successor with strictly later generation and independently bound ref/iid. Recheck HoldsAwake before returning Superseded; no registry or lease writes. registry:Host@259,registry:Host@747,whole:Route@680 8f6636a01e491f63ba53fb1e59934574d1294455205938fda8ec9904cd96f53e
internal/activator/haadopt.go adoptionBackend legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Select the existing ExecBackend through SplitBackend using the route; no I/O. whole:Route@143,whole:Route@148 e39ed566dc3449f24f809a034b0c042a36fa725ecc363d3278a724b3a35efbaa
internal/activator/haadopt.go adoptionPair legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route Incarnation and ServingSeq for transaction comparisons; no I/O. registry:Incarnation@88,registry:ServingSeq@116 f483f537f1c75292004bcdc934e45f153f92df6935e082a16af6aabcc6f2a43f
+internal/activator/haadopt.go bindDutyLifetime legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B2 fix r1: shared interface-based local duty lookup and guarded lifetime binding, using the current record validated by the caller. Reads existing host, revision and Pair; no new path or authority. registry:Host@150,registry:Host@246,registry:Host@407,registry:Revision@279,whole:DutyState@197,whole:DutyState@317,whole:DutyState@351,whole:Route@268 e80fee0cc4bc3aae1f910a25a8e0e614a82f0c69bd5558e792895804d6a453c6
internal/activator/haduties.go DutyForTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the observed timer through the shared old-occurrence predicate; once-timers are never aged out. whole:Timer@120 f9a9c2fce154cf37b1d1e5ef03319ad0c4c546ad88a1aa78812b7401428995e5
internal/activator/haduties.go Service.Duty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Pass the local route into dutyInput and the pure chooser. Advisory decision only; no acquire or start. whole:Route@118 15122e8a380cccc304994a0f390ed0de98eb37a765d2362df73a0f6b79dae78e
internal/activator/haduties.go Service.WithDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route host for owned-awake checks and pass provisioned managed instances to restricted singleflight wake before producer writes, including cached legacy rows that discover sticky HA at acquire. Other route kinds keep their path; no authority bypass. registry:Host@584,registry:Host@673,whole:Route@143,whole:Route@422,whole:Route@503 69e34dcb9430c114b0765adffc97be60b72ea939c5c38296bffd7a3bec0d804d
internal/activator/haduties.go Service.allowDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Recheck lifetime and duty policy on every classified CAS round. Return a non-owner subtype only for a known foreign holder; self expiry and local denial remain deferred. Existing suppression writes and acquire restrictions retained; no read added. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:HolderRef@1126,registry:Host@1237,registry:Host@555,registry:NotBefore@471,registry:ViewKey@1156,whole:DutyState@1258,whole:DutyState@1262,whole:DutyState@1342,whole:DutyState@317,whole:DutyState@465,whole:DutyState@576,whole:DutyState@580,whole:Route@141,whole:Route@974 2ed5e21384e91dfe599e1267994579859a267c7b9ca3a0da77ce8f93a048a552
internal/activator/haduties.go Service.dutyInput legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read HA classification/lifetime from the existing backend and route host, HA, replica, tunnel, import gate and status; read advisory DutyStore state and cached home projection outside a.mu. No new filesystem or bucket path. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:Basis@1148,registry:HA@244,registry:HolderEpoch@1383,registry:HolderIID@1225,registry:HolderIID@1427,registry:HolderRef@1161,registry:HolderRef@1211,registry:HolderRef@1413,registry:Host@1079,registry:Host@122,registry:Host@510,registry:Host@576,registry:ImportGate@690,registry:NotBefore@1453,registry:NotBefore@1509,registry:Replica@657,registry:Status@714,registry:Status@733,registry:Tunnel@671,registry:ViewKey@1256,whole:DutyState@1126,whole:DutyState@1537,whole:Route@149,whole:Route@216,whole:Route@312,whole:Route@604,whole:Route@885 9cdbbbd19a900153cc5dd6959366c5ec6042816dcb7f97b46d85476823eaf1c5
-internal/activator/haduties.go Service.dutyState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the current registry route and existing authoritative lifetime before binding/loading the persistent DutyStore. Pending import never produces adopted basis. whole:DutyState@767,whole:Route@255,whole:Route@354,whole:Route@462,whole:Route@638 06d446e724e6ea211612f0c35f5832c7766548008ba3ebbbedfb99b5fabd11f0
+internal/activator/haduties.go Service.dutyState legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read the current registry route and existing authoritative lifetime before binding/loading the persistent DutyStore. Pending import never produces adopted basis. B2 fix r1: validate current route and authoritative lifetime for every DutyStore, including wrapped and remote stores; use interface Get/HADuty/BindHADuty instead of a concrete registry assertion. Existing record and local registry reads only. whole:DutyState@657,whole:Route@203,whole:Route@295,whole:Route@399,whole:Route@579 89eab5cb43c9c4b3de9914d7b242e11ca20b8a574b4d812c39ff3b0efc0189e9
internal/activator/haduties.go Service.rememberDutyAcquired legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route host to clear peer suppression only after ordinary acquire succeeds, including visitor wakes. Local advisory state cannot authorize the lease. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:Host@163,registry:Host@234,whole:DutyState@255 74cb5761e354994ad43172ae0f4c4e4c5410a2792492f69d32d100c2dbabed46
internal/activator/haduties.go Service.rememberDutyRelease legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route host to record successful local release basis keyed to the acquired host lifetime. Failed marker writes never reach this hook. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. registry:Host@162,registry:Host@233,whole:DutyState@254 80319f17d46f84e3164bb46ff6ca0bd834f624288644c3f1b3a9fa0b789dc616
internal/activator/haduties.go Service.restrictDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Bind background restriction to the host lifetime. Use existing duty state to distinguish known peer suppression from local denial before allowing timer aging; no new I/O beyond dutyInput. B2 aliases DutyState to registry.DutyState, exposing existing state-field reads to this census; ownership/restriction decisions are unchanged. whole:DutyState@230,whole:Route@130,whole:Route@362 9402653561e1731804358972911dd3990a878a9034b512e13b45b2ac8fba8a9f
@@ -81,14 +85,16 @@ internal/activator/haduties.go dutyRefusal legacy accepted-legacy accepted-legac
internal/edge/wakeplacement.go Edge.DutySnapshot legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Pass the route to the existing cached home projection; no store reads, network reads or new publication. whole:Route@108 fa66b0bb586cb9a3214d818fbe40181f3ca7d5655f5af4ac259377cf4d5c133d
internal/host/runs.go runsWorker.dutyStillOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route HA/host and existing service classification; after sink construction require an HA route still held awake locally before RunPick. Refusal only. registry:HA@309,registry:Host@287,whole:Route@237 d7b9c563b32e042e798ffbd98633be9a8eb13eaa68b574693be5937b1cd95ded
internal/host/runs.go runsWorker.pickupOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Gate pickup and detached exec. When the detached gate refuses before exec, finish with the existing RefusedIncarnation result, close the picked sink and forget the active handle. Existing guarded sink Finish and cleanup paths are reused; no new input or path read. whole:Route@1180,whole:Route@1946,whole:Route@2020,whole:Route@2288,whole:Route@956 8e426a60b8e738d2dec98df9788d37bcaecbc9726c745e22a39e17ddd9abfdee
-internal/hostfiles/wake.go RegistryWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Convert wire timers into registry rows, checking wake version/host and shared timer grammar before effects; no I/O. registry:Timers@284,registry:Timers@306,whole:HAWakeImport@587,whole:HAWakeImport@624,whole:Timer@290,whole:Timer@312 fa0be86a4b4a67da13e127a51905532f7edccee30a84b92c159ad4d6b19d4bba
-internal/registry/ha_departures.go Registry.CompareHAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read local duty revision, lifetime/Pair, binding and exact receipt phase before a transactional legal phase transition; adopted basis is written only by the central finalizer after verified marker readback. registry:AcquiredGeneration@1612,registry:AcquiredGeneration@366,registry:Changed@336,registry:Incarnation@1161,registry:Lifetime@1133,registry:Lifetime@1666,registry:LockETag@1699,registry:LockGeneration@1711,registry:LockGeneration@389,registry:Phase@1603,registry:Phase@1858,registry:Phase@411,registry:Phase@572,registry:Phase@628,registry:Phase@689,registry:Receipt@1678,registry:Sequence@1648,registry:ServingSeq@1179,registry:WakeDigest@1634,registry:remote@150,registry:remote@182,whole:HAAdoption@308,whole:HAAdoption@318,whole:Pair@256,whole:Pair@262,whole:remoteClient@152,whole:remoteClient@184 cf8772db67541b84ecb80c57a61427625ae39e467eb9c7b15dc0b5dd0f9e2214
-internal/registry/ha_departures.go Registry.HAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query local receipt progress only while its binding matches the active route lifetime; remote transport returns the same result. Historical receipts remain inaccessible after retirement. file:QueryRowContext@352,registry:AcquiredGeneration@755,registry:Adoption@259,registry:Changed@273,registry:DepartureIID@795,registry:DepartureRef@778,registry:LockETag@685,registry:LockGeneration@698,registry:Phase@745,registry:Sequence@732,registry:WakeDigest@717,registry:remote@111,registry:remote@143,registry:sql@352,whole:HAAdoption@263,whole:HAAdoption@856,whole:HAAdoption@881,whole:remoteClient@113,whole:remoteClient@145 c237de70749278359454cfe5795f3802647dadd24806f4e96a914072afdcb12c
-internal/registry/ha_departures.go Registry.ImportHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate all state then transactionally compare current Pair, lifetime, binding, revision and receipt before replacing rows and recording pending authority. Replays never replace rows. file:QueryRowContext@1432,file:QueryRowContext@797,registry:DepartureIID@1895,registry:DepartureIID@2556,registry:DepartureIID@394,registry:DepartureRef@1861,registry:DepartureRef@2540,registry:DepartureRef@370,registry:Import@266,registry:Incarnation@1029,registry:Lifetime@1219,registry:Lifetime@1616,registry:Lifetime@2463,registry:Lifetime@418,registry:LockETag@1797,registry:LockETag@2475,registry:LockETag@457,registry:LockGeneration@1825,registry:LockGeneration@2487,registry:LockGeneration@499,registry:Receipt@1599,registry:Receipt@2446,registry:Receipt@438,registry:Revision@2072,registry:Sequence@2519,registry:ServingSeq@1048,registry:WakeDigest@2505,registry:WakeDigest@477,registry:remote@125,registry:remote@157,whole:HAWakeImport@2156,whole:HAWakeImport@242,whole:HAWakeImport@248,whole:HAWakeImport@317,whole:Pair@1233,whole:Pair@1241,whole:Pair@226,whole:Pair@232,whole:claimTransaction@2146,whole:remoteClient@127,whole:remoteClient@159 14493a51df048a87f9df1e1f899647366acbf682092bce9cc262c1795bb7068f
-internal/registry/ha_departures.go Registry.ReplaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate and atomically replace the acquired lease wake state; local receipt or revision never outranks that manifest. Optional lifetime/Pair guard prevents replacement across retirement. registry:remote@125,registry:remote@95,whole:HAWakeImport@195,whole:HAWakeImport@201,whole:HAWakeImport@258,whole:HAWakeImport@431,whole:claimTransaction@421,whole:remoteClient@127,whole:remoteClient@97 58e2ba452feb396ea64d6f280554122020486721301588d29b44b0e8c9797e2c
-internal/registry/ha_departures.go Registry.migrateHAAdoptions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Create the host-receipt table in the existing registry connection; no new path, external object, queue or termination evidence. file:Exec@59,registry:sql@59 4650aa0307467c048f2a788e9d63903cc3f3438c28f65477d94b065b5385cfb8
-internal/registry/ha_departures.go ValidateHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read supplied timer/wake fields for name, path, duplicate, kind/spec and replication validation. Reuse the extracted scheduling grammar; no I/O. registry:Attempts@460,registry:ClaimOwnership@385,registry:DueAt@429,registry:Host@291,registry:Kind@281,registry:LastAt@444,registry:Name@334,registry:Name@350,registry:Name@508,registry:NextAt@413,registry:NextDue@75,registry:Path@555,registry:Path@586,registry:Path@622,registry:Path@656,registry:Path@693,registry:Registration@361,registry:Replication@110,registry:Spec@241,registry:Timers@195,whole:ClaimOwnership@387,whole:Timer@197 2f228199b3c797da7e79d4d7bb58b0d7d508f45b5d584e792edaae13e2a8199d
-internal/registry/ha_departures.go replaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query current route and optional lifetime/Pair under one SQLite transaction; replace timers, next_due and replication together. Preserve existing claim ownership when enabled; never resolve an external path. file:QueryRowContext@154,file:QueryRowContext@545,registry:Attempts@1191,registry:ClaimIncarnation@1241,registry:ClaimOwner@1275,registry:ClaimOwnership@888,registry:ClaimOwnership@919,registry:ClaimOwnership@938,registry:ClaimRowID@1289,registry:ClaimRowID@959,registry:ClaimStamp@1261,registry:CreatedAt@1203,registry:DueAt@1216,registry:ExpectedPair@103,registry:ExpectedPair@355,registry:ExpectedPair@383,registry:Incarnation@355,registry:Kind@1123,registry:Kind@667,registry:LastAt@1157,registry:LastMs@1181,registry:LastStatus@1167,registry:Lifetime@410,registry:Name@1115,registry:NextAt@1147,registry:NextDue@1449,registry:Path@1139,registry:Registration@1225,registry:Registration@974,registry:Replication@1460,registry:ServingSeq@383,registry:Spec@1131,registry:Timers@840,whole:ClaimOwnership@891,whole:ClaimOwnership@921,whole:ClaimOwnership@941,whole:Pair@105,whole:Pair@357,whole:Pair@385,whole:Timer@842 3fa4a363f34443bb23f3512bafa25219ddc6c7d6046f9227441a9f67e8c13f0c
+internal/hostfiles/wake.go RegistryWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Convert wire timers into registry rows, checking wake version/host and shared timer grammar before effects; no I/O. B2 fix r1: adoption keeps strict validation after shared wire conversion; no I/O added. whole:HAWakeImport@142,whole:HAWakeImport@164,whole:HAWakeImport@201 4846985dc07c4bb0a2668caf66abbef5e7677b90ce6d689e60ea0612bce3b51b
+internal/hostfiles/wake.go registryWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B2 fix r1: shared pure wire conversion validates version, host and replication, wraps ErrHAWake with host and failing field, and preserves all timer fields. No path or I/O added. registry:Timers@645,registry:Timers@667,whole:HAWakeImport@948,whole:Timer@651,whole:Timer@673 e7458b1b2b9841f19eefc4b3edbd711a793d5338441e46728b74f042263c8ec2
+internal/registry/ha_departures.go Registry.CompareHAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read local duty revision, lifetime/Pair, binding and exact receipt phase before a transactional legal phase transition; adopted basis is written only by the central finalizer after verified marker readback. B2 fix r1: require the caller receipt Binding as well as the current live binding, Pair, revision and phase. An old receipt cannot finalize a fresh binding even with identical lock fields. registry:AcquiredGeneration@1626,registry:AcquiredGeneration@366,registry:Binding@1743,registry:Changed@336,registry:Incarnation@1161,registry:Lifetime@1133,registry:Lifetime@1680,registry:LockETag@1713,registry:LockGeneration@1725,registry:LockGeneration@389,registry:Phase@1617,registry:Phase@1883,registry:Phase@411,registry:Phase@572,registry:Phase@628,registry:Phase@689,registry:Receipt@1692,registry:Sequence@1662,registry:ServingSeq@1179,registry:WakeDigest@1648,registry:remote@150,registry:remote@182,whole:HAAdoption@308,whole:HAAdoption@318,whole:Pair@256,whole:Pair@262,whole:remoteClient@152,whole:remoteClient@184 1b8a41739174eabe7806831c30cf0c1e493d89990d7be25273ceb688b5f905f0
+internal/registry/ha_departures.go Registry.HAAdoption legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query local receipt progress only while its binding matches the active route lifetime; remote transport returns the same result. Historical receipts remain inaccessible after retirement. B2 fix r1: read and return the current receipt Binding over the existing registry transport; old bindings remain inaccessible to live adoption. file:QueryRowContext@352,registry:AcquiredGeneration@763,registry:Adoption@259,registry:Binding@820,registry:Changed@273,registry:DepartureIID@803,registry:DepartureRef@786,registry:LockETag@693,registry:LockGeneration@706,registry:Phase@753,registry:Sequence@740,registry:WakeDigest@725,registry:remote@111,registry:remote@143,registry:sql@352,whole:HAAdoption@263,whole:HAAdoption@876,whole:HAAdoption@901,whole:remoteClient@113,whole:remoteClient@145 9f0971563d1b8a049461dffa4503ed9820c098402d1e8924894b26fca4d6820b
+internal/registry/ha_departures.go Registry.ImportHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate all state then transactionally compare current Pair, lifetime, binding, revision and receipt before replacing rows and recording pending authority. Replays never replace rows. B2 fix r1: find replay receipts only within the current binding; an older binding remains history and permits a new guarded import. Preserve Pair/lifetime/revision checks and no authority from import. file:QueryRowContext@1447,file:QueryRowContext@839,registry:DepartureIID@1841,registry:DepartureIID@2502,registry:DepartureIID@394,registry:DepartureRef@1807,registry:DepartureRef@2486,registry:DepartureRef@370,registry:Import@266,registry:Incarnation@1071,registry:Lifetime@1261,registry:Lifetime@1637,registry:Lifetime@2409,registry:Lifetime@418,registry:LockETag@1743,registry:LockETag@2421,registry:LockETag@457,registry:LockGeneration@1771,registry:LockGeneration@2433,registry:LockGeneration@499,registry:Receipt@1620,registry:Receipt@2392,registry:Receipt@438,registry:Receipt@588,registry:Revision@2018,registry:Sequence@2465,registry:ServingSeq@1090,registry:WakeDigest@2451,registry:WakeDigest@477,registry:remote@125,registry:remote@157,whole:HAWakeImport@2102,whole:HAWakeImport@242,whole:HAWakeImport@248,whole:HAWakeImport@317,whole:Pair@1275,whole:Pair@1283,whole:Pair@226,whole:Pair@232,whole:claimTransaction@2092,whole:remoteClient@127,whole:remoteClient@159 2ee12b90ef3f1342a0597577ab79c0716d23268e255277cad7e03015130730c6
+internal/registry/ha_departures.go Registry.ReplaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Validate and atomically replace the acquired lease wake state; local receipt or revision never outranks that manifest. Optional lifetime/Pair guard prevents replacement across retirement. B2 fix r1: ordinary restore permits legacy timer grammar and empty registration while keeping host, replication and claim-ownership checks; adoption validates strictly before reaching this exact replacement. No new root path. registry:ClaimOwnership@363,registry:ClaimOwnership@447,registry:Host@474,registry:Host@537,registry:Replication@248,registry:Replication@310,registry:Timers@347,registry:remote@125,registry:remote@95,whole:ClaimOwnership@365,whole:ClaimOwnership@449,whole:HAWakeImport@195,whole:HAWakeImport@201,whole:HAWakeImport@692,whole:Timer@349,whole:claimTransaction@682,whole:remoteClient@127,whole:remoteClient@97 0df849a61c17173aff1d251669629255729bb8cf120d8accd50bb828bc090610
+internal/registry/ha_departures.go Registry.migrateHAAdoptions legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Create the host-receipt table in the existing registry connection; no new path, external object, queue or termination evidence. B2 fix r1: transactionally migrate the existing receipt table to a binding-inclusive primary key, copying all existing rows and phases. Read SQLite table metadata for idempotence; no external path read. file:QueryRowContext@723 12ca2f6802c46bda86c24b63879555ec340622c52f9a6db0fdb6de3778c32119
+internal/registry/ha_departures.go ValidateHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read supplied timer/wake fields for name, path, duplicate, kind/spec and replication validation. Reuse the extracted scheduling grammar; no I/O. B2 fix r1: preserve strict adoption validation and report host and the specific failing timer/wake field. Additional field reads format diagnostics only; no I/O. registry:Attempts@1268,registry:Attempts@1334,registry:ClaimOwnership@915,registry:ClaimOwnership@998,registry:DueAt@1107,registry:DueAt@1168,registry:Host@398,registry:Host@460,registry:Kind@844,registry:Kind@898,registry:LastAt@1186,registry:LastAt@1249,registry:Name@379,registry:Name@502,registry:Name@518,registry:Name@573,registry:Name@592,registry:NextAt@1025,registry:NextAt@1088,registry:NextDue@125,registry:NextDue@183,registry:Path@1382,registry:Path@1413,registry:Path@1449,registry:Path@1483,registry:Path@1520,registry:Path@1637,registry:Path@1766,registry:Registration@612,registry:Registration@688,registry:Replication@219,registry:Replication@281,registry:Spec@743,registry:Spec@814,registry:Timers@345,whole:ClaimOwnership@1000,whole:ClaimOwnership@917,whole:Timer@347 c6efec0ab69c79e32cb63cd1601440ee96d60cfeecb3b2f6e2dd14b224bcb887
+internal/registry/ha_departures.go replaceHAWake legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Query current route and optional lifetime/Pair under one SQLite transaction; replace timers, next_due and replication together. Preserve existing claim ownership when enabled; never resolve an external path. B2 fix r1: synthesize a cryptographically random registration for an empty legacy registration inside the existing atomic replacement. rand.Read is OS entropy, not a tenant-named file. Nonempty registrations and claim attribution remain unchanged. file:QueryRowContext@154,file:QueryRowContext@545,file:Read@914,registry:Attempts@1355,registry:ClaimIncarnation@1405,registry:ClaimOwner@1439,registry:ClaimOwnership@1052,registry:ClaimOwnership@1083,registry:ClaimOwnership@1102,registry:ClaimRowID@1123,registry:ClaimRowID@1453,registry:ClaimStamp@1425,registry:CreatedAt@1367,registry:DueAt@1380,registry:ExpectedPair@103,registry:ExpectedPair@355,registry:ExpectedPair@383,registry:Incarnation@355,registry:Kind@1287,registry:Kind@667,registry:LastAt@1321,registry:LastMs@1345,registry:LastStatus@1331,registry:Lifetime@410,registry:Name@1279,registry:NextAt@1311,registry:NextDue@1613,registry:Path@1303,registry:Registration@1138,registry:Registration@1389,registry:Registration@856,registry:Registration@968,registry:Replication@1624,registry:ServingSeq@383,registry:Spec@1295,registry:Timers@840,whole:ClaimOwnership@1055,whole:ClaimOwnership@1085,whole:ClaimOwnership@1105,whole:Pair@105,whole:Pair@357,whole:Pair@385,whole:Timer@842 b22d865c0815a84b2377c8a04031f2611dff9192f96ea8928924433f2b7a186d
+internal/registry/ha_duties.go Registry.AdvanceHADuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=B2 fix r1: existing registry connection unconditionally increments revision for the active host before ordinary acquire, without changing lifetime, binding or authority basis. Same remote transport; no new path. registry:remote@109,registry:remote@79,registry:sql@212,whole:remoteClient@111,whole:remoteClient@81 dcae31822613834c66d24a4fbef9b0a191ca3b779493337ed9df709a7af696fa
internal/registry/ha_duties.go Registry.BindHADuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Compare active route Pair and captured revision before changing its authoritative lifetime binding; clear basis and suppression on change. registry:Changed@295,registry:Incarnation@772,registry:ServingSeq@790,registry:remote@129,registry:remote@161,registry:sql@381,whole:Pair@228,whole:Pair@234,whole:remoteClient@131,whole:remoteClient@163 462faa643bfccd5e908dd5aae913157e56047ec64197358dfeea7a889a63c594
internal/registry/ha_duties.go Registry.CompareDuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Compare lifetime/revision/active state and persist advisory basis/suppression. Cannot create adopted basis; only preserve a basis already finalized. registry:Basis@311,registry:Basis@331,registry:Basis@363,registry:Basis@396,registry:Basis@810,registry:Basis@918,registry:Changed@287,registry:HolderEpoch@868,registry:HolderIID@838,registry:HolderRef@822,registry:NotBefore@475,registry:NotBefore@514,registry:ViewKey@854,registry:remote@124,registry:remote@156,registry:sql@576,whole:DutyState@260,whole:DutyState@266,whole:remoteClient@126,whole:remoteClient@158 91fb5e1534c512cd1702eeb2b069e829103ee780cc34310ba428ee1fa2a5f116
internal/registry/ha_duties.go Registry.HADuty legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read local duty metadata from the existing registry or its remote transport; mismatched/inactive lifetime returns no authority. file:QueryRow@309,registry:Basis@489,registry:Changed@220,registry:Duty@210,registry:HolderEpoch@539,registry:HolderIID@513,registry:HolderRef@499,registry:NotBefore@793,registry:Revision@467,registry:Revision@743,registry:ViewKey@527,registry:remote@112,registry:remote@80,registry:sql@309,whole:DutyState@214,whole:DutyState@663,whole:DutyState@862,whole:remoteClient@114,whole:remoteClient@82 6d6ecfb20f798554349488d42fc2fb633161361867640ef8fcf481e621cc2445
@@ -97,23 +103,23 @@ internal/registry/ha_duties.go Registry.migrateHADuties legacy accepted-legacy a
internal/registry/timers.go Registry.AdvanceDutyTimer legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Update only local recurring timer progress with registration, DueAt and NextAt comparisons. Read timer fields and existing registry sql/remote handles; no last-delivery stamp, once deletion or external path. file:Exec@218,registry:DueAt@416,registry:Host@384,registry:Kind@143,registry:Name@392,registry:NextAt@171,registry:NextAt@425,registry:Registration@400,registry:remote@77,registry:sql@218,whole:remoteClient@79 ce0f893ed21cc2f5df3ca365f9b27d9904b969fd8fff1d68b4cd4f4676d0bb69
internal/schedule/runner.go OldDutyTick legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read timer kind and natural due occurrence; only recurring occurrences at least 15 minutes old qualify. No writes. registry:Kind@82,whole:Timer@71 b7f99aa2e76858e06675d9aa6b9266600423714cfd7585860eeed12021eaa0f0
internal/schedule/runner.go Runner.fireOwned legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Existing fire body moved beneath admission; deferred delivery now returns without recording a failure. Same token preparation, parsing, guarded row checks and delivery authority. registry:Host@248,registry:Host@390,registry:Host@696,registry:Host@842,registry:Name@257,registry:Name@399,registry:Spec@153,registry:Spec@265,whole:Route@1010,whole:Route@1207,whole:Route@1509,whole:Route@1572,whole:Route@1776,whole:Route@667,whole:Route@747,whole:Route@773,whole:Route@884,whole:Timer@1014,whole:Timer@113,whole:Timer@1211,whole:Timer@1311,whole:Timer@1513,whole:Timer@1780,whole:Timer@322,whole:Timer@888 6cfedad07127980fe70c6206ec8e2f994c2b6ffc2017b60ddaaeba4faeb0e25f
-internal/activator/hawake.go ExecBackend.acquireClassified legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the acquire's classification: a legacy route (sidecar, hand-added or not an instance) takes lease.Acquire and refuses on an HA-format lock; otherwise isHA (a record read error fails the wake, never falls back to legacy); not HA takes lease.Acquire, and an HA-format lock there marks the host HA for good and continues; HA requires haContained before any lock request, then lease.AcquireHA with the same-box proof; held and refused leases map to errLeaseHeld and errLeaseRefused (leaseError); +registry:Host, +whole:Route x7;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: the HA acquire's Proofs gain OwnerTerminated (b.ownerTerminated(ctx, rt)) beside SameBoxEmpty; one more whole:Route site passes the route to ownerTerminated; nothing new is read; the proof is consulted only by hafresh.DecideAcquire for another box's expired HA lock;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 7, two-box fleet test): the two legacy acquires call b.acquireLegacy(ctx, prefix), which is acquireLegacyLease exactly when ExecBackend.LeaseIdentity is nil and LeaseTTL is 0 (the agent never sets them), otherwise lease.AcquireAs with that identity and TTL. The classification, the HA path and every refusal are unchanged. Read sites unchanged (9). Agent, not root.;rev3=census-ruling-region-ha-p1b3b-t;basis=Select the restriction-only AcquireHAForDuty for background contexts, including sticky HA reclassification; observe successful ordinary acquires to clear stale suppression. Add a whole-route observer argument; no new authority. B2 binds the current authoritative lifetime and advances local revision before HA acquire, invalidating concurrent adoption I/O. Ordinary lease authority and restore ordering remain unchanged. registry:Basis@1331,registry:Host@106,registry:Revision@1401,whole:DutyState@1413,whole:Route@1137,whole:Route@1274,whole:Route@1572,whole:Route@1617,whole:Route@195,whole:Route@2214,whole:Route@2310,whole:Route@533,whole:Route@584,whole:Route@834 97e8ca4ae87da0aa126b8bacfaf3c8ba446e2771a30abb03df303c861dc9dfc0
internal/host/runs.go runsWorker.pickup legacy accepted-legacy accepted-legacy;rev3=census-ruling-self-serve-moves-1;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos), its runs worker: a picked run's detached execution runs under provision.WithLifetimes of the worker's judge, so execute's record writes refuse a stale record; read sites unchanged, offsets moved;rev3=census-ruling-rootfs-apps-6;basis=rootfs Plan 6 Task 16 (ruling R7): on a fleet box a run already let go is skipped before any read; the pickup CAS moves behind the run's sink (sinkFor: the bucket's, as before, or on a fleet box the run door relay once a grant verifies); one more whole-Route site, the row this box already owns passed to sinkFor; nothing new opened, run or followed;rev3=census-ruling-region-ha-p1b3b-t;basis=Wrap both bucket and relay pickup in the service duty gate; refuse an HA route when no gate exists. Reads HA and passes the route; existing pickup moved to pickupOwned. registry:HA@343,whole:Route@244,whole:Route@308,whole:Route@388 42cb4d25952fb42237296d5050bd2e21b7ecc6ff5bdb1ebae1a13d26efe648bf
-internal/hostfiles/wake.go ImportWake legacy accepted-legacy accepted-legacy;rev3=J1,J2,J4;basis=root-route;rev3=census-ruling-region-ha-p1b3b-t;basis=Delegate validated conversion to one atomic ReplaceHAWake transaction instead of three independent writes; no lease or file effect. whole:HAWakeImport@200 c1fa57ce9de9cb527c7a08173c1be9f50481a073d10bc810631d506a1d79ecb5
-internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 8: two new remote methods, UpsertUnlessRootfs (carlos add's guarded write) and ResidentInstances (the residency sweep's list), each calling the same-named Registry method;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read;rev3=census-ruling-fleet-secrets-key;basis=one new case, SetFleetSecretsKey, reading the request's Name, Pub, KeyFP, By and At fields and calling SetFleetSecretsKey;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 1-2: three new cases (SetFleetBoxIf reads the request's Fleet and answers Changed; PutForward reads TValue, a whole Route; DeleteForward reads Host and answers Changed); SetFleetBox gone (+registry:Changed x2, +registry:Fleet, +registry:Host, +registry:TValue, +whole:Route). Each case calls the local writer with its own guards.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 6b): three more remote methods dispatched to their local forms, SetFleetBoxDraining (q.Fleet, q.Label, q.At, answering Number64), MarkFleetBoxLabelled (q.Fleet, q.Label, q.At) and SetFleetAssignment (q.Host, q.Assigned, q.Moved); remoteRequest gains Assigned and Moved. The registry child, not root.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Add SetServingMode dispatch using the existing remote request Host, Ver and On fields; the same local narrow writer handles it. No new transport or root path. Task 4 R24: dispatch SeedStateless with the existing Observed Route and On carriers to its symmetric guarded local method. No new transport; the existing read-only service gate still refuses writes.;rev3=census-ruling-region-ha-p1b3b-t;basis=Dispatch typed duty, import, exact replacement and guarded receipt operations through the existing service-user registry transport, preserving comparisons and errors. registry:A@8386,registry:Account@5148,registry:Accounts@3810,registry:Addr@5725,registry:Addrs@5733,registry:Adoption@686,registry:Adoption@881,registry:Alias@8434,registry:Alias@8498,registry:Alias@8586,registry:Aliases@8308,registry:Alive@10261,registry:Args@8010,registry:AssetGen@5875,registry:AssetsOff@5862,registry:Assigned@6353,registry:At@10009,registry:At@2964,registry:At@3353,registry:At@3438,registry:At@7247,registry:At@8517,registry:At@8595,registry:Attempts@10031,registry:B@3013,registry:Backing@5544,registry:BuildState@6112,registry:By@2958,registry:Changed@190,registry:Changed@2728,registry:Changed@332,registry:Changed@4233,registry:Changed@432,registry:Changed@4320,registry:Changed@4409,registry:Changed@4480,registry:Changed@4584,registry:Changed@4671,registry:Changed@4764,registry:Changed@4846,registry:Changed@6700,registry:Changed@6837,registry:Changed@700,registry:Changed@797,registry:Changed@9941,registry:Channel@5208,registry:Channel@6543,registry:Channel@7092,registry:CheckedAt@7173,registry:Class@5663,registry:DoneBefore@10270,registry:Due@10053,registry:Due@7711,registry:Due@7775,registry:Duty@180,registry:Duty@258,registry:Duty@502,registry:EgressAllow@6015,registry:Env@6611,registry:Env@7003,registry:Env@7103,registry:ExcludeHosts@9736,registry:ExcludeHosts@9831,registry:ExpectGood@7372,registry:ExpectOp@4288,registry:ExpectOp@4538,registry:ExpectPair@4718,registry:Expected@1021,registry:Expected@1494,registry:Expected@1671,registry:Expected@1982,registry:Expected@869,registry:F@2700,registry:F@2761,registry:Fleet@2786,registry:Fleet@3071,registry:Fleet@3153,registry:Fleet@3234,registry:Fleet@3335,registry:Fleet@3420,registry:Fleet@3509,registry:Fleet@6743,registry:FleetBoxes@3470,registry:Fleets@2844,registry:From@5319,registry:From@5380,registry:FromDB@5455,registry:FromOp@4376,registry:FromSock@5465,registry:Hash@6417,registry:Health@5742,registry:Host@1004,registry:Host@10109,registry:Host@10190,registry:Host@10353,registry:Host@1756,registry:Host@1867,registry:Host@218,registry:Host@290,registry:Host@369,registry:Host@3994,registry:Host@4035,registry:Host@4188,registry:Host@4264,registry:Host@4350,registry:Host@4442,registry:Host@4514,registry:Host@4620,registry:Host@470,registry:Host@4710,registry:Host@4798,registry:Host@4890,registry:Host@5140,registry:Host@5200,registry:Host@5258,registry:Host@5311,registry:Host@5372,registry:Host@5447,registry:Host@5536,registry:Host@5590,registry:Host@562,registry:Host@5655,registry:Host@5717,registry:Host@5795,registry:Host@5854,registry:Host@5942,registry:Host@6007,registry:Host@6104,registry:Host@6169,registry:Host@6230,registry:Host@6280,registry:Host@6345,registry:Host@640,registry:Host@6409,registry:Host@6470,registry:Host@6603,registry:Host@6657,registry:Host@6735,registry:Host@6872,registry:Host@6925,registry:Host@7155,registry:Host@7239,registry:Host@7296,registry:Host@7364,registry:Host@737,registry:Host@7512,registry:Host@7588,registry:Host@7648,registry:Host@7703,registry:Host@7767,registry:Host@7951,registry:Host@8002,registry:Host@8069,registry:Host@8144,registry:Host@8207,registry:Host@841,registry:Host@8804,registry:Host@8930,registry:Host@9084,registry:Host@9372,registry:Host@9436,registry:Host@9495,registry:Host@9578,registry:Host@9661,registry:Host@9892,registry:Host@9977,registry:Hosts@3873,registry:Hosts@6534,registry:Hosts@6994,registry:Hosts@7083,registry:Hosts@919,registry:Id@1976,registry:Id@2287,registry:Id@2386,registry:Id@2466,registry:Id@2617,registry:IdValue@3629,registry:Idle@8077,registry:Import@602,registry:Journal@1174,registry:Journal@1994,registry:Journal@2293,registry:Journal@2472,registry:Keep@10369,registry:KeyFP@2949,registry:Kind@10198,registry:Kind@10361,registry:Label@3080,registry:Label@3162,registry:Label@3243,registry:Label@3344,registry:Label@3429,registry:Label@6752,registry:Lifetime@226,registry:Lifetime@298,registry:Lifetime@385,registry:Lifetime@478,registry:Lifetime@745,registry:Limit@9727,registry:Limit@9822,registry:MaxRun@8085,registry:Method@151,registry:Moved@6365,registry:Ms@10025,registry:Name@10117,registry:Name@1764,registry:Name@1875,registry:Name@2814,registry:Name@2934,registry:Name@3648,registry:Name@9444,registry:Name@9503,registry:Name@9586,registry:Name@9900,registry:Name@9985,registry:Next@1033,registry:NextAt@10043,registry:NextGood@7386,registry:NextValue@2546,registry:NextValue@2644,registry:Now@1899,registry:Now@8278,registry:Now@9720,registry:Now@9815,registry:Now@9908,registry:Number64@3293,registry:Number64@3736,registry:Number@10158,registry:Number@10229,registry:Number@10314,registry:Observed@1097,registry:Observed@7445,registry:ObservedValue@1375,registry:Old@2539,registry:Old@2637,registry:On@7457,registry:On@7527,registry:On@7656,registry:On@8152,registry:On@8215,registry:Op@4206,registry:Op@4282,registry:Op@4450,registry:Op@4532,registry:Op@4628,registry:Op@4806,registry:Op@4898,registry:Owner@1012,registry:Owner@1109,registry:Owner@1392,registry:P@9038,registry:Pair@377,registry:Pair@4550,registry:Pair@4634,registry:Pair@4732,registry:Pair@648,registry:Pair@849,registry:Path@9269,registry:Paths@8966,registry:PolicyExpiresAt@6038,registry:Prefix@9092,registry:Prev@7311,registry:Pub@2942,registry:RDs@8938,registry:RateLimit@6478,registry:Receipt@757,registry:Regional@8836,registry:Registration@1772,registry:Registration@1883,registry:Registration@9594,registry:Registration@9993,registry:Replica@6238,registry:Replicas@6177,registry:Retirement@2623,registry:Revision@397,registry:Revision@490,registry:Revision@857,registry:Route@3971,registry:Routes@3929,registry:Routes@4924,registry:Routes@7809,registry:Routes@7876,registry:Routes@8245,registry:Rows@9380,registry:Seed@7959,registry:Size@6030,registry:Sqid@3640,registry:Sqid@3703,registry:Sqid@3782,registry:Status@10015,registry:Status@10125,registry:Status@1788,registry:Status@3252,registry:Status@4196,registry:Status@4272,registry:Status@4358,registry:Status@4522,registry:Status@5266,registry:Status@7163,registry:Status@8507,registry:Steering@5803,registry:StringMap@3546,registry:T@1489,registry:T@1583,registry:T@1666,registry:T@9320,registry:TValue@4076,registry:TValue@4143,registry:TValue@6802,registry:Tags@3171,registry:Target@6933,registry:Targets@1185,registry:Text@2192,registry:Text@2339,registry:Text@3750,registry:Text@9125,registry:Text@9188,registry:Timer@1441,registry:Timer@1623,registry:Timer@9408,registry:Timers@9631,registry:Timers@9690,registry:Timers@9779,registry:Times@10403,registry:To@5327,registry:To@5388,registry:ToDB@5477,registry:ToOp@4368,registry:ToSock@5485,registry:TokenHash@3089,registry:Tunnel@6665,registry:Unit@5598,registry:UpdateSettings@5950,registry:Ver@7304,registry:Ver@7520,registry:Ver@7596,registry:W@8738,registry:Wake@570,registry:Wake@656,registry:Wildcards@8632,whole:Account@3814,whole:ClaimOwnership@1014,whole:ClaimOwnership@1111,whole:ClaimOwnership@1394,whole:ClaimRow@1187,whole:ClaimRowArchive@1293,whole:ClaimRowArchive@1303,whole:ColdRows@2541,whole:ColdRows@2548,whole:ColdRows@2639,whole:ColdRows@2646,whole:DutyState@184,whole:DutyState@262,whole:DutyState@504,whole:Fleet@2702,whole:Fleet@2763,whole:Fleet@2790,whole:Fleet@2848,whole:FleetBox@3015,whole:FleetBox@3474,whole:GoodBuild@7374,whole:GoodBuild@7388,whole:HAAdoption@690,whole:HAAdoption@883,whole:HAWakeImport@572,whole:HAWakeImport@658,whole:Pair@379,whole:Pair@4552,whole:Pair@4636,whole:Pair@4720,whole:Pair@4734,whole:Pair@650,whole:Pair@851,whole:RegionalDomain@8840,whole:RegionalDomain@8940,whole:Route@1099,whole:Route@3933,whole:Route@3975,whole:Route@4078,whole:Route@4145,whole:Route@4928,whole:Route@5083,whole:Route@5089,whole:Route@6804,whole:Route@7447,whole:Route@7813,whole:Route@7880,whole:Route@8249,whole:RouteAlias@8312,whole:RouteAlias@8388,whole:RoutePath@8970,whole:RoutePath@9040,whole:Timer@1377,whole:Timer@1445,whole:Timer@1491,whole:Timer@1585,whole:Timer@1627,whole:Timer@1668,whole:Timer@9322,whole:Timer@9382,whole:Timer@9412,whole:Timer@9635,whole:Timer@9694,whole:Timer@9783,whole:WildcardDomain@8636,whole:WildcardDomain@8740 00bfe6f2bfd30b79f9973d34a79c86c595b235dfeb50e2e10318d8b1c3a7473e
+internal/hostfiles/wake.go ImportWake legacy accepted-legacy accepted-legacy;rev3=J1,J2,J4;basis=root-route;rev3=census-ruling-region-ha-p1b3b-t;basis=Delegate validated conversion to one atomic ReplaceHAWake transaction instead of three independent writes; no lease or file effect. B2 fix r1: ordinary acquired-lease restore converts legacy wire rows without adoption-only timer grammar restrictions. Version, host and replication remain checked before the atomic exact replacement. whole:HAWakeImport@200 b3d3c13dc1a985b2e4c333b29658a129e808dc3cc2b1321a7acddec9d01cf7e0
+internal/registry/remote_dispatch.go Registry.dispatchRemote hint E2 rev3=census-ruling-self-serve-moves-1;basis=the registry child (carlos __registry-child, the service user a root pass forks): plan14-root-reads-e's mixed declaration (E2 adds only the ArtifactHosts read; every other arm is the local method of the same name), with three more write arms, SetHoldIfSeq, ReleaseHoldSeq and InstallLifetimeIf, each calling the local setter; no read operation added; self-serve moves 1 Task 7;rev3=census-ruling-instance-egress-sizes-328-329;identity=the registry child (carlos __registry-child, the service user a root pass forks);basis=#328/#329 plan 1 Task 4: one more write arm, SetPolicy, calling the local Registry.SetPolicy with the request's Host, EgressAllow, Size and PolicyExpiresAt (remoteRequest fields sent by the remote handle's holder); the new kinds registry:EgressAllow, registry:Size and registry:PolicyExpiresAt, one site each, plus one more registry:Host site, all of the request; no read operation added; the read-only worker never reaches it (serveRemote's method gate); no production root pass sends SetPolicy;rev3=census-ruling-region-ha-p1a;basis=the registry child (carlos __registry-child, the service user a root pass forks): one more write arm, SetHA, calling the local Registry.SetHA with the request's Host (+registry:Host); no read operation added; only the provision pass sends it;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 2 and 8: two new remote methods, UpsertUnlessRootfs (carlos add's guarded write) and ResidentInstances (the residency sweep's list), each calling the same-named Registry method;rev3=census-ruling-regional-domains-447;basis=#447 Task 4: two more methods on the existing remote registry transport, ListRegional and ReplaceRegionalSet (request field RDs, response field Regional), each calling the local method of the same name, which validates its own input; no new kind of read;rev3=census-ruling-fleet-secrets-key;basis=one new case, SetFleetSecretsKey, reading the request's Name, Pub, KeyFP, By and At fields and calling SetFleetSecretsKey;rev3=census-ruling-fleet-public-routes;basis=fleet public routes (spec 2026-10-29 rev 4, §4.2 writer rule): Tasks 1-2: three new cases (SetFleetBoxIf reads the request's Fleet and answers Changed; PutForward reads TValue, a whole Route; DeleteForward reads Host and answers Changed); SetFleetBox gone (+registry:Changed x2, +registry:Fleet, +registry:Host, +registry:TValue, +whole:Route). Each case calls the local writer with its own guards.;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Tasks 2 and 6b): three more remote methods dispatched to their local forms, SetFleetBoxDraining (q.Fleet, q.Label, q.At, answering Number64), MarkFleetBoxLabelled (q.Fleet, q.Label, q.At) and SetFleetAssignment (q.Host, q.Assigned, q.Moved); remoteRequest gains Assigned and Moved. The registry child, not root.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Add SetServingMode dispatch using the existing remote request Host, Ver and On fields; the same local narrow writer handles it. No new transport or root path. Task 4 R24: dispatch SeedStateless with the existing Observed Route and On carriers to its symmetric guarded local method. No new transport; the existing read-only service gate still refuses writes.;rev3=census-ruling-region-ha-p1b3b-t;basis=Dispatch typed duty, import, exact replacement and guarded receipt operations through the existing service-user registry transport, preserving comparisons and errors. B2 fix r1: dispatch AdvanceHADuty through the existing service-user registry channel and error mapping, reading the request Host only. Read-only method allowlist remains unchanged. registry:A@8446,registry:Account@5208,registry:Accounts@3870,registry:Addr@5785,registry:Addrs@5793,registry:Adoption@746,registry:Adoption@941,registry:Alias@8494,registry:Alias@8558,registry:Alias@8646,registry:Aliases@8368,registry:Alive@10321,registry:Args@8070,registry:AssetGen@5935,registry:AssetsOff@5922,registry:Assigned@6413,registry:At@10069,registry:At@3024,registry:At@3413,registry:At@3498,registry:At@7307,registry:At@8577,registry:At@8655,registry:Attempts@10091,registry:B@3073,registry:Backing@5604,registry:BuildState@6172,registry:By@3018,registry:Changed@10001,registry:Changed@250,registry:Changed@2788,registry:Changed@392,registry:Changed@4293,registry:Changed@4380,registry:Changed@4469,registry:Changed@4540,registry:Changed@4644,registry:Changed@4731,registry:Changed@4824,registry:Changed@4906,registry:Changed@492,registry:Changed@6760,registry:Changed@6897,registry:Changed@760,registry:Changed@857,registry:Channel@5268,registry:Channel@6603,registry:Channel@7152,registry:CheckedAt@7233,registry:Class@5723,registry:DoneBefore@10330,registry:Due@10113,registry:Due@7771,registry:Due@7835,registry:Duty@240,registry:Duty@318,registry:Duty@562,registry:EgressAllow@6075,registry:Env@6671,registry:Env@7063,registry:Env@7163,registry:ExcludeHosts@9796,registry:ExcludeHosts@9891,registry:ExpectGood@7432,registry:ExpectOp@4348,registry:ExpectOp@4598,registry:ExpectPair@4778,registry:Expected@1081,registry:Expected@1554,registry:Expected@1731,registry:Expected@2042,registry:Expected@929,registry:F@2760,registry:F@2821,registry:Fleet@2846,registry:Fleet@3131,registry:Fleet@3213,registry:Fleet@3294,registry:Fleet@3395,registry:Fleet@3480,registry:Fleet@3569,registry:Fleet@6803,registry:FleetBoxes@3530,registry:Fleets@2904,registry:From@5379,registry:From@5440,registry:FromDB@5515,registry:FromOp@4436,registry:FromSock@5525,registry:Hash@6477,registry:Health@5802,registry:Host@10037,registry:Host@10169,registry:Host@10250,registry:Host@10413,registry:Host@1064,registry:Host@1816,registry:Host@1927,registry:Host@214,registry:Host@278,registry:Host@350,registry:Host@4054,registry:Host@4095,registry:Host@4248,registry:Host@429,registry:Host@4324,registry:Host@4410,registry:Host@4502,registry:Host@4574,registry:Host@4680,registry:Host@4770,registry:Host@4858,registry:Host@4950,registry:Host@5200,registry:Host@5260,registry:Host@530,registry:Host@5318,registry:Host@5371,registry:Host@5432,registry:Host@5507,registry:Host@5596,registry:Host@5650,registry:Host@5715,registry:Host@5777,registry:Host@5855,registry:Host@5914,registry:Host@6002,registry:Host@6067,registry:Host@6164,registry:Host@622,registry:Host@6229,registry:Host@6290,registry:Host@6340,registry:Host@6405,registry:Host@6469,registry:Host@6530,registry:Host@6663,registry:Host@6717,registry:Host@6795,registry:Host@6932,registry:Host@6985,registry:Host@700,registry:Host@7215,registry:Host@7299,registry:Host@7356,registry:Host@7424,registry:Host@7572,registry:Host@7648,registry:Host@7708,registry:Host@7763,registry:Host@7827,registry:Host@797,registry:Host@8011,registry:Host@8062,registry:Host@8129,registry:Host@8204,registry:Host@8267,registry:Host@8864,registry:Host@8990,registry:Host@901,registry:Host@9144,registry:Host@9432,registry:Host@9496,registry:Host@9555,registry:Host@9638,registry:Host@9721,registry:Host@9952,registry:Hosts@3933,registry:Hosts@6594,registry:Hosts@7054,registry:Hosts@7143,registry:Hosts@979,registry:Id@2036,registry:Id@2347,registry:Id@2446,registry:Id@2526,registry:Id@2677,registry:IdValue@3689,registry:Idle@8137,registry:Import@662,registry:Journal@1234,registry:Journal@2054,registry:Journal@2353,registry:Journal@2532,registry:Keep@10429,registry:KeyFP@3009,registry:Kind@10258,registry:Kind@10421,registry:Label@3140,registry:Label@3222,registry:Label@3303,registry:Label@3404,registry:Label@3489,registry:Label@6812,registry:Lifetime@286,registry:Lifetime@358,registry:Lifetime@445,registry:Lifetime@538,registry:Lifetime@805,registry:Limit@9787,registry:Limit@9882,registry:MaxRun@8145,registry:Method@151,registry:Moved@6425,registry:Ms@10085,registry:Name@10045,registry:Name@10177,registry:Name@1824,registry:Name@1935,registry:Name@2874,registry:Name@2994,registry:Name@3708,registry:Name@9504,registry:Name@9563,registry:Name@9646,registry:Name@9960,registry:Next@1093,registry:NextAt@10103,registry:NextGood@7446,registry:NextValue@2606,registry:NextValue@2704,registry:Now@1959,registry:Now@8338,registry:Now@9780,registry:Now@9875,registry:Now@9968,registry:Number64@3353,registry:Number64@3796,registry:Number@10218,registry:Number@10289,registry:Number@10374,registry:Observed@1157,registry:Observed@7505,registry:ObservedValue@1435,registry:Old@2599,registry:Old@2697,registry:On@7517,registry:On@7587,registry:On@7716,registry:On@8212,registry:On@8275,registry:Op@4266,registry:Op@4342,registry:Op@4510,registry:Op@4592,registry:Op@4688,registry:Op@4866,registry:Op@4958,registry:Owner@1072,registry:Owner@1169,registry:Owner@1452,registry:P@9098,registry:Pair@437,registry:Pair@4610,registry:Pair@4694,registry:Pair@4792,registry:Pair@708,registry:Pair@909,registry:Path@9329,registry:Paths@9026,registry:PolicyExpiresAt@6098,registry:Prefix@9152,registry:Prev@7371,registry:Pub@3002,registry:RDs@8998,registry:RateLimit@6538,registry:Receipt@817,registry:Regional@8896,registry:Registration@10053,registry:Registration@1832,registry:Registration@1943,registry:Registration@9654,registry:Replica@6298,registry:Replicas@6237,registry:Retirement@2683,registry:Revision@457,registry:Revision@550,registry:Revision@917,registry:Route@4031,registry:Routes@3989,registry:Routes@4984,registry:Routes@7869,registry:Routes@7936,registry:Routes@8305,registry:Rows@9440,registry:Seed@8019,registry:Size@6090,registry:Sqid@3700,registry:Sqid@3763,registry:Sqid@3842,registry:Status@10075,registry:Status@10185,registry:Status@1848,registry:Status@3312,registry:Status@4256,registry:Status@4332,registry:Status@4418,registry:Status@4582,registry:Status@5326,registry:Status@7223,registry:Status@8567,registry:Steering@5863,registry:StringMap@3606,registry:T@1549,registry:T@1643,registry:T@1726,registry:T@9380,registry:TValue@4136,registry:TValue@4203,registry:TValue@6862,registry:Tags@3231,registry:Target@6993,registry:Targets@1245,registry:Text@2252,registry:Text@2399,registry:Text@3810,registry:Text@9185,registry:Text@9248,registry:Timer@1501,registry:Timer@1683,registry:Timer@9468,registry:Timers@9691,registry:Timers@9750,registry:Timers@9839,registry:Times@10463,registry:To@5387,registry:To@5448,registry:ToDB@5537,registry:ToOp@4428,registry:ToSock@5545,registry:TokenHash@3149,registry:Tunnel@6725,registry:Unit@5658,registry:UpdateSettings@6010,registry:Ver@7364,registry:Ver@7580,registry:Ver@7656,registry:W@8798,registry:Wake@630,registry:Wake@716,registry:Wildcards@8692,whole:Account@3874,whole:ClaimOwnership@1074,whole:ClaimOwnership@1171,whole:ClaimOwnership@1454,whole:ClaimRow@1247,whole:ClaimRowArchive@1353,whole:ClaimRowArchive@1363,whole:ColdRows@2601,whole:ColdRows@2608,whole:ColdRows@2699,whole:ColdRows@2706,whole:DutyState@244,whole:DutyState@322,whole:DutyState@564,whole:Fleet@2762,whole:Fleet@2823,whole:Fleet@2850,whole:Fleet@2908,whole:FleetBox@3075,whole:FleetBox@3534,whole:GoodBuild@7434,whole:GoodBuild@7448,whole:HAAdoption@750,whole:HAAdoption@943,whole:HAWakeImport@632,whole:HAWakeImport@718,whole:Pair@439,whole:Pair@4612,whole:Pair@4696,whole:Pair@4780,whole:Pair@4794,whole:Pair@710,whole:Pair@911,whole:RegionalDomain@8900,whole:RegionalDomain@9000,whole:Route@1159,whole:Route@3993,whole:Route@4035,whole:Route@4138,whole:Route@4205,whole:Route@4988,whole:Route@5143,whole:Route@5149,whole:Route@6864,whole:Route@7507,whole:Route@7873,whole:Route@7940,whole:Route@8309,whole:RouteAlias@8372,whole:RouteAlias@8448,whole:RoutePath@9030,whole:RoutePath@9100,whole:Timer@1437,whole:Timer@1505,whole:Timer@1551,whole:Timer@1645,whole:Timer@1687,whole:Timer@1728,whole:Timer@9382,whole:Timer@9442,whole:Timer@9472,whole:Timer@9695,whole:Timer@9754,whole:Timer@9843,whole:WildcardDomain@8696,whole:WildcardDomain@8800 0496bf8a614e4de8004f97336e346663bfb83bfc35c2a9441ecd01221e12d360
internal/activator/activator.go Service.ServeScheduled legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-plans-4d-lapse;basis=answers a scheduled request to a route the turned-off hook names with the maintenance response before serve (plans 4d). One more whole-row read: the row handed to the hook (a.disabled), as the fence and maxRunFor are asked.;rev3=census-ruling-region-ha-p1a;basis=the agent as carlos: wraps the proxy so that, after the wake, fillScheduledToken(r, rt) sets an HA host's tick bearer token from its restored env file; an error there logs (+registry:Host, rt.Host) and answers 503 with Retry-After: 5; a non-HA host's tick is left as the runner built it; +whole:Route is rt handed to fillScheduledToken; keeps legacy;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Task 5: the activator-managed test is Route.ActivatorOwned (a hibernating instance, or an instance with a runtime) instead of Kind and Hibernate inline; reads the same fields plus Runtime through the method;rev3=census-ruling-region-ha-p1b3b-t;basis=Run the local scheduled request under WithDuty and retain existing HTTP refusal text; add route arguments to background admission and error handling. No forwarding. registry:Host@669,registry:Status@146,registry:Status@165,whole:Route@1143,whole:Route@248,whole:Route@600,whole:Route@883,whole:Route@964 41bcecc8605bfc52536690da309860ffc7464646dd4e2dbf577fc2bd287c9061
internal/activator/activator.go Service.wake legacy accepted-legacy accepted-legacy;rev3=census-ruling-carlos-run;basis=Re-digested at the pre-land merge: the body includes main's own change under census ruling 292, with no further change from this branch. the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): main's body; the stop now carries its reason for a run it interrupts (beginStopLocked's why argument); read sites unchanged, offsets moved;rev3=census-ruling-wake-latency-1;identity=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos);basis=logs that timer's breakdown to the journal after a successful wake (w.steps.String(), e.host, w.wakeTook); no read added;rev3=census-ruling-plans-4d-lapse;basis=cancels a wake whose row the turned-off hook names, like a fence, unless it is a move's active probe (plans 4d). One more whole-row read: the row handed to the hook (a.disabled). Only refuses.;rev3=census-ruling-rootfs-apps-3;basis=rootfs Plan 3 Tasks 7 and 8: a refusal before the lease is reported once per change (noteRootfsRefusal) instead of a wake-failure event; the proc, generation and replica are installed through installProcLocked (which puts a resident under its lease watch before the fence); residency notes the outcome (noteResidentWakeLocked); same generation values;rev3=census-ruling-rootfs-apps-3-release;basis=rootfs Plan 3 Group R [pf R3.5]: the wake's context ceiling is wakeCeilingFor(e.route): the old 5 minutes for a binary row, 5 minutes plus runs.MaxTimeout for a rootfs row (room for a release inside the wake); new site +whole:Route (e.route to wakeCeilingFor, which reads Runtime only); no other change;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (branch review R1 P1-1): the wake's context is also cancelled before doWake when RetireExcept has marked the entry retired (e.retired, in memory under a.mu), as it is for a fence or a shutdown. Read sites unchanged (13). Agent, not root; it only refuses more.;rev3=census-ruling-stateless-replicas-1;basis=Task 3a: Carry successful hold preparation into its wake, preserve actual mode in the generation and OnWake projection, and project serving version/mode through the narrow registry writer before releasing wake waiters. Final review I1: SetServingMode only for non-worker successful wakes with a nonempty spawned version and either a stateless generation or a mode transition from the route. Ordinary stateful wakes leave rollout status and the wake critical path unchanged.;rev3=census-ruling-edge-held-streams;basis=the agent (/opt/carlos/carlos agent, carlos-edge.service, user carlos): adds a.cancelHeldLegsLocked(e, 0) on the failed-wake path before the entry is deleted, and after close(e.ready) on success calls a.noteHeldAdmissible(e.host), the non-blocking held wake callback, outside a.mu. No read added.;rev3=census-ruling-region-ha-p1b3b-t;basis=Install the successful-acquire observer and restrict due, worker and resident starts before doWake, off a.mu. Add a whole-route argument to restriction; refused work has known-no-start evidence. registry:Socket@8151,registry:Socket@8312,registry:Stateless@10394,registry:Stateless@9646,whole:Route@10396,whole:Route@1047,whole:Route@1350,whole:Route@2865,whole:Route@2992,whole:Route@3049,whole:Route@417,whole:Route@6399,whole:Route@8104,whole:Route@8153,whole:Route@8314,whole:Route@9637,whole:Route@9692 6204eb606d27d250370fc2a8a821195ea3eb3b8648e7656c52a25d1488a8c2b7
internal/activator/harelease.go Service.releaseHAClean legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: an HA entry's release, in order: host slice read empty through haHostEmpty (else errHostSliceUnproven and nothing written; the same check, moved into that helper by final fix F1), stop and join the files publisher, its final publish (2 min budget), the replica's final sync (Finish, 30 s), the local release record, then the release marker PUT (10 s), clean only when the final publish was complete and the sync and record succeeded; a failed PUT is a persisted lease obligation; +registry:Host, +whole:Route x4;rev3=census-ruling-region-ha-p1b3b-t;basis=Record advisory local-release basis only after ReleaseMarker succeeds. Add a whole-route argument to local duty bookkeeping; release order and lease authority unchanged. registry:Host@1825,whole:Route@102,whole:Route@1098,whole:Route@1236,whole:Route@1734,whole:Route@244 1d28991be7fe53f505751cde1f9822ffee9598d2eea3834eda94f42406315236
internal/activator/hatakeover.go ExecBackend.ownerTerminated legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b1;basis=new (region HA P1b-1): returns nil without eb.OwnerTerminated; else a closure calling it with the lock owner's instance id (from the HA lock, written by a box agent) and logging rt.Host on a takeover and, at most once a minute per host, on an error; the id goes only to EC2 DescribeInstances in this box's own account and region and is checked against the reply (termfence.SameAccountTerminated); root never calls it;rev3=census-ruling-region-ha-p1b3b-t;basis=Read route Host for structured departure-finalize telemetry; retain the same confirmation callback and visitor alarm behavior. registry:Host@378,registry:Host@472,registry:Host@638 7082fa0f1b04d12676d4e0abf5d7bafaf4041fa3910e89c230ff4eba1949d785
+internal/activator/hawake.go ExecBackend.acquireClassified legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1a;basis=new: the acquire's classification: a legacy route (sidecar, hand-added or not an instance) takes lease.Acquire and refuses on an HA-format lock; otherwise isHA (a record read error fails the wake, never falls back to legacy); not HA takes lease.Acquire, and an HA-format lock there marks the host HA for good and continues; HA requires haContained before any lock request, then lease.AcquireHA with the same-box proof; held and refused leases map to errLeaseHeld and errLeaseRefused (leaseError); +registry:Host, +whole:Route x7;rev3=census-ruling-region-ha-p1b1;basis=region HA P1b-1: the HA acquire's Proofs gain OwnerTerminated (b.ownerTerminated(ctx, rt)) beside SameBoxEmpty; one more whole:Route site passes the route to ownerTerminated; nothing new is read; the proof is consulted only by hafresh.DecideAcquire for another box's expired HA lock;rev3=census-ruling-managed-fleets-1b;basis=managed fleets 1b (Task 7, two-box fleet test): the two legacy acquires call b.acquireLegacy(ctx, prefix), which is acquireLegacyLease exactly when ExecBackend.LeaseIdentity is nil and LeaseTTL is 0 (the agent never sets them), otherwise lease.AcquireAs with that identity and TTL. The classification, the HA path and every refusal are unchanged. Read sites unchanged (9). Agent, not root.;rev3=census-ruling-region-ha-p1b3b-t;basis=Select the restriction-only AcquireHAForDuty for background contexts, including sticky HA reclassification; observe successful ordinary acquires to clear stale suppression. Add a whole-route observer argument; no new authority. B2 binds the current authoritative lifetime and advances local revision before HA acquire, invalidating concurrent adoption I/O. Ordinary lease authority and restore ordering remain unchanged. B2 fix r1: advance the local duty revision with an unconditional registry UPDATE before acquire; remove pre-acquire lifetime CAS and basis clearing. Failed acquire preserves adopted state. Existing lease validation and successful-acquire observer remain. registry:Host@106,whole:Route@1137,whole:Route@1369,whole:Route@1414,whole:Route@195,whole:Route@2011,whole:Route@2107,whole:Route@533,whole:Route@584,whole:Route@834 0fe9f632cf33a6371eda5a5ffa7f02e5346e76d7d4f889d991809c4f418aaf2f
internal/host/schedule_wiring.go activatorDeliverer.deliverSelected legacy accepted-legacy accepted-legacy;rev3=J1;basis=root-route;rev3=census-ruling-region-ha-p1b3b-t;basis=Wrap local delivery in WithDuty so lease loss returns a deferred control result before timer bookkeeping. Add whole-route arguments; no remote forwarding. registry:Host@539,registry:Host@821,registry:Socket@185,registry:Socket@2615,registry:Socket@861,whole:Route@1741,whole:Route@1865,whole:Route@1941,whole:Route@2014,whole:Route@759 afd339dd7acde53dc86f0f55c0a83fa41845bb23825b94ac7fb11ace3330b648
internal/schedule/runner.go Runner.fire hint E2 accepted-legacy;rev3=census-ruling-moves-offline-fixes;basis=root-route (main: J1) PROPOSED E46: captured claim selection and root journal mutation; root RPC outside service host exclusion; SQL/route data never grants root authority. Executing identity: service controller; root for inventory/retirement callbacks. moves-offline-fixes: with Skip set (only the agent's runner sets it, scheduleSkip), the row is read again before the token and a skipped host gets no token and no record; class and task unchanged;rev3=census-ruling-region-ha-p1b3b-t;basis=Call WithDuty before token preparation; record non-deferred pre-delivery wake errors through the existing retry and event policy after timerStillDue. Adds spec and whole timer/route reads for record. Advance only known non-owner recurring occurrences through the existing registration/DueAt guard; no second outcome after callback execution. registry:Spec@410,registry:Spec@626,whole:Route@125,whole:Route@200,whole:Route@269,whole:Route@454,whole:Timer@129,whole:Timer@273,whole:Timer@374,whole:Timer@458,whole:Timer@589,whole:Timer@801 7e8eb8e42de11c2c7a6f21d02a424875f74809343673be4e0009624765d63ac2
-@coverage internal/activator 079d7d77fe4330c2b34aecfeb21f62c0a6dfa8f953663d1a98db16256d84f69f
+@coverage internal/activator 97b1bb0ae9202c1e8a2b2a9045810cde93805d1e2ac37b1defb75a3afb09d1dd
@coverage internal/boxchoice 6b3d6aaacf54a2c2705f5c93d7799e0d9790712e165c90ead6de91e845ae8b09
@coverage internal/edge 269c0490df6ee888eee703c1735881c4047f21bf78a104fc76b604313e9ae5a7
@coverage internal/host d8ce1e0beb20c355bee9ef64b750639cec74bc7d23980b0e4278660d7a071f04
-@coverage internal/hostfiles 0f1b6a928e2ac262337a7add97420487f836c2da779abd61a288fc1c046dc8b8
+@coverage internal/hostfiles 21a32d89c6143031af13cb18bc1a2227353ed8595ab23bde7abd1e9d2df92eaf
@coverage internal/lease 99d42caf6e5253517696871e30beead3c37ad74a3cc61a763ec2e931bd2d8606
-@coverage internal/registry 0e6b4e1f687caaeb08cda66396e2225f26863e96e23236b6c5700f05f90a641b
+@coverage internal/registry 541ca3db5052864d0b9e872ae100f32b91c32cd95a6822aae9ff8b8ab90ff6d2
@coverage internal/schedule 45287d297f4431ec8eaa3f515ce684d5e447f99845cfa1207e4386d4897b7f3d
@coverage internal/timerspec 66b07dd7c4e64c11458e56e54b0c982f1baba37ea3f0ceebd3b009d170c438d9
-@fields A,Account,Accounts,AcquiredGeneration,AddedAt,Addr,Addrs,Adoption,Alias,Aliases,Alive,AllowAbsent,App,Archives,Args,AssetGen,AssetsOff,Assigned,At,Attempts,B,Backing,Basis,Bucket,BuildState,By,Callback,CallbackError,CallbackFailed,Canary,Caps,CertExpiresAt,Changed,Channel,CheckedAt,Claim,ClaimIncarnation,ClaimOwner,ClaimOwnership,ClaimRowID,ClaimStamp,Class,Column,Contents,CreatedAt,DBPath,DNSCheckedAt,DNSStatus,Deadline,Default,Demand,DepartureIID,DepartureRef,Digest,DoneBefore,DrainingSince,Due,DueAt,Duty,EgressAllow,Env,EnvBefore,Environment,Error,ErrorKind,ExcludeHosts,ExpectGood,ExpectOp,ExpectPair,Expected,ExpectedPair,F,Failed,FenceGen,Field,Fleet,FleetBox,FleetBoxes,FleetLabel,Fleets,From,FromDB,FromOp,FromSock,Gate,GoodDemand,GoodDigest,GoodVersion,HA,Hash,Health,Held,Hibernate,HoldOp,HolderEpoch,HolderIID,HolderRef,Host,Hosts,ID,Id,IdValue,Idle,IdleSeconds,Import,ImportGate,Incarnation,Journal,Keep,KeyFP,Kind,Label,LabelledAt,LastAt,LastError,LastMs,LastStatus,Lifetime,Limit,LockETag,LockGeneration,MaxRun,MaxRunSeconds,Method,Moved,Ms,Name,Next,NextAt,NextDue,NextGood,NextValue,NotBefore,Now,Number,Number64,Observed,ObservedValue,Old,On,OnConflict,Op,Original,Owner,Ownership,P,Pair,Path,Paths,Phase,Platform,PolicyExpiresAt,Pool,Prefix,Prev,PrevVersion,Provisioned,Pub,RDs,RateLimit,Receipt,RecordKey,Region,Regional,Registration,Replica,Replicas,Replication,Retirement,Revision,Route,Routes,Row,Rows,Runtime,SecretsKeyFP,SecretsKeySetAt,SecretsKeySetBy,SecretsPub,Seed,SeedID,SeedSource,Sequence,ServingSeq,ServingVersion,Size,Slug,Socket,Spec,Sqid,State,Stateless,Status,StatusNamed,Steering,StringMap,T,TValue,Tags,Target,Targets,Text,Timer,Timers,Times,To,ToDB,ToOp,ToSock,TokenHash,Tunnel,Type,Unit,UpdateSettings,Ver,Version,ViewKey,W,Wake,WakeDigest,WakeIncarnation,Wildcards,closed,conn,connect,ctx,d,dec,done,enc,full,input,mu,output,path,readOnly,remote,sql,wait
+@fields A,Account,Accounts,AcquiredGeneration,AddedAt,Addr,Addrs,Adoption,Alias,Aliases,Alive,AllowAbsent,App,Archives,Args,AssetGen,AssetsOff,Assigned,At,Attempts,B,Backing,Basis,Binding,Bucket,BuildState,By,Callback,CallbackError,CallbackFailed,Canary,Caps,CertExpiresAt,Changed,Channel,CheckedAt,Claim,ClaimIncarnation,ClaimOwner,ClaimOwnership,ClaimRowID,ClaimStamp,Class,Column,Contents,CreatedAt,DBPath,DNSCheckedAt,DNSStatus,Deadline,Default,Demand,DepartureIID,DepartureRef,Digest,DoneBefore,DrainingSince,Due,DueAt,Duty,EgressAllow,Env,EnvBefore,Environment,Error,ErrorKind,ExcludeHosts,ExpectGood,ExpectOp,ExpectPair,Expected,ExpectedPair,F,Failed,FenceGen,Field,Fleet,FleetBox,FleetBoxes,FleetLabel,Fleets,From,FromDB,FromOp,FromSock,Gate,GoodDemand,GoodDigest,GoodVersion,HA,Hash,Health,Held,Hibernate,HoldOp,HolderEpoch,HolderIID,HolderRef,Host,Hosts,ID,Id,IdValue,Idle,IdleSeconds,Import,ImportGate,Incarnation,Journal,Keep,KeyFP,Kind,Label,LabelledAt,LastAt,LastError,LastMs,LastStatus,Lifetime,Limit,LockETag,LockGeneration,MaxRun,MaxRunSeconds,Method,Moved,Ms,Name,Next,NextAt,NextDue,NextGood,NextValue,NotBefore,Now,Number,Number64,Observed,ObservedValue,Old,On,OnConflict,Op,Original,Owner,Ownership,P,Pair,Path,Paths,Phase,Platform,PolicyExpiresAt,Pool,Prefix,Prev,PrevVersion,Provisioned,Pub,RDs,RateLimit,Receipt,RecordKey,Region,Regional,Registration,Replica,Replicas,Replication,Retirement,Revision,Route,Routes,Row,Rows,Runtime,SecretsKeyFP,SecretsKeySetAt,SecretsKeySetBy,SecretsPub,Seed,SeedID,SeedSource,Sequence,ServingSeq,ServingVersion,Size,Slug,Socket,Spec,Sqid,State,Stateless,Status,StatusNamed,Steering,StringMap,T,TValue,Tags,Target,Targets,Text,Timer,Timers,Times,To,ToDB,ToOp,ToSock,TokenHash,Tunnel,Type,Unit,UpdateSettings,Ver,Version,ViewKey,W,Wake,WakeDigest,WakeIncarnation,Wildcards,closed,conn,connect,ctx,d,dec,done,enc,full,input,mu,output,path,readOnly,remote,sql,wait
diff --git a/internal/registry/ha_departures.go b/internal/registry/ha_departures.go
index ea3d973db..7cfbda8a3 100644
--- a/internal/registry/ha_departures.go
+++ b/internal/registry/ha_departures.go
@@ -53,7 +53,7 @@ func (r *Registry) migrateHAAdoptions() error {
return err
}
defer tx.Rollback()
- schema := `CREATE TABLE IF NOT EXISTS ha_departure_hosts (
+ const schema = `CREATE TABLE IF NOT EXISTS ha_departure_hosts (
departure_id TEXT NOT NULL,host TEXT NOT NULL,lifetime TEXT NOT NULL,
departure_ref TEXT NOT NULL,departure_iid TEXT NOT NULL,lock_etag TEXT NOT NULL,lock_generation INTEGER NOT NULL,wake_digest TEXT NOT NULL,sequence INTEGER NOT NULL,
binding INTEGER NOT NULL,phase TEXT NOT NULL,acquired_generation INTEGER NOT NULL DEFAULT 0,