mirror of
https://github.com/block/buzz.git
synced 2026-11-24 10:12:19 +00:00
## Summary When the final Huddle audio connection was routed through another relay, owner cleanup removed the room without archiving the channel or publishing the ended event, leaving Join visible. Share committed-room finalization across local, remote, and pending-last-slot teardown. Retain the admission gate until finalization and recheck fenced owner authority under the database lock. Relay/database only; mobile history access is separate in #9375. Existing orphaned rooms are not retroactively archived. Existing clients remain responsible for disconnecting agents when the last human device leaves. ### Related issue Related: #4879 / #4918 concern discovery metadata after auto-archive. Searched open Huddle issues/PRs; no exact duplicate found. ### Testing This is the unchanged relay patch previously validated in combined commit `4ec349435151ca11ce92bd0ebe59b845b3465639`, split onto current main (whose intervening change is the relay version/changelog release). - Full PostgreSQL package lane: 1,376 initially passed; both initial failures passed after fixing local psql PATH and using actual joined/teardown completion in the test. Cleanup asserts archival and exactly one ended event. - Remote-control, pending-last-slot, and conditional archival regressions passed. - Full relay/database unit packages: 1,960 passed; five identity/archive and audit fixture failures report missing `artifact_heads` outside changed paths. - Relay/database all-target clippy and legacy desktop clippy/tests passed. Broader pre-push Rust groups passed after rerunning the load-generator group with a higher file-descriptor limit and four test threads (110 passed). - Independent relay review completed; formatting/diff/file-size guards passed. The split reused completed test evidence; no full rebuild was repeated solely for the split. Draft pending human/live-call validation. Start an agent Huddle, leave from the final human device, and verify its card stops offering Join, including connections routed through different relay servers. Not deployed. --------- Signed-off-by: kenny lopez <klopez4212@gmail.com> Signed-off-by: Tom Brow <tomb@squareup.com> Co-authored-by: Terp <5856f6900e8e0a4e0ea1f4f8d2ee33e4753d2119bc122f94ecafc660b46c0511@buzz.block.builderlab.xyz> Co-authored-by: Tom Brow <tomb@block.xyz> Co-authored-by: Tom Brow <tomb@squareup.com> Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@buzz.block.builderlab.xyz> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>