Skip to content

Review apps

A review app is a hosted, interactive page your agent builds to show how a change behaves. Reflow hosts your HTML, CSS, JavaScript, or Markdown in an isolated sandbox, protects attached evidence, and provides drop-in components for image comparisons, flows, runs, and files without imposing a rigid report layout.

Use a review app when a reviewer needs a curated, scannable walkthrough of a feature, benchmark, or multi-step pull request. Use a change review (review_changes) when you need an immutable base-vs-head check inventory tied to Git commits and knowledge revisions.

Review app manifests use formatVersion: 2 via manage_review_apps. Validate every manifest with manage_review_apps action=validate before saving.

For focused walkthroughs, supply inline HTML or Markdown in page.content. Markdown accepts raw HTML, <style>, and <script> tags with no build step:

{
"formatVersion": 2,
"title": "Checkout pricing update",
"page": {
"format": "markdown",
"content": "# Checkout pricing update\n\n<reflow-comparisons>...</reflow-comparisons>",
"assetIds": ["11111111-1111-4111-8111-111111111111"],
"cdnOrigins": []
}
}

For rich interactive reports with separate stylesheets, scripts, data files, or images, upload each file and replace content with entry and files:

{
"formatVersion": 2,
"title": "Latency and layout benchmark",
"page": {
"format": "html",
"entry": "index.html",
"files": {
"index.html": "11111111-1111-4111-8111-111111111111",
"report.css": "22222222-2222-4222-8222-222222222222",
"report.js": "33333333-3333-4333-8333-333333333333",
"images/before.png": "44444444-4444-4444-8444-444444444444"
},
"assetIds": [],
"cdnOrigins": ["https://cdn.jsdelivr.net"]
}
}
  • Relative image, font, stylesheet, classic <script>, and fetch() references resolve to attached files inside the sandbox.
  • Classic <script> tags run in document order. For bundled ES modules, ship one built browser bundle or declared CDN imports.
  • Declare exact public HTTPS origins in cdnOrigins for any external library, font, stylesheet, or data file and pin dependency versions.
  • Scripts run in an opaque-origin sandbox with no access to the viewer’s Reflow credentials. Nested frames, workers, form submissions, and undeclared network calls are blocked.

Built-in display and comparison components

Section titled “Built-in display and comparison components”

Drop Reflow’s built-in custom elements into HTML or Markdown using normal quoted attributes and explicit closing tags:

<reflow-image asset="11111111-1111-4111-8111-111111111111" alt="Updated billing settings"></reflow-image>
<reflow-comparisons>
<reflow-compare
label="Billing settings"
before="11111111-1111-4111-8111-111111111111"
after="22222222-2222-4222-8222-222222222222"
></reflow-compare>
</reflow-comparisons>
<reflow-scroll height="480px" label="Retained CLI output">
<pre>...</pre>
</reflow-scroll>
ElementPurpose
<reflow-image>Displays one attached screenshot or image by asset UUID with optional alt text. Plain Markdown ![Alt](asset:UUID) and <img src="asset:UUID"> also work.
<reflow-compare>Renders an interactive Before / After / Split / Delta viewer for two attached images. Computes changed RGBA pixels from the two originals (up to 16 megapixels). Visual deltas inform the reviewer and do not represent a pass/fail assertion. Missing images display as unavailable.
<reflow-comparisons>Wraps multiple <reflow-compare> pairs and sorts the largest visual differences first, placing unchanged pairs last.
<reflow-scroll>Constrains long output or logs inside a scrollable frame (height, label). VerticalYScrolling is accepted as an alias.

For custom scripts inside the sandbox, wait for Reflow.ready and resolve attached assets through the runtime helper:

await Reflow.ready;
const imageUrl = Reflow.asset("11111111-1111-4111-8111-111111111111");
const reportJson = JSON.parse(await Reflow.text("22222222-2222-4222-8222-222222222222"));

When a review page discusses a Reflow flow, an execution run, or a retained file, embed it with a reference element instead of pasting static text or screenshots of the execution UI:

<reflow-flow slug="checkout" collection="COLLECTION_ID"></reflow-flow>
<reflow-run id="RUN_ID" step="2" statement="23"></reflow-run>
<reflow-file run="RUN_ID" path="PluginLock.tla" lines="111-114"></reflow-file>
<reflow-file flow="checkout" path="check_totals.py"></reflow-file>
<reflow-file run="RUN_ID" path="plugins/2/0-check/counterexample.txt"></reflow-file>
ElementDrawsAttributes
<reflow-flow>The flow document with every RFL step and folded flow file.slug; collection (required if the slug exists in multiple collections); version (pins a saved version instead of current).
<reflow-run>One execution: the flow version run, terminal outcome, and one tile per step.id; step (0-indexed step to open with its record, error, and statements); statement (highlights a source line).
<reflow-file>One UTF-8 text file with line numbers: a flow file or a step artifact retained by the run.run or flow (plus optional collection and version); path; lines ("12", "12-20", or "3,12-20"); language.

reflow-file looks for path first among files carried by the flow (at the version the run executed for run, or the current version for flow). If the flow carries no file at path, it resolves a kept step artifact listed by get_run_evidence with include_artifacts=true.

Write reference elements directly in the page source (content or entry) with quoted attributes and closing tags; elements injected dynamically by JavaScript are not resolved. Each rendered reference links to the underlying flow or run in the Reflow dashboard.

Publishing resolves each reference for the review app’s team and stores a dated copy inside the published revision:

  • Validation: Publish fails with review_app_invalid and lists each invalid reference if a run, flow, or file is missing from the team, a kept file is not UTF-8 text, or a run’s kept files have expired (carried flow files do not expire).
  • Durability and privacy: Readers see the publish-time copy even after the source run expires or is deleted. Readers gain no access to the source run, withheld values remain withheld, and credential shapes in kept files are redacted. Public links render a notice in place of references; team members and named grantees see full references.
  • Limits: Up to 24 distinct references per page, 256 KiB of text per flow or file (longer text is truncated at a line boundary and marked), 250 steps per run, and 2 MiB across all references on one page.

Attach evidence: zero-copy import vs. upload

Section titled “Attach evidence: zero-copy import vs. upload”

Screenshots already stored in a published execution review (review_changes team_review or either side of a change review) need no download or re-upload:

  1. Inspect the image with review_changes action=team_review_file (or action=file on a change review) to get contentHash, bytes, and the image MIME type.
  2. Call upload_review_app_asset action=import with source={reviewId, manifestHash, blobId} and asset={id: NEW_UUID, fileName, contentHash, bytes, contentType}. Reflow pins the original bytes for the review app’s retention window without copying them.
  3. Add NEW_UUID to page.assetIds and reference it in the page.

Viewers see only the imported image and gain no access to the source run.

Images read with get_run_evidence are run evidence rather than review files (evidence_id is not a blobId). Either publish that run as an execution review and import its files, or upload the bytes directly with upload_review_app_asset action=upload (local MCP accepts filePath; hosted MCP uses prepare, PUT, and finalize). Use direct upload for local/CI captures that are not in an execution review, custom diagrams, stylesheets, scripts, and data files.

Preview the sandbox locally before sharing

Section titled “Preview the sandbox locally before sharing”

A page that renders directly from disk can fail inside the hosted reader’s Content Security Policy if a relative path is missing or an asset has the wrong contentType. Verify the exact sandbox locally before sharing a link:

  1. Call manage_review_apps action=preview with your manifest, assetFiles mapping each local asset UUID to its file path in the checkout, and outputPath for a temporary .html file. Preview sends nothing to Reflow and bundles the page with the reader’s exact sandbox, CSP, and asset resolution.
  2. Confirm validation.valid is true and unresolvedReferences is empty.
  3. Open previewUrl in headless Chromium and capture a screenshot after the sandbox frame initializes:
    Terminal window
    chromium --headless=new --virtual-time-budget=2000 \
    --window-size=1440,2000 --screenshot=/tmp/review-preview.png <previewUrl>
    Verify that the rendered screenshot shows the expected layout with no console errors or blocked requests. (Imported review assets have no local file and appear in assetsWithoutLocalFile during local preview; <reflow-flow>, <reflow-run>, and <reflow-file> render placeholders until publish.)
  4. Delete the temporary preview file, upload each file with the exact contentType reported by preview, and publish.
  5. Read the published revision and confirm every page.files asset matches the preview’s contentHash and contentType.

Every review app starts private to its team. Publish an exact draft version and manifestHash after updating with expectedDraftRevision:

Operationmanage_review_apps actionBehavior
Share publiclyset_visibility (visibility=public, expectedAccessRevision)Enables an anonymous publicUrl for every published revision and its image/file attachments. Inspect all content before enabling. Reference embeds (<reflow-flow>, <reflow-run>, <reflow-file>) are hidden on public links.
Revoke public linkset_visibility (visibility=private, expectedAccessRevision)Immediately disables the anonymous publicUrl.
Grant named readergrant_access (recipient email or userId, audience=published_and_future_revisions, expectedAccessRevision)Grants one signed-in person access to published revisions and reference embeds without conferring team membership or source-run access. Reflow sends no invitation email; share the URL directly.
Audit or revoke grantslist_access, revoke_accessLists or removes named reader grants.
Shorten retentionset_expiration (expiresAt)Shortens the expiration timestamp within the team’s retention policy. Cannot extend past or remove the team policy.

Pages, revisions, and attached originals follow the team’s retention policy from app creation (publishing new revisions does not extend expiration). The reader displays the scheduled deletion date.