@@ -111,7 +111,11 @@ def _assert_selection_moves_the_channel_to_the_managed_host() -> dict[str, objec
111111 """Selecting the managed host is what puts the managed profile on it."""
112112
113113 selected = manager_channel_binding (
114- {MANAGER_ENDPOINT_ENV_VAR : "dsh" , CREDENTIAL_ENV : CREDENTIAL_VALUE }
114+ {
115+ MANAGER_ENDPOINT_ENV_VAR : "dsh" ,
116+ CREDENTIAL_ENV : CREDENTIAL_VALUE ,
117+ "LOOPX_EXECUTION_ENGINE" : "legacy" ,
118+ }
115119 )
116120 _assert (
117121 selected ["executor_endpoint" ] == MANAGER_ENDPOINT_MANAGED
@@ -152,7 +156,9 @@ def _assert_explicit_selection_and_managed_host_verdict() -> dict[str, object]:
152156def _assert_managed_host_verdict () -> dict [str , object ]:
153157 """The managed host is listed, and an unauthenticated launch is a typed gate."""
154158
155- selected = manager_channel_binding ({MANAGER_ENDPOINT_ENV_VAR : "dsh" })
159+ selected = manager_channel_binding (
160+ {MANAGER_ENDPOINT_ENV_VAR : "dsh" , "LOOPX_EXECUTION_ENGINE" : "legacy" }
161+ )
156162 _assert (
157163 selected ["executor_endpoint" ] == "dsh"
158164 and selected ["executor_endpoint_source" ]
@@ -356,6 +362,7 @@ def _assert_the_machine_default_is_first_class() -> dict[str, object]:
356362 MANAGER_ENDPOINT_ENV_VAR : "codex" ,
357363 "LOOPX_MANAGER_MODEL" : "env-model" ,
358364 "LOOPX_MANAGER_REASONING_EFFORT" : "low" ,
365+ "LOOPX_EXECUTION_ENGINE" : "legacy" ,
359366 CREDENTIAL_ENV : CREDENTIAL_VALUE ,
360367 },
361368 machine_defaults = defaults ,
@@ -418,6 +425,7 @@ def _assert_mode_readback_quotes_the_session() -> dict[str, object]:
418425 selected = {
419426 MANAGER_ENDPOINT_ENV_VAR : MANAGER_ENDPOINT_MANAGED ,
420427 CREDENTIAL_ENV : CREDENTIAL_VALUE ,
428+ "LOOPX_EXECUTION_ENGINE" : "legacy" ,
421429 }
422430 # Pin the runtime probe: this assertion is about the mode, and whether the
423431 # machine running the smoke has the dsh runtime installed is not the fact
@@ -463,17 +471,18 @@ def _assert_mode_readback_quotes_the_session() -> dict[str, object]:
463471
464472
465473def main () -> int :
466- payload = {
467- "ok" : True ,
468- "shipped_default_probe" : _assert_the_shipped_default_ignores_the_credential (),
469- "selected_managed_host" : (
470- _assert_selection_moves_the_channel_to_the_managed_host ()
471- ),
472- "explicit_selection" : _assert_explicit_selection_and_managed_host_verdict (),
473- "mode_readback" : _assert_mode_readback_quotes_the_session (),
474- "opened_endpoint" : _assert_session_opens_the_resolved_endpoint (),
475- "machine_default" : _assert_the_machine_default_is_first_class (),
476- }
474+ with mock .patch .dict (os .environ , {"LOOPX_EXECUTION_ENGINE" : "legacy" }):
475+ payload = {
476+ "ok" : True ,
477+ "shipped_default_probe" : _assert_the_shipped_default_ignores_the_credential (),
478+ "selected_managed_host" : (
479+ _assert_selection_moves_the_channel_to_the_managed_host ()
480+ ),
481+ "explicit_selection" : _assert_explicit_selection_and_managed_host_verdict (),
482+ "mode_readback" : _assert_mode_readback_quotes_the_session (),
483+ "opened_endpoint" : _assert_session_opens_the_resolved_endpoint (),
484+ "machine_default" : _assert_the_machine_default_is_first_class (),
485+ }
477486 print (json .dumps (payload , ensure_ascii = False , indent = 2 ))
478487 return 0
479488
0 commit comments