redteam — attack a design or a PR
Red teaming from the UFMCS Red Team Handbook (US Army, 2011) with a fixed catalog of six attack classes (key assumptions, failure modes, abuse, scale, dependency, reversibility). A model proposes assumptions and attacks, each quoting the text it rests on; the engine rejects any attack whose quote is not in the target or whose evidence does not exist, builds an assumption matrix and ranks the top attacks by impact × plausibility.
When to use
Before approving a design doc, an ADR or a PR whose failure would be expensive.
When NOT to use this
- To decide whether an attack is right: the engine proves a finding is anchored, not that it is correct.
- For performance regressions or runtime differences: in the eval none of the attacks covered a 1000x serialization slowdown (pydantic) or a PyPy-only bug (pytest).
- On trivial changes: six classes of attack on a typo fix is noise.
Real case from the eval
Five merged PRs that later needed a fix or a docs change. In two (CPython's wait_closed(), webpack's dead-code
analysis) the failure that really happened was the rank-1 attack; in axios it was found but ranked 5th of 6; two
were missed. Before v0.2, three of the five model-written files were refused for missing attack ids; the engine
now numbers them. Details: evaluation.
Try it
clarent redteam check methods/redteam/examples/pr/findings.json
clarent redteam catalog
methods/redteam/CARD.md.