fix(server): warn when a recorded flow backtracks - #759
Merged
divshekhar merged 4 commits intoSep 6, 2026
Merged
Conversation
The recorder stores clicks, not navigations, so a drive that returns to an earlier page cannot replay. Stop and save now name that journey instead of writing a flow that fails on the next click. Signed-off-by: Kushal S <skushal.mys@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
CI recorded hidden-api-500 and broken-form-validation as NOT MEASURED after Playwright MCP initialize/click timeouts, which shrank coverage and tripped the gate while catch-rate stayed 1.0. Replay-detect already retries that rig noise; Layer A now does too. Signed-off-by: Kushal S <skushal.mys@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Author
|
Same coverage-floor flake as #750 / #753 / #755 / #757, not this change. This run shrank 48 → 45: Cherry-picked the one-retry from #750 (the same rule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
reticle_recordstop andreticle_flow_savenow warn when the recorded route list returns to an earlier page (/search → /product/1 → /search). Linear A→B→C stays quiet; consecutive stays on the same page are collapsed so a re-render is not a backtrack.Fixes #603.
Test plan
recording-backtrack.test.ts— silent on linear/single-page, warns on return, hash-router pages are distinct,tofallbackrecord-stop-backtrack.test.ts— stop warns on a backtracking window, quiet on linearflow-save-recording.test.ts— save warns, does not persistroutes, linear stays quietrecord-stop-budget/ flow-save tests stay greenMade with Cursor