Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions benchmark/runtime/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,10 @@ def run_once(env: dict[str, str]) -> dict:
# Preserve this trial's resolved off/on choice in both preflight and solver
# subprocesses; an omitted off must not inherit a machine-wide opt-in.
env["LOOPX_CONTEXT_DELIVERY"] = execution.context_delivery
if execution.context_delivery == "on":
# The CLI validates this declaration before enabling native transport.
# Carry the resolved default as well as an explicitly supplied mode.
env["LOOPX_EXECUTION_MODE"] = execution.mode
# Internal transport arguments are derived afresh, never ambient authority.
env.pop("LOOPX_CODEX_CONTEXT_DIR", None)
env.pop("LOOPX_CODEX_CONTEXT_TRUST_ARGS", None)
Expand Down
6 changes: 4 additions & 2 deletions benchmark/tests/test_native_checkpoint_handoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,12 @@ def test_real_quota_output_is_held_across_native_fork(tmp_path):
from benchmark.runtime.checkpoint import held_quota_decision
from tests.control_plane.test_quota_settlement_cli import (
AGENT_ID, GOAL_ID, TURN_ID, _write_fixture, _configure_autonomous_replan_fixture,
_heartbeat_receipt_count,
_heartbeat_receipt_count, _initialize_fixture_authority,
)

project, runtime, registry = _write_fixture(tmp_path / "authority")
_configure_autonomous_replan_fixture(project, runtime, registry)
_initialize_fixture_authority(project, runtime)
capture_root = project / "captures"
capture_root.mkdir(mode=0o700)
requests = []
Expand Down Expand Up @@ -220,11 +221,12 @@ def test_native_cli_interruption_retains_guard_beyond_tool_yield(tmp_path, outco
from benchmark.runtime.checkpoint import held_quota_decision
from tests.control_plane.test_quota_settlement_cli import (
AGENT_ID, GOAL_ID, TURN_ID, _write_fixture, _configure_autonomous_replan_fixture,
_heartbeat_receipt_count,
_heartbeat_receipt_count, _initialize_fixture_authority,
)

project, runtime, registry = _write_fixture(tmp_path / "authority")
_configure_autonomous_replan_fixture(project, runtime, registry)
_initialize_fixture_authority(project, runtime)
capture_root = project / "captures"
capture_root.mkdir(mode=0o700)
requests = []
Expand Down
Loading