Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Problem
Every Trial attempt keeps its whole working state under ~/.thirdshift/evals/experiments/<id>/trials/<trial>/attempt-*/ for good. Tonight's A/A Experiment for #1267 had 112 attempts on disk after about 110 Trials and used 14 GB, about 125 MB per attempt:
- about 46 MB is the Codex session home's
.codex/cache/remote_plugin_catalog, downloaded again into each attempt's fresh home; - about 23 MB or more is the attempt's
repository/copy. Its size depends on the Eval task's repository; - the rest is small: session logs, spans, reports,
result.jsonand the request.
Every release now runs a release Experiment of about 162 Trials, so each release leaves roughly 15–20 GB behind. On the 154 GB thirdshift host, that is a real share of the disk alongside Pickup builds, and nothing ever removes it.
What to build
Keep what the guide promises to retain, and drop the bulk once nothing can read it.
- Harness caches. When a Trial's session ends, whatever its outcome, remove the Harness's cache directories from the attempt's session home (for Codex,
home/.codex/cache/). Keep the session's own records: itssessions/transcripts, logs, spans and model evidence. - Repository copies. Once an Experiment's Verdict is final (all grading done and no
pending_rechecks), remove each attempt'srepository/directory. Keep it for:- a borderline Trial until it is rechecked, since
thirdshift recheckmay need it; - an Experiment paused or interrupted before its Verdict, so resuming still works.
- a borderline Trial until it is rechecked, since
- Everything else stays where it is:
result.json,request.json,started.json,stdout,stderr,scope, traces,session/reports and summaries, Grader output, packets and Scores.thirdshift experiments <id> [--session …]must read a pruned Experiment exactly as before. - Pruning failures are reported as a
warning:line and never change the Verdict or the exit status.
Acceptance criteria
- After a Trial session ends, its attempt's Harness cache directory is gone and its transcripts, logs and spans remain.
- After an Experiment's final Verdict, no attempt keeps
repository/, andthirdshift experiments <id>and--sessionoutput is unchanged. - A Verdict
waiting_on_recheckskeeps the borderline Trials'repository/until each is rechecked, then removes it. - A paused Experiment keeps its repositories, and resuming it reuses the finished Trials.
- docs/guide.md says what an Experiment keeps after its Verdict and what it removes.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
JacobStephens2 commentedon Oct 26, 2026
More data from the same Experiment: some review sessions build the project inside their attempt's
repository/. 13 attempts left atarget/folder of up to 1.6 GB each, 15 GB in all, and the Experiment directory reached 32 GB. That filled the host's disk at 03:48 and stopped the Experiment before its Verdict. Removing those build folders and the Codex caches by hand brought the directory down to 9.3 GB, and resuming continued from the finished Trials.So the cache cleanup in step 1 should also cover build output a session leaves in its repository, as soon as the session ends, rather than waiting for the Verdict. Mechanical checks use their own sealed snapshot, so they don't need it.