Fix IndirectAttackEvaluator results not displaying in AI Foundry portal#45721
Draft
Fix IndirectAttackEvaluator results not displaying in AI Foundry portal#45721
IndirectAttackEvaluator results not displaying in AI Foundry portal#45721Conversation
…ry display The IndirectAttackEvaluator was producing output keys with indirect_attack_ prefix instead of the expected xpia_ prefix, causing results to not display in AI Foundry. Root cause: EvaluationMetrics.XPIA.value was changed to indirect_attack for service API calls, but output column names must use the xpia prefix for backward compatibility with AI Foundry's expected column naming format. Changes: - _base_rai_svc_eval.py: Use xpia as output key prefix for XPIA results in _parse_eval_result, extract sub-metrics (manipulated_content, intrusion, information_gathering) as flat keys, add fallback to rename legacy indirect_attack_* keys to xpia_* - _base_rai_svc_eval.py: Pass metric_display_name=xpia for legacy path - _evaluate.py: Add xpia to handled_metrics in _aggregate_label_defect_metrics and to known metrics in _get_token_count_columns_to_exclude - Add unit tests for XPIA-specific behavior - Update CHANGELOG.md Co-authored-by: needuv <40341266+needuv@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix
Fix Mar 16, 2026
IndirectAttackEvaluator results upload to AI FoundryIndirectAttackEvaluator results not displaying in AI Foundry portal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IndirectAttackEvaluatorevaluations showed "Completed" in Foundry but no scores — results were only accessible programmatically. The bug:EvaluationMetrics.XPIA.valuewas changed to"indirect_attack"for service API communication, causing output columns to be namedindirect_attack_label,indirect_attack_reason, etc. AI Foundry and the aggregation pipeline expect thexpia_prefix established by the original schema.Changes
_base_rai_svc_eval.py—_parse_eval_result"xpia"as the output key prefix for XPIA results regardless ofEvaluationMetrics.XPIA.value("indirect_attack")manipulated_content,intrusion,information_gatheringas individual flat columns (xpia_manipulated_content, etc.) fromscoreProperties, handling both snake_case and camelCase service response keysindirect_attack_*keys toxpia_*for responses that already used the wrong prefix_base_rai_svc_eval.py—_evaluate_query_responsemetric_display_name="xpia"for XPIA so the legacy polling endpoint also produces correctly prefixed output keys viaparse_response_evaluate.py_aggregate_label_defect_metrics: add"xpia"tohandled_metricssoxpia_labelcolumns are recognized and yieldxpia_defect_rateaggregate metrics_get_token_count_columns_to_exclude: add"xpia"to the known-metrics list soxpia_*_tokenscolumns are excluded from numeric aggregationResult:
evaluate()withIndirectAttackEvaluatornow produces the expected column names and metrics:Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
pypi.org/home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/pip pip install -q httpx(dns block)/home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/python /home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/python /home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/lib/python3.9/site-packages/pip/__pip-REDACTED__.py install --ignore-installed --no-user --prefix /tmp/pip-build-env-k6pgbg15/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i REDACTED -- setuptools>=40.8.0(dns block)/home/REDACTED/work/azure-sdk-for-python/azure-sdk-for-python/.venv/bin/pip pip install -q httpx devtools_testutils pytest pytest-asyncio de/node/bin/bash(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
IndirectAttackEvaluatornot uploading/displaying results in AI Foundry correctly #45639📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.