Validity Threats Experimental Design Lens
Philosophical Mode: Adversarial
Primary Question: "What alternative explanations survive?"
Focus: History Effects, Instrumentation Changes, Selection Effects, Co-interventions, Treatment Diffusion
Arguments
/autoskillit:exp-lens-validity-threats [context_path] [experiment_plan_path]
- context_path (optional positional arg 1) — Absolute path to a lens context file
containing IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria.
If provided, read this file before beginning analysis to obtain structured context.
If omitted, discover context by exploring the CWD.
- experiment_plan_path (optional positional arg 2) — Absolute path to the full
experiment plan. If provided, read for complete experimental methodology and design.
If omitted, locate the experiment plan by exploring the CWD.
When to Use
- Quasi-experimental designs without full randomization
- System experiments with environmental changes
- Longitudinal comparisons
- User invokes
/autoskillit:exp-lens-validity-threats or /autoskillit:make-experiment-diag validity
Critical Constraints
NEVER:
- Modify any source code files
- Create files outside
{{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/
- Run subagents in the background (
run_in_background: true is prohibited)
ALWAYS:
Apply Campbell & Stanley's full threat taxonomy — do not skip threats just because they seem unlikely
For every observed difference, enumerate at least 3 alternative explanations
Assess mitigation strength honestly — "partially mitigated" is better than false confidence
Distinguish threats that are ruled out by design from those that remain plausible
BEFORE creating any diagram, LOAD the /autoskillit:mermaid skill using the Skill tool - this is MANDATORY
If the Skill tool cannot be used (disable-model-invocation) or refuses this invocation, do NOT proceed with diagram creation. Abort this step and omit the diagram from output.
Write output to {{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/exp_diag_validity_threats_{YYYY-MM-DD_HHMMSS}.md
After writing the file, emit the structured output token as literal plain text with no
markdown formatting on the token name (the adjudicator performs a regex match):
diagram_path = /absolute/path/to/{{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/exp_diag_validity_threats_{...}.md
Analysis Workflow
Step 0: Parse optional arguments
If positional arg 1 (context_path) is provided and the file exists, read it to obtain
IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria. If positional
arg 2 (experiment_plan_path) is provided and exists, read the experiment plan for full
methodology. Use this structured context as the foundation for Steps 1-5; skip the CWD
exploration for these fields if the context file supplies them.
Step 1: Launch Parallel Exploration Subagents
Spawn Explore subagents to investigate:
Temporal Changes (History)
- Find system, environment, or data changes during the experiment
- Look for: deploy, release, update, change, migration, incident, outage, rollback
Instrumentation Changes
- Find changes to measurement tools or logging during the experiment
- Look for: logging, monitoring, metric, measure, instrument, version, schema
Selection & Filtering
- Find how subjects, samples, or data were selected
- Look for: filter, select, sample, eligibility, inclusion, exclusion, criteria
Co-interventions
- Find other changes running simultaneously with the treatment
- Look for: concurrent, parallel, simultaneous, co-running, other_experiment, a_b_overlap
Treatment Diffusion
- Find ways treatment effects could spread to control groups
- Look for: contamination, diffusion, spillover, shared, cross, control_exposure
Step 2: Apply Threat Taxonomy
Apply Campbell & Stanley's threat taxonomy: plausibility, design mitigation, mitigation strength → build threat matrix.
Step 3: Analyze Alternative Explanations
For every observed difference: list at least 3 alternative explanations, ruling-out evidence, consistent evidence.
Step 4: Create the Diagram
Direction: TB. Subgraphs: THREAT SOURCES, DESIGN MITIGATIONS, RESIDUAL THREATS
Step 5: Write Output
Write the diagram to: {{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/exp_diag_validity_threats_{YYYY-MM-DD_HHMMSS}.md (relative to the current working directory)
Campbell-Stanley Checklist
Apply to every experiment:
- History — concurrent events confounding treatment
- Maturation — natural changes in subjects over time
- Testing — pre-test sensitization effects
- Instrumentation — changes in measurement tools
- Statistical Regression — regression to the mean
- Selection — non-random group formation
- Experimental Mortality — differential dropout
- Selection-Maturation Interaction — groups maturing at different rates
- Diffusion of Treatments — control group exposed to treatment
- Co-interventions — simultaneous competing treatments
Pre-Diagram Checklist
Before creating the diagram, verify:
Related Skills
/autoskillit:make-experiment-diag - Parent skill
/autoskillit:mermaid - MUST BE LOADED before creating diagram
/autoskillit:exp-lens-causal-assumptions
/autoskillit:exp-lens-severity-testing
1---2name: exp-lens-validity-threats3description: Create a validity threat matrix identifying alternative explanations and design mitigations. Adversarial lens answering "What alternative explanations survive?"4---56# Validity Threats Experimental Design Lens78**Philosophical Mode:** Adversarial9**Primary Question:** "What alternative explanations survive?"10**Focus:** History Effects, Instrumentation Changes, Selection Effects, Co-interventions, Treatment Diffusion1112## Arguments1314`/autoskillit:exp-lens-validity-threats [context_path] [experiment_plan_path]`1516- **context_path** (optional positional arg 1) — Absolute path to a lens context file17 containing IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria.18 If provided, read this file before beginning analysis to obtain structured context.19 If omitted, discover context by exploring the CWD.20- **experiment_plan_path** (optional positional arg 2) — Absolute path to the full21 experiment plan. If provided, read for complete experimental methodology and design.22 If omitted, locate the experiment plan by exploring the CWD.2324## When to Use2526- Quasi-experimental designs without full randomization27- System experiments with environmental changes28- Longitudinal comparisons29- User invokes `/autoskillit:exp-lens-validity-threats` or `/autoskillit:make-experiment-diag validity`3031## Critical Constraints3233**NEVER:**34- Modify any source code files35- Create files outside `{{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/`36- Run subagents in the background (`run_in_background: true` is prohibited)3738**ALWAYS:**39- Apply Campbell & Stanley's full threat taxonomy — do not skip threats just because they seem unlikely40- For every observed difference, enumerate at least 3 alternative explanations41- Assess mitigation strength honestly — "partially mitigated" is better than false confidence42- Distinguish threats that are ruled out by design from those that remain plausible43- BEFORE creating any diagram, LOAD the `/autoskillit:mermaid` skill using the Skill tool - this is MANDATORY44- If the Skill tool cannot be used (disable-model-invocation) or refuses this invocation, do NOT proceed with diagram creation. Abort this step and omit the diagram from output.45- Write output to `{{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/exp_diag_validity_threats_{YYYY-MM-DD_HHMMSS}.md`46- After writing the file, emit the structured output token as **literal plain text** with no47 markdown formatting on the token name (the adjudicator performs a regex match):4849 ```50 diagram_path = /absolute/path/to/{{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/exp_diag_validity_threats_{...}.md51 ```5253---5455## Analysis Workflow5657### Step 0: Parse optional arguments5859If positional arg 1 (context_path) is provided and the file exists, read it to obtain60IV/DV tables, H0/H1 hypotheses, controlled variables, and success criteria. If positional61arg 2 (experiment_plan_path) is provided and exists, read the experiment plan for full62methodology. Use this structured context as the foundation for Steps 1-5; skip the CWD63exploration for these fields if the context file supplies them.6465### Step 1: Launch Parallel Exploration Subagents6667Spawn Explore subagents to investigate:6869**Temporal Changes (History)**70- Find system, environment, or data changes during the experiment71- Look for: deploy, release, update, change, migration, incident, outage, rollback7273**Instrumentation Changes**74- Find changes to measurement tools or logging during the experiment75- Look for: logging, monitoring, metric, measure, instrument, version, schema7677**Selection & Filtering**78- Find how subjects, samples, or data were selected79- Look for: filter, select, sample, eligibility, inclusion, exclusion, criteria8081**Co-interventions**82- Find other changes running simultaneously with the treatment83- Look for: concurrent, parallel, simultaneous, co-running, other_experiment, a_b_overlap8485**Treatment Diffusion**86- Find ways treatment effects could spread to control groups87- Look for: contamination, diffusion, spillover, shared, cross, control_exposure8889### Step 2: Apply Threat Taxonomy9091Apply Campbell & Stanley's threat taxonomy: plausibility, design mitigation, mitigation strength → build threat matrix.9293### Step 3: Analyze Alternative Explanations9495For every observed difference: list at least 3 alternative explanations, ruling-out evidence, consistent evidence.9697### Step 4: Create the Diagram9899**Direction:** TB. Subgraphs: THREAT SOURCES, DESIGN MITIGATIONS, RESIDUAL THREATS100101### Step 5: Write Output102103Write the diagram to: `{{AUTOSKILLIT_TEMP}}/exp-lens-validity-threats/exp_diag_validity_threats_{YYYY-MM-DD_HHMMSS}.md` (relative to the current working directory)104105---106107## Campbell-Stanley Checklist108109Apply to every experiment:1101. History — concurrent events confounding treatment1112. Maturation — natural changes in subjects over time1123. Testing — pre-test sensitization effects1134. Instrumentation — changes in measurement tools1145. Statistical Regression — regression to the mean1156. Selection — non-random group formation1167. Experimental Mortality — differential dropout1178. Selection-Maturation Interaction — groups maturing at different rates1189. Diffusion of Treatments — control group exposed to treatment11910. Co-interventions — simultaneous competing treatments120121---122123## Pre-Diagram Checklist124125Before creating the diagram, verify:126127- [ ] LOADED `/autoskillit:mermaid` skill using the Skill tool128- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)129- [ ] Diagram will include a color legend table130131---132133## Related Skills134135- `/autoskillit:make-experiment-diag` - Parent skill136- `/autoskillit:mermaid` - MUST BE LOADED before creating diagram137- `/autoskillit:exp-lens-causal-assumptions`138- `/autoskillit:exp-lens-severity-testing`