This source did not publish a separate summary. Review SKILL.md before using the skill.
SKILL.md
Simulation Validator
Goal
Provide a three-stage validation protocol: pre-flight checks, runtime monitoring, and post-flight validation for materials simulations.
Requirements
Python 3.8+
No external dependencies (uses Python standard library only)
Works on Linux, macOS, and Windows
Inputs to Gather
Before running validation scripts, collect from the user:
Input
Description
Example
Config file
Simulation configuration (JSON/YAML)
simulation.json
Log file
Runtime output log
simulation.log
Metrics file
Post-run metrics (JSON)
results.json
Required params
Parameters that must exist
dt,dx,kappa
Valid ranges
Parameter bounds
dt:1e-6:1e-2
Decision Guidance
When to Run Each Stage
Is simulation about to start?
├── YES → Run Stage 1: preflight_checker.py
│ └── BLOCK status? → Fix issues, do NOT run simulation
│ └── WARN status? → Review warnings, document if accepted
│ └── PASS status? → Proceed to run simulation
│
Is simulation running?
├── YES → Run Stage 2: runtime_monitor.py (periodically)
│ └── Alerts? → Consider stopping, check parameters
│
Has simulation finished?
├── YES → Run Stage 3: result_validator.py
│ └── Failed checks? → Do NOT use results
│ → Run failure_diagnoser.py
│ └── All passed? → Results are valid
Choosing Validation Thresholds
Metric
Conservative
Standard
Relaxed
Mass tolerance
1e-6
1e-3
1e-2
Residual growth
2x
10x
100x
dt reduction
10x
100x
1000x
Script Outputs (JSON Fields)
Script
Output Fields
scripts/preflight_checker.py
report.status, report.blockers, report.warnings
scripts/runtime_monitor.py
alerts, residual_stats, dt_stats
scripts/result_validator.py
checks, confidence_score, failed_checks
scripts/failure_diagnoser.py
probable_causes, recommended_fixes
Three-Stage Validation Protocol
Stage 1: Pre-flight (Before Simulation)
Run scripts/preflight_checker.py --config simulation.json
BLOCK status: Stop immediately, fix all blocker issues