The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: sync the ACP edit-approval probes with main; catalog retry and setup mirror fixtures
ethernet1cdb879f8336
diff --git a/tests/acp_adapter/test_edit_approval.py b/tests/acp_adapter/test_edit_approval.pyindex 01107560362..8cdbf82fd2c 100644--- a/tests/acp_adapter/test_edit_approval.py+++ b/tests/acp_adapter/test_edit_approval.py@@ -68,43 +68,6 @@ def test_requester_exception_denies_and_does_not_mutate(tmp_path):assert target.read_text(encoding="utf-8") == "before\n"-def test_approved_existing_file_edit_applies(tmp_path):- target = tmp_path / "sample.txt"- target.write_text("before\n", encoding="utf-8")-- set_edit_approval_requester(lambda _proposal: True)-- result = json.loads(- handle_function_call(- "write_file",- {"path": str(target), "content": "after\n"},- task_id="acp-edit-approve",- )- )-- assert "error" not in result- assert target.read_text(encoding="utf-8") == "after\n"---def test_rejected_existing_file_edit_denies_with_clean_message(tmp_path):- target = tmp_path / "sample.txt"- target.write_text("before\n", encoding="utf-8")-- set_edit_approval_requester(lambda _proposal: False)-- result = json.loads(- handle_function_call(- "write_file",- {"path": str(target), "content": "after\n"},- task_id="acp-edit-reject",- )- )-- assert "denied by ACP client" in result["error"]- assert "not defined" not in result["error"]- assert target.read_text(encoding="utf-8") == "before\n"--def test_patch_replace_rejection_does_not_mutate(tmp_path):target = tmp_path / "sample.txt"target.write_text("alpha\nbeta\n", encoding="utf-8")diff --git a/tests/hermes_cli/test_plugin_catalog.py b/tests/hermes_cli/test_plugin_catalog.pyindex 001d519e15d..d2a971acf85 100644--- a/tests/hermes_cli/test_plugin_catalog.py+++ b/tests/hermes_cli/test_plugin_catalog.py@@ -102,6 +102,9 @@ def test_live_catalog_falls_back_to_in_tree_and_unions_removals(tmp_path, monkeyif stale:os.utime(cache, (1, 1))requests.clear()+ # The unreachable fetch above armed the failure window; a stale cache must still+ # trigger a real retry once that window has passed.+ monkeypatch.setattr(pc, "_live_fetch_failed_until", 0.0)entries = pc.load_catalog_live()assert [e.name for e in entries] == ["live-only"]assert entries[0].description == "café"diff --git a/tests/hermes_cli/test_setup_pin_values.py b/tests/hermes_cli/test_setup_pin_values.pyindex 75c91c26e7c..27abd064db2 100644--- a/tests/hermes_cli/test_setup_pin_values.py+++ b/tests/hermes_cli/test_setup_pin_values.py@@ -19,6 +19,8 @@ def test_cold_setup_uses_exact_lock_values(tmp_path, missing_target):checkout = tmp_path / "checkout"(checkout / "pm").mkdir(parents=True)shutil.copy2(ROOT / "setup-hermes.sh", checkout / "setup-hermes.sh")+ # The bootstrap reads the artifact mirror beside the lock before selecting a pin.+ shutil.copy2(ROOT / "pm" / "artifact-mirror.json", checkout / "pm" / "artifact-mirror.json")lock = json.loads((ROOT / "pm" / "lock.json").read_text(encoding="utf-8"))target = current_target()uv_pin = lock["packages"]["uv"]