Capstone: Run, Ablate and Improve a Full Harness¶
What you do¶
You work with the complete habit-tracker harness in harnesslab/presets.py: workspace, path guard, deny-first policy, hooks (on-read guidance and a lint sensor), verification with acceptance and held-out tests, budgets and tracing.
Steps¶
- Run it offline.
cd harnesslab && python -m harnesslab demo. For every line where the harness intervenes, name the part of the eight-part model responsible. - Ablate it.
python projects/10-capstone-full-harness/ablation.pyfrom the repo root. It removes one component at a time and reports what the agent claimed, what the harness concluded and what an independent audit found. - Run a real model.
python -m harnesslab run --provider anthropic(oropenai) at least three times. Save the traces. Run the ablation with--providertoo. - Diagnose. Pick the most common failure across your real runs and find its address with the failure table.
- Improve one thing. Make the smallest change at that component. Prove it with before-and-after runs.
- Write the spec. Fill in the harness spec template for the harness as it now stands, including what it leaves out and why.
Done when¶
- You have a table of at least three real runs before and after your change.
- Your spec fits on one page.
What to notice¶
The scripted agent follows a fixed plan, so some ablation rows look identical. Real models do not. Small numbers of runs rarely prove much, so report the sample size with every result.