Verify API contracts against a pinned OpenAPI spec.

Invoke operations from a SHA-256 pinned OpenAPI specification, assert response status codes and JSON pointers, and pass captured public scalars into downstream steps.

changes#211 Add item tags to the API api/item-tags

run 3

e4a19c0CI ↗ 3 flows queued running3 passed7 unchanged
  1. waitingrunningpassed
  2. Read the test item2 steps · not started2/2 · 500ms
  3. Archive an item2 steps · not started2/2 · 1.4s
  4. Delete an export route2 steps · not started2/2 · 0.9s
  5. unchanged · 7
  6. not run again; earlier results carried over
flows/get-item.md · read onlynot run yet2 lines passed
  1. ---
  2. title: Read the test item
  3. providers:
  4. http: OpenAPI
  5. ---
  6. # Read the test item
  7. The item API returns the test item by its public id, under the contract pinned by its digest.
  8. ## Inspect the declared operation
  9. Reads getItem from the pinned spec without contacting the server.
  10. ```rfl step="Inspect the declared operation"
  11. ```
  12. ## Check the test item
  13. One request with the declared query and public header; the binding supplies the server and the private session. Raw response bodies are not retained.
  14. ```rfl step="Check the test item"
  15. ```

waitingrunningpassedRead the test item

The item API returns the test item by its public id, under the contract pinned by its digest.

not started · 2 steps planned following live viewing step passed · 500ms · earlier run: main, 2 days ago

1 · Inspect the declared operation

not startedrunningpassed · 90ms

Reads getItem from the pinned spec without contacting the server.

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.

THIS RUNgetItem
GET /items.get
query: id (string, uuid, required)
responses: 200 item · 404 missing
security: project + session
What this step didWhat this step doesWhat this step does

line 161 of 1

Described getItem from the pinned spec

http.describe_operation operationId="getItem" spec="sha256:9c491f4050369bc8572eaf86ab1333bad35dabb38f11a890f94b4bd0d2a37444"
Status
passed
Time
took 90ms, starting 0ms into the step

2 · Check the test item

not startedrunningpassed · 410ms

One request with the declared query and public header; the binding supplies the server and the private session. Raw response bodies are not retained.

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
retained fieldvalue
completionconfirmed
HTTP status200
/id · equalspass
response bodynot retained
THIS RUNgetItem · safe evidence
retained fieldvalue
completionconfirmed
HTTP status200
/id · equalspass
response bodynot retained
What this step didWhat this step doesWhat this step does

line 241 of 1

Called getItem: 200, 1 assertion passed

http.call operationId="getItem" spec="sha256:9c491f4050369bc8572eaf86ab1333bad35dabb38f11a890f94b4bd0d2a37444" query="{\"id\":\"3f2b8c1e-5a4d-4e6f-9b7a-1c2d3e4f5a6b\"}" header="{\"X-Project\":\"default\"}" expect="{\"status\":200,\"json\":[{\"pointer\":\"/id\",\"equals\":\"3f2b8c1e-5a4d-4e6f-9b7a-1c2d3e4f5a6b\"}]}"
Status
passed
Time
took 410ms, starting 0ms into the step
What it kept · getItem
earlier run · main
completion: confirmed
status: 200
/id · equals · pass
raw response body: not retained
this run
completion: confirmed
status: 200
/id · equals · pass
raw response body: not retained
Agent reviewon pull request #211In scope

The expected public item id was returned.

Status 200 and the /id assertion held in this run, as in the earlier run on main. Raw response bodies are not retained, so the two runs are compared on status and assertion results only. A confirmed response can still fail its assertions: check this result alongside the rest of the journey.

← → stepsThe agent compares the two runs and judges; Reflow keeps what each step saw.

Validate requests against your declared contract.

Select operations by operationId. Reflow validates path, query, and JSON body parameters against the pinned OpenAPI document before dispatching the request.

  • Declared status codes and request completion
  • Values-free JSON pointer assertion outcomes
  • Public scalar captures and safe body hashes

Assert JSON pointers while withholding secrets.

Check declared success or error statuses and assert public JSON fields with pointer expressions. Sensitive headers, tokens, and private fields are automatically withheld from retained evidence and diffs.

Verify that a resource exists, capture its public identifier, and feed it into subsequent operations—surfacing contract mismatches or incomplete writes before merge.

Land this evidence in PR review

Inspect a pinned operation before sending a request

Pin the OpenAPI spec path, SHA-256 digest, and API base URL in your private api binding. Reflow validates parameters against the pinned contract before dispatching requests and withholds secret fields from retained evidence.

Your coding agent inspects installed plugin commands via MCP, authors flows against your application knowledge, and pins versions in the application lock.

Flow excerptOpenAPI
---
providers:
  api: OpenAPI
---

api.describe_operation operationId="getItem" spec="sha256:9c491f4050369bc8572eaf86ab1333bad35dabb38f11a890f94b4bd0d2a37444"

Plugin locks and private target bindings are managed separately from flow source.

Check the rest
of the application.