Repository navigation
Done
Labels
enhancementNew feature or request
Description
Part of the Coding-agent subagents epic (#378). Item B8, milestone B-M2. Depends on B6 (#392) and B7 (#393).
Goal
When a subagent stops for approval, fails or finishes while the owner is away, the owner hears about it on their phone and can act from there.
Current state
- Nothing notices a paused or finished turn.
Scope
- A control-plane notification sink that consumes Coding-agent subagents B6: owner-scoped event stream of session and turn state #392's events: a signed webhook, plus one push adapter. ntfy is the proposal: it's self-hostable, which fits MOCA's positioning. Slack is an alternative.
- Triggers:
paused(with the gate summary),failed, and terminal states (configurable). - Per-subject configuration, and rate limits.
- The deep link opens an approval that requires login (the Coding-agent subagents B7: gates v2 — gates on prompt/solve leaves, decision API, deadlines #393 decision API), never a bearer token in a URL.
Acceptance
- A gate on a subagent reaches a phone within 30 s.
- Approving through the link, after login, resumes it.
- Webhook signatures are verified in the tests.
Working conventions (for a fresh session)
- Workspace:
git fetch, then create a worktree fromrossoctl/main(never localmain), under.worktrees/. Populate and buildpi-fork(git submodule update --init --recursive && cd pi-fork && npm ci && npm run build), thenpnpm install. A worktree without the pi-fork build does not typecheck. - Plans: write the plan with
superpowers:writing-plansintodocs/plans/<date>-<slug>.md. Plans are gitignored and never committed. Write it in chunks, one append per task. - Pre-flight table: list every process entrypoint, systemd unit, env example and shell/Go launcher whose boot contract changes, not only TypeScript call sites.
- Tests: Redis on 6379 must be up. Use each package's own
node_modules/.bin/vitest. vitest can exit non-zero with every test green, so grep the log forErrors. Redirect long output to/tmp/kagenti/....make lintskips untracked files. - Commits:
git commit -swithAssisted-By: Claude (Anthropic AI) <[email protected]>, neverCo-Authored-By. - Shared KVM rig: alert the owner before using it, record a manifest of what you install, and verify cleanup.
- Don't push or open PRs without the owner's go-ahead.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
[-]Claude Code subagents B8: notifications for paused and finished subagents[/-][+]Coding-agent subagents B8: notifications for paused and finished subagents[/+]feat(control-plane): notification config validation, egress allowlist…
feat(control-plane): register the hmac-sha256 credential kind (#394)
feat(control-plane): notification config store and owner index (#394)
feat(control-plane): signed webhook and ntfy notification delivery (#394
feat(control-plane): GET/PUT/DELETE /v1/notifications (#394)
test(control-plane): assert on response field names, not a secret sub…
feat(control-plane): notification sweep that turns owner events into …
feat(control-plane): boot contract for #394 notifications
docs+deploy(control-plane): env wiring and operator docs for #394 not…
test(control-plane): prove #394's 30s delivery bound deterministically
test(control-plane): cover the MOCA_NOTIFY_* boot contract (#394)
Merge pull request #998 from cwiklik/feat/394-notifications