Skip to content

Notify the operator when a goal needs an answer #3436

Closed

Description

@integry

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, reusing kind: 'task' with metadata.event and metadata.goalId so 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 in goal_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

  1. propr-dev commented on Nov 12, 2026

    @propr-dev
    Contributor

    🤖 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:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 3436/claude-opus-5-5-notify-the-operator-when--20261112-1025-3cs
    • Base Branch: 3435-epic-let-claude-r1k
    • Worktree: issue-3436-20261112-1025-claude-opus-5-5-3cs

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions