Repository navigation
Commit 7d93b41
feat(relay/audio): huddle-lease renewer + observable owner-loss signal
Mirror the reliable lane's owner-loss lifecycle onto the huddle control
path, at the same increment boundary reliable shipped (mechanism only;
the live LocalOwner attach/fanout is the deferred session-consumer seam).
1. HuddleDirectory gains renew/release returning real fenced material.
Acquire now keeps the full SessionLease in a HuddleLease handle instead
of throwing it away for an {owner, generation} snapshot — authority is
never reconstructed from a snapshot or a mesh membership hint.
2. spawn_observable_huddle_renewer: byte-for-byte the reliable lane's
spawn_lease_renewer semantics. `lost` trips only on fenced owner-loss —
HuddleRenewOutcome::Lost, a renew error, release NotOwner, or a release
error on a non-caller-loss exit; caller-initiated cancel stays silent.
3. serve_control_loop takes an optional `lost` token: None preserves the
recv-only behavior; Some emits a proactive Goodbye(StaleGeneration)
before teardown so non-owner pods rejoin against the new owner. No new
wire reason. The dispatcher path passes None (inbound acceptance serves
a remote pod and owns no lease).
4. Tests mirror reliable's two renewer tests (loss signals / clean cancel
is silent) plus a serve-loop test proving lost -> Goodbye(StaleGeneration),
driven off the HuddleDirectory seam with a scripted FakeDir (no Redis).
Validation at this tip: clippy --all-targets clean; buzz-relay 522 passed
/ 2 ignored; buzz-relay-mesh 32 passed.
Reconciles origin/eva/wip-huddle-renewer-rescue (items 1-2, found
uncommitted in the integration worktree) onto the live tip; that content
did not compile (SessionDirectory unimported for the disambiguated
renew/release calls) — fixed here.
Co-authored-by: Tyler Longwell <[email protected]>
Signed-off-by: Tyler Longwell <[email protected]>1 parent 843f1a8 commit 7d93b41
2 files changed
Lines changed: 432 additions & 22 deletions
0 commit comments