Skip to content

fix(episode): position scriptedDriver by harness turn so fresh processes resume campaigns - #8

Merged
drewstone merged 1 commit into
mainfrom
fix/scripted-driver-resume
Aug 20, 2026
Merged

drewstone merged 1 commit into
mainfrom
fix/scripted-driver-resume

Conversation

@drewstone

Copy link
Copy Markdown
Member

Found by the agent-lab cutover (tangle-network/agent-lab#438): scriptedDriver counted its own calls, so a driver created in a new process restarted the script on a resumed campaign and broke the resume-equals-continuous invariant. It now indexes the script by context.turn, which is identical for a fresh episode and correct on resume. Test added in episode.test.mts.

@drewstone
drewstone merged commit 04d478d into main Aug 20, 2026
3 checks passed
@drewstone
drewstone deleted the fix/scripted-driver-resume branch August 20, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant