Discussion about this post

User's avatar
Rohan's avatar

pausing agents while they wait on a person makes so much sense. how long do snapshots take to restore?

Nan Deng's avatar

Substrate releasing the worker after a snapshot is the cattle version of a sandbox: the environment can die, and the session has to come back on whatever worker is free. The conversation checkpoint and the memory-plus-filesystem snapshot are then two copies of that session, and they are not written by the same component. If a tool call is in flight when the harness decides the pause is safe, the checkpoint can still say the call has not returned while the filesystem snapshot already contains a partial write. I'd want restore to treat that pair as inconsistent rather than bring the agent back as if the sandbox had never been killed.

6 more comments...

Ready for more?