Skip to content

Add a per-user lead conversation #3727

Open

Description

@sentry-junior

Work in Junior is spread across many conversations, and there is no single place to find, start, and steer that work. Child Threads and Tasks (#2105) do not fit this use: a parent can have at most 8 active children, and children inherit the root's visibility and Delivery.

Current behavior

  • To find a conversation, you search or someone shares its link. searchConversations has no filter for conversations where you are a Participant.
  • A private conversation cannot messageAgent a public one (chat/agent-invocations/top-level-message.ts:78).
  • kind is root | automation | thread | task, enforced by junior_conversations_kind_check and junior_conversations_kind_parent_check.

Proposed design (David Cramer)

  • New kind: kind = lead. One private, top-level conversation per user, with no children.
  • Schema: a partial unique index on actor_identity_id where kind = 'lead'. This is one lead per Identity, which is acceptable because leads are only created from web. There are no other schema changes.
  • Prompt and tools: its own prompt mode and a small tool allowlist.
    • Keep: startConversation, top-level messageAgent, conversation search and read, Review desk search and update, the Watch and timer tools, Automations (Slack Destinations only), and systemTime.
    • Remove: the sandbox, skills, MCP, provider tools, and the child-agent tools.
  • startConversation: creates a public web root with the person as the root Actor.
    • The person's own message passes through word for word as the trusted request. The lead's task text stays untrusted.
    • Guardian reviews the call.
  • Search: a participating filter on searchConversations.
  • Access: a lead may message public roots where its person is a Participant.
  • Dashboard: the homescreen shows the lead.

Gaps found during design review

  • Adding a kind breaks reads, and tsc catches none of these:
    • The CONVERSATION_KINDS row decoder throws on the new kind.
    • turnBehavior falls through to the task branch.
    • promptModeTurnTools falls back to the root tools.
  • watchEvents and ingestEvent do no access check. A conversation resource type added later would let any conversation watch any other.
  • Automations deliver only to Slack (requireToolDestination). An Automation created from a lead needs an explicit Slack Destination.

Out of scope

  • Reports back to the lead, including watching conversations.
  • Private conversations at other Destinations.

via @dcramer.

--

View Session [Sentry]

Activity

  1. dcramer commented on Nov 19, 2026

    @dcramer
    Member

    The start conversation should return a watches list for like the possible watches or whatever that can subscribe to and it should be able to subscribe to a parent, like a root level conversation. That's totally fine. Not that it needs to, but it should be able to if it chooses to, in case the user wants it to wash a conversation and let it know when XYZ happens or something like that

  2. 22 remaining items

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions