Skip to content

fix(auto-triage): close eligible cases reliably and never touch starred#947

Merged
scottbrumley merged 1 commit into
mainfrom
fix/auto-triage-close
Jun 13, 2026
Merged

fix(auto-triage): close eligible cases reliably and never touch starred#947
scottbrumley merged 1 commit into
mainfrom
fix/auto-triage-close

Conversation

@scottbrumley

Copy link
Copy Markdown
Contributor

No description provided.

SOCAutoTriageScoreFilter was leaving eligible cases open and relied on a
single server-side filter to protect starred cases.

- gate case age server-side via creation_time lte so the scan budget is
  spent on age-eligible cases instead of high-score oldest cases
- correct status filter value to case-sensitive "New"
- add fail-closed starred backstop: confirm unstarred in-script before
  close, skip anything not provably unstarred
- default score_threshold 30 -> 40 to match triage policy
- scan newest-eligible first; BATCH_SIZE 50 -> 100 (API ceiling),
  raise max_batches default
- harden per-incident handling (try/except + safe numeric parsing) so one
  malformed case can't abort the run
@scottbrumley scottbrumley added the version:patch Bug fix or hotfix → x.x.N label Jun 13, 2026
@scottbrumley scottbrumley merged commit 669c523 into main Jun 13, 2026
2 of 12 checks passed
@scottbrumley scottbrumley deleted the fix/auto-triage-close branch June 14, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

version:patch Bug fix or hotfix → x.x.N

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants