carlos / platform Public

ha: recheck host lifetime after proof I/O and refresh census

Refuse when authoritative host lifetime changes during proof work. Keep persistence retry tests on one clock, and regenerate the cumulative slice census proposal. Focused tests, race checks and cross-builds pass; the full activator run remains red with pre-existing publication/timing failures and a package timeout. B3 controller integration remains for the authorized continuation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 62cfcd16da9cd7b643422184544a32b7822dac29 parent fbe93e6
7 files changed, +40 −26
  • docs/superpowers/notes/census-proposal-region-ha-p1b3b-t.md +5 −4
  • docs/superpowers/notes/census-region-ha-p1b3b-t-claims.md +3 −2
  • internal/lease/termination_proof.go +13 −7
  • internal/lease/termination_proof_test.go +5 −3
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −1
  • internal/provision/testdata/plan14-root-reads-region-ha-p1b3b-t.tsv +12 −8
  • internal/termfence/termination_proof_test.go +1 −1

CI failed — run details

Intent

Human

Check Astra B2 fix round 1 for P1b-3b slice T: task-B2-astra-fix1.md/.log and progress.md in /home/paulca/amadan.net/carlos/platform/.claude/worktrees/region-ha-p1b3b-duties/.superpowers/sdd/2026-11-03-region-ha-p1b3b-duties/; continue SDD (re-review via the B2 Opus reviewer).

Attributed to this commit: 8.25 g CO₂e (1,017,325 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 58f383e19..fa395af06 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, 45 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, 46 with a new disposition; nothing goes to the census owner (Paul, #280, 2026-10-26).
| unit | change | read sites | what changed |
|---|---|---|---|
@@ -15,11 +15,11 @@ 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/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. B3: pass the same optional durable termination proof adapter to visitor and duty acquires. Nil retains the existing path until controller arming; configured proof failures refuse, with no fallback to a live boolean. No new read in this unit. |
| `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. |
-Envelopes re-pinned: `internal/activator`, `internal/boxchoice`, `internal/edge`, `internal/host`, `internal/hostfiles`, `internal/lease`, `internal/registry`, `internal/schedule`, `internal/timerspec`.
+Envelopes re-pinned: `.`, `internal/activator`, `internal/boxchoice`, `internal/edge`, `internal/host`, `internal/hostfiles`, `internal/lease`, `internal/registry`, `internal/schedule`, `internal/termfence`, `internal/timerspec`.
Review: a model from the other family than the author reads the branch's diff against main on the amadan.net remote (`origin` or `amadan`, whichever points at amadan.net) and gives a verdict for every unit and every re-pinned envelope above. For a unit, compare the change with its recorded disposition and basis below; for an envelope, read every changed function in the package and what it reaches. Reject if the change lets root open, run, query or follow anything it did not before from a path or input a tenant, an app or a box agent can create, write or name; if it weakens a check, refusal, validation, argument or environment the basis relies on; or if the diff cannot settle either. Otherwise approve. Record each verdict on #280 with the tip. A rejected unit goes back to the author to correct; nothing escalates to the census owner.
@@ -83,11 +83,12 @@ New dispositions, which census-propose wrote and the reviewer checks against the
- new `internal/registry/timers.go:Registry.AdvanceDutyTimer`: reads +file:Exec, +registry:DueAt, +registry:Host, +registry:Kind, +registry:Name, +registry:NextAt ×2, +registry:Registration, +registry:remote, +registry:sql, +whole:remoteClient; written legacy, accepted-legacy, frozen
- 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
+- new `internal/termfence/termination_proof.go:readTerminationProof`: reads +file:ReadAll; written legacy, accepted-legacy, frozen
- other `changed registry schema`: closed only if it is the registry schema (re-pinned)
- 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 ×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` → `9356045944d3461023a45c398a16754ac25730350c4dfe27794f4396d564d54e`.
+Seal: `7e30dee4fb52370555ad173512d7f03782f0fbed725a8a6bf4f7e31f52c23668` → `82b779d2afc8266fa816fd5c35ea80bd9ee3a374153d0b0733c859ce39973a60`.
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 b98ea3e1c..0ec02250a 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. 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/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. B3: pass the same optional durable termination proof adapter to visitor and duty acquires. Nil retains the existing path until controller arming; configured proof failures refuse, with no fallback to a live boolean. No new read in this unit.
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.
@@ -31,7 +31,7 @@ internal/activator/hatakeover.go:ExecBackend.ownerTerminated Read route Host for
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. 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: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. B3: pass the optional shared durable termination proof adapter into the existing restricted finalizer acquire. The adapter validates the exact classified peer and current host lifetime, uses the acquire data-bucket client, and cannot bypass expiry or CAS. No new read in this unit.
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. 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.
@@ -56,3 +56,4 @@ internal/activator/haadopt.go:Service.adoptionAwakeSuccessor Read the configured
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.
+internal/termfence/termination_proof.go:readTerminationProof Read at most 2049 bytes from the existing regional data-bucket S3 client at a key derived solely from independently bound, signature-verified immutable box identity. Reject bodies over 2048 bytes, duplicate/missing/unknown fields, invalid provenance and identity mismatch. Only acquire consumes validated proof as authority after expiry and current owner/lifetime checks. No filesystem path or tenant prefix is read.
diff --git a/internal/lease/termination_proof.go b/internal/lease/termination_proof.go
index 9424407d4..81851b064 100644
--- a/internal/lease/termination_proof.go
+++ b/internal/lease/termination_proof.go
@@ -38,12 +38,18 @@ func bindTerminationProof(ctx context.Context, client *s3.Client, bucket, prefix
if !ok || !owner.HA || owner.IID != iid || iid == self.IID || v.Absent || v.Lock.Release != nil || base.Lifetime == "" || region != self.Region || adapter == nil || adapter.Cache == nil || adapter.Resolve == nil || adapter.Lifetime == nil {
return false, termfence.ErrTerminationProof
}
- lifetime, err := adapter.Lifetime(ctx, bucket, prefix, region)
- if err != nil {
- return false, err
+ currentLifetime := func() (bool, error) {
+ lifetime, err := adapter.Lifetime(ctx, bucket, prefix, region)
+ if err != nil {
+ return false, err
+ }
+ if lifetime != base.Lifetime {
+ return false, termfence.ErrTerminationProof
+ }
+ return true, nil
}
- if lifetime != base.Lifetime {
- return false, termfence.ErrTerminationProof
+ if ok, err := currentLifetime(); !ok || err != nil {
+ return false, err
}
binding, err := adapter.Resolve(ctx, owner.Ref, iid)
if err != nil {
@@ -55,7 +61,7 @@ func bindTerminationProof(ctx context.Context, client *s3.Client, bucket, prefix
}
_, found, readErr := adapter.Cache.Load(ctx, termfence.NewProofStore(client), binding)
if found && readErr == nil {
- return true, nil
+ return currentLifetime()
}
if adapter.Confirmer == nil {
return false, readErr
@@ -64,7 +70,7 @@ func bindTerminationProof(ctx context.Context, client *s3.Client, bucket, prefix
if err != nil {
return false, errors.Join(readErr, err)
}
- return true, nil
+ return currentLifetime()
}
return p
}
diff --git a/internal/lease/termination_proof_test.go b/internal/lease/termination_proof_test.go
index 9c0ac5584..d41781684 100644
--- a/internal/lease/termination_proof_test.go
+++ b/internal/lease/termination_proof_test.go
@@ -35,7 +35,7 @@ func (p *proofEC2) DescribeInstances(ctx context.Context, in *ec2.DescribeInstan
return &ec2.DescribeInstancesOutput{Reservations: []ec2types.Reservation{{OwnerId: aws.String("111122223333"), Instances: []ec2types.Instance{{InstanceId: aws.String(in.InstanceIds[0]), State: &ec2types.InstanceState{Name: state}}}}}}, nil
}
func TestTerminationProofAcquireOnly(t *testing.T) {
- for _, mode := range []string{"expired", "unexpired", "equality", "same box", "malformed", "wrong lifetime", "owner CAS", "bucket", "region", "restart"} {
+ for _, mode := range []string{"expired", "unexpired", "equality", "same box", "malformed", "wrong lifetime", "lifetime changes during proof", "owner CAS", "bucket", "region", "restart"} {
t.Run(mode, func(t *testing.T) {
ResetForTest()
t.Cleanup(ResetForTest)
@@ -62,13 +62,15 @@ func TestTerminationProofAcquireOnly(t *testing.T) {
confirm := &termfence.Confirmer{Self: func() boxid.Cloud {
return boxid.Cloud{Provider: "aws", Account: me.Account, Region: me.Region, InstanceID: me.IID}
}, API: func(context.Context, string) (termfence.EC2, error) { return api, nil }, Logf: func(string, ...any) {}}
+ lifetimeReads := 0
adapter := &TerminationProofAdapter{Cache: &termfence.ProofCache{}, Confirmer: confirm, Resolve: func(ctx context.Context, ref, iid string) (termfence.ProofIdentity, error) {
if ref != "departed" || iid != "i-1123456789abcdef0" {
return termfence.ProofIdentity{}, errors.New("unbound")
}
return binding, nil
}, Lifetime: func(context.Context, string, string, string) (string, error) {
- if mode == "wrong lifetime" {
+ lifetimeReads++
+ if mode == "wrong lifetime" || (mode == "lifetime changes during proof" && lifetimeReads > 1) {
return "new-life", nil
}
return "life", nil
@@ -134,7 +136,7 @@ func TestTerminationProofAcquireOnly(t *testing.T) {
t.Fatal("live callback bypassed proof")
}
wantDescribe := 0
- if mode == "expired" || mode == "owner CAS" || mode == "restart" {
+ if mode == "expired" || mode == "owner CAS" || mode == "restart" || mode == "lifetime changes during proof" {
wantDescribe = 1
}
if api.calls != wantDescribe {
diff --git a/internal/provision/testdata/plan14-root-reads-chain.tsv b/internal/provision/testdata/plan14-root-reads-chain.tsv
index e17322c54..8e7792e30 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 9356045944d3461023a45c398a16754ac25730350c4dfe27794f4396d564d54e
+plan14-root-reads-region-ha-p1b3b-t.tsv 82b779d2afc8266fa816fd5c35ea80bd9ee3a374153d0b0733c859ce39973a60
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 2a0839962..d4feddecd 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, 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.
+# 7 body, 7 sites, 11 envelope: each changed unit re-frozen at its existing disposition with its claim appended.
+# 46 new dispositions: 3 reads re-frozen at their disposition with the claim, 42 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
@@ -9,7 +9,7 @@
@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 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 b24f20d5a6a168fadcafe60dae8945951c03963ba4a060a346eed78a6285ea30 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. B3: pass the optional shared durable termination proof adapter into the existing restricted finalizer acquire. The adapter validates the exact classified peer and current host lifetime, uses the acquire data-bucket client, and cannot bypass expiry or CAS. No new read in this unit. 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@7536,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@6449,registry:Host@7298,registry:Host@7600,registry:Host@8163,registry:Host@861,registry:Host@959,registry:Lifetime@5454,registry:Lifetime@7505,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@7307,whole:HAWakeImport@7609,whole:HAWakeImport@7701,whole:Pair@2893,whole:Pair@5665,whole:Pair@7542,whole:Pair@7562,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@6592,whole:Route@6637,whole:Route@6809,whole:Route@723,whole:Route@7394,whole:Route@889 e43bac579369bb989e033798a2595ada412b77348a33a1e75bb2548828df86db
@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
@@ -47,13 +47,14 @@
@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 f28f1e806b403a52e5ac8aef1f28b0429e24db894553196ed6ac9d58280e0e22 internal/termfence/termination_proof.go readTerminationProof legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read at most 2049 bytes from the existing regional data-bucket S3 client at a key derived solely from independently bound, signature-verified immutable box identity. Reject bodies over 2048 bytes, duplicate/missing/unknown fields, invalid provenance and identity mismatch. Only acquire consumes validated proof as authority after expiry and current owner/lifetime checks. No filesystem path or tenant prefix is read. file:ReadAll@753 3cae6540aba3e76210c4bf5e57a6f6b2c5160a0be8a531c74b823438c085e060
@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 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 816f258c0b7915cfd3e9b21809ee4c2138bfeee525cf8bea940fa50e57d558be 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. B3: pass the same optional durable termination proof adapter to visitor and duty acquires. Nil retains the existing path until controller arming; configured proof failures refuse, with no fallback to a live boolean. No new read in this unit. registry:Host@106,whole:Route@1137,whole:Route@1429,whole:Route@1474,whole:Route@195,whole:Route@2071,whole:Route@2167,whole:Route@533,whole:Route@584,whole:Route@834 502bfdec82020c6baa0d1d61913692a821176577b552728b7c3b0850cae894fe
@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
@@ -65,7 +66,7 @@ internal/registry/registry.go Registry.migrate legacy accepted-legacy accepted-l
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. 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.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. B3: pass the optional shared durable termination proof adapter into the existing restricted finalizer acquire. The adapter validates the exact classified peer and current host lifetime, uses the acquire data-bucket client, and cannot bypass expiry or CAS. No new read in this unit. 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@7536,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@6449,registry:Host@7298,registry:Host@7600,registry:Host@8163,registry:Host@861,registry:Host@959,registry:Lifetime@5454,registry:Lifetime@7505,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@7307,whole:HAWakeImport@7609,whole:HAWakeImport@7701,whole:Pair@2893,whole:Pair@5665,whole:Pair@7542,whole:Pair@7562,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@6592,whole:Route@6637,whole:Route@6809,whole:Route@723,whole:Route@7394,whole:Route@889 e43bac579369bb989e033798a2595ada412b77348a33a1e75bb2548828df86db
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
@@ -103,6 +104,7 @@ 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/termfence/termination_proof.go readTerminationProof legacy accepted-legacy accepted-legacy;rev3=census-ruling-region-ha-p1b3b-t;basis=Read at most 2049 bytes from the existing regional data-bucket S3 client at a key derived solely from independently bound, signature-verified immutable box identity. Reject bodies over 2048 bytes, duplicate/missing/unknown fields, invalid provenance and identity mismatch. Only acquire consumes validated proof as authority after expiry and current owner/lifetime checks. No filesystem path or tenant prefix is read. file:ReadAll@753 3cae6540aba3e76210c4bf5e57a6f6b2c5160a0be8a531c74b823438c085e060
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. 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
@@ -110,16 +112,18 @@ internal/activator/activator.go Service.ServeScheduled legacy accepted-legacy ac
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/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. B3: pass the same optional durable termination proof adapter to visitor and duty acquires. Nil retains the existing path until controller arming; configured proof failures refuse, with no fallback to a live boolean. No new read in this unit. registry:Host@106,whole:Route@1137,whole:Route@1429,whole:Route@1474,whole:Route@195,whole:Route@2071,whole:Route@2167,whole:Route@533,whole:Route@584,whole:Route@834 502bfdec82020c6baa0d1d61913692a821176577b552728b7c3b0850cae894fe
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 97b1bb0ae9202c1e8a2b2a9045810cde93805d1e2ac37b1defb75a3afb09d1dd
+@coverage . 895e6060cdffcb52b0f697d61048fa3d5e349f033e3df8bd70fd428a9c042aa6
+@coverage internal/activator d9eed1c7d4cd4e6ff8056a5fa1585f7b2a84723247a2ea9e145db7feb4b09908
@coverage internal/boxchoice 6b3d6aaacf54a2c2705f5c93d7799e0d9790712e165c90ead6de91e845ae8b09
@coverage internal/edge 269c0490df6ee888eee703c1735881c4047f21bf78a104fc76b604313e9ae5a7
@coverage internal/host d8ce1e0beb20c355bee9ef64b750639cec74bc7d23980b0e4278660d7a071f04
@coverage internal/hostfiles 21a32d89c6143031af13cb18bc1a2227353ed8595ab23bde7abd1e9d2df92eaf
-@coverage internal/lease 99d42caf6e5253517696871e30beead3c37ad74a3cc61a763ec2e931bd2d8606
+@coverage internal/lease e1dbd1e8104a0a303e3d89564f5f2077ad1c72e236b87328517b8bc7b3aebd01
@coverage internal/registry 541ca3db5052864d0b9e872ae100f32b91c32cd95a6822aae9ff8b8ab90ff6d2
@coverage internal/schedule 45287d297f4431ec8eaa3f515ce684d5e447f99845cfa1207e4386d4897b7f3d
+@coverage internal/termfence 43777d34b9c750a06ba7cc37013dedb7c307b6c2ec7b882f6c33cd0675a3c46f
@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,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/termfence/termination_proof_test.go b/internal/termfence/termination_proof_test.go
index 978bdcb88..4e31631a2 100644
--- a/internal/termfence/termination_proof_test.go
+++ b/internal/termfence/termination_proof_test.go
@@ -96,7 +96,7 @@ func TestTerminationProofDurability(t *testing.T) {
p := &proofTransport{}
api := p.client()
r := proofConfirmer()
- cache := &ProofCache{}
+ cache := &ProofCache{Now: func() time.Time { return r.at }}
original := r.at
if mode == "conflict" {
_, err := r.c.PersistTermination(context.Background(), api, b, "survivor", &ProofCache{})