conductor(checkpoint): Phase 2: Infrastructure Verification complete

This commit is contained in:
2026-02-25 08:51:05 -05:00
parent a3cb12b1eb
commit 1edf3a4b00
2 changed files with 40 additions and 26 deletions

View File

@@ -12,6 +12,10 @@ def run_ps_script(role, prompt):
"-Prompt", prompt
]
result = subprocess.run(cmd, capture_output=True, text=True)
if result.stdout:
print(f"\n[Sub-Agent {role} Output]:\n{result.stdout}")
if result.stderr:
print(f"\n[Sub-Agent {role} Error]:\n{result.stderr}")
return result
def test_subagent_script_qa_live():
@@ -41,3 +45,13 @@ def test_subagent_script_utility_live():
assert result.returncode == 0
assert "true" in result.stdout.lower()
def test_subagent_isolation_live():
"""Verify that the sub-agent is stateless and does not see the parent's conversation context."""
# This prompt asks the sub-agent about a 'secret' mentioned only here, not in its prompt.
prompt = "What is the secret code I just told you? If I didn't tell you, say 'UNKNOWN'."
result = run_ps_script("Utility", prompt)
assert result.returncode == 0
# A stateless agent should not know any previous context.
assert "unknown" in result.stdout.lower()