Your agents test your code, not your product.

Green CI can still hide a broken journey.

Give your agent a living map of your product—its journeys, APIs, schemas, and rules. Reflow runs deterministic flows across browsers, databases, containers, and formal specs, retaining screenshots, recordings, query diffs, and changed-line coverage. Your agent verifies what changed against what should happen, right where coding agents are at their worst.

Bring your own agent. Works with Claude Code, Codex, and any MCP client via reflow mcp.

Early access — request team access or install the CLI via reflow.io/install.sh.

Refactor settings navigation #1578
agent/settings-nav main38 files changed
unit tests 1,214passed
typecheck + lintpassed
e2e smoke 42passed

Smoke tests load Billing by URL. They don’t follow the settings navigation.

Your agentReflow evidence3 product findings

CI is green. Here’s what changed in the product.

Unreachable screen

Billing still exists. The way in doesn’t.

The Billing flow can no longer follow Settings → Billing. The direct URL still loads, but the navigation link captured in the previous run is gone.

DashboardSettingsBilling
/settings/billing saved journey broken
See before & after snapshots

Before · main

- navigation "Settings":
  - link "Profile":
    - /url: /settings/profile
  - link "Team":
    - /url: /settings/team
  - link "Billing":
    - /url: /settings/billing

After · #1578

- navigation "Settings":
  - link "Profile":
    - /url: /settings/profile
  - link "Team":
    - /url: /settings/team

Removed: link “Billing” → /settings/billing

Dead API

“Resend invite” calls a route that doesn’t exist.

Click “Resend invite” → POST /invites/resend → 404. The flow receives no successful response, and its mailbox check finds no invitation.

web/InviteRow.tsx:48 404 Not Found
Flip-flop For review

The plan banner moved. Again.

Your agent compares four retained runs: top, bottom, sidebar, then top again. Is this move part of the intended change?

#1482 bottom → top#1522 bottom#1570 sidebar#1578 top
2 broken journeys · 1 layout flip-flop · 84% changed-line coverage.
Review App · before/after captures, flows & coverage

Put product evidence
in the pull request.

Publish an interactive Review App beside every PR: draggable <reflow-compare> before/after sliders, recorded browser journeys via site.record, SQL row diffs, and changed-line coverage showing which edited lines your flows actually executed.

Post inline comments with reflow pr review and keep a live Change Summary updated as runs finish—linking every finding directly to the rule it affects and the raw run evidence.

changes#482 Update invitation copy copy/invitations

run 3

a41c9e2CI ↗ 3 flows queued running3 passed12 unchanged
  1. waitingrunningpassed
  2. Invite a teammate3 steps · not started3/3 · 3.3s
  3. Sign in4 steps · not started4/4 · 2.1s
  4. Change the billing plan5 steps · not started5/5 · 4.8s
  5. unchanged · 12
  6. not run again; earlier results carried over
flows/invite-member.md · read onlynot run yet7 lines passed
  1. ---
  2. title: Invite a teammate
  3. providers:
  4. ui: {use: Browser, binding: site}
  5. ---
  6. # Invite a teammate
  7. An owner invites a teammate and chooses their role before the invitation is sent.
  8. ## Open team settings
  9. The workspace owner opens the team page.
  10. ```rfl step="Open team settings"
  11. ```
  12. ## Open the invitation form
  13. The invitation form offers an email address and a role.
  14. ```rfl step="Open the invitation form"
  15. ```
  16. ## Send the invitation
  17. The teammate appears as a pending invitation with the chosen role.
  18. ```rfl step="Send the invitation"
  19. ```

waitingrunningpassedInvite a teammate

An owner invites a teammate and chooses their role before the invitation is sent.

not started · 3 steps planned following live viewing step passed · 3.3s · earlier run: main, 2 days ago

1 · Open team settings

not startedrunningpassed · 1.3s

The workspace owner opens the team page.

This step has not started. What it keeps appears here when it ends.

This step is running. What it keeps appears here when it ends.

EARLIER RUNmain · 2 days ago
this runNOW
What this step didWhat this step doesWhat this step does

line 161 of 2

Opened /settings/team

ui.open url="/settings/team"
Status
passed
Time
took 1.2s, starting 0ms into the step

line 172 of 2

Kept the snapshot team-members

ui.snapshot name="team-members"
Status
passed
Time
took 140ms, starting 1.2s into the step
What it kept · team-members
this run
heading “Team”
button “Invite member”
table: 3 rows (Owner, Editor, Viewer)

2 · Open the invitation form

not startedrunningpassed · 580ms

The invitation form offers an email address and a role.

This step has not started. What it keeps appears here when it ends.

running: Open the invitation form. The picture is the page after step 1, Open team settings.
EARLIER RUNmain · 2 days ago
this runNOW
What this step didWhat this step doesWhat this step does

line 251 of 2

Clicked “Invite member”

ui.click
  selector="[data-testid=invite-member]"
Status
passed
Time
took 420ms, starting 0ms into the step
Target
[data-testid=invite-member]matched 1 element, visible

line 262 of 2

Kept the snapshot team-invitation

ui.snapshot
  name="team-invitation"
  selector="[data-testid=invitation-form]"
Status
passed
Time
took 160ms, starting 420ms into the step
Target
[data-testid=invitation-form]matched 1 element, 268 × 196
What it kept · team-invitation
earlier run · main
heading “Invite a teammate”
text “Add someone to your workspace.”
textbox “Email address”
combobox “Role”: Editor
button “Send invitation”
this run
heading “Invite a teammate”
text “Invite someone to work with you in Acme.”
textbox “Email address”
button “Send invitation”

3 · Send the invitation

not startedrunningpassed · 1.4s

The teammate appears as a pending invitation with the chosen role.

This step has not started. What it keeps appears here when it ends.

running: Send the invitation. The picture is the page after step 2, Open the invitation form.
EARLIER RUNmain · 2 days ago
this runNOW
What this step didWhat this step doesWhat this step does

line 341 of 3

Filled “Email address” with sam@acme.test

ui.fill
  selector="[name=email]"
  value="sam@acme.test"
Status
passed
Time
took 310ms, starting 0ms into the step
Target
[name=email]matched 1 textbox

line 352 of 3

Clicked “Send invitation”

ui.click
  selector="[data-testid=send-invitation]"
Status
passed
Time
took 890ms, starting 310ms into the step
Target
[data-testid=send-invitation]matched 1 button

line 363 of 3

Kept the snapshot invitation-sent

ui.snapshot name="invitation-sent"
Status
passed
Time
took 150ms, starting 1.2s into the step
What it kept · invitation-sent
earlier run · main
status “Invitation sent to sam@acme.test”
row “sam@acme.test”: Pending · Editor
this run
status “Invitation sent to sam@acme.test”
row “sam@acme.test”: Pending · Member
Agent reviewon pull request #482

This pull request updates invitation copy; the review separates the intended copy edit from a missing role control.

  1. In scope

    The invitation copy updated as asked.

    The modal subtitle changed from “Add someone to your workspace.” to “Invite someone to work with you in Acme.” with the heading and send button intact.

  2. Outside scope

    The role selector disappeared.

    This pull request changes invitation copy. The form no longer offers a role, and the invitation went out as Member where the earlier run on main sent Editor. Owners still need to choose a role before sending an invitation.

    knowledge · team-access.md
← → steps · ↑ ↓ lines · 1 2 3 earlier / split / nowThe agent compares the two runs and judges; Reflow keeps what each step saw.

A living map of
your product.

Who can invite a teammate? What should a refund restore? Your agent maintains those rules as versioned Markdown in Reflow’s application knowledge repository—reading and updating pages directly through MCP (search_kb, get_kb_page).

Link every rule to source paths with covers and to the flows that verify it, so every new agent session starts from current product invariants instead of rediscovering your app from scratch.

Explore application knowledge
reflow / Northstar

Application knowledge

Business rules, journeys and the source behind them.
business-rules / team-access.mdMarkdown

Team access & permissions

Northstar is a shared workspace for a commerce team. A person’s role determines what they can change, from inviting a teammate to issuing a refund.

Expected behavior

An invitation preserves the role selected by its sender.

Owners and admins can invite editors and viewers. Accepting an invitation grants exactly that role; it never promotes someone to owner.

Who can do what

RoleInvite teammatesManage orders
OwnerYesEdit & refund
AdminYesEdit & refund
EditorNoEdit & refund
ViewerNoRead only

References

src/team/invitations.tssrc/auth/permissions.ts/settings/team

Flows that check this rule

  • invite-member
  • accept-invitation
  • verify-role

Invite a viewer, accept as that person, then confirm that order editing is unavailable.

Read Markdown original
# Team access & permissions

Northstar is a shared workspace for a commerce team. A person’s role determines what they can change, from inviting a teammate to issuing a refund.

## Expected behavior

An invitation preserves the role selected by its sender.

Owners and admins can invite editors and viewers. Accepting an invitation grants exactly that role; it never promotes someone to owner.

## Who can do what

| Role | Invite teammates | Manage orders |
| --- | --- | --- |
| Owner | Yes | Edit & refund |
| Admin | Yes | Edit & refund |
| Editor | No | Edit & refund |
| Viewer | No | Read only |

## References

- src/team/invitations.ts
- src/auth/permissions.ts
- /settings/team

## Flows

- invite-member
- accept-invitation
- verify-role

Invite a viewer, accept as that person, then confirm that order editing is unavailable.

## Still to explore

An invitation sent before its sender changes role has not been explored.
journeys / invite-a-teammate.mdMarkdown

Invite a teammate

Maya manages the Northstar store. She invites Alex to check order statuses without changing orders or customer data.

Expected behavior

Alex joins the same workspace with the Viewer role.

The invitation is tied to Alex’s email address and selected role. Signing in with a different address must not accept it.

At each step

StepExpected behavior
Send invitationEmail and selected role appear in pending invitations.
Accept invitationThe invited address is verified before joining.
Open the workspaceOrders are readable; editing controls are unavailable.

References

src/team/invitations.tssrc/auth/accept-invitation.ts/join

Flows that check this rule

  • invite-member
  • accept-invitation
  • verify-role

The accepted membership has the same workspace, email address and role as the invitation.

Read Markdown original
# Invite a teammate

Maya manages the Northstar store. She invites Alex to check order statuses without changing orders or customer data.

## Expected behavior

Alex joins the same workspace with the Viewer role.

The invitation is tied to Alex’s email address and selected role. Signing in with a different address must not accept it.

## At each step

| Step | Expected behavior |
| --- | --- |
| Send invitation | Email and selected role appear in pending invitations. |
| Accept invitation | The invited address is verified before joining. |
| Open the workspace | Orders are readable; editing controls are unavailable. |

## References

- src/team/invitations.ts
- src/auth/accept-invitation.ts
- /join

## Flows

- invite-member
- accept-invitation
- verify-role

The accepted membership has the same workspace, email address and role as the invitation.

## Still to explore

Expired invitations still need a separate journey.
business-rules / checkout.mdMarkdown

Checkout totals

A customer buys two Field notebooks with a ten-percent discount. Checkout, payment and the confirmation email must agree on the amount paid.

Expected behavior

Charge the total the customer approved at checkout.

Apply the discount to merchandise before adding shipping. Store monetary amounts in cents and round the discount once, for the whole order.

Worked example · USD

Line itemAmount
2 × Field notebook$40.00
WELCOME10 · 10% off merchandise−$4.00
Standard shipping$5.00
Total charged$41.00

References

src/orders/checkout.tssrc/orders/totals.ts/checkout

Flows that check this rule

  • seed-cart
  • place-order
  • verify-total

Checkout total = payment amount = saved order total = email receipt total.

Read Markdown original
# Checkout totals

A customer buys two Field notebooks with a ten-percent discount. Checkout, payment and the confirmation email must agree on the amount paid.

## Expected behavior

Charge the total the customer approved at checkout.

Apply the discount to merchandise before adding shipping. Store monetary amounts in cents and round the discount once, for the whole order.

## Worked example · USD

| Line item | Amount |
| --- | --- |
| 2 × Field notebook | $40.00 |
| WELCOME10 · 10% off merchandise | −$4.00 |
| Standard shipping | $5.00 |
| Total charged | $41.00 |

## References

- src/orders/checkout.ts
- src/orders/totals.ts
- /checkout

## Flows

- seed-cart
- place-order
- verify-total

Checkout total = payment amount = saved order total = email receipt total.

## Still to explore

Combining discount codes is not documented.
business-rules / refunds.mdMarkdown

Refunds & returned stock

An owner, admin or editor can fully refund a paid order before dispatch. The customer gets back the amount paid, including standard shipping.

Expected behavior

A full refund reverses the payment and returns the items to stock.

For the notebook order, return $41.00 and restore two notebooks. Repeating the request must not refund or restock the order twice.

Expected changes

RecordBeforeAfter
OrderPaidRefunded
Refunded amount$0.00$41.00
Available notebooks1820

References

src/orders/refunds.tssrc/inventory/adjust-stock.ts/orders/order-1042

Flows that check this rule

  • place-order
  • refund-order
  • verify-refund

The payment, order status and inventory agree after the refund. A second request changes none of them.

Read Markdown original
# Refunds & returned stock

An owner, admin or editor can fully refund a paid order before dispatch. The customer gets back the amount paid, including standard shipping.

## Expected behavior

A full refund reverses the payment and returns the items to stock.

For the notebook order, return $41.00 and restore two notebooks. Repeating the request must not refund or restock the order twice.

## Expected changes

| Record | Before | After |
| --- | --- | --- |
| Order | Paid | Refunded |
| Refunded amount | $0.00 | $41.00 |
| Available notebooks | 18 | 20 |

## References

- src/orders/refunds.ts
- src/inventory/adjust-stock.ts
- /orders/order-1042

## Flows

- place-order
- refund-order
- verify-refund

The payment, order status and inventory agree after the refund. A second request changes none of them.

## Still to explore

Partial refunds and returns after dispatch are not covered by this rule.
application / glossary.mdMarkdown

The language of Northstar

Use these terms when describing business rules and writing flows. A workspace is the team’s shared store, not an individual’s account.

Expected behavior

A membership connects one person to one workspace and one role.

The same person may belong to several workspaces. Permissions are evaluated within the workspace they are using.

Terms used in this application

TermMeaning
WorkspaceA store, its orders and its team.
MembershipA person’s role in one workspace.
InvitationA pending offer of membership to an email address.
Available stockUnits that can be sold; excludes units in paid orders.

References

src/team/membership.tssrc/inventory/stock.ts/settings/team

Flows that check this rule

  • switch-workspace
  • verify-role

Switching workspace uses the membership for the destination, not the previous workspace.

Read Markdown original
# The language of Northstar

Use these terms when describing business rules and writing flows. A workspace is the team’s shared store, not an individual’s account.

## Expected behavior

A membership connects one person to one workspace and one role.

The same person may belong to several workspaces. Permissions are evaluated within the workspace they are using.

## Terms used in this application

| Term | Meaning |
| --- | --- |
| Workspace | A store, its orders and its team. |
| Membership | A person’s role in one workspace. |
| Invitation | A pending offer of membership to an email address. |
| Available stock | Units that can be sold; excludes units in paid orders. |

## References

- src/team/membership.ts
- src/inventory/stock.ts
- /settings/team

## Flows

- switch-workspace
- verify-role

Switching workspace uses the membership for the destination, not the previous workspace.

## Still to explore

Guest access is not defined in the current application model.
generated / routes.mdGenerated

Application routes

A generated route index provides starting points for exploration. A route’s presence does not establish its expected behavior or test coverage.

Expected behavior

Read the business rules alongside the route index.

The agent records observations in authored documents after inspecting the source and exploring the application.

Discovered routes

PathPurpose
/settings/teamMembers and pending invitations
/joinAccept an invitation
/checkoutReview and pay for a cart
/orders/:idOrder details and refunds

References

src/routes.ts/

Coverage

    The route index itself is not a test.

    Read Markdown original
    # Application routes
    
    A generated route index provides starting points for exploration. A route’s presence does not establish its expected behavior or test coverage.
    
    ## Expected behavior
    
    Read the business rules alongside the route index.
    
    The agent records observations in authored documents after inspecting the source and exploring the application.
    
    ## Discovered routes
    
    | Path | Purpose |
    | --- | --- |
    | /settings/team | Members and pending invitations |
    | /join | Accept an invitation |
    | /checkout | Review and pay for a cart |
    | /orders/:id | Order details and refunds |
    
    ## References
    
    - src/routes.ts
    - /
    
    ## Coverage
    
    
    
    The route index itself is not a test.
    
    ## Still to explore
    
    Unlinked and permission-restricted screens may require further exploration.
    Synced via reflow mcp

    Plan the dependency graph.
    Hold failures to repair.

    Declare prerequisites with needs and source scope with covers. Before running anything, reflow plan shows which flows will run, reuse prior evidence, wait on dependencies, or stay blocked—with timing estimates and matrix fan-out.

    When a step fails under reflow apply --hold, Reflow holds the live browser and plugins at the exact failing step. Your coding agent inspects live state via debug_execution, edits the flow, and resumes without re-running upstream setup.

    Test dependency graph Plan · Hold · Review
    seed-data root invite-member needs: seed edit-profile needs: seed verify-role needs: invite accept-invite needs: role
    MCP · search_flows({ paths: ["src/team/InviteModal.tsx"] })

    Your agent maps the PR diff to covering flows and their upstream dependency graph.

    seed-data root shared setup
    invite-member covers diff Browser + Mailbox
    verify-role dependent role invariant
    accept-invite dependent end-to-end join

    Graph dependencies come directly from Markdown frontmatter.

    invite-member and edit-profile both depend on seed-data; verify-role and accept-invite chain downstream.

    Code review. Bring your own agent.

    No black-box runner agent. Keep Claude Code, Codex, or your own MCP workflow—and ground every review in deterministic runtime evidence.

    Your agent

    Reads the PR diff, queries product knowledge and changed-line coverage, runs flows over MCP, repairs held failures, and explains which changes belong in scope.

    Connect through MCP

    Reflow

    Plans and runs the dependency graph across 12+ plugins, captures screenshots, recordings, SQL rows, command output, and coverage, and hosts interactive Review Apps.

    Plan, run, compare

    Your review

    Read inline reflow pr review comments, scrub before/after sliders in the Review App, inspect raw run outputs, and decide what merges.

    See PR reporting

    One testing language
    across your whole stack.

    Compose 12+ built-in plugins for browsers, SQL databases (PostgreSQL & ClickHouse), OpenAPI contracts, MCP servers, remote mailboxes, Docker containers, macOS apps, Swift VMs, and formal verifiers (TLA+, Lean 4, Bombadil)—or wrap your own domain actions into reusable plugin commands.

    Compact RFL flows keep fragile selectors and boilerplate out of your agent’s context, leaving room for product rules, edge cases, and the diff under review.

    Explore all 12+ plugins
    Use Team commands in the invite testReuse the Team plugin’s invitation commands
    #1582
    Files changed 2−29+2
    tests/invite-editor.spec.tsPlaywright
    import { test, expect } from '@playwright/test';
    test('invite an editor', async ({ page }) => {
    await page.goto('/settings/team');
    await expect(page.getByRole('heading', {
    name: 'Team members', exact: true,
    })).toBeVisible();
    Show 22 more removed lines
    await page.getByRole('button', {
    name: 'Invite member', exact: true,
    }).click();
    const dialog = page.getByRole('dialog', {
    name: 'Invite a teammate',
    });
    await expect(dialog).toBeVisible();
    await dialog.getByLabel('Email').fill('sam@example.test');
    await dialog.getByLabel('Role').selectOption('editor');
    const sent = page.waitForResponse(response =>
    response.url().endsWith('/api/invitations') &&
    response.request().method() === 'POST'
    );
    await dialog.getByRole('button', { name: 'Send invite' }).click();
    expect((await sent).status()).toBe(201);
    await expect(dialog).not.toBeVisible();
    const member = page.getByRole('row').filter({
    hasText: 'sam@example.test',
    });
    await expect(member).toContainText('Editor');
    await expect(member).toContainText('Invited');
    });
    .reflow/flows/invite-editor.mdFlow steps · excerpt
    @@ invitation steps · excerpt @@
    team.invite email="sam@example.test" role="editor"
    team.expect_invitation email="sam@example.test" role="editor"
    Two commands in the flow.The selectors, waits and assertions live in the plugin. Your agent can inspect them when it needs to.
    Custom plugin commands (like team.*) encapsulate selectors, waits, and API checks once—so flows stay short and readable across your whole suite.
    Built-in plugins & verification 12+ plugins · zero boilerplate
    Web & native UI site.snapshot name="checkout" · site.record name="flow"
    SQL & data db.query sql="SELECT id, status FROM orders ORDER BY id" key="id"
    APIs, MCP & mail api.call operationId="getItem" · inbox.capture subject="Sign-in code"
    Shell & containers worker.bash command="./bin/fulfill order-1042"
    Formal & property spec.check module="Lock.tla" · proofs.verify · explore.run
    Code coverage reflow coverage diff --base main · golden attribution

    Run in parallel.
    Keep agent context sharp.

    Execute independent flows and matrix combinations in parallel over MCP. Heavy artifacts—screenshots, recordings, SQL snapshots, and coverage profiles—stay in Reflow instead of flooding your agent’s context window.

    Your agent starts from a compact run and coverage summary, then drills into only the changed captures, failed steps, and linked knowledge pages it needs.

    Agent · Reflow MCP
    MCPmanage_execution
    { "action": "plan" }

    Selected target · application test suite

    checkout
    ReadyRunningDone
    team-invitation
    ReadyRunningDone
    order-refund
    ReadyRunningDone
    account-settings
    ReadyRunningDone

    Apply the inspected plan · parallelism 4

    Returned to your agent4 flows completed. 1 screen changed.

    Inspect team-invitation with the rule in team-access.md.

    Full snapshots and run output retained in Reflow.

    Your agent.
    Real product evidence on every PR.

    curl -fsSL https://reflow.io/install.sh | sh