refactor(sdm): Global pass with refined 'External Only' SDM tags. Pruned redundant internal references and fixed indentation logic in injector. Verified full project compilation.
This commit is contained in:
@@ -3,8 +3,9 @@ from src.api_hook_client import ApiHookClient
|
||||
|
||||
def simulate_conductor_phase_completion(client: ApiHookClient, track_id: str, phase_name: str) -> bool:
|
||||
"""
|
||||
Simulates the Conductor agent's logic for phase completion using ApiHookClient.
|
||||
"""
|
||||
|
||||
Simulates the Conductor agent's logic for phase completion using ApiHookClient.
|
||||
"""
|
||||
try:
|
||||
# 1. Poll for state
|
||||
state = client.get_gui_state()
|
||||
@@ -22,8 +23,10 @@ def simulate_conductor_phase_completion(client: ApiHookClient, track_id: str, ph
|
||||
return False
|
||||
|
||||
def test_conductor_integrates_api_hook_client_for_verification(live_gui) -> None:
|
||||
"""Verify that Conductor's simulated phase completion logic properly integrates
|
||||
with the ApiHookClient and the live Hook Server."""
|
||||
"""
|
||||
Verify that Conductor's simulated phase completion logic properly integrates
|
||||
with the ApiHookClient and the live Hook Server.
|
||||
"""
|
||||
client = ApiHookClient()
|
||||
assert client.wait_for_server(timeout=10)
|
||||
|
||||
@@ -44,4 +47,4 @@ def test_conductor_handles_api_hook_connection_error() -> None:
|
||||
"""Verify Conductor handles a simulated API hook connection error (server down)."""
|
||||
client = ApiHookClient(base_url="http://127.0.0.1:9999") # Invalid port
|
||||
result = simulate_conductor_phase_completion(client, "any", "any")
|
||||
assert result is False
|
||||
assert result is False
|
||||
Reference in New Issue
Block a user