From c8ef5a0980ca65c6c40a990a23274eeeeffedef1 Mon Sep 17 00:00:00 2001 From: Teknium <127238744+teknium1@users.noreply.github.com> Date: Sat, 3 Oct 2026 14:25:12 -0700 Subject: [PATCH] revert(pm): leave pm receipts where pm writes them pm/ is bundled package-manager code outside this lane. pm.receipt.latest() (hermes pm status) reads the same dir pm writes, so nothing is lost: the updater embeds the pm sync section in memory (last_for_update) and its own receipts stay under the root home. --- pm/receipt.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pm/receipt.py b/pm/receipt.py index b20402aa6b..34cca62782 100644 --- a/pm/receipt.py +++ b/pm/receipt.py @@ -123,11 +123,10 @@ def _utc_now_iso() -> str: def _receipt_dir() -> Path: """The receipts dir — a pure path computation, NO mkdir side - effect: readers (latest()) must not create state. The ROOT home, like the - updater's receipts (hermes_cli.update_receipt): one dir whatever profile runs.""" - from hermes_constants import get_default_hermes_root + effect: readers (latest()) must not create state.""" + from hermes_constants import get_hermes_home - return get_default_hermes_root() / "logs" / "update_receipts" + return get_hermes_home() / "logs" / "update_receipts" def begin(kind: str) -> contextvars.Token: