feat(investigations): Add agentic investigation creation - #123086
Merged
Conversation
arslnb
marked this pull request as ready for review
September 1, 2026 00:04
wedamija
force-pushed
the
sentry/investigations-orchestration-persistence
branch
from
September 1, 2026 21:36
ab2f85f to
4e51201
Compare
wedamija
force-pushed
the
sentry/investigations-orchestration-control-api
branch
from
September 1, 2026 21:36
88c03ec to
73f9bad
Compare
Base automatically changed from
sentry/investigations-orchestration-persistence
to
master
September 1, 2026 21:58
Source-backed requests now reuse the existing collection endpoint. Manual context and canonical metric-open-period references create the investigation, its project links, and its orchestration run atomically. Existing manual and template creation are unchanged. Agentic sources are validated against strict per-type schemas dispatched on the source type, and the source object is stored unchanged so its camelCase keys survive into the orchestration record. Adds no APIs, workers, Seer calls, or migrations.
wedamija
force-pushed
the
sentry/investigations-orchestration-control-api
branch
from
September 1, 2026 22:47
73f9bad to
2ea4505
Compare
wedamija
approved these changes
Sep 1, 2026
wedamija
enabled auto-merge (squash)
September 1, 2026 22:56
wedamija
disabled auto-merge
September 1, 2026 22:56
wedamija
enabled auto-merge (squash)
September 1, 2026 22:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POST /organizations/{org}/investigations/now accepts asourceobject without atemplateKey. It creates the investigation, its project links, and its orchestration run in one transaction. Existing manual and template creation are untouched.Two source types.
manualcarries an optional prompt, time range, and seed.metric_open_periodcarries only a server-resolvedref, resolved against the caller's accessible projects before anything is written. Concurrent launches for the same metric converge on one investigation through the existing lineage constraints, so a second launch returns the first with a 200 instead of creating a duplicate.Sources are validated by strict per-type schemas dispatched on
source.type, and the object is stored as-is rather than asvalidated_dataso its camelCase keys survive into the JSON columns. The candidates endpoint now resolves the agentic lineage key ahead of the template one.No new routes, migrations, workers, or Seer calls. Models landed in #122972; the read and command APIs follow in separate PRs.