Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

adversarial-review.md

53 lines3.7 KB

1# Adversarial review
2​
3**Use when:** a model, oracle, or proposed law needs a concrete challenge.
4​
5**Inputs:** one artifact or candidate, its sources, claimed domain, and success
6criterion. Prefer a fresh reviewer that has not seen the author's desired
7verdict. Without that separation, report a self-critique rather than independent
8validation. Delegation remains subject to the task's authorization and tools.
9​
10## Operation
11​
12Start with a plausible way this account could be wrong. Select the relevant
13levels; they are different questions, not a mandatory sequence:
14​
15| Level | Attack |
16| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
17| Enforcement | Find a legal history or wrong output that the model, generator, driver, or recorder cannot distinguish. Can the intended production path remain unexercised while the test passes? |
18| Formulation | Find an omitted precondition, excessive guarantee, wrong checkpoint, or ambiguous observation. Try a correct alternative implementation as well as a wrong one. |
19| Suitability | Question whether the promised behavior is desirable, safe, or conventional. Name the external contract, standard, user consequence, or engineering reason that makes the objection applicable. |
20| Composition | Find obligations that conflict, duplicate each other, or require a shared ordering or authority rule. Use the tension or restructuring card if that is the material uncertainty. |
21| Concepts | Question the chosen identity, state, ownership, or boundary distinctions. Describe the same case without relying on its current names and check what is lost or becomes visible. |
22​
23For each material attack, name the broken claim and construct a small legal
24history or concrete failure scene. State the competing expected observations,
25the evidence that could decide between them, and a possible repair condition.
26Check that the attack is within scope and that its standard actually applies.
27An outside-domain case may motivate a scope change; label that proposal.
28​
29When execution is authorized and practical, run the discriminating experiment.
30A hostile control must reach the intended comparison to demonstrate rejection.
31Use the oracle guide's calibration and mutant-outcome rules. A source-level
32argument can remain useful when execution is unavailable; label it accurately.
33For a systematic search across plausible wrong implementations, use the
34[mutant gap hunt](mutant-gap-hunt.md) to design semantic edits and classify
35survivors.
36​
37**Return:** supported defects, design objections, and untested hypotheses as
38separate kinds of finding, with sources, witnesses, outcomes, and repair
39conditions. For bugs, identify the test gap that permitted the class of failure.
40​
41**Control:** explain what would defeat the criticism. Check whether the attack
42would also reject a valid implementation or depend on a condition the contract
43excludes. Do not presume a defect merely because the stance is adversarial.
44​
45**Distortion:** generic pessimism, irrelevant external standards, author capture,
46or treating a preferred design as evidence of a current correctness bug.
47​
48**Stop when:** the material attacks have evidence or an explicit unresolved
49experiment. No supported finding is a valid result. Challenging a law does not
50silently replace it.
51​
52Adapted from Field Lab's hostile failure assay; DB's version also permits
53explicit criticism of the candidate's standard and conceptual organization.