From 1a95b86fcbeee5ef1fb5ac6c629c028b26c5e4fc Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Wed, 21 Oct 2026 19:45:23 -0400 Subject: [PATCH] Qualify paused-goal refusal through the declared source CLI --- tests/test_goal_nominal.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/test_goal_nominal.py b/tests/test_goal_nominal.py index 91e50e1b46..38128af295 100644 --- a/tests/test_goal_nominal.py +++ b/tests/test_goal_nominal.py @@ -108,19 +108,16 @@ def test_original_proxy_decodes_typed_goal_control_at_json_boundary(): RuntimeRequest.from_wire({**payload, "status": "unrecorded"}) -def test_fresh_cli_tool_process_preserves_owner_pause(owner): - import os +def test_fresh_cli_tool_process_preserves_owner_pause(owner, source_programs): import subprocess - import sys + + from agent_comms.cli import main comms, goal = owner paused = comms.goals.update_goal("worker", PausedGoalAction(), actor=OwnerInvocable) - environment = dict(os.environ) result = subprocess.run( [ - sys.executable, - "-m", - "agent_comms.cli", + source_programs.script(main), "--root", str(comms.root), "tool", @@ -137,7 +134,6 @@ def test_fresh_cli_tool_process_preserves_owner_pause(owner): } ), ], - env=environment, text=True, capture_output=True, timeout=10,