fix(cleanup): remove empty isolation stubs and dead symbols (P2-2 / C-3a / C-4)

This commit is contained in:
2026-08-16 10:26:36 +09:00
parent 5e519e2085
commit 971f14ad3f
9 changed files with 559 additions and 94 deletions
+9 -38
View File
@@ -28,7 +28,7 @@ def get_mqtt_common(mam_sandbox):
# ==============================================================================
# FEATURE 1: Create Session (7 Test Cases)
# FEATURE 1: Create Session (5 Test Cases)
# ==============================================================================
def test_create_derive_session_name_standard(mam_sandbox):
@@ -49,43 +49,14 @@ def test_create_derive_session_name_weird_characters(mam_sandbox):
assert res.returncode == 0
assert res.stdout.strip() == "bc-d-ef-creator-hermes"
def test_create_isolation_lever(mam_sandbox):
"""Test isolation_lever outputs for each supported agent."""
agents = {
"claude": "none",
"cline": "none",
"agy": "none",
"hermes": "none",
"unknown": ""
}
for agent, expected in agents.items():
res = run_lib_func(mam_sandbox, "isolation_lever", agent)
assert res.returncode == 0
assert res.stdout.strip() == expected
def test_create_isolation_env_prefix(mam_sandbox):
"""Test isolation_env_prefix format outputs."""
res = run_lib_func(mam_sandbox, "isolation_env_prefix", "claude", "/tmp/iso")
assert res.returncode == 0
assert res.stdout == ""
res2 = run_lib_func(mam_sandbox, "isolation_env_prefix", "agy", "/tmp/iso")
assert res2.returncode == 0
assert res2.stdout == ""
res3 = run_lib_func(mam_sandbox, "isolation_env_prefix", "cline", "/tmp/iso")
assert res3.returncode == 0
assert res3.stdout == ""
def test_create_isolation_cmd_args(mam_sandbox):
"""Test isolation_cmd_args format outputs."""
res = run_lib_func(mam_sandbox, "isolation_cmd_args", "cline", "/tmp/iso")
assert res.returncode == 0
assert res.stdout == ""
res2 = run_lib_func(mam_sandbox, "isolation_cmd_args", "claude", "/tmp/iso")
assert res2.returncode == 0
assert res2.stdout == ""
def test_create_session_legacy_isolate_flags_noop(mam_sandbox):
"""Legacy --isolate/--no-isolate must stay a documented no-op, not an arg-parser error."""
create_script = mam_sandbox / "skills" / "multi-agent-mux-create" / "scripts" / "create_session.sh"
for flag in ["--isolate", "--no-isolate"]:
res = subprocess.run(["bash", str(create_script), flag, "-h"], capture_output=True, text=True)
assert res.returncode == 0, f"{flag} rejected by arg parser: {res.stderr}"
assert "NOTE: --isolate/--no-isolate is a no-op" in res.stderr
assert flag in res.stdout, f"{flag} missing from usage() help text"
def test_create_validate_env_key(mam_sandbox):
"""Test _validate_env_key function with valid and blocked environment keys."""