$ open flow-lab
flow-lab.
Goal-based agent runs through a web app — not a test suite. The turn budget is a design claim, and a run that exhausts it is a finding about the design.
- Role
- solo
- Years
- 2026–
- Status
- live
- Stack
- typescript · zod · yaml · playwright mcp · claude cli
Test suites assert what a page returns; they say nothing about whether a person can get there. flow-lab hands an agent a goal in a person’s words — sign up, connect the test bank, reach the plan — a budget of turns, and a rubric, and lets it drive the real app through a browser. A scenario is one YAML file, schema-validated at load, so the suite is data a designer can read.
The budget is the claim
turnBudget is not a timeout. It is a design claim — this should take at most twelve actions, because every page ends on the one thing to do — and a run that exhausts it is a finding about the design, not a flaky test. Advisory by constitution: every finding becomes a deterministic regression test, and the rotation shrinks.
Three roles, one seam
The actor is headless Claude with browser tools only. It gets the URL, the goal, and the facts it cannot guess; no database, no seed script. Ground truth runs after, as read-only checks against the app’s own API: the database owns the outcome, the actor owns navigation. The judge is a separate pinned model over the trace and screenshots — it derives friction (confused, backtrack, stuck, dead-end) from the rubric and never asks the actor, and the actor never grades itself.
The engine is app-agnostic. A Target says where the app is and how outcomes are checked; an optional Provisioner stands one up — throwaway database, seed data, off-ports — and tears it down. Everything app-specific lives behind that seam, so the actor, judge and ledger never learn which app they drive.
Agent frustration
Not the user’s frustration — the app’s cost in anti-patterns. A deterministic ledger counts reloads, typed URLs, retries, misses and waits, weighted into a level. The judge adds its own read plus voiced: the agent’s own words where it expressed friction, quoted, never paraphrased. A run the ledger calls calm and the judge calls frustrating is a semantics problem the ledger cannot see; the reverse is a grind the judge shrugged off. Each run writes turns.jsonl — one perceive–think–act record per action — plus transcript, screenshots and verdict. One run is an anecdote; the signal is in the aggregates, runs-to-goal by scenario, friction by page.
