feat(linked-roles): Hermes worker, Turso authdb, post-instance publish - #44
Draft
owens1127 wants to merge 4 commits into
Draft
feat(linked-roles): Hermes worker, Turso authdb, post-instance publish#44owens1127 wants to merge 4 commits into
owens1127 wants to merge 4 commits into
Conversation
Add DISCORD_LINKED_ROLES.md (full PRD + Part VII ship spec) and LINKED_ROLES_EXECUTION.md (branch names, PR1 Website / PR2 Services, feature-flag dependency). Link from ARCHITECTURE overview. Branch: feat/discord-linked-roles Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…ublish - discord_role_metadata_sync consumer: Turso Discord row + Postgres clears sum, Discord PUT, UpdateSyncOutcome. - Producer PublishAfterNewInstance from instance_storage orchestrator (per Bungie, all Destiny ids). - lib/database/authdb: Turso pool with retry backoff; Redis read-through for destiny→bungie only (no OAuth in Redis). - Shared HermesOutboundHTTPRetryDelay with subscription_delivery. - Prometheus discord_lr_* metrics. Env DISCORD_LINKED_ROLES_*. Remove duplicate PRD copies from this repo (canonical docs live in Raid-Hub umbrella docs). Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the RaidHub-Services side of Discord linked roles (Option A): Hermes consumes
discord_role_metadata_sync, reads Turso for Discord OAuth + Postgres for clears, PUTs Discord application role connection metadata.Key changes
lib/services/discordlinkedroles(publish after new instance, sync handler).lib/database/authdb: Turso client with retry backoff; Redis read-through for destiny→Bungie only (no Discord tokens in Redis).HermesOutboundHTTPRetryDelaywith subscription delivery.discord_lr_*Prometheus metrics;DISCORD_LINKED_ROLES_*env.Related PRs
Docs
Canonical PRD lives outside this repo (umbrella
docs/); duplicate copies removed from Services tree.Merge order
See umbrella
LINKED_ROLES_EXECUTION.md: merge after API + Website ship OAuth/header contract, or gate withDISCORD_LINKED_ROLES_ENABLED.Made with Cursor