The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix: drop update_pause_record.orphaned_record, which only tests called
Teknium759341e3a178
diff --git a/hermes_cli/update_pause_record.py b/hermes_cli/update_pause_record.pyindex ba57e1eed98..57690ed1974 100644--- a/hermes_cli/update_pause_record.py+++ b/hermes_cli/update_pause_record.py@@ -629,11 +629,6 @@ def orphans(path: Path | None = None) -> list[tuple[Path, dict]]:return found-def orphaned_record(path: Path | None = None) -> dict | None:- found = orphans(path)- return found[0][1] if found else None--def retire_redundant(path: Path | None = None) -> None:"""Delete copies of obligations another file already carries (crash leftovers of a transfer)."""path = path or record_path()diff --git a/tests/e2e/core/upgrade/hosts/test_hostile_pause_record.py b/tests/e2e/core/upgrade/hosts/test_hostile_pause_record.pyindex a3e461cf677..d35b607c19a 100644--- a/tests/e2e/core/upgrade/hosts/test_hostile_pause_record.py+++ b/tests/e2e/core/upgrade/hosts/test_hostile_pause_record.py@@ -44,7 +44,7 @@ from hermes_cli import update_pause_record as rfrom hermes_cli.update_lock import UpdateLocklock = UpdateLock(install_root=sys.argv[1])adopted_claim = lock.acquire() and not lock.acquired-saw_orphan = r.orphaned_record() is not None+saw_orphan = bool(r.orphans())r.write(r.stamp_tree({"resume_needed": True, "profiles": {"mine": 1}}), owner=r.identity())print(json.dumps({"adopted_claim": adopted_claim, "saw_orphan": saw_orphan,"recorded": sorted(r.read()["token"]["profiles"])}))diff --git a/tests/hermes_cli/test_update_pause_record.py b/tests/hermes_cli/test_update_pause_record.pyindex 638d8348ac5..27b934072a2 100644--- a/tests/hermes_cli/test_update_pause_record.py+++ b/tests/hermes_cli/test_update_pause_record.py@@ -46,12 +46,12 @@ def _child(code: str, *argv: str, env: dict) -> subprocess.Popen:def _orphaned_profiles(home: Path) -> dict | None:- """``orphaned_record()`` read by a fresh process (the liveness probe reads the checkout's git dir)."""+ """The first orphan's profiles, read by a fresh process (the liveness probe reads the checkout's git dir)."""probe = _child("""import jsonfrom hermes_cli import update_pause_record as r- body = r.orphaned_record()- print(json.dumps(None if body is None else body["token"]["profiles"]))+ found = r.orphans()+ print(json.dumps(found[0][1]["token"]["profiles"] if found else None))""", env={"HERMES_HOME": str(home)})out, _ = probe.communicate(timeout=60)return json.loads(out.strip().splitlines()[-1])