feat(seer): Add autofix RCA feature#120099
Draft
rbro112 wants to merge 1 commit into
Draft
Conversation
Member
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
rbro112
force-pushed
the
ryan/07-20-feat_seer_add_autofix_rca_feature
branch
from
July 20, 2026 18:08
1f5c567 to
8cc9ed4
Compare
rbro112
force-pushed
the
graphite-base/120099
branch
from
July 20, 2026 18:08
3aa724c to
794ea20
Compare
rbro112
changed the base branch from
graphite-base/120099
to
ryan/07-20-register_autofix-rca-in-seer_feature
July 20, 2026 18:08
Contributor
Sentry Snapshot Testing
|
rbro112
force-pushed
the
ryan/07-20-register_autofix-rca-in-seer_feature
branch
from
July 20, 2026 18:18
794ea20 to
9a16143
Compare
Base automatically changed from
ryan/07-20-register_autofix-rca-in-seer_feature
to
master
July 20, 2026 18:36
rbro112
force-pushed
the
ryan/07-20-feat_seer_add_autofix_rca_feature
branch
from
July 20, 2026 18:59
8cc9ed4 to
117fb46
Compare
rbro112
force-pushed
the
ryan/07-20-feat_seer_add_autofix_rca_feature
branch
from
July 22, 2026 22:59
117fb46 to
7078af9
Compare
Add the autofix_rca feature package (payload/result models, dispatch via SeerAgentClient.start_feature_run, and the delivery handler that hooks a completed root cause back into the existing autofix webhooks/analytics), and register it in the feature-delivery registry. Extract the shared step started/completed webhook+analytics helpers in autofix_agent so the delivery handler can reuse them. Not yet wired into any trigger path; that follows in the next PR.
rbro112
force-pushed
the
ryan/07-20-feat_seer_add_autofix_rca_feature
branch
from
July 23, 2026 01:02
7078af9 to
8c359d4
Compare
Comment on lines
+59
to
+62
| # Match trigger_autofix_agent: a new run consumes Seer autofix budget. | ||
| quotas.backend.record_seer_run( | ||
| group.organization.id, group.project.id, DataCategory.SEER_AUTOFIX | ||
| ) |
Contributor
There was a problem hiding this comment.
Autofix RCA dispatch records paid Seer usage without checking quota
trigger_autofix_rca_feature always record_seer_runs a SEER_AUTOFIX charge but never calls check_seer_quota, so runs can start after the org has exhausted paid autofix budget. Add the same pre-flight quota check used by trigger_autofix_agent and raise when over budget.
Evidence
trigger_autofix_rca_featurecreates a Seer feature run then callsquotas.backend.record_seer_run(..., DataCategory.SEER_AUTOFIX)with no precedingcheck_seer_quota.- The parallel path in
trigger_autofix_agentblocks new runs withcheck_seer_quota(..., DataCategory.SEER_AUTOFIX)and raisesNoSeerQuotaExceptionbefore starting or recording usage. - The dispatch comment states it should match that billing behavior, but only the record half is implemented.
- Nothing else in this function rate-limits or gates paid Seer autofix capacity before
start_feature_run.
Identified by Warden security-review · 3SY-AV2
rbro112
commented
Jul 23, 2026
| payload=payload, | ||
| agent_run_options=self._build_agent_run_options(), | ||
| agent_run_options=agent_run_options, | ||
| # Seer's feature runner reads this top-level flag; mirror what |
rbro112
commented
Jul 23, 2026
| feature_id: str | ||
| payload: dict[str, Any] | ||
| agent_run_options: NotRequired[dict[str, Any]] | ||
| # Top-level context-engine flag Seer's feature runner reads |
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.

Adds a new autofix_rca feature which will route RCA to run in Seer (corresponding Seer PR: https://github.com/getsentry/seer/pull/7294).
This will allow RCA (and future autofix-related steps) to live in Seer where we can properly run evals on them. Wireup of this in the existing autofix flow is in the stacked PR (#120100)