Skip to content

feat(relay): deliver pubkey mentions to relay companions - #7793

Draft
jsibbison-square wants to merge 1 commit into
mainfrom
jsib-260922-operator-listener-mentions-v2
Draft

jsibbison-square wants to merge 1 commit into
mainfrom
jsib-260922-operator-listener-mentions-v2

Conversation

@jsibbison-square

@jsibbison-square jsibbison-square commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Deliver mentions of registered pubkeys to deployment-global operator listeners.

  • Add NIP-98 APIs to register and remove target pubkeys.
  • Enqueue matching notifications transactionally during event ingest.
  • Deliver through a bounded retrying outbox worker and clean registrations daily.
  • Keep this path app-managed without database triggers, functions, foreign keys, or a match queue.

Changed behavior

Event inserts, threads, reactions, and guarded writes now commit event_mentions and listener outbox rows inside the event transaction. Previously, mention indexing ran after the event/reaction commit and failures were warn-only; those failures now reject and roll back the event, including ordinary p-tagged events and reactions.

Testing

  • cargo fmt --all
  • cargo test -p buzz-db --lib
  • cargo test -p buzz-relay --lib config::tests::operator_listener_routes
  • cargo check -p buzz-db -p buzz-relay

@github-actions

github-actions Bot commented Sep 22, 2026

Copy link
Copy Markdown

🔐 Codex Security Review

Status: review required for the current range.

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

@jsibbison-square
jsibbison-square force-pushed the jsib-260922-operator-listener-mentions-v2 branch 5 times, most recently from a430be0 to e61434b Compare September 22, 2026 10:50
@jsibbison-square
jsibbison-square force-pushed the jsib-260922-operator-listener-mentions-v2 branch from e61434b to 723aed3 Compare September 22, 2026 10:53

This branch has not been deployed

No deployments
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