Replay is a program, not a transcript being re-interpreted. Before a run touches the
browser, the plan is statically validated: whatever step i+1 requires, step
i must guarantee — post_i ⊆ pre_{i+1}. A workflow that cannot
possibly hold together fails before Chrome launches.
During the run, every step does the same four things in the same order: verify its pre-condition, resolve its target by similarity, act, then poll until its post-condition holds. It fails closed at every point where it is not sure.
| Situation | What happens |
|---|---|
| Locator scores below threshold | Step fails. A repair is proposed if one can be found. |
| Two candidates tie, ordinal gone | Refuses to guess — a wrong cached click is worse than a slow one. |
| Recorded target had no accessible name | Refuses. “The Nth unnamed button” reorders whenever the page does. |
| Page is not where the workflow expects | Stops before acting. |
| Page is on a different origin than declared | Refuses — including for extract, since reading data off an unexpected origin is a provenance failure. A step may declare its own host, so SSO redirects still replay. |
| A popup opens | Followed only if the recorded conditions hold there. |
| A ref from an older snapshot is reused | Refused outright. Stale refs are a safety property, not an inconvenience. |
Every stop produces an escalation carrying the reason, the page it happened on, and the repair a human could approve.