Skip to main content
← Back to list
01Issue
BugShippedSwamp ClubTeam
AssigneesNone

Relationships

#1057 i should be bull gator on discord

Opened by jeremy · 7/9/2026· Shipped 7/9/2026

Keeb fix my discord rank plz

02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED

Shipped

7/9/2026, 10:17:34 PM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

keeb commented 7/9/2026, 10:17:51 PM

Shipped in #861 (merged + deployed).

Root cause: the tier-crossing announcer fires tier_up from the ClickHouse score_grants ledger (the same score the profile shows), but the discord-bot reconciler was reading the legacy Mongo user_scores.totalScore, which had drifted below the ledger. So the "Bull Gator" embed posted while the role was denied — and it never self-healed, since the reconciler recomputes the lower Mongo tier every sweep. (jeremy read 403k=Bull Gator on the ledger vs 169k=Moss Fiend in Mongo.)

Fix: the reconciler now reads authoritative totals from a new POST /api/v1/tiers endpoint (backed by the same SCORE_READS-aware read the site uses) over the traced serviceClient — the bot has no ClickHouse access, so it goes through the app. Verified live: the endpoint now returns jeremy at ~396,790 (Bull Gator).

Remaining deploy step: the prod discord-bot deployment needs APP_URL set to the app's in-cluster URL (being wired into k8s now). Until that lands the bot logs a warning and falls back to the stale Mongo read. Once it's live, the next reconcile sweep (≤10 min) grants the Bull Gator role automatically — no per-user action.

Sign in to post a ripple.