Skip to content

FIX: carry converted values and metadata through fill_adversarial_placeholders - #3302

Merged
Roman Lutz (romanlutz) merged 4 commits into
microsoft:mainfrom
ManoharPaturi:fix/modality-router-preserves-converted-values
Oct 20, 2026
Merged

Roman Lutz (romanlutz) merged 4 commits into
microsoft:mainfrom
ManoharPaturi:fix/modality-router-preserves-converted-values

Conversation

@ManoharPaturi

Copy link
Copy Markdown
Contributor

Description

Fixes #3301

The pass-through branch of fill_adversarial_placeholders rebuilt every non-placeholder piece from original_value only, which dropped the piece's converted_value, converted_value_data_type, and prompt_metadata even though the docstring promises pieces are passed through unchanged. A pre-converted media piece sent back to the objective target would use the unconverted file. The rebuild now forwards those fields, matching what the sibling multimodal builder in the same file already does.

Tests and Documentation

Added a regression test with a media piece whose converted value differs from its original and carries metadata, asserting both survive the fill. It fails on main and passes with the change. The full modality router suite passes (28 tests).

No documentation change needed, so I did not run JupyText.

@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 20, 2026
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 20, 2026
@romanlutz
Roman Lutz (romanlutz) added this pull request to the merge queue Oct 20, 2026
Merged via the queue into microsoft:main with commit 702fcd4 Oct 20, 2026
70 of 76 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.

BUG: fill_adversarial_placeholders drops converted values and metadata of passed through pieces

2 participants