Add message IDs to the relayer denylist. Use after investigating stuck messages with /investigate-stuck-messages, or when you have specific message IDs to denylist.
Add message IDs to the relayer denylist configuration, create a PR, and deploy.
After investigation:
/investigate-stuck-messages and wants to denylist the found messagesDirect denylist request:
/denylist-stuck-messages <message_ids> [app_context=NAME] [reason=REASON]
| Parameter | Required | Default | Description |
|---|---|---|---|
message_ids |
Yes | - | Space or newline separated message IDs (0x...) |
app_context |
No | Inferred or "Unknown" | App context name for the comment |
reason |
No | "stuck in prepare queue" | Reason for denylisting (for comment) |
environment |
No | mainnet3 |
Deployment environment |
Examples:
/denylist-stuck-messages 0xabc123 0xdef456 app_context=USDC/mainnet-cctp-v2-standard
/denylist-stuck-messages
0xabc123
0xdef456
0x789ghi
Extract all message IDs from the input. Valid formats:
0xabc 0xdef 0x1230xabc, 0xdef, 0x123Validate each ID:
0xUse AskUserQuestion to confirm:
Ready to denylist X messages for [APP_CONTEXT]:
| Message ID |
|------------|
| 0xabc123... |
| 0xdef456... |
Proceed?
Options:
Ask for GitHub handle if not known:
What is your GitHub handle for the branch name?
Edit typescript/infra/config/environments/mainnet3/customBlacklist.ts:
blacklistedMessageIds arrayExample addition:
// [APP_CONTEXT] [REASON] [YYYY-MM-DD]
'0xabc123...',
'0xdef456...',
Add entries near the end of the array, before the closing bracket.
# Checkout main and pull latest
git checkout main && git pull origin main
# Create branch
git checkout -b <github_handle>/denylist-<app_context>
# Stage changes
git add typescript/infra/config/environments/mainnet3/customBlacklist.ts
# Commit
git commit -m "chore: denylist <APP_CONTEXT> stuck messages
Added X message IDs to denylist for <APP_CONTEXT> route.
Reason: <REASON>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>"
# Push and create PR
git push -u origin HEAD
gh pr create --title "chore: denylist <APP_CONTEXT> stuck messages" --body "$(cat <<'EOF'
## Summary
- Added X message IDs to the relayer denylist
- App context: `<APP_CONTEXT>`
- Reason: <REASON>
## Message IDs
<list of message IDs>
## Test plan
- [ ] Review message IDs are correct
- [ ] Deploy relayer with updated denylist
Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
Before asking about deployment, output the Slack message:
**Slack Message (copy/paste to #relayer-alerts):**
:no_entry_sign: *Denylist PR created*
App context: `<APP_CONTEXT>`
Messages denylisted: X
Reason: <REASON>
PR: <PR_URL>
Use AskUserQuestion:
PR created. Deploy the relayer now with the updated denylist?
Options:
If user confirms, run:
pnpm --dir typescript/infra exec tsx ./scripts/agents/deploy-agents.ts -e mainnet3 --context hyperlane --role relayer
If user skips, output the command for later use.
If deployed, update the Slack message:
:no_entry_sign: *Denylist deployed*
App context: `<APP_CONTEXT>`
Messages denylisted: X
Reason: <REASON>
PR: <PR_URL>
If message IDs are for multiple destinations (from investigation output), group them in the blacklist file:
// [APP_CONTEXT] stuck messages [YYYY-MM-DD]
// dest: arbitrum
'0xabc123...',
'0xdef456...',
// dest: optimism
'0x789ghi...',
'0xjkl012...',
gh CLI authenticatedkubectl configured with mainnet cluster access