Skip to content

PERF: Optimize attack and scenario history - #2583

Draft
Richard Lundeen (richlundeen) wants to merge 1 commit into
microsoft:mainfrom
richlundeen:rlundeen2-optimize-history-indexes
Draft

PERF: Optimize attack and scenario history#2583
Richard Lundeen (richlundeen) wants to merge 1 commit into
microsoft:mainfrom
richlundeen:rlundeen2-optimize-history-indexes

Conversation

@richlundeen

Copy link
Copy Markdown
Contributor

Summary

  • promote attack operator and operation metadata to bounded, indexed first-class fields while preserving arbitrary labels
  • add query-aligned attack, prompt, and scenario history indexes for SQLite and SQL Server
  • use one latest-message lookup per backend and route GUI filters through dedicated fields
  • keep legacy attack label aliases through 1.3 with removal scheduled for 1.4
  • remove attack attribution from add-message payloads so it is set only when the attack is created

Validation

  • uv run --no-sync pre-commit run --all-files
  • focused Python backend and migration tests: 276 passed
  • full frontend Jest suite: 1,402 passed
  • frontend production build

Rollout

This PR has not connected to or changed any test or production database. It should be reviewed and tested locally before merge. The migration and application changes must deploy together; database rollout should happen separately only after approval.

Promote attack operator and operation metadata to indexed fields, add query-aligned history indexes, and reduce duplicate latest-message lookups.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 7540877a-bdf5-4309-97e1-14469bc817e7
@richlundeen
Richard Lundeen (richlundeen) marked this pull request as draft September 5, 2026 03:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant