Skip to content

MAINT Decompose scorer execution policy and result finalization - #2470

Open
Haseeb Nazir (iamhaseebn) wants to merge 1 commit into
microsoft:mainfrom
iamhaseebn:fix/decompose-scorer-execution-policy
Open

MAINT Decompose scorer execution policy and result finalization#2470
Haseeb Nazir (iamhaseebn) wants to merge 1 commit into
microsoft:mainfrom
iamhaseebn:fix/decompose-scorer-execution-policy

Conversation

@iamhaseebn

Copy link
Copy Markdown

Description

MessageScorer currently handles message substitution, skipping, objective inference, execution errors, fallbacks, and ephemeral score links in one flow. This separates that work into preparation, execution, and finalization steps while keeping the policy in the scorer layer.

The refactor preserves the existing behavior for structured refusals, blocked partial content, role and error filtering, inferred objectives, scorer failures, and fallback scores. Shared score validation and persistence remain in Scorer.score_async.

Closes #2413.

Tests and Documentation

  • Message scorer tests: 59 passed
  • Crescendo and red-teaming caller tests: 157 passed
  • Full unit suite: 15,685 passed, 121 skipped
  • Changed-file type checks passed

No documentation changes are needed because this is an internal refactor with no public API or behavior changes.

Signed-off-by: Haseeb Nazir <36381672+iamhaseebn@users.noreply.github.com>
@iamhaseebn

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

MAINT Decompose scorer execution policy and result finalization

1 participant