feat(seer): Thread autofix_automation_tuning into night shift's triage payload#120386
Draft
trevor-e wants to merge 2 commits into
Draft
feat(seer): Thread autofix_automation_tuning into night shift's triage payload#120386trevor-e wants to merge 2 commits into
trevor-e wants to merge 2 commits into
Conversation
…e payload Night shift never told Seer about a project's sentry:autofix_automation_tuning setting, so its triage prompt couldn't calibrate autofix selectivity per project. Pairs with getsentry/seer#7473, which adds the corresponding per-candidate field and prompt section. Threads each eligible project's automation_tuning value through EligibleProject -> _dispatch_to_seer_feature -> _build_triage_payload onto TriageCandidate, gated to legacy (non-seat-based) orgs -- seat-based orgs always send None, reusing the same is_legacy_org check already used for the autofix rate limit.
The comments restated the field name/type or downstream usage already evident from the code a few lines below; kept only the non-obvious behavioral note (None for seat-based orgs regardless of the project's own setting).
NicoHinderling
approved these changes
Jul 22, 2026
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.
Night shift never told Seer about a project's
sentry:autofix_automation_tuningsetting, so its triage prompt couldn't calibrate autofix selectivity per project — a project configuredsuper_low(only autofix near-certain fixes) was triaged identically to one configuredalways.Threads each eligible project's
automation_tuningvalue throughEligibleProject->_dispatch_to_seer_feature->_build_triage_payloadontoTriageCandidate, gated to legacy (non-seat-based) orgs — seat-based orgs always sendNone, reusing the sameis_legacy_orgcheck already used for the autofix rate limit.Pairs with getsentry/seer#7473, which adds the corresponding per-candidate field and prompt section on the Seer side (recommended to land first, since it's fully backward-compatible either way).