feat(alerts): launch domain-isolated governance alerts worker v2 - #101
Merged
Conversation
- route stYFI, veYFI, and yETH through independent Durable Object instances and chats - retain canonical scanners, exact-block account context, yETH accounting, and approved rendering - replace migration, warning, lease, and subrequest-governor machinery with one cursor record and event receipts - evaluate yETH protocol changes at deterministic daily checkpoints and remove the impact digest - keep every domain disabled by default for a bounded private-chat replay
- preserve deterministic scanner and yETH accounting coverage without implementation-coupled runtime proofs - pin all 24 approved action templates and three channel introductions - test exact event-block account positions, three-object fan-out, cursor reorg handling, and Telegram backoff - prove daily yETH checkpoint delivery resumes from receipts when the per-run message cap is reached - add a catalogue printer that keeps golden assertions active
- document the three final chats, three object names, and canonical replay boundaries - retain the approved public message catalogue while removing operational warning copy - explain paid-plan range and Telegram limits without a general subrequest governor - define the daily yETH threshold review using structured checkpoint records - provide a disabled-first rollout, replay rejection, pause, and duplicate-recovery procedure
- Assign governance-alerts-bot-v2 as the permanent replacement Worker identity. - Document inert deployment, secret provisioning, staged replay, and authenticated cutover commands. - Preserve the live singleton throughout private replay and define bounded rollback behavior.
- Run private replay and live observation from the isolated agent/data branch. - Defer the fast-forward to master until all three domain histories are approved. - Redeploy the accepted v2 commit before performing the old-Worker cutover.
- Align the deployed and fallback checkpoint threshold at 0.5 ETH. - Pin decimal parsing and replay behavior in focused runtime tests. - Document non-accumulating checkpoint semantics and private replay calibration.
- Record the precise runtime stage for failed domain runs - Preserve safe RPC and Telegram status metadata without payloads - Cover redaction, persistence, and typed delivery failures
- Attribute direct and canonical Safe protocol calls to the correct account. - Derive yETH claims from canonical event and Recovery Vault companion evidence. - Track Vault V3 report mints and vault-owned profit-lock burns without user alerts. - Add exact production regressions and document the supported evidence paths.
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.
Closes dao-operations/triage#35
Summary
Replace the combined governance alerts bot with
governance-alerts-bot-v2, a simpler Worker that independently monitors and delivers stYFI, veYFI, and yETH alerts.The v2 Worker uses one Durable Object and one Telegram destination per domain:
t.me/styfi_alertst.me/veyfi_alertst.me/yeth_alertsThe existing
governance-alerts-botremains a separate Worker and can continue serving the legacy combined channel during the transition.Changes
0.5 ETH./statusendpoint and structured failure diagnostics.retry_afterhandlingArchitecture
governance-alerts-bot-v2remains one Worker deployment, while domain state and failures are isolated across three Durable Object instances:alerts:styfi:v1alerts:veyfi:v1alerts:yeth:v1A failure in one domain does not advance its cursor or prevent the other domains from running. Event receipts provide replay-safe delivery, subject to the documented at-least-once duplicate window if Telegram accepts a message before its receipt is persisted.
There is deliberately no automated health-monitor or operational-warning subsystem in this release. Failures remain visible through structured Cloudflare logs and the authenticated status endpoint.
Rollout and compatibility
governance-alerts-bot-v2Worker identity.governance-alerts-bot.Verification
Completed successfully:
The final replay fix passed 121 test files and 959 tests. No secrets are included in this change.