Follow-up to #15, measured on the real run described in #18/#19.
#15 gave the session permission to install the target repo's dependencies, which was necessary — without it the suite is unrunnable. But a fresh worktree means a cold environment on every attempt, and for this target the dependency is torch. The transcript shows the session spending roughly 20 of its 25 minutes on it: uv sync --extra dev, a retry under UV_HTTP_TIMEOUT=120, backgrounding the install and polling it, then falling back to .venv/bin/pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision. It was killed mid-install.
So the fix for #15 traded "cannot verify at all" for "spends its entire budget preparing to verify". For any repo with a heavy dependency, the worker is dominated by environment build time rather than by the work.
Note the second-order cost: this is precisely the shape that meters as $0.00 (#18), so the most wasteful runs are also the least visible to the spend caps.
Acceptance criteria
- The environment build is amortised across runs rather than repeated cold — e.g. a shared package cache mounted into the worktree, or a reusable per-target environment my-coder prepares once outside the session's clock.
- Time spent preparing the environment is not charged against the same budget as the work, or the wall-clock cap accounts for it explicitly.
- Documented guidance for pointing a heavy target at a prepared environment (
--test-command already exists for my-coder's own verification; the session needs the equivalent).
Follow-up to #15, measured on the real run described in #18/#19.
#15 gave the session permission to install the target repo's dependencies, which was necessary — without it the suite is unrunnable. But a fresh worktree means a cold environment on every attempt, and for this target the dependency is
torch. The transcript shows the session spending roughly 20 of its 25 minutes on it:uv sync --extra dev, a retry underUV_HTTP_TIMEOUT=120, backgrounding the install and polling it, then falling back to.venv/bin/pip install --index-url https://download.pytorch.org/whl/cpu torch torchvision. It was killed mid-install.So the fix for #15 traded "cannot verify at all" for "spends its entire budget preparing to verify". For any repo with a heavy dependency, the worker is dominated by environment build time rather than by the work.
Note the second-order cost: this is precisely the shape that meters as
$0.00(#18), so the most wasteful runs are also the least visible to the spend caps.Acceptance criteria
--test-commandalready exists for my-coder's own verification; the session needs the equivalent).