Skip to content

fix(redteam): show category IDs inline in pretty output#209

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/fix/redteam-categories-show-ids
May 28, 2026
Merged

fix(redteam): show category IDs inline in pretty output#209
cdot65 merged 1 commit into
mainfrom
cdot65/fix/redteam-categories-show-ids

Conversation

@cdot65

@cdot65 cdot65 commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

Closes #200.

airs redteam categories pretty output now prints the category ID inline next to the display name, e.g.

  Security (SECURITY) — …
    • Jailbreak (JAILBREAK) — Jailbreak attempts
    • Prompt Injection (PROMPT_INJECTION) — Direct prompt injection attacks

Operators no longer need --debug + JSONL spelunking to discover the IDs required by airs redteam scan --type STATIC --categories '{"SECURITY":["JAILBREAK"]}'. Renderer-only change; JSON output and SDK response shape untouched.

Changes

  • src/cli/renderer/redteam.ts — append (id) (cyan) after each parent + sub-category display name
  • tests/unit/cli/redteam-categories-renderer.spec.ts — new unit coverage (empty, with descriptions, without descriptions)
  • Docs: refresh redteam/scanning.md, redteam/end-to-end-walkthrough.md (removed the --debug gotcha callout), and the generated cli/redteam/categories.md / cli/examples/redteam.yaml
  • Changeset: patch

Test plan

  • pnpm lint (warnings pre-existing)
  • pnpm tsc --noEmit
  • pnpm test — 649 pass, 3 new
  • pnpm docs:check
  • pnpm run build

@cdot65 cdot65 merged commit 2bb8530 into main May 28, 2026
5 checks passed
@cdot65 cdot65 deleted the cdot65/fix/redteam-categories-show-ids branch May 28, 2026 00:57
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 categories: pretty output hides category IDs needed for --categories

1 participant