Validate a host business key (a user id, a lead id) into an agent-memory
resourceId. The key is deliberately stable across runs — it IS the memory
owner's identity inside this deployment. The validator enforces do-runner's
PATH_SAFE_ID_PATTERN so the id stays unambiguous in every context it keys
(D1 rows, DO names, URL paths).
Validate a host business key (a user id, a lead id) into an agent-memory resourceId. The key is deliberately stable across runs — it IS the memory owner's identity inside this deployment. The validator enforces do-runner's PATH_SAFE_ID_PATTERN so the id stays unambiguous in every context it keys (D1 rows, DO names, URL paths).