Skip to content

Cheaper handling for resource-event turns #1038

Open

Description

@sentry-junior

Resource/webhook events are currently injected as user messages and run through the normal conversation loop. That works, but full-model inference on every event is expensive, especially for long coding sessions.

Current behavior

Subscribed resource events land as inbound user turns and resume the conversation with the primary model (e.g. sol 5.6 on coding sessions).

Gap

Many events are noise or only need a cheap relevance check. Paying full-loop cost on each one scales poorly as subscriptions grow.

Options

  • Cheap prefilter: summarize recent history (or reuse a rolling summary), pair it with the webhook event, and run a smaller model to decide whether the event matters before starting a full turn
  • Deterministic event-variant rules: declare which event types/variants are actionable so irrelevant deliveries never hit a model
  • Hybrid: deterministic allowlist first, cheap model second, full conversation only when both pass

Related: #529 (fast-model follow-up hooks), #435 (reactive behavior hooks).

Requested by David Cramer via Junior.

--

View Junior Session in Sentry

Activity

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