Skip to content

Source-code questions misclassified as product questions #171

Closed

Description

@sentry-junior

Summary

When asked a source-code question about a Sentry repository, the assistant incorrectly treats it as a product question and responds from a product/end-user perspective rather than looking up the actual source code. This causes misleading or incomplete answers when the user's intent is clearly about implementation details.

Observed behavior

A user asked a question in a billing-related Slack channel about billing functionality. Junior responded as if the question were about the Sentry product (billing UI/features) rather than the getsentry/sentry codebase. The assistant acknowledged it probably thought the user "meant the product" instead of recognizing a source code question.

Root cause hypothesis

Junior's intent classification likely over-indexes on channel or topic context (e.g. discuss-billing) and defaults to product-level answers when the question involves a Sentry-specific subject. It does not reliably distinguish between "how does billing work in the product" and "where/how is billing implemented in the code."

Confidence: medium — the exact classification logic is unverified, but the symptom is consistent with a missing signal for source-code intent.

Expected behavior

When a question is plausibly about source code (e.g. references to platform code, implementation, or verification in a repo), Junior should attempt a code lookup (shallow clone or search) in the relevant repo and answer from that evidence rather than defaulting to product documentation.

Unknowns

  • Whether the original user question contained explicit code signals or was genuinely ambiguous
  • The exact decision path that led to the product-level response

Action taken on behalf of David Cramer.

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