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.
This commit is contained in:
Teknium
2026-10-03 14:25:12 -07:00
parent f71418d4f8
commit c8ef5a0980

View File

@@ -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: