Skip to content

fix(redteam): suppress spurious multi_turn_error_message when multi_turn=false (#202)#215

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/fix/redteam-targets-suppress-multi-turn-error
May 28, 2026
Merged

fix(redteam): suppress spurious multi_turn_error_message when multi_turn=false (#202)#215
cdot65 merged 1 commit into
mainfrom
cdot65/fix/redteam-targets-suppress-multi-turn-error

Conversation

@cdot65

@cdot65 cdot65 commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #202.

Adds sanitizeTargetMetadata() at the SDK normalizer boundary plus the probeTarget path. airs redteam targets probe / create / update / get no longer surface target_metadata.multi_turn_error_message: "Multi turn configuration JSON not provided" when multi_turn: false. The field is preserved when multi_turn: true, where it reflects a real configuration error.

Single helper applied at two points:

  • normalizeTargetDetail() — covers get / create / update
  • probeTarget() — raw response path, not normalized

Test plan

  • pnpm test — 666 tests, +5 new in tests/unit/airs/redteam.spec.ts covering probe/get/create false-case suppression + true-case retention
  • pnpm lint
  • pnpm tsc --noEmit
  • pnpm docs:check
  • Manual: airs redteam targets probe --config target.json against a real tenant returns metadata without multi_turn_error_message
  • Manual: airs redteam targets create --config target.json then get <uuid> — same

…urn=false (#202)

Adds sanitizeTargetMetadata() at the SDK normalizer boundary plus the probe
path so targets probe / create / update / get no longer surface the
"Multi turn configuration JSON not provided" message when the operator
never opted into multi-turn. Field is preserved when multi_turn=true,
where it reflects a real configuration error.
@cdot65 cdot65 merged commit 8ce7597 into main May 28, 2026
5 checks passed
@cdot65 cdot65 deleted the cdot65/fix/redteam-targets-suppress-multi-turn-error branch May 28, 2026 01:31
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.

redteam targets: spurious multi_turn_error_message when multi_turn=false

1 participant