@@ -109,7 +109,7 @@ def _prior_replan_guard_seen(env: dict[str, str], current: Path, obligation_id:
109109 prior = effect_runtime_result ("runtime.checkpoint_artifacts" , {
110110 "action" : "select_replan" , "quota" : guard , "goal_id" : env ["LOOPX_GOAL_ID" ],
111111 "agent_id" : env ["LOOPX_AGENT_ID" ], "turn_instance_id" : path .parent .name ,
112- })
112+ }, large_local_snapshot = True )
113113 if prior ["capture" ] and prior ["obligation_id" ] == obligation_id :
114114 return True
115115 return False
@@ -161,7 +161,7 @@ def capture_before_replan(env: dict[str, str], receipt: dict[str, Any], body: st
161161 intent = effect_runtime_result ("runtime.checkpoint_artifacts" , {
162162 "action" : "select_replan" , "quota" : guard , "goal_id" : env ["LOOPX_GOAL_ID" ],
163163 "agent_id" : env ["LOOPX_AGENT_ID" ], "turn_instance_id" : receipt ["turn_id" ],
164- })
164+ }, large_local_snapshot = True )
165165 from .checkpoint_continuation import restored_capture_gate
166166 restore_gate = restored_capture_gate (env , intent .get ("obligation_id" ),
167167 full_history = not request .get ("native_session" , False ))
@@ -199,7 +199,7 @@ def capture_before_replan(env: dict[str, str], receipt: dict[str, Any], body: st
199199 raise ValueError ("existing replan point has a different declaration" )
200200 verified = effect_runtime_result ("runtime.checkpoint_artifacts" , {
201201 "action" : "verify" , "root" : str (destination ), "expected_sha256" : manifest ["sha256" ],
202- })
202+ }, large_local_snapshot = True )
203203 receipt ["checkpoint" ].update (reason = "replan_already_captured" , destination = str (destination ), ** verified )
204204 else :
205205 # A failed first capture is a missed point. Once its model is
@@ -360,7 +360,7 @@ def capture_after_wake(env: dict[str, str], receipt: dict[str, Any], *,
360360 probe = effect_runtime_result ("runtime.checkpoint_artifacts" , {
361361 "action" : "probe" , "components" : components ,
362362 "deadline_epoch_ms" : deadline * 1000 ,
363- }, timeout = max (.1 , deadline - time .time ()), retry_safe = False )
363+ }, timeout = max (.1 , deadline - time .time ()), retry_safe = False , large_local_snapshot = True )
364364 if request .get ("native_session" ):
365365 # Native readback precedes the byte witness. A completed later Turn
366366 # in that gap must not be sealed under the earlier cursor. Re-read
@@ -402,7 +402,7 @@ def capture_after_wake(env: dict[str, str], receipt: dict[str, Any], *,
402402 "components" : components , "point_metadata" : metadata ,
403403 "expected_source_sha256" : probe ["source_sha256" ],
404404 "deadline_epoch_ms" : deadline * 1000 ,
405- }, timeout = max (.1 , deadline - time .time ()), retry_safe = False )
405+ }, timeout = max (.1 , deadline - time .time ()), retry_safe = False , large_local_snapshot = True )
406406 receipt ["checkpoint" ] = {"captured" : True , "destination" : str (destination ), ** captured }
407407 except Exception as error :
408408 # Capture failure is explicit but cannot rewrite an already settled work
@@ -480,7 +480,7 @@ def remaining():
480480 "action" : "select_replan" , "quota" : quota , "goal_id" : goal_id ,
481481 "agent_id" : agent_id , "turn_instance_id" : (turn_instance_id if turn_instance_id is not None
482482 else (quota .get ("heartbeat_receipt" ) or {}).get ("turn_instance_id" )),
483- }, timeout = remaining ())
483+ }, timeout = remaining (), large_local_snapshot = True )
484484 if not failed_readback and native_process is not None and interrupt_when is not None and interrupt_when (intent ):
485485 from .worker import interrupt_checkpoint_process
486486
0 commit comments