fix(pulse): [notifications.routing] in PULSE.toml has no reader — background_agent / long_task / error / security routes never fire
Version
LifeOS 7.40.4 (main @ 5e2f2e8).
What is broken
PULSE.toml ships a [notifications] block: discord (webhook), twilio, thresholds.long_task_minutes, and a [notifications.routing] table with task_complete, long_task, background_agent, error and security. I could not find any code in the shipped install that reads these keys. The only notification code path is the per-job output target in lib.ts (voice | ntfy | email | log), which serves scheduled jobs and never consults the routing table. So background_agent = ["ntfy"] describes a notification about background agents that is never sent, and error = ["ntfy", "discord"] / security = [...] likewise. TWILIO_TO_NUMBER is read by NotifyPrincipal.ts from the environment, not from this block.
Where
- Config:
LifeOS/install/LIFEOS/PULSE/PULSE.toml:83-99. - The only channel dispatch:
LifeOS/install/LIFEOS/PULSE/lib.ts:20(OutputTarget) and:500-524(the switch) — keyed on a job'soutput, not onnotifications.routing.
Repro
cd LifeOS/install
rg -n "notifications\.(routing|discord|twilio|thresholds)|background_agent|long_task_minutes|DISCORD_WEBHOOK" --glob '*.ts' .
# -> no matches
rg -n "notifications" LIFEOS/PULSE/*.ts LIFEOS/PULSE/modules/*.ts
# -> two matches, both the word in a comment / label about voice
Live: a background agent ran 13 minutes with background_agent = ["ntfy"] set; nothing was emitted at spawn or at completion, and there is no code path that could have emitted it. If a reader exists somewhere I did not look, the title is too wide — the routing table is still the part that matters for background agents.
Suggested fix
Either wire the table — emit background_agent from the agent-guard / AgentInvocation path, long_task from a job that exceeds thresholds.long_task_minutes, error and security from the places that already log those, all dispatching through the existing lib.ts channel switch (extended with discord) — or drop the block from the shipped template and the docs so a fresh install does not configure routes that cannot fire. The first is the design the config describes; the second removes a silent promise.
🤖 Generated with Claude Code
[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler
Thanks @IvanLeontev-stack. You were right: [notifications.routing], along with the thresholds and Twilio tables next to it in PULSE.toml, had no reader.
We took your second option and removed the dead config instead of wiring it up. Claude Code already sends its own notices when background tasks finish, and decisions about interrupting you belong to Vigil. A search finds no remaining reader of those keys, Pulse boots cleanly on the edited file, and the cron, setup and lib tests pass.
This ships in the next release.