Skip to content

Resuming a parallel GEPA run from a pending batch fails on a trace in prediction metadata #241

Closed

Description

@deepfates

Resuming a parallel GEPA run (:beam_native, proposal_concurrency: 2) from a checkpoint that holds a prepared pending proposal batch can fail with:

Imp.Prediction.new/2: invalid map in :metadata … got: "trace"

In the #238 review probe (scratchpad/review238/) this happened in 3 of 5 checkpoints. It happens on main (707cb85) as well as on the #238 branch, so #238 did not cause it.

What should be true: a run resumed from any checkpoint its own :checkpoint_fn received continues and reaches the same result as the uninterrupted run with the same schedule. This must hold whether the checkpoint was passed as the raw map or after a JSON round trip.

Done when:

  • A test checkpoints a parallel run at every checkpoint it produces and resumes from each one, under both profiles.
  • Each resumed run finishes with the uninterrupted run's best candidate and score.
  • The test fails on main.

Activity

  1. deepfates commented on Sep 28, 2026

    @deepfates
    OwnerAuthor

    Scope note for the fix in #243. Two kinds of checkpoint recover by design rather than replaying. A checkpoint taken after a reflection had started charges the reflection as interrupted, because it may already have been sent. A checkpoint taken with a full validation prepared but not sent discards that validation and rejects its candidate; replaying it would need a checkpoint schema change and a way back into three post-validation code paths, and the window between the prepared and started checkpoints is tiny. A started parent or child batch refuses with "ambiguous external effects". Every other checkpoint resumes to the uninterrupted run's best candidate and score, and #243 also makes that hold for agent (Imp.react) programs.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions