Skip to content

Add configurable relay banners - #7713

Draft
bradseiler wants to merge 4 commits into
mainfrom
coder0/relay-banners
Draft

bradseiler wants to merge 4 commits into
mainfrom
coder0/relay-banners

Conversation

@bradseiler

@bradseiler bradseiler commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Relay admins need a way to show time-limited notices to all users or selected communities. This PR adds the relay protocol, persistence, admin endpoints, delivery rules, acknowledgement tracking, and OpenTelemetry counters for those notices.

The relay emits replaceable kind 13536 events, enforces display caps and dismissals, clears old scopes before replacements, and fans updates across relay instances through Redis.

Related issue

None found.

Testing

The integrated live-local gate passed at test artifact 42fd717d32d9be8312475e6dc73d97199bcc25cf. It used real admin HTTP requests, WebSocket clients, two relay instances, isolated Postgres and Redis, and both greenfield and non-empty databases. It verified create, severity payloads, retry idempotency, display caps, dismissal, scope replacement order, disable order, cross-instance delivery without echo duplicates, and metric increments only for state changes.

This draft was pushed with --no-verify after the latest-main pre-push gate failed in unrelated timing-sensitive buzz-acp tests under parallel load. The same tests failed before this rebase, and the banner diff does not touch buzz-acp. The latest-main rebase exposed a migration version collision with main’s storage accounting migration. Commit 7d768e465 renumbers the unchanged banner migration to 0047 and updates the embedded migration inventory; the full buzz-db package suite passes at that exact head.

Generated with Codex

coder 0 added 3 commits September 17, 2026 15:06
Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
@github-actions

github-actions Bot commented Sep 17, 2026

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

The current range is 01b6174a1cbad249e93f31df97d4b2ed1d0e8638...7d768e465ae0c4a579e78aafe94c077d0d7733ec.
A new review must complete for this exact range. When manual authorization
is required, a Block organization member must comment exactly
@buzz-security-review 7d768e465ae0c4a579e78aafe94c077d0d7733ec to authorize a new review.
Any previous review applies only to its recorded range.

Signed-off-by: coder 0 <d97ebdbb198c7237c94f84ea8bb8a73583ea067407eebd0062abbb3962527fb1@buzz.block.builderlab.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant