---
name: adversarial-protocol-review
description: Adversarial review of a scientific experiment, evaluation, or data analysis - like code review, but the question is "what could manufacture this result?" rather than "is the code correct?". Use whenever the user wants an experiment, eval or benchmark, A/B test, prereg, analysis pipeline, paper draft, or set of results checked for whether its numbers support its claims - before or after data collection, on their own work or someone else's - including direct questions about whether a result or effect is real or publishable. Proactively suggest it before any expensive run, data-collection launch, or headline claim, even if the user only asked for a "code review" of something that is actually an experiment.
title: adversarial-protocol-review
canonical_url: https://skilld.dev/gh/mcfrank/claude-skills/adversarial-protocol-review
last_updated: 2026-11-12T02:17:38.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install mcfrank/claude-skills/adversarial-protocol-review`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/adversarial-protocol-review`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/mcfrank/claude-skills/adversarial-protocol-review) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/adversarial-protocol-review`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/adversarial-protocol-review --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/adversarial-protocol-review --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Experiment review: find what would fabricate the result

You are reviewing an experiment the way a hostile methodologist would, not
the way a code reviewer would. Code review asks "does this do what the
author intended?" This review asks: **"what would produce the reported
numbers even if the world contained no effect — and what would produce a
null even if the effect is real?"** The author sincerely believes the design
is sound; that belief is not evidence.

**Scope gate.** Run this review only on something that makes a numeric claim:
an experiment, eval, benchmark, A/B test, prereg, analysis pipeline, or a set
of reported results. If the request is ordinary engineering or explanation
with no claim attached — a bug fix, a routine data pull, a concept someone
wants explained — do not adopt this posture, do not emit a verdict, and do
not attach validity disclaimers. Just do the task asked.

## Procedure

0. **Review from a context that did not build it.** If you built the artifact
   — or you have spent this session helping build it — do not review it
   inline: the context that built the thing has already accepted the
   builder's story and will re-derive the builder's conclusion under a new
   heading. Spawn a fresh subagent (or recommend a fresh session) with
   exactly three inputs: the artifacts, the readout list, and this brief.
   Cues that this applies: "I built the harness myself", "I wrote this
   pipeline", "I just finished the analysis". If a fresh context is genuinely
   unavailable, say so in the report and weight your findings accordingly.

1. **Collect the claim surface.** Gather the design doc/prereg, the pipeline
   and analysis code, and — most importantly — the list of numbers the study
   will report (the readouts). If the readouts aren't written down anywhere,
   that is finding #1: you cannot review what "success" would look like if
   nobody has committed to it.

2. **Two manufacture routes per readout — one in each direction.** Fill this
   table before analyzing anything:

   | readout | false-positive route (produces this number with no true effect) | false-null route (hides or attenuates a real effect) | ruled out by (file:line) |
   |---|---|---|---|

   The false-null column is the one that gets skipped: it is easy to
   enumerate ways the headline could be fake and stop there. But a design
   that *cannot detect* a real effect burns the run just as completely, and
   "we found nothing" is harder to challenge afterwards than "we found
   something". Concrete false-null routes: an instrument that has never
   caught anything, a volume-diluted metric, a normalizer that strips the
   signal upstream of the stratum measuring it, a permutation null that
   cannot vary. A row is not finished until both columns are filled or the
   false-null cell states why no such route exists; the `Direction` field of
   every finding must trace back to this table. Use the catalog below as the
   checklist, and spend the most effort on the readouts that carry the
   headline.

3. **Execute, don't just read.** Wherever feasible, verify empirically:
   - Feed instruments a known-positive and a known-negative case; require
     separation.
   - Check declared constraints end-to-end with a case that should violate
     them (a "frozen" split, a temporal cutoff, a blinding rule — confirm
     the violation is actually caught, not just that the constraint is
     computed somewhere).
   - Re-derive one or two reported numbers from raw data independently.
   - For any permutation/bootstrap test, check the null actually varies:
     count the distinct values the statistic takes under permutation.
   - **Ground every quoted piece of evidence.** Any LLM stage can emit
     evidence-shaped output while reporting success: quotes stitched across
     source boundaries, paraphrase dressed as verbatim, notes describing
     edits never made. Reading the artifact and judging plausibility does not
     catch this — grep each evidence string against the source it cites and
     report the failure count. An unverified quote field is missing data,
     not evidence.

4. **Report with verdict and dispositions.** Use this format:

   ```
   VERDICT: READY | NOT READY
   ## Blockers (would fabricate or destroy a headline; fix before spend)
   B1. <title>
       Mechanism: <how the artifact produces the number, concretely>
       Direction: manufactures false positive | false null | either
       Evidence: <file:line / the case you ran>
       Fix: <smallest change that rules it out>
       Verify: <how to prove the fix worked>
   ## Majors (biases a secondary readout or weakens a claim)
   ## Minors / notes
   ## Checks: executed vs read-only
   <each step-3 verification: "executed" with the command/case and its result,
   or "read-only" — a finding that rests on reading alone must say so>
   ## Not a certificate
   <which manufacture routes this pass could NOT check — this review
   reliably catches mechanical fabrication routes and is weakest against
   framing-level traps the designer also believes; name the specific claim
   wording that still needs a construct-level human read>
   ```

   Severity is set by *what the flaw does to the conclusions*, not by how
   subtle the code change is. A one-line filter that only prunes one arm is
   a blocker; an ugly function that computes the right number is a note.
   The "Not a certificate" section belongs inside a report you actually
   emitted; never attach it as a standalone disclaimer to a non-review task.
   The executed-vs-read-only ledger exists because a read-only pass that
   presents like an executed one is this skill's own evidence-shaped-object
   problem, applied to itself.

5. **Expect your findings to be verified.** State each finding so it can be
   checked against data ("58/209 sessions predate the cut"), not as vibes
   ("the split seems leaky"). Reviews that can't be adjudicated get argued
   with instead of fixed.

## The manufacture catalog

Failure modes below were each caught in real reviews of real studies; the
one-line examples are genuine. Check every readout against every family.

**1. Leakage and contamination**
- Test data present in training/mining/calibration inputs; information from
  the future of a point used to score that point. *(A temporal firewall was
  computed but never enforced downstream: 28% of test points predated the
  cut, biased pro-pipeline.)*
- Selection rules or hyperparameters tuned on the quantity being reported
  (outcome-conditional choices). *(A detection-context default chosen by
  whichever maximized precision — precision was the dependent variable.)*
- "Blind" materials leaking labels via position, ID scheme, filename, or
  formatting. *(Audit packets with kind-grouped sequential IDs: items 0–19
  all one label.)*

**2. Asymmetry between arms**
- Any filter, prune, cap, retry, or preprocessing step applied to one arm
  and not the other — data cleaning is part of the treatment. *(A null-fire
  prune applied to own-lists only turned p=.101 into a reportable p=.027.)*
- Volume/length/opportunity confounds: one arm gets more chances to score.
  *(A registered count-based primary rewarded the arm that simply fired
  more; the amended volume-immune primary came back null.)*
- Context or prompt differences that help one arm. *(Showing the detector
  the user's request text helps the arm whose rules mention that user's
  habitual requests.)*
- Arms generated by different processes and then labeled as if comparable
  ("expert baseline" that is actually another LLM prompt).

**3. Degenerate statistics**
- Permutation/bootstrap nulls that cannot vary. *(Zero mixed-label users in
  a cell meant all 1,000 permutations reproduced the observed data exactly —
  a guaranteed, publishable-looking null.)*
- Denominators that make the metric true by construction; ratios whose
  numerator and denominator share the untrusted quantity. *(A stability
  Jaccard computed over unvalidated matcher output on both sides read .82;
  the honest value was .43 — below the registered kill threshold.)*
- Effects carried entirely by a few units: require drop-top-k, not just
  leave-one-out — actually run the check and report whether the effect
  survives, even when it does. Cluster errors at the unit where treatment
  varies (users, not events).
- Underpowered cells reported as substantive nulls without a minimum
  detectable effect.

**4. Lying instruments**
- Any LLM stage can fabricate evidence-shaped output while reporting
  success: planted test cases with notes describing edits never made
  *(11/63 plants were no-ops with fabricated sabotage notes)*, quotes
  stitched across source boundaries or paraphrases dressed as verbatim
  *(1 of 87 citations invented in an otherwise-grounded profile)*.
- Instruments that have never been fed a case they must catch. *(A code
  sandbox erroring on 100% of 159 samples — every failure recorded as data —
  because no known-good snippet had ever been run through it.)*
- Refusals, timeouts, and empty payloads recorded as zeros/clean negatives
  instead of missing data — deadly when refusal rates differ by arm.
- Judges validated only by agreeing with themselves; check against a dumb
  baseline. *(A blind-judge "match" score of 92.6% was reproduced by a
  word-overlap matcher — the judge was measuring topic, not the construct.)*

**5. Interpretation traps** (the design can be clean and the claim still
manufactured)
- The stated claim is broader than the tested contrast; the headline wording
  smuggles in a comparison nobody ran.
- A control that nets out the very signal it's supposed to isolate (e.g.
  subtracting a baseline that contains the effect).
- Composite results whose components are individually reported but jointly
  contradictory — check the conjunction, not just each number.
- Measurement instruments that destroy the signal upstream. *(A text
  normalizer stripped proper nouns before a stratum that measured
  content-specificity — erasing exactly what it was built to detect.)*

## Discipline notes

- If the same flaw family was registered before (a prior review, a listed
  confound), check it *by its registered name first* — repeat offenses at
  registered flaws are the most common blocker in practice.
- After fixes land, re-verify each blocker with the "Verify" step you
  specified — a disposition without verification is a promise, not a fix.
