Files
hermes-agent/persistence/sqlite/housekeeping
yoniebans d9f42a5c07 fix(persistence): the SQLite profile rename moves the API binding and local policy receipts
rekey_profile on SQLite rewrites, in the same write transaction, the state_meta receipts under the API binding prefix and the local policy prefix: each receipt's top-level route and its entry's session_key move from the agent:<old>: namespace to agent:<new>:, and the entry's origin profile moves from the old name to the new one. profile_id stays as stored, a receipt that does not decode as an object is skipped, and the counts gain api_binding_receipts and local_policy_receipts, the receipts changed. The routing payload rewrite uses the same entry helper.

The backend's own rename tests gain the API receipt, unparseable receipt and local receipt cases with their assertions unchanged, seeded through the store holder's state_meta.
2026-11-17 17:49:48 +01:00
..