Fail closed, always
When a locator scores below threshold, when two candidates tie and the ordinal is gone, when the page is on an origin the step didn't declare — the run stops. A wrong cached click is worse than a slow one, and “the Nth unnamed button” reorders whenever the page does.
The hard part is not writing the check. It is refusing to add the escape hatch the first time a refusal is inconvenient.