Repository navigation
feat(agents): add red-team mode - #9
Open
xavier-arosemena wants to merge 2 commits into
Open
xavier-arosemena wants to merge 2 commits into
xavier-arosemena wants to merge 2 commits into
Conversation
Adds a domain-agnostic red team mode that stress-tests a proposal by
attacking its assumptions and returning severity-ranked findings plus
concrete options (mitigate / redesign / accept).
The mode fills a gap: existing adversarial modes are either domain-bound
(penetration-tester, security-auditor), scope-bound (code-skeptic,
bullshit-detection-analyst for claims, anti-fiction-sentinel for success
claims) or treat adversarial thinking as one lens among many
(cognitive-multi-thinker). None takes the proposal itself as the
systematic target of a constructive attack with an explicit
HARDEN / REDESIGN / ACCEPT / SOUND verdict.
Contents:
- agents/meta-orchestration/general/red-team.yaml (flat agent schema, as
used by the other 233 files under agents/)
- custom_modes.yaml: matching entry appended (306 modes)
Validation:
- python3 scripts/validate_custom_modes.py custom_modes.yaml -> pass (306 modes)
- parity asserted: the agents/ file and the custom_modes.yaml entry parse to
identical slug/name/description/roleDefinition/whenToUse/groups/
customInstructions values
- all cross-referenced modes (bullshit-detection-analyst, penetration-tester,
code-reviewer, security-auditor, architect-reviewer, anti-fiction-sentinel,
risk-manager) exist in custom_modes.d/ and agents/
- YAML parses (python3 -c 'yaml.safe_load(...)')
Notes:
- scripts/validate_custom_modes.py exits 1 for a flat agents/ document
("Top-level contains unsupported keys"); this is true of all 233 existing
files under agents/ as well, because validate_document() requires
customModes as the only top-level key. The file follows the same flat
schema as its siblings.
- The mode is not present in .roomodes; regenerate with
python3 scripts/generate_roomodes.py if it should ship in the compiled set.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a domain-agnostic red team mode: it takes a proposal (architecture,
code change, plan, strategy, prompt, process) and attacks its assumptions to
return severity-ranked findings plus concrete options —
MITIGATE,REDESIGN,ACCEPT— and a final verdict ofHARDEN,REDESIGN,ACCEPT WITH CONTROLSorSOUND.Existing adversarial modes are domain-bound (
penetration-tester,security-auditor), scope-bound (code-skeptic,bullshit-detection-analystfor claims,
anti-fiction-sentinelfor success claims) or use adversarialthinking as one lens among many (
cognitive-multi-thinker). None takes theproposal itself as the systematic target of a constructive attack.
Files
agents/meta-orchestration/general/red-team.yaml— flat agent schema, samekeys as the other files under
agents/(slug,name,category,subcategory,description,roleDefinition,whenToUse,groups,version,lastUpdated,customInstructions); same category as its closestsibling,
bullshit-detection-analyst.custom_modes.yaml— matching entry appended (306 modes).Validation
python3 scripts/validate_custom_modes.py custom_modes.yaml-> pass, 306 modes.agents/file and thecustom_modes.yamlentry parse to identicalslug,name,description,roleDefinition,whenToUse,groupsandcustomInstructionsvalues.whenToUse(bullshit-detection-analyst,penetration-tester,code-reviewer,security-auditor,architect-reviewer,anti-fiction-sentinel,risk-manager) exists incustom_modes.d/and inagents/.Two things to flag
python3 scripts/validate_custom_modes.py agents/meta-orchestration/general/red-team.yamlexits 1 with
Top-level contains unsupported keys, becausevalidate_document()requirescustomModesto be the only top-level key.This is not specific to this file: the same command exits 1 for all 233
existing files under
agents/. The new file follows the established flatagents/schema, and thecustom_modes.yamlentry (the form the validatorsupports) passes.
.roomodes, becauseCONTRIBUTING.mddoes not askfor it. If it should ship in the compiled set,
python3 scripts/generate_roomodes.pywill include it.