def recov.fail
import cswap-bend-cli@0.1.0.0/policy/bar.bend as Barimport Base
import cswap-bend-cli@0.1.0.0/policy/rank.bend as R
48# Failover departure: no baseline, so read only the present. Landing spot, or
49# its binding reset is meaningfully sooner than the active one's.
50def recov.fail(+h: Maybe<&2, Nat>, +peer: Maybe<&2, Nat>, +act: Maybe<&2, Nat>, +thr: Nat, +now: Nat) -> Bool:
51 gt_land(h, thr) || ((rec.finite(act) || R.rec.within(peer, now)) && R.rec.lt_minus(peer, act))