feat(ops): notify-telegram.sh helper for autonomous loop user pings #19
No reviewers
Labels
No labels
adr
agent:blocked-ci
agent:blocked-human
agent:blocked-resolver
agent:done
agent:in-progress
agent:no-touch
agent:pinged
agent:pr-open
agent:queued
agent:wip
area:board
area:funding
area:infra
area:phy
area:poplink
area:rtl
area:software
area:supply-chain
area:verification
ci-failed
ci-timeout
docs
do-not-merge
human-approved
needs-human-approval
needs-rebase
needs-triage
phase:1
ready-for-review
review:findings
review:pass
risk:tripwire
swarm:quarantined
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Fluid/fluidpop-v1!19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/telegram-notify"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the autonomous loop's user-notification channel.
What this PR adds:
Usage:
Future wire-ups (separate PRs):
Tests: shell only. CI runs shell-lint on the new script. Auto-merge via infra/forgejo/auto-merge.sh once CI green. Bot already validated end-to-end (test message sent, message_id 5).
Sends a message to navigator via Telegram bot (t.me/fluid_pop_bot, chat 188125038) when the autonomous loop needs human input or wants to flag a milestone: - Bot token + chat ID in ~/.config/settings.env (TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID). Never committed. - Usage: bash infra/ops/notify-telegram.sh "message text" echo "piped" | bash infra/ops/notify-telegram.sh bash infra/ops/notify-telegram.sh --priority high "alarm" - Priority levels prefix the message ([ALARM] high, [INFO] low, [FluidPop] normal) and toggle disable_notification. - Exit 0 on HTTP 200 (prints message_id); 3 on Telegram API failure with full body on stderr; 1/2 on missing config or empty input. Future wire-ups (separate PRs): - infra/ops/runner-monitor.sh: pipe ALARM through notify-telegram.sh when status flips offline >1h (TW-3 tripwire from PLAN.md S0.5). - infra/forgejo/auto-merge.sh: on CI failure (exit 2) or timeout (exit 3), notify navigator with PR number and last failing job. - Weekly checkpoint cron: digest of merged PRs + open issues.CI green (head
cad7848d47), auto-approving