Skip to content

[MAINT] Simplify attack history - #3997

Merged
Behnam (behnam-o) merged 3 commits into
microsoft:mainfrom
behnam-o:agents/attack-history-view-enhancements
Nov 6, 2026
Merged

Behnam (behnam-o) merged 3 commits into
microsoft:mainfrom
behnam-o:agents/attack-history-view-enhancements

Conversation

@behnam-o

Copy link
Copy Markdown
Contributor

Description

Show objectives and expandable target names in attack history. Remove unused columns and filters, and open attacks by clicking their rows.

Before

Attack history before

After

Attack history after

Tests and Documentation

History and target-identity coverage updated; documentation unchanged. JupyText is not applicable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 6, 2026 01:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Removing the Open button leaves attack opening on a table row without link or button semantics, making the action undiscoverable to screen-reader users navigating by links or buttons.

1 open issue
What changed in this PR

Simplifies PyRIT’s attack history around objectives and inspectable target identities, while retaining row-based navigation.

Changes:

  • Replaces secondary columns with objectives, expandable targets, and last-update timestamps.
  • Removes attack-type and converter filters, including their URL handling and option requests.
  • Exposes saved target identifiers and updates unit and browser coverage.
File Description
tests/​unit/​backend/​test_mappers.py Tests saved target identity serialization.
pyrit/​backend/​models/​attacks.py Exposes persisted target identifiers.
frontend/​src/​types/​index.ts Adds the target identifier field.
frontend/​src/​components/​Registry/​RegistryIdentityRow.tsx Supports clickable rows and optional identity expansion.
frontend/​src/​components/​History/​HistoryFiltersBar.tsx Removes attack-type and converter controls.
frontend/​src/​components/​History/​HistoryFiltersBar.test.tsx Updates filter-control coverage.
frontend/​src/​components/​History/​historyFilters.ts Removes obsolete filter state and URL parameters.
frontend/​src/​components/​History/​historyFilters.test.ts Tests ignoring removed URL filters.
frontend/​src/​components/​History/​AttackTable.tsx Displays objectives and expandable target identities.
frontend/​src/​components/​History/​AttackTable.test.tsx Tests navigation, expansion, and target resolution.
frontend/​src/​components/​History/​AttackHistory.tsx Simplifies requests and passes registry data to rows.
frontend/​src/​components/​History/​AttackHistory.test.tsx Updates history integration coverage.
frontend/​src/​components/​History/​AttackHistory.styles.ts Adjusts layout for objectives and fewer columns.
frontend/​src/​App.tsx Supplies registry targets and errors to history.
frontend/​src/​App.test.tsx Updates URL filter hydration assertions.
frontend/​e2e/​touch-targets.spec.ts Checks the target-expansion touch control.
frontend/​e2e/​history.spec.ts Covers saved identities and simplified history behavior.
frontend/​e2e/​converters.spec.ts Updates expectations for removed converter displays.

Review effort: Balanced

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the current head. Two additional issues are noted inline.

Behnam Ousat and others added 2 commits November 6, 2026 07:58
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@behnam-o
Behnam (behnam-o) added this pull request to the merge queue Nov 6, 2026
Merged via the queue into microsoft:main with commit a9f437a Nov 6, 2026
57 checks passed
@behnam-o
Behnam (behnam-o) deleted the agents/attack-history-view-enhancements branch November 6, 2026 17:41
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.

3 participants