Skip to content

MAINT: Refactoring General Identifiers and ScorerIdentifier#1328

Merged
rlundeen2 merged 14 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_01_23_scorer_identifier
Jan 27, 2026
Merged

MAINT: Refactoring General Identifiers and ScorerIdentifier#1328
rlundeen2 merged 14 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_01_23_scorer_identifier

Conversation

@rlundeen2
Copy link
Copy Markdown
Contributor

@rlundeen2 rlundeen2 commented Jan 26, 2026

As we make the move to use frozen dataclasses for Identifiers, I moved ScorerIdentifier to use this pattern.

  • Removed dict references to ScorerIdentifier
  • Made Registry Metadata subclass Identifier
  • Made an Identifiable class so that other component classes (targets, attacks, etc.) can use the same pattern as scorers
  • Moved Identifiers to their own module (deleting models/identifiers)

Tests

  • Added SQL Azure Integration round trip test for ScorerIdentifier
  • Integration tests pass (other than a few targets) at e71dbe6

Comment thread pyrit/identifiers/identifier.py
Comment thread pyrit/identifiers/identifier.py Outdated
Comment thread pyrit/identifiers/identifier.py Outdated
Comment thread pyrit/models/message_piece.py
Comment thread pyrit/registry/instance_registries/scorer_registry.py Outdated
Comment thread pyrit/score/score_utils.py
Comment thread pyrit/identifiers/identifier.py Outdated
Comment thread tests/unit/score/test_scorer_identifier.py Outdated
Comment thread pyrit/identifiers/scorer_identifier.py
Copy link
Copy Markdown
Contributor

@varunj-msft varunj-msft left a comment

Choose a reason for hiding this comment

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

Comments addressed and changes made. PR looks good!

Comment thread pyrit/datasets/seed_datasets/remote/vlsu_multimodal_dataset.py
@rlundeen2 rlundeen2 merged commit d2af298 into microsoft:main Jan 27, 2026
20 checks passed
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