Repository navigation
Notify the operator when a goal needs an answer #3436
Description
Problem
Goal blockers appear in the goal console and the dashboard "Needs attention" panel, but they create no Inbox notification, no push and no Voice Briefing item. An operator who is away does not learn that a run is waiting.
Goal
An open goal question produces a notification that deep-links to the goal.
Acceptance criteria
- When a goal blocker opens (any provider), a notification is created for the goal owner with severity
warning, reusingkind: 'task'withmetadata.eventandmetadata.goalIdso no notification-kind migration is needed and the existing deep link to/goals/<id>applies. One notification per blocker (deduplication key includes the blocker id). - The Inbox entry shows the question summary (bounded, redacted). Push payload text stays generic, as today.
- When the blocker is resolved or closed, the notification is marked resolved/read so the Inbox does not keep a stale "needs you".
- The item appears in the Voice Briefing attention list with a link to the goal (the briefing's own path builder gains the goal deep link).
wait_goal(MCP) can return when a blocker opens, so an MCP client waiting on a goal learns it needs input; this requires blockers to be journaled ingoal_events.- The activity digest reports open goal questions as blocker signals.
- Respects the user's per-kind inbox and push preferences and quiet hours.
- Tests cover creation, deduplication, resolution, the briefing item and the wait wake-up.
Implementation
Key files: packages/core/src/services/notificationService.ts (createNotificationEvent), src/jobs/runCostCap.ts (notifySpendCap precedent), src/jobs/agentRuns/autonomy.ts (notifyAgentReportAwaitingApproval), packages/shared/src/notificationLinks.ts (notificationHref), packages/api/services/voiceBriefingService.ts (notificationPath, item sources), packages/api/services/goalAttention.ts, packages/core/src/goals/goalBlockerStore.ts, packages/core/src/db/migrations/20261004000000_create_goal_events.js (trigger-built journal), packages/api/mcp/toolsGoalWait.ts, packages/api/services/goalWait.ts, packages/api/mcp/activityDigest.ts. Verify with the standard commands.
Activity
propr-dev commentedon Nov 12, 2026
🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
claudeclaude-opus-5-53436/claude-opus-5-5-notify-the-operator-when--20261112-1025-3cs3435-epic-let-claude-r1kissue-3436-20261112-1025-claude-opus-5-5-3cs🔍 Track Task Execution