adversarial-collision
Skill2 starsChanged 6 months agoMITView on GitHub
Use when attacking branches to find what the verifier cannot catch.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- examples/CLAUDE.mdCLAUDE.md
- conviction-signallingSkill
- cost-aware-pipelineSkill
- empirical-collapseSkill
- failure-taxonomySkill
- git-worktree-orchestrationSkill
- language-verificationSkill
- perturbation-operatorsSkill
- superposition-branchingSkill
- the-spiralSkill
- topological-divergenceSkill
- untrusted-researchSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
After superposition digests return and static early-kill has run, before verification results are ranked.
- Very specific: line 16
NOT in decide mode — there is no adversary pass on a question.
- Very specific: line 21
Early-kill first, attack second: Run the project's lint/type/compile per branch (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adversarial Collision
The collide step applies P-deepen to every live branch: refuse the surface answer and find what tests, types, and lint cannot see. The adversary breaks; it never fixes — fixing your own findings is self-grading, the test-gaming failure mode.
When to use
- After superposition digests return and static early-kill has run, before verification results are ranked.
- NOT in
decidemode — there is no adversary pass on a question; the judge weighs idea digests directly.
Protocol
- Early-kill first, attack second. Run the project's lint/type/compile per branch
(e.g.
uv run ruff check . && uv run pyright) BEFORE dispatching any model. A branch that fails static checks is recorded to the failure taxonomy (death_reason: "failed static checks before collision") and excluded. The adversary is the most expensive judgment pass; it only attacks branches that could possibly win. - Dispatch per branch, in parallel, by path. ONE message, one
fableTask per live branch, each given.pqa/branches/bN/(or its worktree) — the adversary Reads the code andnotes.mdin its own context. Never inline branch code into dispatch prompts. - Attack the eight layers the verifier cannot reach:
- solved the actual question vs a shallow restatement of it
- input-distribution assumptions vs reality
- behaviour at the boundaries no test exercises
- security posture under adversarial input
- complexity vs what it actually buys
- failure-mode recoverability (vs silent data loss)
- the promised contract vs what callers actually need
- resource scaling (memory, time, lock contention)
- Findings as structured JSON only:
{branch_id, severity, category, title, detail, resolved: false}—detailnames the trigger input/condition and why the verifier misses it.resolvedis alwaysfalsefrom the adversary. - Attack conviction-flagged branches harder.
conviction: highprotects a branch from early pruning — it buys attention, not leniency. "High-conviction branch failed under attack" is the best calibration row the system records. - Attack the branch's tests too. Would they pass on
return None? Do they assert values or just shapes? Tests that would survive mutation are a critical finding — they compromise the verifier signal itself. - One defense pass, then score. Each attacked branch may answer its own findings
(own context, reading its own findings JSON); then
pqa.collision.score_all. A critical unresolved finding is a deadly hit. - Cross-branch comparison runs over findings JSON, never over code — one cheap second pass, only when genuinely needed.
Severity honesty
| Severity | Meaning | Effect at collapse |
| critical | fails its purpose in a way the verifier misses (corruption, bypass, deadlock, silently wrong output) | unresolved = branch dies regardless of tests |
| high | real bug a competent reviewer blocks on | weighs against; not fatal |
| medium | suboptimal in a way that matters | tie-break material |
| low | style, naming | surface it; spend no budget |
Critical inflation destroys the gate: if everything is critical, the orchestrator learns to discount the adversary, and the one finding that matters drowns.
Worked example
Branch b0, fixed-window rate limiter. Verifier: green, 91% coverage. The finding:
{"branch_id": "b0", "severity": "critical", "category": "correctness",
"title": "burst-at-boundary admits 2x the limit",
"detail": "Two windows sharing an edge each admit a full quota: 100 requests at
09:59:59.9 plus 100 at 10:00:00.1 — 200 admitted in 200ms against a 100/min limit.
No test exercises a window edge, so the verifier stays green.",
"resolved": false}b0's defense pass cannot resolve it without changing topology (sliding window), so the finding stands and b0 dies despite passing verification. That is the gate working: green tests are necessary, never sufficient.
Anti-patterns
- Politeness. Branches don't have feelings; soft findings are wasted fable tokens.
- Speculative theatre. A finding without a concrete trigger — specific input, condition, call sequence — is vibes, and the judge must discount it.
- Fixing. The adversary proposing patches collapses the attack/defense separation the loop depends on.
- Skipping the "obviously fine" branch. The verifier already certified looks-fine; the adversary's entire jurisdiction starts past that point.
- Severity theatre. Attacking style at
lowin volume crowds out the onecriticalthat decides the run.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

