Sensitivity & Robustness Experimental Design Lens
Philosophical Mode: Robustness
Primary Question: "Which assumptions are load-bearing?"
Focus: Ablation Structure, Preprocessing Sensitivity, Metric Sensitivity, Hyperparameter Sensitivity, Distribution Shift
When to Use
- Results may depend on specific preprocessing choices
- Need to verify robustness of conclusions across conditions
- Ablation study seems incomplete or cherry-picked
- User invokes
/exp-lens-sensitivity-robustness or /make-experiment-diag sensitivity
Critical Constraints
NEVER:
- Modify any source code or experiment files
- Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for themselves
- Treat "untested" as equivalent to "robust"
ALWAYS:
- Build a full sensitivity matrix (choices x perturbation types)
- Classify every analytic choice as load-bearing, minor, or untested
- Flag cases where the most impactful choices are the least tested
- Distinguish between ablations that were run and choices that were simply fixed
- BEFORE creating any diagram, LOAD the
/mermaid skill using the Skill tool - this is MANDATORY
Analysis Workflow
Step 1: Launch Parallel Exploration Subagents
Spawn Explore subagents to investigate:
Analytic Choices Made
- Find all decision points in the analysis pipeline
- Look for: choice, option, default, parameter, threshold, method, alternative
Ablation Coverage
- Find which factors have been ablated
- Look for: ablation, without, remove, disable, vary, sweep, drop
Preprocessing Variations
- Find preprocessing steps that could be done differently
- Look for: normalize, tokenize, augment, crop, resize, filter, clean, impute
Hyperparameter Sensitivity
- Find which hyperparameters were tuned vs fixed
- Look for: learning_rate, batch_size, epochs, dropout, hidden_size, temperature, alpha, beta
Distribution/Environment Variations
- Find evidence of testing under different conditions
- Look for: shift, domain, transfer, cross, out_of_distribution, generalize, different
Step 2: Build the Sensitivity Matrix
Rows = analytic choices. Columns = perturbation types (remove, change, stress).
For each cell: Does the conclusion survive the perturbation?
Step 3: Classify Analytic Choices
CRITICAL — Analyze Assumption Load:
For every analytic choice:
- What happens if this choice were made differently?
- Is there evidence from ablations, sweeps, or prior literature?
- Are the most impactful choices the least tested?
Classify each choice as:
- Load-bearing: Conclusion changes if this choice changes
- Minor: Conclusion is robust to changes in this choice
- Untested: No evidence either way
Step 4: Create the Optional Perturbation Diagram
If a diagram adds value, create a simplified flowchart. This is OPTIONAL for this hybrid lens — the tables are the primary output.
Direction: TB (choices flow down through perturbation to conclusion stability)
Subgraphs: "ANALYTIC CHOICES", "PERTURBATIONS TESTED", "CONCLUSION STABILITY"
Node Styling:
stateNode class: analytic choice nodes
handler class: perturbation type nodes
output class: stable conclusion nodes
gap class: load-bearing untested choice nodes
detector class: sensitivity threshold nodes
Step 5: Write Output
Write the analysis to: temp/exp-lens-sensitivity-robustness/exp_diag_sensitivity_robustness_{YYYY-MM-DD_HHMMSS}.md
Output Template
# Sensitivity & Robustness Analysis: {Experiment Name}
**Lens:** Sensitivity & Robustness (Robustness)
**Question:** Which assumptions are load-bearing?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}
## Sensitivity Matrix
| Analytic Choice | Remove | Change Value | Stress Test | Overall Classification |
|----------------|--------|-------------|-------------|------------------------|
| {choice name} | Stable / Fragile / Untested | Stable / Fragile / Untested | Stable / Fragile / Untested | Load-bearing / Minor / Untested |
## Load-Bearing Assumptions
| Assumption | Evidence Type | Impact if Changed | Tested? |
|------------|--------------|-------------------|---------|
| {assumption} | Ablation / Sweep / Literature / None | High / Medium / Low | Yes / No |
## Ablation Coverage Assessment
| Factor | Ablated? | Result | Interpretation |
|--------|----------|--------|----------------|
| {factor name} | Yes / No | {delta metric if yes} | Conclusion holds / Fragile / Unknown |
## Robustness Profile
| Dimension | Status | Notes |
|-----------|--------|-------|
| Preprocessing choices | Robust / Fragile / Untested | {detail} |
| Hyperparameter choices | Robust / Fragile / Untested | {detail} |
| Metric choices | Robust / Fragile / Untested | {detail} |
| Distribution shift | Robust / Fragile / Untested | {detail} |
## Perturbation Diagram (Optional)
```mermaid
%%{init: {'flowchart': {'nodeSpacing': 50, 'rankSpacing': 60, 'curve': 'basis'}}}%%
flowchart TB
%% CLASS DEFINITIONS %%
classDef cli fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;
classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;
classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;
classDef newComponent fill:#2e7d32,stroke:#81c784,stroke-width:2px,color:#fff;
classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;
classDef gap fill:#ff6f00,stroke:#ffa726,stroke-width:2px,color:#000;
classDef integration fill:#c62828,stroke:#ef9a9a,stroke-width:2px,color:#fff;
subgraph Choices ["ANALYTIC CHOICES"]
CHOICE1["Preprocessing Choice<br/>━━━━━━━━━━<br/>{e.g., normalization}"]
CHOICE2["Model Choice<br/>━━━━━━━━━━<br/>{e.g., architecture}"]
LOAD_BEARING["Load-Bearing Choice<br/>━━━━━━━━━━<br/>{untested critical choice}"]
end
subgraph Perturbations ["PERTURBATIONS TESTED"]
PERTURB1["Remove<br/>━━━━━━━━━━<br/>Ablation"]
PERTURB2["Change Value<br/>━━━━━━━━━━<br/>Sensitivity sweep"]
THRESHOLD["Sensitivity Threshold<br/>━━━━━━━━━━<br/>{delta that changes conclusion}"]
end
subgraph Stability ["CONCLUSION STABILITY"]
STABLE["Stable Conclusion<br/>━━━━━━━━━━<br/>{holds under perturbation}"]
end
CHOICE1 --> PERTURB1
CHOICE2 --> PERTURB2
PERTURB1 --> THRESHOLD
PERTURB2 --> THRESHOLD
THRESHOLD --> STABLE
LOAD_BEARING -.->|"untested risk"| THRESHOLD
class CHOICE1,CHOICE2 stateNode;
class LOAD_BEARING gap;
class PERTURB1,PERTURB2 handler;
class THRESHOLD detector;
class STABLE output;
Color Legend:
| Color |
Category |
Description |
| Teal |
Analytic Choices |
Decision points in the pipeline |
| Yellow |
Load-Bearing Untested |
Critical choices with no perturbation evidence |
| Orange |
Perturbations |
Types of tests applied |
| Red |
Sensitivity Thresholds |
Points where conclusion may change |
| Dark Teal |
Stable Conclusions |
Results robust to perturbation |
Recommendations
- {Most urgent ablation to run — highest impact untested choice}
- {Preprocessing sensitivity test needed}
- {Distribution shift or domain generalization test needed}
---
## Pre-Diagram Checklist
Before creating the diagram, verify:
- [ ] LOADED `/mermaid` skill using the Skill tool
- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)
- [ ] Diagram will include a color legend table
---
## Related Skills
- `/make-experiment-diag` - Parent skill for lens selection
- `/mermaid` - MUST BE LOADED before creating diagram
- `/exp-lens-estimand-clarity` - For clarifying which conclusions are being stress-tested
- `/exp-lens-iterative-learning` - For tracking robustness improvements across experiment iterations
1---2name: exp-lens-sensitivity-robustness3description: Create Sensitivity & Robustness experimental design analysis identifying load-bearing analytic choices and untested perturbations. Robustness lens answering "Which assumptions are load-bearing?"4---56# Sensitivity & Robustness Experimental Design Lens78**Philosophical Mode:** Robustness9**Primary Question:** "Which assumptions are load-bearing?"10**Focus:** Ablation Structure, Preprocessing Sensitivity, Metric Sensitivity, Hyperparameter Sensitivity, Distribution Shift1112## When to Use1314- Results may depend on specific preprocessing choices15- Need to verify robustness of conclusions across conditions16- Ablation study seems incomplete or cherry-picked17- User invokes `/exp-lens-sensitivity-robustness` or `/make-experiment-diag sensitivity`1819## Critical Constraints2021**NEVER:**22- Modify any source code or experiment files23- Do not litter the codebase with useless comments, TODO markers, or explanatory annotations — the skill output and diagram speak for themselves24- Treat "untested" as equivalent to "robust"2526**ALWAYS:**27- Build a full sensitivity matrix (choices x perturbation types)28- Classify every analytic choice as load-bearing, minor, or untested29- Flag cases where the most impactful choices are the least tested30- Distinguish between ablations that were run and choices that were simply fixed31- BEFORE creating any diagram, LOAD the `/mermaid` skill using the Skill tool - this is MANDATORY3233---3435## Analysis Workflow3637### Step 1: Launch Parallel Exploration Subagents3839Spawn Explore subagents to investigate:4041**Analytic Choices Made**42- Find all decision points in the analysis pipeline43- Look for: choice, option, default, parameter, threshold, method, alternative4445**Ablation Coverage**46- Find which factors have been ablated47- Look for: ablation, without, remove, disable, vary, sweep, drop4849**Preprocessing Variations**50- Find preprocessing steps that could be done differently51- Look for: normalize, tokenize, augment, crop, resize, filter, clean, impute5253**Hyperparameter Sensitivity**54- Find which hyperparameters were tuned vs fixed55- Look for: learning_rate, batch_size, epochs, dropout, hidden_size, temperature, alpha, beta5657**Distribution/Environment Variations**58- Find evidence of testing under different conditions59- Look for: shift, domain, transfer, cross, out_of_distribution, generalize, different6061### Step 2: Build the Sensitivity Matrix6263Rows = analytic choices. Columns = perturbation types (remove, change, stress).6465For each cell: Does the conclusion survive the perturbation?6667### Step 3: Classify Analytic Choices6869**CRITICAL — Analyze Assumption Load:**70For every analytic choice:71- What happens if this choice were made differently?72- Is there evidence from ablations, sweeps, or prior literature?73- Are the most impactful choices the least tested?7475Classify each choice as:76- **Load-bearing**: Conclusion changes if this choice changes77- **Minor**: Conclusion is robust to changes in this choice78- **Untested**: No evidence either way7980### Step 4: Create the Optional Perturbation Diagram8182If a diagram adds value, create a simplified flowchart. This is OPTIONAL for this hybrid lens — the tables are the primary output.8384**Direction:** `TB` (choices flow down through perturbation to conclusion stability)8586**Subgraphs:** "ANALYTIC CHOICES", "PERTURBATIONS TESTED", "CONCLUSION STABILITY"8788**Node Styling:**89- `stateNode` class: analytic choice nodes90- `handler` class: perturbation type nodes91- `output` class: stable conclusion nodes92- `gap` class: load-bearing untested choice nodes93- `detector` class: sensitivity threshold nodes9495### Step 5: Write Output9697Write the analysis to: `temp/exp-lens-sensitivity-robustness/exp_diag_sensitivity_robustness_{YYYY-MM-DD_HHMMSS}.md`9899---100101## Output Template102103```markdown104# Sensitivity & Robustness Analysis: {Experiment Name}105106**Lens:** Sensitivity & Robustness (Robustness)107**Question:** Which assumptions are load-bearing?108**Date:** {YYYY-MM-DD}109**Scope:** {What was analyzed}110111## Sensitivity Matrix112113| Analytic Choice | Remove | Change Value | Stress Test | Overall Classification |114|----------------|--------|-------------|-------------|------------------------|115| {choice name} | Stable / Fragile / Untested | Stable / Fragile / Untested | Stable / Fragile / Untested | Load-bearing / Minor / Untested |116117## Load-Bearing Assumptions118119| Assumption | Evidence Type | Impact if Changed | Tested? |120|------------|--------------|-------------------|---------|121| {assumption} | Ablation / Sweep / Literature / None | High / Medium / Low | Yes / No |122123## Ablation Coverage Assessment124125| Factor | Ablated? | Result | Interpretation |126|--------|----------|--------|----------------|127| {factor name} | Yes / No | {delta metric if yes} | Conclusion holds / Fragile / Unknown |128129## Robustness Profile130131| Dimension | Status | Notes |132|-----------|--------|-------|133| Preprocessing choices | Robust / Fragile / Untested | {detail} |134| Hyperparameter choices | Robust / Fragile / Untested | {detail} |135| Metric choices | Robust / Fragile / Untested | {detail} |136| Distribution shift | Robust / Fragile / Untested | {detail} |137138## Perturbation Diagram (Optional)139140```mermaid141%%{init: {'flowchart': {'nodeSpacing': 50, 'rankSpacing': 60, 'curve': 'basis'}}}%%142flowchart TB143 %% CLASS DEFINITIONS %%144 classDef cli fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;145 classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;146 classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;147 classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;148 classDef newComponent fill:#2e7d32,stroke:#81c784,stroke-width:2px,color:#fff;149 classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;150 classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;151 classDef gap fill:#ff6f00,stroke:#ffa726,stroke-width:2px,color:#000;152 classDef integration fill:#c62828,stroke:#ef9a9a,stroke-width:2px,color:#fff;153154 subgraph Choices ["ANALYTIC CHOICES"]155 CHOICE1["Preprocessing Choice<br/>━━━━━━━━━━<br/>{e.g., normalization}"]156 CHOICE2["Model Choice<br/>━━━━━━━━━━<br/>{e.g., architecture}"]157 LOAD_BEARING["Load-Bearing Choice<br/>━━━━━━━━━━<br/>{untested critical choice}"]158 end159160 subgraph Perturbations ["PERTURBATIONS TESTED"]161 PERTURB1["Remove<br/>━━━━━━━━━━<br/>Ablation"]162 PERTURB2["Change Value<br/>━━━━━━━━━━<br/>Sensitivity sweep"]163 THRESHOLD["Sensitivity Threshold<br/>━━━━━━━━━━<br/>{delta that changes conclusion}"]164 end165166 subgraph Stability ["CONCLUSION STABILITY"]167 STABLE["Stable Conclusion<br/>━━━━━━━━━━<br/>{holds under perturbation}"]168 end169170 CHOICE1 --> PERTURB1171 CHOICE2 --> PERTURB2172 PERTURB1 --> THRESHOLD173 PERTURB2 --> THRESHOLD174 THRESHOLD --> STABLE175 LOAD_BEARING -.->|"untested risk"| THRESHOLD176177 class CHOICE1,CHOICE2 stateNode;178 class LOAD_BEARING gap;179 class PERTURB1,PERTURB2 handler;180 class THRESHOLD detector;181 class STABLE output;182```183184**Color Legend:**185| Color | Category | Description |186|-------|----------|-------------|187| Teal | Analytic Choices | Decision points in the pipeline |188| Yellow | Load-Bearing Untested | Critical choices with no perturbation evidence |189| Orange | Perturbations | Types of tests applied |190| Red | Sensitivity Thresholds | Points where conclusion may change |191| Dark Teal | Stable Conclusions | Results robust to perturbation |192193## Recommendations1941951. {Most urgent ablation to run — highest impact untested choice}1962. {Preprocessing sensitivity test needed}1973. {Distribution shift or domain generalization test needed}198```199200---201202## Pre-Diagram Checklist203204Before creating the diagram, verify:205206- [ ] LOADED `/mermaid` skill using the Skill tool207- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)208- [ ] Diagram will include a color legend table209210---211212## Related Skills213214- `/make-experiment-diag` - Parent skill for lens selection215- `/mermaid` - MUST BE LOADED before creating diagram216- `/exp-lens-estimand-clarity` - For clarifying which conclusions are being stress-tested217- `/exp-lens-iterative-learning` - For tracking robustness improvements across experiment iterations