Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements frozen research plans as leak-free, reproducible, test-first experiment code with audit logs.
Use this skill ↓41% 73%+32 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 9 of 22 without it.
While coding matrix row EXP-04, I noticed that changing the learning rate from the frozen 0.001 config to 0.05 makes the model converge much faster. Should I update `configs/experiment.schema.json` default learning rate to 0.05?
Requires returning minimal reproduction to research-plan for approval when plans prove infeasible
3 of 3 safety checks passed
本图回答“按什么顺序读什么、产什么、跑什么门”。
SKILL.md定义行为与红线;本图定义逐步交接;references/tools.md解释机制;assets/project-scaffold/是可复制代码;templates/是机读/人读产物契约;scripts/是门。它们不是四份重复清单。
开始前读取并计算 SHA256:
experiment_matrix.md、pre-registration 及其 provenance;
以及 .light/failure_tree_report.json 的 locator、SHA256、PASS/WARN 状态和 warning decisions;split_leakage 证据;把这些指针写入每行配置和 run manifest。实现阶段不得修改 primary outcome、comparison family、
exclusion、stopping 或 fair-comparison 常量;若计划不可执行,带证据返回 research-plan 让人决策,不用代码默认值
静默漂移。
每个 matrix row 还必须写 failure_tree_refs:关联的 hypothesis_ids、success/failure/inconclusive
branch_action_ids,以及适用的 guardrail_ids。没有这些引用,执行端无法知道该监控哪些 counter-metric 或触发什么 kill action。
| 步 | 动作 | 必产物 / 可执行验收 |
|---|---|---|
| 1 冻结输入 | 校验 question/estimand/matrix/prereg/failure-tree/lineage 的文件、revision、hash;为每个 matrix row 分配稳定 ID | config.json 回指 frozen-plan SHA、failure_tree_report SHA、matrix row、split ID、data SHA;缺项即停 |
| 2 建骨架 | 复制 assets/project-scaffold/;保留 uv.lock;用 JSON Schema 校验配置;定义 data/model/metric 接口 | uv sync --locked --extra dev;configs/experiment.schema.json;禁止隐式全局配置 |
| 3 测试先行 | 先写并亲眼看 gold、property、metamorphic 测试失败,再实现 preprocessing/train/eval | gold 固定已知答案;Hypothesis 检性质;metamorphic 检输入变换关系;预处理只在训练折 fit,CV 用 Pipeline |
| 4 控随机性 | 分开 fixed_repro 与 randomness_estimation;设置 Python/NumPy/框架/CUDA/DataLoader/worker | 固定 seed 用于同环境复跑;多 seeds 估计算法随机性;seed 数绝不冒充患者/实体样本量 |
| 5 数值边界 | 显式 device/dtype/mixed precision;定义容差;拒绝 NaN/Inf;记录排序、线程、并行与非确定算子 | CPU/GPU、fp32/fp64/AMP 适用性与容差写入 config/test;同环境契约不外推为跨硬件 bitwise 保证 |
| 6 逐 run 留证 | 每个 matrix row、config、seed、attempt 独立 run dir;失败也不覆盖/删除 | manifest、config、env、commit、输入 hash、stdout、stderr、raw metrics、patient/entity predictions、test evidence、failure artifact;禁止只留汇总 CSV |
| 7 真门控 | 跑 review/seed/repro/artifact 门和 stage-6 checkpoint;同固定 seed 真跑两次 | review_gate.py、seed_audit.py、repro_gate.py、run_artifact_check.py 均留 exit code;两次比较 predictions/raw_metrics hash;checkpoint 由 canonical findings 驱动 |
| 8 下游交接 | 把全部 raw runs(含 failed/coverage)交 result-analysis,不先替它做 claim | result-analysis 若判实现 bug/不可复现,只生成 7→6 reroute 建议;落回边前停下让用户拍板 |
PYTHONHASHSEED;入口设置 random.seed、NumPy RNG、实际框架 RNG。manual_seed、cuda.manual_seed_all、cuDNN deterministic/benchmark、需要时
use_deterministic_algorithms 与 CUBLAS_WORKSPACE_CONFIG。generator 与 worker_init_fn;记录 worker 数、sampler、drop-last、线程数。Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.