Back to developer guides

Build one complete App with Wrapflow

Audience: product-using agents building Apps through public Wrapflow surfaces. This skill is not permission or policy to change Wrapflow source. In the Wrapflow source repository, repository-development agents start at AGENTS.md.

Build the frontend and backend as one App lifecycle.

Establish the execution lane

  1. Inspect the current repository, framework, package manager, tests, and deployment model. Preserve its conventions.
  2. Check for the wf CLI. If it is unavailable, check for Wrapflow MCP tools.
  3. If neither authoring interface is available, integrate an existing released App from its typed contract. State clearly that building or editing the Wrapflow backend still requires App Studio, wf, or Wrapflow MCP.
  4. On the default MCP profile, prefer an uploaded UI bundle for a plain HTML/CSS/JavaScript App: send ui.files with ship_app or patch it with upload_app_ui. Wrapflow hosts those files beside the App backend. Import WrapflowApp from the same-origin /_wrapflow/client.mjs; never put an account token in the page or replace the client with hand-written fetches. The upload needs the App's external frontend lane: ship_app creates new Apps on it; a hosted-single-file App answers ui_bundle_lane until it is moved (see Frontend choices).
  5. Use a separately hosted App-owned project when the product needs a framework or a mature UI library such as charts, maps, rich editors, calendars, complex data grids, or diagrams. Keep its source, dependency graph, build, assets, and deployment in that host; connect it with the generated client.
  6. The hosted-single-file lane is a different constrained convenience: one scriptless semantic HTML document with inline CSS and documented data-wrapflow-* hooks. Do not apply its no-JavaScript policy to an uploaded UI bundle, and do not force a mature frontend into this scriptless lane.

Read app-lifecycle.md before creating or editing an App. Read client-integration.md before changing frontend code. Read security-release.md before handling credentials or releasing. Read payments.md before adding a checkout, a price, or anything that takes money from a person. Read external-agent-quickstart.md when setting up an external-agent session from scratch or diagnosing an ordinary integration error. Read install.md when installing or distributing this skill across agent products.

Repository maintainers changing a Wrapflow-owned interface must also load $wrapflow-design-system. It is repository-local implementation guidance, not a dependency of customer projects or of this portable skill archive.

docs/PROGRAMMATIC-APP-AUTHORING.md in the Wrapflow repository is the reference for the raw HTTP surface underneath all of this — account registration (POST /api/auth/register), the Origin/CSRF guard, token scopes, plan limits, and the exact routes behind each command. Read it when no CLI or MCP verb covers what the product needs. The in-repo CLI path for the same product-using audience is docs/BUILD-WITH-WRAPFLOW-AS-AN-AGENT.md.

Select the MCP profile

For a connector on https://wrapflow.com/mcp, use the 17-tool default profile: create with ship_app {name, flow, idempotencyKey}, read with describe {appId}, edit backend text with apply, upload UI files through ship_app {appId, idempotencyKey, ui:{files:[…]}} or upload_app_ui, and exercise the draft with test and look, and run a published action as the App owner with call_command. Follow the returned next to repair and recheck the main frontend journey, including saved records for writes. Only when ship_app reports status: "ready" and its next calls request_release, request owner approval with request_release {appId} and poll status. When the customer asked for a public link, call request_release {appId, audience: "public"} instead: the reply says whether the App is public yet and hands the owner a pre-selected Public approval link. Read the default MCP loop in app-lifecycle.md for revision, retry and frontend integration details.

build_app and edit_app are not default MCP tools. The lower-level create_app, define, inspect_app and generate_app_client examples in these references require https://wrapflow.com/mcp/advanced, or WRAPFLOW_MCP_PROFILE=advanced for stdio wf app integration mcp. Inspect tools/list after connecting and use only that profile's tools; calls cannot switch profiles. The CLI and SDK examples do not require an MCP profile.

Author with AI or deterministically

Save progress and failure feedback can help on some actions. Decide per App and per action, style it to match the App, and handle the command promise; Wrapflow adds no save UI.

<!-- flow-authoring:start -->

An App is an uploaded frontend plus a backend written in the Wrapflow flow language: its tables, the endpoints its pages call, and its background jobs. Write the App for its users. Keep the name Wrapflow and Wrapflow account, hosting, storage, and draft/release mechanics out of the App's UI or help. Terms such as hosting, storage, drafts, and owner remain appropriate for App-domain concepts, such as event hosting, storage units, article drafts, or an App role named owner. Describe what the user can do. The page reads only what a view offers. Choose owner, signedIn, roles("manager"), app or public. app: whoever can open this App; its sharing and sign-in on the Publish page decide, so making the App public opens this to visitors. For an owner's summary, write view(name: "Summary", access: {read: owner}) do, write the read pipeline in the body and close it with end. Removing that block removes the page's read even when a scheduled email still uses the result. When two views need the same rows, name the calculation above them and start each view with that name.

flow 1 let orders = table(name: "orders", columns: {status: text(), customer: text(), total: number()}) let open = orders |> filter(where: status == "open") view(name: "open-orders", access: {read: signedIn}) do open |> select(columns: [customer, total]) end view(name: "open-count", access: {read: public}) do open |> aggregate(metrics: {orders: count()}) |> select(columns: [orders]) end

Read with describe kind:"flow", keep revision.id as expectedRevision → edit the text → apply {text, expectedRevision} → test → publish. Exact edits use {edits:[{find,replace}], expectedRevision} against that same read. Define each name above the line that uses it, including tables named in fields and commands called by scenarios. For tables whose fields refer to each other, list their names first with let a, b, then a = table(...) and b = table(...). A command keeps its let because its name after let names the public operation; a saved view needs a let only when another line reads it. A top-level let such as let tomorrow = orders |> filter(where: pickup_date == addDays(today(), 1)) defines a calculation that runs each time a schedule, view or other chain uses it. A bare word names a declared value, a column or request field, or a listed choice. Text and data are quoted, including one word: name: "tasks", defaultValue: "todo", input: {title: "Example"}. Column names stay bare: columns: [title, status]. A command reference uses its let name: command: add_task. A pull states its name: explicitly. Tables and named commands use name: with - as _; views, parameters and unnamed commands keep their let. Expressions print and, or and not, double-quoted text literals, and one space around binary operators. Calls and records have no inner padding; commas and colons have one following space. An unchanged apply keeps the stored expression spelling. A chain of steps reads top to bottom with |>, and the pipe supplies the step's first input: let open = orders |> filter(where: status == "open") |> select(columns: [id, status]) means the same as orders |> filter(...) then ... |> select(...), and the let binds the last step. Writing input: inside a piped step is refused: the pipe is its input. A step with two inputs takes the piped value as its first and names the other: let result = orders |> join(right: customers, on: {left: customer_id, right: id}, type: inner, rightDedupe: none) |> select(columns: [id]) means the same as orders |> join(right: customers, ...) then select. A single step uses the same spelling: let open = orders |> filter(where: status == "open"). A chain can also start from a step call that reads no input. A view starts its body with the table or let name. A step taking several sources still names them together as input: [a, b]. Named-input step calls still parse. A step that reads no input (table, a command) cannot follow |>; it may head a chain. Keep a let for a value read more than once or by a branch; a step read once is written into the chain. List expressions and operations: Values can be lists [a, b] or objects {key: value}. Read value.key or value[key]; list indexes start at zero. get(value, key, fallback) uses the fallback only for a missing key, retaining a stored null, false or zero. put(value, key, replacement) returns an immutable replacement; append(list, value) adds one member. in tests list membership or an object's own keys. Multi-branch expressions use case(when(total >= 100, then: "large"), when(total >= 20, then: "medium"), else: "small"). Inside a value, x |> f(a) passes x as f's first argument. map(each:), filter(where:), find(where:), any(where:) and all(where:) accept an optional author-chosen row name, such as map(lines, each: line => ({qty: line.qty + 1})). Without a name, bare names read only the element's fields; outer values keep qualified names such as input.extra, current.lines or a named outer row. Plain values require a name. reduce(from:, each:) names both its running value and element; it has no implicit acc, item or index. Bodies are expressions; object results print with parentheses. Nested filter(where:), sort(by:), derive(columns:), select(columns:) and aggregate(groupBy:, metrics:) take the same arguments as table steps. Use sort(by: [name, {column: total, direction: desc}]); a plain column means ascending. Ordering clauses on window, datasetQuery, jsonArray and topNPerGroup use orderBy: with the same entries. A direct table view orders by one entry, sort(by: [name]) or sort(by: [{column: total, direction: desc}]). Grouping, metric domains, empty global groups and payload ordering match the table step. Every derived column reads the original element; use successive derives for dependencies. Iteration is bounded at 10,000 items and shares the expression work budget. list(column:) collects a column into a real list, retains null/missing cells, false and zero, and returns [] for an empty global group. Sort the input first when order matters. join(list, separator) joins text values; an empty list gives "", and a null or non-text member gives null. Both operations refuse results above their existing list/byte/string limits rather than truncating. For example:

flow 1
let greeting = sample(dataset: customers)
  |> aggregate(metrics: {names: list(column: name)})
  |> derive(columns: {text: join(names, ", ")})
# @layout {"n":{"greeting_sample1":[null,null,null,null,"names_sample1",null,"ca1ccbca"],"greeting_aggregate1":[null,null,null,null,"names",null,"9dd1793c"]}}

Scalar math: sqrt(n) is the square root, pow(base, exponent) raises a base to a power, and log(n) is the natural logarithm. They accept finite numbers only; null, numeric text and booleans are not coerced. Invalid domains or non-finite results give null (sqrt(-1), pow(0, -1), log(0)); zero results are 0. For example, sqrt(81) is 9, pow(2, -3) is 0.125 and log(1) is 0. Use coalesce when a result needs a default.

flow 1
let math = sample(dataset: orders)
  |> derive(columns: {root: sqrt(81), power: pow(2, -3), logarithm: log(1)})
# @layout {"n":{"math_sample1":[null,null,null,null,"values",null,"85de4522"]}}

uuid() returns a fresh lowercase UUIDv4; random() returns a fresh number in [0, 1). Both take zero arguments and generate a new value for each call, row and evaluation. They work in native Flow expressions, computed writes and table JavaScript functions. Deterministic command JavaScript rules exclude randomness; generate the value in an earlier Flow step and pass it through input. These calls do not take a seed and their results are not replay-stable.

flow 1
let rows = table(name: "rows", columns: {label: text()})
view(name: "Result", access: {read: owner}) do
  rows |> derive(columns: {identifier: uuid(), draw: random()})
end
# @layout {"n":{"Result_rows":[null,null,null,null,"result"]}}

Value formatting: formatNumber(n, digits?) returns text using JavaScript's fixed-decimal toFixed rules (default 0 digits, integer 0–100; magnitudes at least 1e21 use exponential notation). It does not add grouping or a currency symbol, and binary floating-point rounding applies. formatDate(d, pattern) formats a strict ISO date/datetime in UTC using numeric tokens yyyy, MM, dd, HH, mm, ss and SSS. Punctuation is literal; quote literal words with single quotes and escape an apostrophe with two quotes. Unquoted ASCII letters must form one supported token; other widths (MMMM, dddd) and unclosed quotes return null. Invalid dates, null/wrong-type operands and invalid precision return null without coercion. Pattern/result text uses the existing 262,144-character bound; exceeding it visibly refuses. No ambient locale or wall clock is read. Both calls work in every expression and computed write.

flow 1
let rows = table(name: "rows", columns: {amount: number(), at: datetime()})
view(name: "Result", access: {read: owner}) do
  rows |> derive(columns: {price: formatNumber(amount, 2), day: formatDate(at, "dd/MM/yyyy")})
end
# @layout {"n":{"Result_rows":[null,null,null,null,"result"]}}

Text digests: hash(text) returns the lowercase 64-character hex SHA-256 of UTF-8 text; hmac(key, text) returns the lowercase hex HMAC-SHA-256 with a UTF-8 key and message. Null, wrong types and malformed Unicode return null without coercion. Each text argument uses the existing 262,144-character cap; oversized input visibly refuses and expression work/result budgets still apply. Both are deterministic in every expression and computed write.

flow 1
let rows = table(name: "rows", columns: {payload: text()})
view(name: "Result", access: {read: owner}) do
  rows |> derive(columns: {digest: hash(payload), signature: hmac("example-key", payload)})
end
# @layout {"n":{"Result_rows":[null,null,null,null,"result"]}}

Text encoding: base64Encode(text) returns standard padded Base64 of UTF-8 text; base64Decode(text) reads that spelling back into UTF-8 text. Missing padding, nonzero padding bits, whitespace, URL-safe Base64 and invalid UTF-8 return null. urlEncode(text) escapes one URL component (a space becomes %20); urlDecode(text) reverses percent escaping and preserves literal +. Malformed escapes, lone Unicode surrogates when encoding, and non-text/null inputs return null. Input and result text are bounded to 262,144 characters; exceeding the limit is a visible refusal. Existing expression and sandbox work budgets also apply. These deterministic calls work in every expression and computed write. Base64 is encoding, not encryption.

flow 1
let encoded = sample(dataset: orders)
  |> derive(columns: {base64: base64Encode("å😀"), decoded: base64Decode("w6Xwn5iA"), component: urlEncode("tea + cake"), restored: urlDecode("tea%20%2B%20cake")})
# @layout {"n":{"encoded_sample1":[null,null,null,null,"values",null,"85de4522"]}}

A named field at any depth can be omitted unless it declares required: true. The list itself can be required; a list can still be empty.

Input or writeEffect
Absent optional fieldNo value was supplied.
Explicit null or empty text ("")Refused when required: true; on an optional scalar input, leaves it unset on create and empty or null both clear on patch (json() stores null; list/object refuse null).
Form defaultSupplies the form's initial value.
Field omitted from a patchKeeps the stored value.

dedupe(columns: [...]) keeps the first arriving row for each distinct combination. Sort the input first when the winner matters.

A checkout declares its currency. The amount is in the smallest currency unit, so this ticket costs EUR 15.

flow 1
let ticket = checkout(name: "ticket", productName: "Ticket", amount: 1500, currency: "eur")

JSON values: parseJson(text) reads JSON text into a list, object or scalar; invalid JSON or a non-text runtime input gives null. toJson(value) writes canonical JSON text with stable object-key order; toJson(null) gives the text "null", retaining false and zero. entries(object) returns its own [key, value] pairs in canonical order, preserving null, false and zero; other containers and scalars give null. Parsed values have an unknown shape; read members with existing access or get. These helpers reuse the structured-value limits (depth 16, 10,000 list items, 1,000 object fields, 262,144 text characters and 1 MiB canonical bytes), including the additional nesting of entries' result. parseJson also caps input at 1,048,576 characters. Unsafe keys, non-finite numbers and excessive values are refused, never converted into successful nulls.

flow 1
let json = sample(dataset: orders)
  |> derive(columns: {encoded: toJson({count: 0, active: false}), decoded: parseJson("false"), pairs: entries({ready: false})})
# @layout {"n":{"json_sample1":[null,null,null,null,"values",null,"85de4522"]}}

An insert line accepts rows: for a batch of rows instead of set:. For example, insert(table: reservations, rows: input.lines |> map(each: line => ({sku: line.sku, qty: line.qty}))). It reads declared input.<field> values and must produce 1–20 records; clocks, uuid() and random() must arrive through input so retries plan the same rows; every row is validated before any write starts. Literal strings in rows are quoted. rows: holds several rows; write one row with set:. A check that reads the table the batch goes into is written directly below the insert, where it sees the rows of the batch too; a refused check saves no row. The input list declares max: 20 or less. Nothing below a batch insert reads a row from it. The writes of a command save together when their tables are in the same database; a refused row then leaves every row unchanged. When they are in different databases, each write saves in turn and a refused row undoes the earlier writes in reverse order; an earlier write stays applied only when someone else changed its row in between. A patch can assign computed lists and objects. Every assignment reads the same stored row; the result must satisfy the target field schema and bounds, and a refused result writes nothing. Literal objects stay data, including an object with an expression key. Flow literals are escaped automatically in saved definitions.

flow 1
let result = request(
  fields: {
    lines: list(
      of: {sku: text(max: 2000, required: true), qty: number(required: true)},
      max: 20,
      required: true
    )
  }
)
  |> derive(columns: {lines: lines |> filter(where: qty > 0) |> derive(columns: {doubled: qty * 2}) |> sort(by: [sku]) |> select(columns: [sku, qty, doubled]), grouped: lines |> aggregate(groupBy: [sku], metrics: {qty: sum(column: qty)}), total: lines |> reduce(from: 0, each: (total, line) => total + line.qty)})
# @flow {"expectedOutput":{"targetNodeId":"result","columns":[{"name":"lines","type":"any"},{"name":"grouped","type":"any"},{"name":"total","type":"number"}]}}
# @layout {"n":{"result_request1":[null,null,null,null,"incoming",null,"839d528e"]}}

For a calculation that stores nothing, request supplies one row of caller inputs. On a released Request Flow, the invoke-v1 endpoint controls access and the declared output target answers the call. A saved view reads rows from a table or an App query.

flow 1
let quote = request(fields: {quantity: number(required: true)})
  |> derive(columns: {price: quantity * 9.5})
  |> select(columns: [price])
# @flow {"expectedOutput":{"targetNodeId":"quote","columns":[{"name":"price","type":"number"}]}}
flow 1
let lists = table(
  name: "lists",
  columns: {
    items: list(
      of: {id: text(max: 2000, required: true), done: checkbox(required: true)},
      max: 2,
      required: true
    ),
    edits: number(),
    payload: json(),
    echo: json(),
    state: object(
      of: {count: number(required: true), flags: list(of: checkbox(), max: 2, required: true)}
    )
  }
)
let toggle = command(
  inputs: {recordId: reference(table: lists), selected: text()},
  access: {call: signedIn, edits: [creator]}
) do
  let current = lists |> filter(where: id == input.recordId) |> one()
  patch(table: lists, recordId: input.recordId, set: {items: current.items |> map(each: entry => if(entry.id == input.selected, then: put(entry, "done", not entry.done), else: entry)), edits: current.edits + 1, state: {count: current.edits + 1, flags: current.items |> map(each: entry => entry.done)}, payload: {expression: "current.items"}, echo: {literal: {expression: "current.items"}}})
end

A named if block chooses a command's answer record (put each arm's record on its own line and finish with return reply):

flow 1
let orders = table(name: "orders", columns: {qty: number()})
let add_order = command(
  inputs: {qty: type(orders.qty)},
  outputs: {tier: text()},
  access: {call: owner}
) do
  let reply = if(input.qty > 10) do
    {tier: "bulk"}
  else
    {tier: "standard"}
  end
  insert(table: orders, set: {qty: input.qty})
  return reply
end

A table keeps columns: {title: text()}. A command declares inputs: {title: type(notes.title)} to follow the column’s type and limits, or inputs: {title: text(required: true)} to narrow them; inputs: {} accepts no request fields. A patch or delete declares the record id inside inputs:, inputs: {recordId: reference(table: tickets)} when it changes tickets; the page passes it in the call options, execute(input, {recordId}), never as an input field. A patch or delete command that is not owner-only adds edits: inside access:, e.g. access: {call: signedIn, edits: [creator]} (or [readers] or [roles("operator")]). Who may call a command is access: {call: owner}, signedIn, roles("manager"), app or public; a public command with a send, fetch, webSearch or ai step needs rateLimit: {per: visitor, max: 10, every: minute}. Add actorLabel: "Team lead" when How it works should show a different caller name than the role. app: whoever can open this App; its sharing and sign-in on the Publish page decide, so making the App public opens this to visitors. A view keeps access: {read: ...}. Every write names every value it sets; a column it leaves out takes its defaultValue:. Write a local value as set: {tier: tier}. Name row columns as input.title or price.amount. In set:, the printer lists assigned inputs in header order, then the other assignments. Declare each caller value in inputs:; a temporary input such as code: text() can be read as input.code without storing it and needs its own name, distinct from table columns. Write patch(table: tickets, recordId: input.recordId, set: {status: "closed"}). set: accepts expressions on insert and patch, including input.qty, price.amount, actor.email, now(), today() and current.edits + 1 after let current = tickets |> filter(where: id == input.recordId) |> one(). A write reads rows it names (insert(table: quotes, set: {amount: price.amount})); zero or multiple rows refuse the call. A local value uses let clean = lower(trim(input.email)) and later lines read clean or {{clean}}. Choose between two values with if(condition, then: a, else: b), in a let line or inside set:, e.g. set: {size: if(input.qty >= 10, then: "bulk", else: "single")}. An if(...) do ... end block holds lines, not a value, and a write stands outside it. A command body runs top to bottom. A let that reads a row or computes a value stands above the check lines: those lets run first, then the checks with the write. A check on a row a let read is checked again when the write saves, so a change made in between is caught. In one database the checks and every insert and patch line save together or not at all, so a failing check, above or below the write, refuses the command and leaves every table unchanged. Across databases each write saves in turn, where other readers can see it; a later write that fails or a check that refuses undoes the earlier ones in reverse order, and an earlier write stays only when someone else changed its row in between. Sends (email, slack, discord, sendHttp) run after the transaction commits, and a failed send never undoes the write. Build text in set:, rows:, a let line or a send from inputs, a read row or an earlier let ("Ordered {{input.qty}} of {{input.sku}}"); bare {{...}} is refused in every condition, calculated column, check message, answer record and larger expression (write sku == input.x for a value, or string("{{x}}") for that text as written). Command reads apply the caller’s row access; a reference table with access: {rows: [creator], commands: read} lets commands read every row. A filtered read such as let product = products |> filter(where: sku == input.sku) |> one() requires exactly one match; check(product.stock >= input.qty, message: "Out of stock") rechecks that row in the write transaction. A request check such as check(input.qty > 0, message: "Enter a quantity") runs with a single insert or patch. A local let may repeat an input name (read as input.<name>), never a table, view, command, reserved name or column read bare in a condition. On a table row, id, createdAt and updatedAt are built-in metadata; do not add columns with those names to columns: (use another name such as code or openedAt). Declare answers in outputs: {title: type(tickets.title), status: type(tickets.status)}, with id: reference(table: tickets) for a returned id and datetime() for timestamps (kind only, no input constraints). Write return saved (after let saved = ...) only when the header declares outputs:; omit return without outputs:, and only record id and version answer. With several writes, a command answers with one of them, in this order: its patch on input.recordId if it has one; else the write a final return <name> names (outputs: {} when no column should leave); else its first write. A stock change is never the answer: the one write beside it is. Lines below the writes read only the answering row. A command always writes a table; for a read-only calculation, use let quote = request(fields: {quantity: number(required: true)}) |> derive(columns: {price: quantity * 9.5}) |> select(columns: [price]). A named if block chooses the answer record (each arm ends with its record on its own line, then return reply). To change a stock number on one table beside an insert or patch on another, read the row, check that enough is left when lowering, patch the stock column, and write the other row (both run together). outputs: also maps JSON paths on fetch and sendHttp ({rate: "data.rate", tracking}) or checks JSON types ({amount: number(path: "price.amount"), currency: text()}). Numeric text needs number(...) before math or numeric comparison; invalid math yields null; + joins two texts with no implicit number conversion. Shared team data: A view filter cannot read actor.id or actor.email. For per-person rows, set access: {rows: [creator]} (or {person: member} or {email: member_email}) on the table and access: {read: signedIn} on the view; use access: {rows: [signedIn]} for shared team rows. Restrict the App's audience to invited people for a private team. For live team access, propose the invited emails with apply {appId, invite: {emails: [...]}, idempotencyKey: <new key>} and show the owner the approval link; publish again after approval. let login = signin(draft: true) is draft-only. People with access sign in with a code Wrapflow emails them, sent by the platform rather than the App; avoid silently narrowing the App to the owner. People with access and readers whose access depends on a verified email need a Wrapflow sign-in email on their first visit, even with password sign-in. This is platform account mail, separate from messages the App sends. If asked for "no email" or "no outside messages", do not stop before building: build the draft, note this email, and ask "This cannot be done without a sign-in email. Do you accept that?" at request_release. Keep the requested audience; never switch it to avoid asking. For calendar dates, command windows and member reads, see App lifecycle. Read an uploaded file with rows |> readDocument(fileColumn: receipt): PDF, Word, Excel, CSV, text, Markdown or HTML, up to 10 MiB per file and 300 PDF pages; one run reads at most 20 MB of files in total. PDF text is limited to 8 MiB. Default mode text adds text, pages, title, language, has_text (false for a scanned PDF); mode: rows (CSV or Excel, optional sheet) emits one row per parsed row. No OCR, no AI credits. Write rows from a Flow: a Flow writes the rows it fetched or computed into its own table through one of its commands. rows |> appCommand(command: add_reading, inputs: {station, temp}) runs that command once per row (a patch or delete adds recordId: <the column that holds the row id>) and answers with one outcome row per call, which a later step can aggregate or email. status is completed, refused (code and error say why, nothing was saved and the run goes on) or held (a draft run). Give the table a key so a row that arrives again, in any order, is written once; add onExisting: <patch command> to change the row the table already holds (an upsert), otherwise that row is refused. A schedule or another Flow runs appCommand as the App owner, so give its command access: {call: owner}. A Flow cannot supply an App role or run a command on a table shared with a command whose audience includes other people. app: "<appId>", command: "<name>" runs another App's command. One App shares another's table with from: "<sourceAppId>/<entity>". On the source, list the reader App in that table's readers: apply {appId: "<sourceAppId>", grantReader: {appId: "<readerAppId>", table: "rooms"}} writes the readers (and optional columns) argument itself and revokeReader removes one — no Flow text edit for the grant — or write readers: ["<readerAppId>"] on the source table directly; in the reader, let rooms = table(name: "rooms", from: "<sourceAppId>/rooms") takes its fields. Release is required only for live use; publish the source App at /apps/<sourceAppId>?tab=publish. Drafts can share before release: the reader's draft reads the source draft's rows. updatedAt is display-only; keep exported layout and metadata. Publish uses the existing owner approval. Write flow 1. Command steps run in authored order under one resource budget and replay contract, with or without a transform. A retry key cannot switch programs: finish its original invocation, and use a new key after changing the command. Other Flow version headers are refused. A text field holds up to 500,000 characters in one value (max: sets its limit; the default is 2,000), so write long text whole and never split it across fields. Above 10,000 characters a field is long text: lists and queries omit it unless select names it, and it cannot be unique, filtered, sorted or searched. One table's long text fields declare at most 500,000 characters together. App backends cannot contain showTable or other display steps. End with a data step such as aggregate, join or limit; present results in the frontend through the App Contract. For 'this month', declare the date field as date and filter dynamically at read time using the App's saved timeZone (read timeZone in describe, status or list_apps; if null, ask the owner and save it with ship_app {timeZone} or apply {appId, appTimeZone}). Replace Europe/Stockholm with that zone: records |> filter(where: left(date, 7) == left(today("Europe/Stockholm"), 7)). This date filter and the following aggregate also work on tables larger than the in-memory row cap. A hard-coded year-month becomes stale. Derive status inclusion from the individual App request; preserve requested total submissions, pending exposure, rejected totals, or approved-only totals. If the subset is ambiguous, clarify which statuses count and state it in the App. Only for explicitly requested approved-only totals, use records |> filter(where: left(date, 7) == left(today("Europe/Stockholm"), 7) and status == "approved"); add a scenario with approved, rejected, pending, and next-month rows. Conditions are expressions everywhere: a filter where, a view filter(where:) and the where of a check. Read the row a patch changes with let current = orders |> filter(where: id == input.recordId) |> one(). Expression operators: == != < <= > >=, joined with and / or (parentheses group). Writing let n = count(table: guests) or let total = sum(table: bookings, column: seats) reads a snapshot before the write, so two callers at once can see the same value in set: or if(...). Put the count directly in check(count(table: guests) < 40, message: "Full") to enforce the limit in the write transaction against concurrent callers. A row read with let found = T |> filter(where: ...) |> one() that a check reads (check(found.seats >= 1, ...)) is checked again inside the write; a check on a value computed from it on another let line (let left = found.seats - input.n, check(left >= 0, ...)) compares what was read before the write, so write the comparison in the check itself. A count or sum check names its table and refusal message; a request or current-row check such as check(input.qty > 0, message: "Enter a quantity") needs no table. Above the write, check(count(table: signups, where: shift == input.shift) < 4, message: "Full") counts stored rows; below the write, <= 4 includes the proposed row. Both refuse the command without saving. Use sum(table: bookings, column: seats, where: day == input.day) to total a field. Request rules run before rows are counted. Compare with <, <=, ==, > or >= and a number. References: a field by name; a param(...) name (in top-level let steps, not a view body); input.x (view or command input); now(), today(), monthStart(), monthEnd(), weekStart(), weekEnd() (Monday to Sunday, UTC; a whole week is field >= weekStart() and field <= weekEnd()); field == null matches absent values, and a whole month is field >= monthStart() and field <= monthEnd(); offset a clock with addDays(now(), -7), addHours(now(), -2) or addMinutes(now(), -30) (not now() - 7 days). view(name: "mine", inputs: {vis: text()}, access: {read: signedIn}) do visits |> filter(where: visitor == input.vis and sentAt < now()) end; a write rate limit is rateLimit: {per: visitor, max: 200, every: day} on the command (per: visitor, person, owner, everyone or a field; every: minute, hour, day, "6h" or "30s"; several allowed, each with message:). check(current.state == "open", message: "Must be open"); view(name: "open-orders", access: {read: owner}) do orders |> filter(where: status == "open") |> select(columns: [id]) end. Saved views and checks accept or across comparisons (and binds tighter than or; parentheses group; at most six comparisons after grouping): status == "open" or score > 3 (related-row alternatives remain unsupported in views). Checks also accept closed dates, clocks, inputs, caller values and earlier step outputs in alternatives (where: status == "held" or sent_at >= addDays(now(), -1); status == "held" or quantity >= input.quantity; owner == actor.id or quantity >= price.quantity; every referenced input/output must be available). A view accepts whole-day clock arithmetic: due >= addDays(today(), -6), evaluated on every read (clock views poll). Views and checks may negate parenthesised equality groups, such as not (status == "open" or tier != "gold"); not status == "open" is refused. Negated ordering, in, contains, row arithmetic, me and duration-unit clock offsets are refused. A page text search is not a view filter: contains(...) and count(...) over a field are refused there, and a filter of count(name, input.search) > 0 or input.search == "" never saves. Write the view without the text match (view(name: "products", access: {read: public}) do products |> select(columns: [id, name]) end) and pass the words on the read as search: {text: <words>, fields: [name]}; the search ignores case and matches a substring (not on aggregated views or long text); omit search when the box is empty, because an empty or whitespace-only text is refused with 400. To refuse a repeat of a value, put the field in the table key: (for example key: [email]) instead of a check(count(...) < 1) over the same table; a create that repeats the key is refused 409 with code stable_key_conflict. A command cutoff uses addMinutes or addHours: check(current.starts_at >= addMinutes(now(), 1440), message: "Too late.") checks the stored row, and check(input.starts_at >= addMinutes(now(), 1440), message: "Too late.") checks a new time; on a related table, check(count(table: classes, where: class_code == input.class_code and starts_at >= addMinutes(now(), 240)) >= 1, message: "Booking closed."). Conditions are unquoted boolean expressions: write where: score > 0, never where: "score > 0". Write every condition as an unquoted expression: where: status == "open" or check(input.qty > 0, message: "..."). where: rows(...) and where: [{field: status, op: eq, value: "open"}] are refused. A quoted value inside a condition is fine: where: status == "open". In Flow 1 a null or missing value is decided by the comparison itself, wherever the condition is written: field != value keeps it, field == value and the ordering comparisons (<, <=, >, >=) do not, and field == null matches it. A filter drops every row whose condition is not true, so name the null case on its own (field == null) when such a row must stay. Omitting the flow 1 header does not change this rule. An AI step names the columns it adds. Write input |> ai(instruction: "Read the receipt.", attachment: photo, outputs: {amount: number(), purchasedOn: text()}). In a command, bind the result and save its fields with set:. A validate step declares outputs: {valid: checkbox(), rejections: text()}. Failed rules are JSON-encoded text. A saved scenario is a statement: scenario(name: "check-notes") do ... end. Lines run in order on private rows. Before the first operation, seed(table: notes, set: {title: "A"}). Bind a seed to pass its .id to recordId or a reference field. A keyed seed uses its key, and the first unkeyed row has ID seed-<entity>-1. Write let answer = call(command: add_note, as: anonymous, inputs: {title: "B"}), then expect(answer.record.title == "B"). A command that ends with return saved, the row it wrote, answers under .record, for a scenario and for a page alike: expect(answer.record.status == "pending"). let reply = if(...) do {...} else {...} end with return reply sets .response and .outcome. An ordinary unkeyed create can pass answer.recordId to a later ID input for that table. A bare call or read must succeed. Wrap one operation in expectRefusal(status: 409, code: "command_precondition") do ... end to check a refusal; a check: that fails is 409 command_precondition, while an input that is empty, missing or the wrong type is 422 invalid_command_input. Every call and read names its caller: anonymous, owner or signedIn(user: "ada@test", roles: ["manager"]). A read uses read(view: all_notes, as: owner) and optional inputs. Check its total with ==, >= or <=, its ordered .items or .groups with expectRows or expectGroups and inOrder: (comparing only the columns listed), or its .items with expectEach or expectSome and matches:. A calculated read has .result.table.rows. Put each expect directly below its operation. setClock(now: "2026-03-01T09:00:00Z") moves simulated time. recordAnswer(step: book.price, value: {amount: 12}) supplies the next call of book with the named step’s answer. Requirement scenarios generate steps from requirement: {class: capacityByGroup|relativeTime|actorOwnership, statement: "...", ...} (complete saving examples are in the reference under "Requirement scenario examples"). A status that moves in steps is an enum column with a default, status: enum(options: ["pending", "approved", "rejected"], defaultValue: "pending"), and each move is a patch command. Its header is inputs: {recordId: reference(table: claims), decision: enum(required: true, options: ["approved", "rejected"])} and access: {call: roles("manager"), edits: [roles("manager")]}. Its body reads the row with let current = claims |> filter(where: id == input.recordId) |> one(), refuses a wrong starting status with check(current.status == "pending", message: "Only a pending claim can be decided"), and writes patch(table: claims, recordId: input.recordId, set: {status: input.decision}). decision is an input with its own type, so a call with another value is refused. The check is enforced with the write. An insert that leaves status out of set: starts the row at the default. The column does not list the allowed moves: status changes wherever a set: writes it, so the commands that write it are the moves. Persistence still needs an explicit saved scenario journey; sequential checks do not cover concurrent requests or browser reloads. Parameters: a Flow's tunable assumptions are declared as statements.

  • View inputs: declare inputs: {start: date()} in the header (allowed types: text(), number(), checkbox(), date()) and use filter(where: day >= input.start) in the body. The wire field is params. Send {params: {start: "2026-01-15"}} when reading the view. Every date parameter is required and must be a real YYYY-MM-DD calendar date; timestamps and impossible dates are refused. A date field needs a date parameter, not text; datetime fields cannot use view parameters.
  • A parameter is a name, a kind and a default: let limit = param(kind: number(), default: 10), let label = param(kind: text(), default: "Untitled"), let status = param(kind: enum(options: ["new", "done"]), default: "new"). A checkbox uses checkbox() and a duration uses duration(). Put enum choices, number bounds and text length inside the type call, as in number(min: 1, max: 20) or text(max: 80). Every parameter declares its default:.
  • Define a parameter above its use and read its name in expressions: filter(where: score > limit). When a column shares the name, write col("limit") or param.limit; over input, write input.limit or param.limit. The clock inputs are $runDate and $runDatetime.
  • A type call can also set its label. A parameter can declare id, range, step, exposed, checks and a saved value that differs from its default.

Example:

flow 1
let habits = table(name: "habits", label: "Habits", columns: {habit: text(required: true, max: 80)})
let entries = table(name: "entries", label: "Entries", columns: {habit: text(), score: number()})
let kept = entries
  |> filter(where: score > 0)
  |> aggregate(groupBy: [habit], metrics: {total: sum(column: score)})
view(name: "Result", access: {read: owner}) do
  habits
    |> join(right: kept, type: left, on: {left: habit, right: habit}, columns: [total], rightDedupe: none)
    |> limit(count: 100)
end
# @layout {"n":{"Result_rows_join1":[null,null,null,null,"result_join1",null,"38c755d6"],"Result_rows":[null,null,null,null,"result"]}}

Sequential action:

flow 1
let products = table(name: "products", columns: {sku: text(), stock: number()})
let orders = table(name: "orders", columns: {sku: text(), qty: number(), status: text()})
let audit = table(name: "audit", columns: {what: text()})
let place_order = command(
  inputs: {sku: text(required: true), qty: number(required: true)},
  outputs: {sku: type(orders.sku), qty: type(orders.qty), status: type(orders.status)},
  access: {call: public},
  rateLimit: {per: visitor, max: 10, every: minute}
) do
  check(
    count(table: products, where: sku == input.sku and stock >= input.qty) >= 1,
    message: "Out of stock"
  )
  let order = insert(table: orders, set: {sku: input.sku, qty: input.qty, status: "placed"})
  insert(table: audit, set: {what: "Ordered {{input.qty}} of {{input.sku}}"})
  if(order.qty > 100) do
    slack(channel: "C08ABCD1234", body: "Large order {{order.sku}}", connectionId: "conn_1")
  else
    email(to: ["ops@example.test"], subject: "Order {{order.sku}}", body: "Wrapflow update.")
  end
  return order
end
<!-- flow-authoring:end -->

For exact changes, read the Flow text, edit it, apply with the observed base, and test saved scenarios before trying the draft in its frontend. MCP has no AI builder: you write the backend and the frontend yourself. define remains useful for one typed object and for the first entity of an empty App.

MCP create_app takes name, a required short purpose sentence, and optional description and initializes the external frontend automatically, returning appId, flowId, and revision. With SDK/HTTP creation, choose frontendLane: "external" for an App-owned frontend project; with wf app create, use --frontend external. Those surfaces also support hosted-single-file for hosted HTML/CSS. create_app (or POST /api/apps) atomically creates the App and its initial blank Flow, returning appId, flowId, and revision; then use describe kind:"flow" with the returned flowId. Describe remains read-only and does not create a Flow. Never define a standalone Flow and attach it as a substitute for the App's backend.

The exact lifecycle is in app-lifecycle.md, and the hosted HTML policy is in client-integration.md.

Rules in the backend

Prefer a patch command's set: for calculations over current and input, such as set: {edits: current.edits + 1}. Use count(current.content, input.find) for non-overlapping matches. Use table state(...) for legal status moves; it generates the guarded patch commands and their transition scenarios.

When a rule needs JavaScript, read backend-rules.md before authoring a command transition: it covers computed fields, caller inputs, accepted/refused examples, saved scenarios, sandbox limits, and uploaded UI CSP.

Work the product loop

  1. Describe the whole user outcome in one product intent. Include core entities, actions, rules, identity boundaries, and visible states.
  2. Build or inspect the App. Reuse an existing App when the request concerns it. Choose frontendLane: "external" / --frontend external explicitly for an App-owned project, and use the same explicit lane on every later edit.
  3. Inspect the App and contract before editing code. Resume from frontendRevision, frontendLane, and frontendUpdatedAt. An external lane may use either a Wrapflow-hosted uploaded UI bundle or a separately hosted project; inspect the UI state instead of inferring its host from the lane name.
  4. For an uploaded plain HTML/JavaScript UI, read describe {appId,kind:"ui"} and import the same-origin /_wrapflow/client.mjs. Generate the App-specific TypeScript client for a separately hosted project. In the scriptless hosted-single-file lane, author only HTML/CSS and semantic Contract hooks.
  5. Implement the UI against named App resources. Preserve the user's framework; do not rewrite a framework app as generated HTML.
  6. Make product changes with describe kind:"flow" and apply, and upload bundle changes with upload_app_ui (or the ship_app UI field), then inspect again. Never ask npx to resolve wf: it can select an unrelated registry package when the exact local @wrapflow/cli dependency is missing. Regenerate the client whenever the compatibility hash changes.
  7. Test the contract and UI together, including empty, loading, success, stable error-code, authentication, stale-version, and mobile states.
  8. Read release authority before starting checks. If authority is unavailable, checksAvailable is not true, or either an authorized publishing path or a present operator is unavailable, stop with the App as a draft. Do not treat a command that runs checks or releases merely existing as evidence that it can run.
  9. Present the authority's complete exposure block to that operator. Review every anonymous and authenticated resource, identity boundary, Checkout, and file capability before checks, then review the current block again after checks because the contract may have changed.
  10. Start and evaluate empirical checks only after that preflight. Stop for the operator's explicit approval of the exact authority and exposure before release. For CLI checks (including retries), pass --reviewed-exposure --reviewed-authority-digest <reviewDigest> after the authority was presented; for advanced MCP pass operatorReviewedExposure: true, reviewedAuthorityDigest: "<reviewDigest>", requestKey, and operation. Use the digest from that exact operator-reviewed snapshot. Both surfaces re-read authority and stop unless checksAvailable is still true and the digest matches; a changed snapshot needs fresh review. A Wrapflow-hosted uploaded UI bundle is checked and released with the App's backend and Contract. A hosted-single-file release additionally pins the scriptless trusted shell/compiler boundary. A separately hosted App-owned frontend is built and deployed outside its backend release; require its generated compatibility hash to match the released Contract before directing users to it.

Communication boundary

  • Compile against the App Contract and generated client.
  • Address entities, guarded commands, and workflows by generated names, never graph step IDs.
  • Branch on WrapflowError.code, never human error text.
  • Pass only the visitor's App-user JWT through getToken when the contract requires identity.
  • Never embed a Wrapflow account API token in browser code.
  • Never reconstruct routes, authentication headers, or response envelopes with loose fetch() calls when the App client supports the operation.
  • Treat low-level Flow commands and capability URLs as an explicit advanced escape hatch, not the normal App architecture.
  • Inbound webhooks: external SaaS providers (such as Stripe) can drive state transitions via signed stream entrypoints with explicit command mapping and secret connections (http_connections). Unsigned or invalid requests are refused with 401, with replay idempotency on the provider event id.

Frontend choices

Run saved browser journeys with test {appId, kind:"journeys"}; optional name selects one journey by name or ID. This checks draft data without creating an App or uploading its interface again, including after publishing. Follow the continuation for unfinished checks, then read status; only recorded evidence verifies that version.

Avoid unnecessary secondary labels and descriptions. Let the layout do the explaining. No subtitle that repeats its heading, no helper text under a self-explanatory control, no "This section shows…" captions, one label per field, a 'Due' record not repeated identically under 'All' (split into disjoint 'Due now' and 'Later' groups, or keep one list).

Check forms at 390px and 1280px with dialogs open. Keep labels and placeholders fully visible, 8px label/input gap. Placeholders are examples (e.g. Monstera). Number fields: label above, short numeric example (7), border-box, room for spinners. Wrap to fewer columns before fields shrink below phone widths; an unpaired last field spans full width. Never clip or shrink text. Follow prefers-color-scheme: support light and dark palettes for the page, cards, text, borders and controls. Set color-scheme so native controls match. Check both modes at 390px and 1280px.

Show dates as readable local text ("3 Nov 2026", "today"); ISO only in date inputs, datetime attributes, code, exports. Give every date input a visible label: empty ones show "yyyy-mm-dd", ignoring placeholder. Preserve calendar days: const day = d => d ? new Date(d + "T00:00:00Z").toLocaleDateString([], {dateStyle: "medium", timeZone: "UTC"}) : ""; timestamps use the App time zone. Dates, times, units and codes stay whole at 390px: white-space: nowrap or on their own line. A date input sits inside its card at 390px and 1280px: its wrapper and the input get min-width: 0, its grid track is at least 10rem wide or the field takes its own row, and its Save button wraps under it instead of widening the row.

If anything the interface shows is sample or simulated, such as values generated in code instead of fetched, label it visibly where it appears, for example "Sample data — not live". Tell the person in one plain sentence that it is a simulation and what real data would need. Never describe simulated output as real.

Don't put colored borders, colored outlines or accent stripes on rounded cards. Carry a category color in a small element (an icon chip or a dot), and keep borders neutral.

Keep buttons inside their card or row at 390px and 1280px: no fixed-width or nowrap action column; on a phone they leave at least three quarters of the row to the content. Keep each status phrase on one line: wrap at a ·, never inside a phrase. When content and buttons no longer share one row, move buttons below the content or stack them full-width. At 390px every card in a list lays out the same way: buttons always on their own row under the content, never beside short text and below long text. Fields sharing a form row keep one baseline: labels stay on one line or inputs bottom-align. Render each list once: never a second copy of the same items for another layout or breakpoint.

Keep the primary view, main create or edit controls, and any newly added or changed fields, statuses, and rules visible in the initial viewport at 390px and 1280px without scrolling. Keep headers and empty-list messages to one compact line so forms and changed parts never sit below a tall hero or empty-state card. Put the create entry above existing records (a header button or the form as the first row), so adding the next record never means scrolling past every card. An empty list shows exactly one message, never two stacked ones. Set the page title (the browser tab) to the App's name.

Where someone can add records, each gets a visible edit and a delete with undo or a confirmation, unless prompt or access rules exclude it. A write shows the saved result on that record without a reload; unchanged writes still acknowledge. Keep saving, saved, error and retry feedback beside the action or in view at 390px and 1280px, even after refresh. A save or refresh never moves a row or button from under the pointer; reorder only on the next visit or when they sort or filter. A list of records with due dates starts with the overdue and soonest (a record that repeats but has never been done counts as due now unless the prompt gives a start date; future starts stay upcoming until that date), and a record shown in a highlighted group is not drawn again in the list below it, and that list is titled for what it holds ("Other plants", not "All plants") unless it truly lists every record (golden #25149). An open edit stays until Save or Cancel, and a redraw keeps that form and what was typed. A failed save shows its error beside the form, keeps what was typed and re-enables the button (golden #25920). Show a record's field, status or action only when it applies to that record: an empty optional value gets no "not recorded" or "—" filler line, a state the record is not in gets no badge, and an action that belongs to a subset gets no always-on button. Where it does not apply, leave it off or say what makes it apply. A conditional shortcut ("Fertilized today" on due plants) is never the only way to set a field: every record keeps the edit control, with each writable field editable, including an optional one still empty; a computed or otherwise read-only field stays display-only (golden #25402, #25997).

Scenarios (given:) and look steps run on isolated copies that are discarded, and saved journeys start from an empty App plus the rows each lists in given (never Draft rows), so the owner's Draft preview (Test data) starts empty unless you seed it. When creating or updating an App that stores records—especially when adding a field, status, or relative-date rule (such as more than 30 days ago)—seed draft test rows in one call with import_collection_rows {appId, collectionId, target:'draft', rows} (never into live data; add replace:true to reseed), or per row with call_as_test_user, covering both triggered (for example an older date) and normal or unknown states so the Draft preview shows the rule working without hand-typing backdated values.

  • Uploaded UI bundle (default MCP path): plain HTML, CSS, JavaScript, JSON, images, and fonts sent with ship_app.ui.files or upload_app_ui. Wrapflow hosts the bundle beside the App backend, and look plus declared browser checks exercise it. Plain JavaScript imports WrapflowApp from /_wrapflow/client.mjs, which the draft and the released App both serve on their own origin. Relative bundle assets are valid and need no bundler. The page CSP allows inline and same-origin scripts; bundle libraries locally because remote scripts are blocked even with their host in egressHosts. Remote fetches, sockets and passive resources need their host in egressHosts; Web Workers are blocked. Limits: 1,000 files, 10 MB per file, 30 MB total decoded (50 MB upload request including encoding and framing), index.html required. This uses the App's external frontend authority but is not a separately hosted website. An unreleased hosted-single-file App moves to that lane with SDK setAppFrontendLane(appId, 'external') (HTTP PUT /api/apps/:id/frontend/lane), which replaces its saved hosted page; no default MCP tool does it, and a released App keeps its lane (frontend_lane_released). The full upload reference is "Host the UI you built on the App itself" in docs/BUILD-WITH-WRAPFLOW-AS-AN-AGENT.md.
  • Separately hosted App-owned frontend: a normal framework or multi-file project in its own host, using wrapflow-app and an App-specific generated adapter. Wrapflow hosts the backend, not this frontend.
  • Hosted-single-file presentation: one scriptless semantic HTML document with inline CSS and declarative data-wrapflow-* hooks. The trusted parent shell alone loads /_wrapflow/client.js and the manifest-pinned compiler. Save and serve-time policy reject authored scripts, handlers, executable URLs, and relative assets. The child frame sandbox remains allow-scripts allow-same-origin only for trusted-parent callbacks. This is not the uploaded-bundle path and must not be used to forbid JavaScript there.
  • Retained hosted v2/v4 releases keep their frozen live compatibility path but cannot be newly activated or treated as the scriptless boundary. Republish them to create hosted v5. Marketplace accepts only assetless v5 and returns marketplace_republish_required for v2/v4 packages.
  • Verify that a separately hosted project's configured package source can install wrapflow-app before promising integration. Do not invent a public package URL.

Frontend dependency safety

Before adding or upgrading frontend dependencies, read "Selecting frontend libraries safely" in client-integration.md. It covers current registry/advisory review, seven-day quarantine for the resolved graph, exact pins and a committed lockfile, lifecycle script approval, and the project's audit, type, build and browser checks. Wrapflow does not maintain an approved library list or proxy catalog.

Completion report

Report the App ID, frontend lane, frontend revision, compatibility hash, files changed, tests performed, remaining manual checks, and whether the App is still a draft, capability-blocked, or was explicitly approved and released. Do not claim compatibility with a framework or host that was not actually exercised or contract-checked.