#107056·posthog

feat(signals): nudge the Ask AI chat to offer notes on inbox reports

Author: andrewm4894Created Sep 25, 2026Updated Sep 25, 2026
Labelsself-driving

Problem

When someone asks Ask AI about an inbox report, the chat often turns up something the system should keep:

  • a correction ("this is intentional", "that flag was switched on purpose")
  • a preference or domain fact the scout could not know
  • a fact the agent checked that the report lacks, such as a denominator, a recurrence history, or which claims are unverified

Only the opening question reaches the report's scout today, as a report_discussion scout note (products/signals/backend/discussion_notes.py). That note frames every opening message as "a question a user asked", even when the message is a correction. Follow-up turns and anything the agent finds go nowhere.

Writing every chat to notes or the scratchpad automatically would add noise, because most chats are a single question. The agent in the chat is best placed to judge when something is worth keeping.

Proposal

Nudge the Ask AI agent to notice these moments as the conversation goes, and to offer to save them.

Add a short paragraph to the Ask AI kickoff prompt. The kickoff is the first message, so it stays in context for the whole chat. Draft wording:

As the conversation goes, watch for anything the system should remember: a correction, a preference, context the report missed, or a fact you checked that the report lacks. When one comes up, offer to save it. A scout note (scout-notes-create) steers the scout that wrote the report. A work-log entry (inbox-report-artefacts-create) puts the fact on the report itself. Ask before you write, keep it short, and skip it when nothing is worth keeping.

Write it as a nudge, not a rule. Agents should use judgment, and most chats need no note.

The prompt lives in two places, and both need the change:

  • Web: buildDiscussReportPrompt in products/signals/frontend/inbox/inboxTaskKickoffLogic.ts, in both the answer-only and the action-capable branches
  • Desktop: useDiscussReport in products/desktop/packages/ui/src/features/inbox/hooks/

If a server-side system prompt for interactive ai_stage: inbox runs is a better single home, use that instead and say why in the PR.

Open question to check first

scout-notes-create requires signal_scout:write and llm_skill:write. Confirm whether the chat sandbox token carries those scopes.

  • If it does, offer both destinations.
  • If it does not, offer only the work-log entry for now. Either widen the token deliberately, with a security review of that change, or file a follow-up. Do not widen scopes silently.

Keep the existing opening-question forwarding. The agent's notes add to it and do not replace it.

Acceptance

  • In a chat where the user corrects the report, the agent offers to save the correction, and writes it only after the user agrees.
  • In a chat that is only a question, the agent does not offer a note.
  • Web and Desktop kickoff prompts carry the same nudge, and existing prompt tests are updated.

Related: #107055 (chat summaries in inbox-reports-retrieve).