Ablation and attribution
In Academic Harness:
ablationkeeps state under.dsh/ablation/<slug>/. It never runs an experiment: every record points at an existingexperiment_logrun or a hashedanalysis_run. The attribution reading is advisory; onlyah_checkblocks.
Use this when the question is "does the gain survive removing this component?", not merely whether another run moved a metric. The ledger makes the removal grid explicit before results are seen and keeps every number tied to a stored run.
Workflow
Bind the method and champion idea.
ablation action=start slug=solver question="Does warm start carry the gain?" idea_id=idea-017 idea_source=coscientist/lr-sweep method={"name":"Warm-start solver","description":"reuse the initialized cache"}The champion id comes from the
coscientisttournament;startis write-once.Freeze the plan. One reference arm (usually
full), then one arm per removed component. Each removal arm names the component, code path or module, and the metric changes it expects.ablation action=plan slug=solver plan={"reference_arm":"full","datasets":["D1","D2"], "metrics":[{"name":"accuracy","direction":"higher"},{"name":"latency","direction":"lower"}], "replicates":2, "arms":[{"id":"full"}, {"id":"no-warm","component":"warm_start","code_path":"solver.py:init", "expected":[{"metric":"latency","change":"increase"}]}]}The plan is frozen once; do not rewrite it after seeing results.
Record links, not numbers. For an
experiment_logrun the metrics come from the run itself; for ananalysis_runthe run must have hashed outputs and you supply the metric reading.ablation action=record slug=solver arm=no-warm dataset=D1 replicate=1 experiment_slug=bench experiment_run_id=x0007Read the paired report.
ablation action=report slug=solver ablation action=status slug=solverEach row compares the removal arm with the reference on the same dataset and replicate. Ties and missing cells are listed, not dropped. A component is read as
attributedonly when every paired expected metric changes in the declared direction;unattributedwhen none does;partialfor mixed evidence or missing cells;not_checkedwithout paired evidence.Record the human verdict and prune.
ablation action=verdict slug=solver verdict=unattributed reason="cache removal is a tie" ablation action=prune slug=solver arm=no-cache reason="tie, not worth another replicate"good | refine | unattributedis the decision, not the reading. Pruning is append-only and excludes the arm from the attribution reading.Export.
export format=markdown|json|csvproduces the artifact a later attribution check orah_fact/ah_claims_bindcan read.
Rules
- A missing cell or a tie is not evidence of attribution. Report it.
- No attribution reading is a scientific claim; the human verdict is separate.
- Do not copy numbers by hand into the ledger: link the run, and let an
analysis_runrecord carry the source digest and hashed outputs. - Do not prune an arm to make a reading cleaner; prune because the arm is no longer worth running, and keep the event.