Skip to content

Wire the alert channel into the dial-home agent - #39

Merged
joy-software merged 1 commit into
mainfrom
feature/agent-alerter
Jun 7, 2026
Merged

Wire the alert channel into the dial-home agent#39
joy-software merged 1 commit into
mainfrom
feature/agent-alerter

Conversation

@joy-software

Copy link
Copy Markdown
Contributor

Follow-up from the 0.4.0 audit: make_alerter was wired into run/watch/serve but not the dial-home agent, so an in-cluster worker never fired alerts.

  • run_agent builds make_alerter(settings) once and passes it to the initial Supervisor.
  • swap_supervisor gains an alerter param so a policy hot-swap keeps the same channel.

Test: swap_supervisor threads the alerter onto the new supervisor's engine. 265 passed; ruff/mypy clean.

The agent built its Supervisor without an alerter, so a worker that dialed home
never fired Slack/webhook/email alerts even with the channels configured. Build
make_alerter(settings) once in run_agent, pass it to the initial Supervisor, and
thread it through swap_supervisor so a policy hot-swap keeps the same channel.
@joy-software
joy-software merged commit aca268d into main Jun 7, 2026
8 checks passed
@joy-software
joy-software deleted the feature/agent-alerter branch June 7, 2026 22:04
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