Skip to content

MAINT: Unify adversarial-chat JSON schema across Crescendo, TAP, and PAIR#2039

Merged
rlundeen2 merged 5 commits into
microsoft:mainfrom
rlundeen2:rlundeen2/attack-json-schemas
Jun 18, 2026
Merged

MAINT: Unify adversarial-chat JSON schema across Crescendo, TAP, and PAIR#2039
rlundeen2 merged 5 commits into
microsoft:mainfrom
rlundeen2:rlundeen2/attack-json-schemas

Conversation

@rlundeen2

@rlundeen2 rlundeen2 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Add a shared adversarial_chat JSON schema (next_message, rationale, last_response_summary) and wire the Crescendo, TAP, and PAIR adversarial-chat prompts onto it so their prompts are interchangeable. Parsers now read/return next_message and forward the schema to schema-aware targets via prompt metadata.

Value Prop

  • This is convenient in that you can mix strategies. E.g. slowly escalate with TAP. Or vice versa
  • You get less json errors since we are passing the json_response_format to the adversarial targets

Next up, it'd be nice to normalize red team attack also, but that requires more since it works differently at the moment. But at that point we could share all attack scenarios (role play, etc)

rlundeen2 and others added 3 commits June 17, 2026 17:04
Add a shared `adversarial_chat` JSON schema (next_message, rationale,
last_response_summary) and wire the Crescendo, TAP, and PAIR adversarial-chat
prompts onto it so their prompts are interchangeable. Parsers now read/return
next_message and forward the schema to schema-aware targets via prompt metadata.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The message normalizer already appends the response JSON schema when it is
forwarded via prompt metadata, so the hand-written schema block in the
Crescendo system prompts duplicated that instruction.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Routes Crescendo and TAP adversarial sends through a real PromptNormalizer and
a MockPromptTarget (which lacks native JSON_SCHEMA support) to verify the shared
adversarial_chat schema is forwarded via prompt metadata and rendered into the
prompt the adversarial chat receives.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
rlundeen2 and others added 2 commits June 18, 2026 09:00
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rlundeen2 rlundeen2 added this pull request to the merge queue Jun 18, 2026
Merged via the queue into microsoft:main with commit 1abadc7 Jun 18, 2026
53 checks passed
@rlundeen2 rlundeen2 deleted the rlundeen2/attack-json-schemas branch June 18, 2026 17:17
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.

2 participants