@@ -278,7 +278,7 @@ pub struct ComputeDriverInfoSnapshot {
278278 /// Driver-reported implementation version from the startup capability snapshot.
279279 pub driver_version : String ,
280280 /// Whether the driver asks the gateway to reconcile compute across restarts.
281- pub gateway_managed_lifecycle : bool ,
281+ pub gateway_manages_lifecycle : bool ,
282282}
283283
284284/// Interval between store-vs-backend reconciliation sweeps.
@@ -614,7 +614,7 @@ impl ComputeRuntime {
614614 name : driver_name. clone ( ) ,
615615 driver_name : capabilities. driver_name ,
616616 driver_version : capabilities. driver_version ,
617- gateway_managed_lifecycle : capabilities. gateway_managed_lifecycle ,
617+ gateway_manages_lifecycle : capabilities. gateway_manages_lifecycle ,
618618 } ;
619619 let default_image = capabilities. default_image ;
620620 let gateway_listener_requirements = match driver
@@ -2047,7 +2047,7 @@ impl ComputeRuntime {
20472047 /// An explicit sandbox stop persists `Stopped`; gateway shutdown does not.
20482048 /// Drivers request this sweep through their startup capability snapshot.
20492049 async fn stop_persisted_sandboxes_on_shutdown ( & self ) -> Result < ( ) , String > {
2050- if !self . driver_info . gateway_managed_lifecycle {
2050+ if !self . driver_info . gateway_manages_lifecycle {
20512051 return Ok ( ( ) ) ;
20522052 }
20532053
@@ -2144,7 +2144,7 @@ impl ComputeRuntime {
21442144 /// so the watch loop sees the post-start state on its first poll.
21452145 pub async fn start_persisted_sandboxes ( & self ) -> Result < ( ) , String > {
21462146 self . recover_persisted_lifecycle_transitions ( ) . await ?;
2147- if !self . driver_info . gateway_managed_lifecycle {
2147+ if !self . driver_info . gateway_manages_lifecycle {
21482148 return Ok ( ( ) ) ;
21492149 }
21502150
@@ -3943,7 +3943,7 @@ impl ComputeDriver for NoopTestDriver {
39433943 driver_name : "noop-test-driver" . to_string ( ) ,
39443944 driver_version : "test" . to_string ( ) ,
39453945 default_image : "openshell/sandbox:test" . to_string ( ) ,
3946- gateway_managed_lifecycle : false ,
3946+ gateway_manages_lifecycle : false ,
39473947 } ,
39483948 ) )
39493949 }
@@ -4084,7 +4084,7 @@ pub async fn new_test_runtime_with_driver(
40844084 name : driver_name. to_string ( ) ,
40854085 driver_name : driver_name. to_string ( ) ,
40864086 driver_version : "test" . to_string ( ) ,
4087- gateway_managed_lifecycle : false ,
4087+ gateway_manages_lifecycle : false ,
40884088 } ,
40894089 driver_process : None ,
40904090 default_image : "openshell/sandbox:test" . to_string ( ) ,
@@ -4247,7 +4247,7 @@ mod tests {
42474247 driver_name : "test-driver" . to_string ( ) ,
42484248 driver_version : "test" . to_string ( ) ,
42494249 default_image : "openshell/sandbox:test" . to_string ( ) ,
4250- gateway_managed_lifecycle : false ,
4250+ gateway_manages_lifecycle : false ,
42514251 } ) )
42524252 }
42534253
@@ -4565,7 +4565,7 @@ mod tests {
45654565 driver_name : "controlled-test-driver" . to_string ( ) ,
45664566 driver_version : "test" . to_string ( ) ,
45674567 default_image : "openshell/sandbox:test" . to_string ( ) ,
4568- gateway_managed_lifecycle : false ,
4568+ gateway_manages_lifecycle : false ,
45694569 } ) )
45704570 }
45714571
@@ -4768,7 +4768,7 @@ mod tests {
47684768 name : driver_name. to_string ( ) ,
47694769 driver_name : driver_name. to_string ( ) ,
47704770 driver_version : "test" . to_string ( ) ,
4771- gateway_managed_lifecycle : false ,
4771+ gateway_manages_lifecycle : false ,
47724772 } ,
47734773 driver_process : None ,
47744774 default_image : "openshell/sandbox:test" . to_string ( ) ,
@@ -4789,7 +4789,7 @@ mod tests {
47894789 driver_name : & str ,
47904790 ) -> ComputeRuntime {
47914791 let mut runtime = test_runtime_for_driver ( driver, driver_name) . await ;
4792- runtime. driver_info . gateway_managed_lifecycle = true ;
4792+ runtime. driver_info . gateway_manages_lifecycle = true ;
47934793 runtime
47944794 }
47954795
@@ -8422,7 +8422,8 @@ mod tests {
84228422 #[ tokio:: test]
84238423 async fn startup_sweep_rechecks_intent_after_acquiring_gate ( ) {
84248424 let driver = ControlledDriver :: new ( ) ;
8425- let runtime = test_runtime_for_driver ( driver. clone ( ) , "docker" ) . await ;
8425+ let runtime =
8426+ test_runtime_with_gateway_managed_lifecycle ( driver. clone ( ) , "arbitrary" ) . await ;
84268427 runtime
84278428 . store
84288429 . put_message ( & sandbox_record ( "sb-1" , "sandbox" , SandboxPhase :: Ready ) )
@@ -8458,7 +8459,8 @@ mod tests {
84588459 #[ tokio:: test]
84598460 async fn lifecycle_sweeps_page_through_all_persisted_sandboxes ( ) {
84608461 let driver = ControlledDriver :: new ( ) ;
8461- let runtime = test_runtime_for_driver ( driver. clone ( ) , "docker" ) . await ;
8462+ let runtime =
8463+ test_runtime_with_gateway_managed_lifecycle ( driver. clone ( ) , "arbitrary" ) . await ;
84628464 let sandbox_count = LIFECYCLE_SWEEP_PAGE_SIZE + 1 ;
84638465 for index in 0 ..sandbox_count {
84648466 runtime
@@ -8790,7 +8792,7 @@ mod tests {
87908792 let driver = FakeComputeDriver :: new ( )
87918793 . with_driver_name ( "fake-remote-driver" )
87928794 . with_default_image ( "openshell/sandbox:remote" )
8793- . with_gateway_managed_lifecycle ( )
8795+ . with_gateway_manages_lifecycle ( )
87948796 . with_gateway_listener_requirement (
87958797 "172.19.0.1:17670" ,
87968798 "external driver managed bridge" ,
0 commit comments