You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Resuming a parallel GEPA run from a pending batch fails on a trace in prediction metadata #241
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.
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.
Activity
deepfates commentedon Sep 28, 2026
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.