Push notifications for approvals

When the consequential-action gate holds a tool call for your approval (see design/action-gate-approvals.md), every open frontend shows it: Blazor shows a card, the CLI prints a line, and AG-UI emits an event. An approval queued by a scheduled task, a patrol run or another agent usually arrives when no frontend is open, and it expires undecided after PendingTtlHours (24 hours by default).

Approval push sends those approvals to your phone through ntfy. It is off by default.

Approval push is one kind of user notification. Its messages go through the same routing, dedupe and receipts as the agent’s notify_user alerts, and are delivered by the ntfy sink. Nothing changes for an existing setup: the settings below still configure it, and they are the fallback for the ntfy sink’s server, token and approval topic. Two things moved:

  • Quiet hours. The global AgentHost:Notifications:QuietHours* apply to approvals too. The QuietHours* keys here are used only when those are unset.
  • Separate topics. To keep approvals and alerts on separate topics, set AgentHost:Notifications:Ntfy:Topic for alerts and leave Topic here for approvals.

What you get

  • One message per burst. The first new pending action opens a window (BatchWindowSeconds, 60 s by default). Every action queued in that window goes into the same message. A patrol run that queues three changes sends one notification listing all three.
  • What it says. For each action, one line:
    • the deterministic summary built from the call, never text the model wrote: create_event on calendar: title=Lunch with Ana, start=2026-11-29T12:00;
    • where the call came from (scheduled task inbox, another agent's request, a background run);
    • when it expires, in your time zone.
  • What it never says. The raw arguments and any credential.
  • The link. It opens {LinkUrl}/?approvals=1, which shows the Blazor activity panel with the approvals list. You approve or reject there, signed in as usual. The notification has no Approve button, because ntfy can’t prove who pressed it.
  • Checked again before sending. An action that was decided or expired while the message waited (for the window or for quiet hours) is left out. If none are left, nothing is sent.
  • Quiet hours. Messages due inside quiet hours wait until they end. Quiet hours use the agent’s time zone (agent.timezone), or your current zone when user location is on.
  • Reminder. You can turn on one reminder, sent ReminderBeforeExpiryMinutes before an undecided action expires. An action whose first message already went out inside that window gets no separate reminder.

By default only runs that no user started push: scheduled, a2a, background and unknown. An approval asked for in a chat appears in that chat. To push those too, add user-turn and subagent-of-user-turn to Origins.

Setting it up

  1. Pick a topic on an ntfy server. A self-hosted server keeps the summaries inside your network. On the public ntfy.sh, a topic name is effectively a password: make it long and random, or set Detail to shape, which sends only the argument names (create_event on calendar (title, start)).
  2. Subscribe to the topic in the ntfy phone app.
  3. If the topic needs an access token, put the token in the Secret, never in a values or config file.

Helm

agent:
  approvalPush:
    enabled: true
    server: "https://ntfy.example.com"
    topic: "rockbot-approvals"
    linkUrl: ""                 # "" = blazor.auth.publicBaseUrl
    quietHoursStart: "22:00"
    quietHoursEnd: "07:00"
    reminderBeforeExpiryMinutes: 60
secrets:
  approvalPush:
    token: "tk_..."             # optional

Local development

dotnet user-secrets --project src/RockBot.Agent set "AgentHost:ConsequentialActionGate:Push:Token" "tk_..."

The other settings can go in appsettings.json or environment variables.

Settings

All of these are under AgentHost:ConsequentialActionGate:Push. As environment variables, write them as AgentHost__ConsequentialActionGate__Push__<Key>.

Key Default Meaning
Enabled false Turns push on.
Server https://ntfy.sh The ntfy server’s base URL.
Topic   Required. With no topic, push stays off and a warning is logged.
Token   The ntfy access token, sent as a bearer token. Secret / user-secrets only.
Origins scheduled, a2a, background, unknown Run origins that push. Setting any replaces the whole list.
LinkUrl   The Blazor address. The link is {LinkUrl}/?approvals=1. Empty means no link.
BatchWindowSeconds 60 How long to wait for more actions before sending.
QuietHoursStart, QuietHoursEnd   HH:mm. Both must be set. A range across midnight (22:00–07:00) works.
ReminderBeforeExpiryMinutes 0 One reminder this long before expiry. 0 turns reminders off.
Detail summary summary lists argument values. shape lists argument names only.
Priority 0 ntfy priority, 1–5. 0 uses the server’s default.

Limits

  • The batch and reminder state is kept in memory. If the agent restarts while a batch is waiting, that batch’s message is lost. The actions are still listed in every frontend, and the reminder, if on, still reaches you. A restart after a reminder can send that reminder a second time.
  • A failed send is logged and not retried. The ntfy sink’s receipt reports the failure, and the agent’s notification log line records it.
  • An approval message identical to one sent in the last AgentHost:Notifications:DedupeWindowMinutes (60 by default) is not sent again.

© 2026 Marimer LLC. RockBot is released under the MIT license.

This site uses Just the Docs, a documentation theme for Jekyll.