Skip to content

Experiments keep every Trial's repository copy and Harness cache after the Verdict #1360

Closed

Description

@JacobStephens2

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.json and 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.

  1. 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: its sessions/ transcripts, logs, spans and model evidence.
  2. Repository copies. Once an Experiment's Verdict is final (all grading done and no pending_rechecks), remove each attempt's repository/ directory. Keep it for:
    • a borderline Trial until it is rechecked, since thirdshift recheck may need it;
    • an Experiment paused or interrupted before its Verdict, so resuming still works.
  3. 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.
  4. 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/, and thirdshift experiments <id> and --session output is unchanged.
  • A Verdict waiting_on_rechecks keeps 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.

Activity

  1. added
    enhancement
    ready-for-agent
    in-progress
    and removed
    ready-for-agent
    on Oct 26, 2026
  2. removed
    in-progress
    on Oct 26, 2026
  3. JacobStephens2 commented on Oct 26, 2026

    @JacobStephens2
    OwnerAuthor

    More data from the same Experiment: some review sessions build the project inside their attempt's repository/. 13 attempts left a target/ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions