Skip to content

feat(apidocs): Publish Seer runs list as experimental - #131252

Open
sentry-junior[bot] wants to merge 1 commit into
masterfrom
byk/feat/apidocs-seer-agent
Open

sentry-junior[bot] wants to merge 1 commit into
masterfrom
byk/feat/apidocs-seer-agent

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Part of #131199.

sentry-tui lists an organization's Seer runs. It reads them through the generated @sentry/api SDK, which only has published operations. Of the Seer agent routes in #131199, only the runs list can be published as it stands.

Endpoint Decision Reason
GET /organizations/{org}/seer/runs/ (OrganizationSeerRunsEndpoint) EXPERIMENTAL → PUBLIC_EXPERIMENTAL as listOrganizationSeerRuns User-facing run history with a typed response. Seer is still evolving, so it isn't a firm promise.
POST /organizations/{org}/seer/runs/ Stays EXPERIMENTAL It's the same read with its parameters in a JSON body, and it only needs org:read. The agent-token permission matrix assumes every published non-GET needs a write scope, so publishing it would mean changing that harness. GET covers the use case.
GET/POST /organizations/{org}/seer/explorer-chat/ and …/explorer-chat/{run_id}/ (OrganizationSeerAgentChatEndpoint) Stays PRIVATE One view serves both routes, so publishing it gives two operations the same operationId. Splitting the routes onto separate views would change view names, which other things key on. The request also carries internal overrides (override_bash_mode_enabled, override_ce_enable, override_code_mode_enable, ui_tools). This needs its owners to decide on a public shape first.
POST /organizations/{org}/seer/explorer-update/{run_id}/ (OrganizationSeerAgentUpdateEndpoint) Stays PRIVATE It passes the body through to Seer and returns Seer's JSON. The payload contract lives in Seer, and while a run is busy or errored the endpoint answers 200, 409 or 422 instead of its 202. No schema here could match it.

Docs for the published GET, checked against the handler:

  • Parameters: query (the search keys from client.get_runs), expand=questions and repeated question (at most 5, each up to 4096 characters, ignored without the run-questions feature), statsPeriod/start/end, cursor, per_page. The description notes the page-size cap of 10 when questions are requested.
  • Response: list[SeerRunResponse]. That TypedDict and RunQuestionOutput get ApiDescription field descriptions, which the response-coverage check requires.
  • Tagged Seer. get declares its Response[...] type.

Behavior, permissions and responses stay the same, and nothing breaks. The spec only gains this one operation.

The agent-token permission matrix picks up the GET row with the seer-explorer feature.

Moving sentry-tui or the CLI onto this operation waits for an @sentry/api release that includes it.

--

View Session [Sentry]

GET on the organization Seer runs endpoint moves to PUBLIC_EXPERIMENTAL
as listOrganizationSeerRuns, with its query parameters and a typed
response. SeerRunResponse and RunQuestionOutput get field descriptions.
POST, which takes the same parameters from a body, stays EXPERIMENTAL.
No behavior change.

Part of #131199
@sentry-junior
sentry-junior Bot requested review from a team as code owners November 16, 2026 14:28
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Nov 16, 2026

This branch has not been deployed

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

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant