Browser replay

From ruvnet/ruflo · View interactive version

Browser replay is an AI agent skill from the GitHub repository ruvnet/ruflo. Replay a recorded session trajectory against the same URL or a mutated variant; uses browser-selectors embedding similarity to recover from DOM drift

How to use this skill

Skill file

Browser Replay

Re-drive a recorded session trajectory. Used for regression testing, deterministic re-runs, and as the verification path that browser-record plus browser-selectors actually produces something replayable.

This skill is the load-bearing assumption of the v0.2.0 architecture. ADR-0001 Verification §4 requires ≥80% replay success across 10 distinct sites of varying drift profiles before the proposal moves from Proposed → Accepted. If you find replay unreliable, capture the failure modes in findings.md and report them up the ADR.

When to use

Steps

  1. Locate the source session:

```bash

npx -y ruvector@0.3.12 rvf status <session-id>.rvf

```

  1. Load the trajectory:

```bash

Read .../trajectory.ndjson

```

Each line is {ts, action, args, selector, result}.

  1. Open a fresh browser via mcp__plugin_ruflo-core_ruflo__browser_open (target URL = original or --url override).
  2. For each trajectory step, dispatch the matching MCP tool (browser_click, browser_fill, browser_eval, etc.) with the recorded args.
  3. On selector miss, do not fail immediately — query the browser-selectors namespace for an embedding-similar selector for the same <host>:<intent> and retry once:

```bash

npx -y @claude-flow/cli@latest memory search --namespace browser-selectors \

--query "<host> <intent>" --limit 5

```

  1. Record a new trajectory for the replay run (allocate a fresh RVF container, lineage-tracked via rvf derive).
  2. Verdict: tally matched-step / total-step ratio. Default tolerance threshold is 0.85 (configurable via --tolerance). Verdict goes into findings.md.

Caveats

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.