Skip to content

Notify Discord when new hotkeys get committed and active weights - #143

Merged
camfairchild merged 1 commit into
mainfrom
codex/weight-hotkey-notifications
Oct 9, 2026
Merged

camfairchild merged 1 commit into
mainfrom
codex/weight-hotkey-notifications

Conversation

@camfairchild

Copy link
Copy Markdown
Collaborator

The independent reveal monitor now sends Discord INFO messages when a successful commit first allocates weights to a new hotkey, and again when a matching weight row is observed active. Messages include the hotkey, UID, share, and block; active weights are distinguished from network-wide emissions.

The monitor seeds its inventory from existing active recipients, persists announced hotkeys and pending activation notices across restarts, and queues failed informational deliveries for retry. Ordinary share changes do not reannounce a hotkey. Reveal error alerts and recovery messages continue independently. Publication is never paused or restarted by the monitor.

Consumer: the deployed cacheon.chain.weight_reveal_monitor process. Casualty: the previous error/recovery-only notification behavior. Net production LOC: +33. Docs describe the notification lifecycle and persisted retry queue.

Validation: 32 focused monitor, commit-publication, and fallback tests pass, including first allocation, activation, dust rounding, superseded commits, delivery retries, restarts, unchanged recipient sets, and preservation of read-only journal access. Ruff, documentation checker, strict MkDocs build, LOC, and surface checks pass.

Deployed by restarting only the independent monitor; the publisher PID is unchanged. The existing private webhook file is reused and is not present in this diff.

@camfairchild
camfairchild merged commit efbc582 into main Oct 9, 2026
9 checks passed
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