feat(a4,c3b): complete A-4 Phase 2 agent knowledge migration & Option B isolation removal
- Option B / C-3b: Deprecate isolation.root and remove its 4 legacy consumers in lib.sh, workspace_uuid.py, verify_session.py, and stop_session.sh. - M2~M7 Migration: Implement artifact_path, verify_artifact, purge_artifacts, spawn_spec, resume_spec, auth_ok, discover, ready_tokens, exit_key, and delegate_agent_key across BaseAgentAdapter and all 4 adapters (Claude, Agy, Hermes, Cline). - Migrate shell duplications in lib.sh, create_session.sh, resume_session.sh, stop_session.sh, and reconcile.sh to python -m lib_py.agents facts. - Hardening & Corrections: Fix Cline resume_spec flag to '-i --id', apply shlex.quote across all facts variables with MAM_ prefix, add safe fallback in wait_for_tui_ready. - Add comprehensive contract tests in tests/test_a4_adapter_contract.py and sync IMPROVEMENTS.md / LOG.md. - Verified: 100% PASS across unit, component, contract, and integration tests.
This commit is contained in:
@@ -219,20 +219,6 @@ def test_o10_revalidate_normal_subagent(mam_sandbox):
|
||||
assert run_verify_uuid(str(mam_sandbox), "claude", sub_uuid, row=row, mode="revalidate", env=env)
|
||||
|
||||
|
||||
# O-11: verify_session_uuid respects isolation root
|
||||
def test_o11_isolation_root_respected(mam_sandbox):
|
||||
orc_uuid = "01eae7cf-1db6-4395-ba48-5fb02f4b6b1f"
|
||||
iso_root = mam_sandbox / "iso"
|
||||
make_claude_transcript(mam_sandbox, orc_uuid, target_dir=iso_root)
|
||||
|
||||
row = {
|
||||
"name": "my-orc",
|
||||
"claude_session_id_own": orc_uuid,
|
||||
"isolation": {"root": str(iso_root), "uuid": "iso-1"},
|
||||
"pane": {"cwd": str(mam_sandbox)}
|
||||
}
|
||||
env = {"AGENT_SESSIONS_YAML": str(mam_sandbox / ".mam" / "agent-sessions.yaml"), "HOME_DIR": str(mam_sandbox)}
|
||||
assert run_verify_uuid(str(mam_sandbox), "claude", orc_uuid, row=row, mode="revalidate", env=env)
|
||||
|
||||
|
||||
# O-12: orc_onboard.sh --uuid explicitly adds UUID
|
||||
|
||||
Reference in New Issue
Block a user