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.

reflow / Review App · PR #184
Pull request #184 Hosted Review App

Update invitation copy

copy/team-invite → main · head 9c1e2f7
invite-memberPassed · delta
verify-roleFailed · held
accept-inviteBlocked
Changed-line coverage84% · 26/31 lines
reflow-code-review[bot] src/team/InviteModal.tsx:48

The role selector disappeared.

The invitation still sends, so the smoke check passed—but owners can no longer pick a role. This PR was scoped to copy updates.

Before · main After · 9c1e2f7
Application rule · team-access.md

“An invitation keeps the role the owner selected.”

<reflow-compare> site.record · 4.2s reflow pr review

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