correlationId when they express the relationship.
getNextHookLocation
Returns the next durable hook location without reserving it:
automations/report-hook-location.automation.ts
undefined outside an active automation traversal. Inspection doesn’t consume the slot. Hook locations identify replay structure, not business entities or occurrences.
getAutomationExecutionIdentity
Returns the active automation and context IDs during execution:
automations/report-execution-identity.automation.ts
contextId can change as work progresses. Don’t use it as a correlation key; use correlationId or a provider ID.