Skip to content

fix(auto-triage): paginated fetch prevents queue stall on high-score …#779

Merged
scottbrumley merged 1 commit intomainfrom
fix/soc-opt-auto-triage-paging
Apr 13, 2026
Merged

fix(auto-triage): paginated fetch prevents queue stall on high-score …#779
scottbrumley merged 1 commit intomainfrom
fix/soc-opt-auto-triage-paging

Conversation

@scottbrumley
Copy link
Copy Markdown
Contributor

…cases

SOCAutoTriageScoreFilter now owns the full fetch+filter pipeline. It calls core-api-post internally in batches of 100 (max_batches=5), skipping cases above the score threshold without holding them in memory. This prevents high-score cases at the front of the creation_time queue from blocking lower-score eligible cases from being reached.

JOB - Auto Triage V3: removed Task 1 (Get Unstarred Open Cases) since the script handles its own API calls. Start now routes directly to the filter task.

Files changed:
Packs/soc-optimization-unified/Scripts/SOCAutoTriageScoreFilter/SOCAutoTriageScoreFilter.py
Packs/soc-optimization-unified/Scripts/SOCAutoTriageScoreFilter/SOCAutoTriageScoreFilter.yml
Packs/soc-optimization-unified/Playbooks/JOB_-_Triage_Alerts_V3.yml

Breaking changes:

  • SOCAutoTriageScoreFilter 'incidents' arg removed (script fetches its own)
  • 'window_hours' arg now declared in YAML (was passed but undeclared)
  • New 'max_batches' arg (default "5", optional)
  • New outputs: AutoTriage.total_scanned, AutoTriage.batches_run

…cases

SOCAutoTriageScoreFilter now owns the full fetch+filter pipeline.
It calls core-api-post internally in batches of 100 (max_batches=5),
skipping cases above the score threshold without holding them in memory.
This prevents high-score cases at the front of the creation_time queue
from blocking lower-score eligible cases from being reached.

JOB - Auto Triage V3: removed Task 1 (Get Unstarred Open Cases) since
the script handles its own API calls. Start now routes directly to the
filter task.

Files changed:
  Packs/soc-optimization-unified/Scripts/SOCAutoTriageScoreFilter/SOCAutoTriageScoreFilter.py
  Packs/soc-optimization-unified/Scripts/SOCAutoTriageScoreFilter/SOCAutoTriageScoreFilter.yml
  Packs/soc-optimization-unified/Playbooks/JOB_-_Triage_Alerts_V3.yml

Breaking changes:
  - SOCAutoTriageScoreFilter 'incidents' arg removed (script fetches its own)
  - 'window_hours' arg now declared in YAML (was passed but undeclared)
  - New 'max_batches' arg (default "5", optional)
  - New outputs: AutoTriage.total_scanned, AutoTriage.batches_run
@scottbrumley scottbrumley added the version:patch Bug fix or hotfix → x.x.N label Apr 13, 2026
@scottbrumley scottbrumley merged commit 08aeead into main Apr 13, 2026
12 of 18 checks passed
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.

1 participant