Repository navigation
feat: add live directory support for Buzz - #116799
Conversation
dd1abfe to
76a49fa
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 8:32 AM ET / 12:32 UTC. ClawSweeper reviewWhat this changesThis PR adds relay-backed Buzz directory commands and human-readable sender and room labels, while updating the Buzz connection lifecycle when room membership or archive metadata changes. Merge readinessKeep this PR open for maintainer review. It is a substantial, coherent Buzz-channel feature with no discrete source-level defect established in this review, but it intentionally changes live relay subscriptions and reconnect behavior; the PR body confirms that archive/restore and post-reconnect delivery have not been exercised live. The author is a repository member and the PR carries the protected Priority: P2 Review scores
Verification
How this fits togetherThe Buzz plugin connects an OpenClaw Gateway account to a Buzz relay for room messages and typing updates. This change adds a bounded directory snapshot and live relay subscriptions that feed CLI directory queries and the labels included in inbound agent context. flowchart LR
A[Configured Buzz account] --> B[Authenticated Buzz relay]
B --> C[Directory snapshot and live subscriptions]
C --> D[Directory CLI commands]
C --> E[Inbound sender and room labels]
E --> F[Agent reply through Buzz]
C --> G[Membership or archive update]
G --> B
Decision needed
Why: The branch changes live channel subscription and reconnect behavior; source review and unit coverage cannot by themselves establish the intended user-visible outcome during a real relay state transition. Before merge
Agent review detailsSecurityNone. PR surfaceSource +1561, Tests +2133, Docs +63. Total +3757 across 38 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after the Buzz owner accepts the reconnect contract and either reviews targeted real-relay evidence for archive/restore plus post-reconnect delivery or explicitly accepts the remaining test-backed lifecycle risk. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a new Buzz directory capability rather than reporting a broken established behavior. The PR body supplies a real local-relay round trip, but not live archive/restore evidence. Is this the best way to solve the issue? Unclear: using the existing channel-directory SDK is the right boundary, but the account-connection rebuild contract still needs maintainer acceptance or targeted real-relay proof before this can be called the best operational solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2d5c24bc297d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
ed8a5e2 to
5cd00cf
Compare
What Problem This Solves
Buzz exposed senders and rooms to OpenClaw primarily through public keys and UUIDs. This made conversations difficult for agents and users to understand, and Buzz did not support OpenClaw’s directory commands for discovering the bot identity, rooms, or room members.
Room profile, membership, and archive changes also needed to remain synchronized without leaking subscriptions, stalling the plugin, or affecting Gateway availability.
Why This Change Was Made
This adds an authenticated, lifecycle-owned Buzz directory backed by relay-signed room metadata, membership events, and member profiles.
The plugin reuses the active Buzz connection when available and uses a bounded temporary connection for standalone directory commands. Subscription counts, profile synchronization, replay dispatch, reconnect history, query duration, and shutdown work are explicitly bounded.
Stable public keys and room UUIDs remain the authorization and routing identities. Profile names, avatars, handles, and room names are presentation metadata only.
Archived rooms are excluded from discovery, directory results, peer snapshots, and live message subscriptions. Membership or archive-state changes rebuild only the affected Buzz connection while the Gateway continues running.
User Impact
Users can now:
openclaw directory self --channel buzz.openclaw directory peers list --channel buzz.openclaw directory groups list --channel buzz.openclaw directory groups members.buzz:<ROOM_UUID>as the canonical automation target.If profile information is unavailable, OpenClaw falls back to deterministic public-key labels without changing sender identity or authorization behavior.
Evidence
buzz-freshOCM environment.Shakker, building.Not exercised live: a destructive archive-and-restore cycle and a 1,021-room relay stress test. These limits and state transitions are covered by focused automated tests.