# Detect missing export batches and verify backfill

Use this free English-language pilot when your agent needs to verify the result of a multi-step task, particularly after a tool or API changes. It checks JSON observations from one run against expectations you supply. Each report includes the time of evaluation, per-check evidence and a short company brief. No account or API key is required.

## Check a missing export batch

Use the [free export example](https://rinatsultan.com/agent-lab/workflow-check/#export-example) to reconcile the same 09:00–10:00 UTC window across a source manifest and a destination inventory. Three batches are expected. Missing `part-02` fails. Delivering `part-02` twice still fails. A complete backfill passes when each batch appears once.

Connect to [Workflow Check MCP](https://rinatsultan.com/agent-lab/workflow-check/mcp) using Streamable HTTP. Call `run_export_backfill_example` with `{"state":"missing"}`, `{"state":"duplicate"}`, or `{"state":"recovered"}`. For your own checks, call `check_workflow` with sanitized source and destination observations. Compare sorted arrays of expected and delivered IDs so duplicates are preserved in the comparison.

The same examples are available for HTTP clients as [missing](examples/export-missing.json), [duplicate](examples/export-duplicate.json), and [recovered](examples/export-recovered.json) JSON inputs. A failed check still returns HTTP 200 with `status: "failed"`.

```sh
curl -fsS https://rinatsultan.com/agent-lab/workflow-check/examples/export-missing.json |
  curl -fsS https://rinatsultan.com/agent-lab/workflow-check/run -H 'Content-Type: application/json' --data-binary @-
```

## Try a public example

Download the example and submit it to the checker.

```sh
curl -fsS https://rinatsultan.com/agent-lab/workflow-check/example.json -o workflow.json
curl -fsS https://rinatsultan.com/agent-lab/workflow-check/run \
  -H 'Content-Type: application/json' --data-binary @workflow.json
```

The [interactive page](https://rinatsultan.com/agent-lab/workflow-check/) also lets you load fresh public GitHub data or try an example with a failure.

## Try a scheduled alert and recovery

Open the [scheduled demo](https://rinatsultan.com/agent-lab/workflow-check/#scheduled-demo) and start it once. The server checks its own synthetic delivery data every five seconds. The test inbox shows a passing baseline, an alert when only 90 of 120 events arrive, and a recovery confirmation when all 120 arrive again.

For an automated client, send an empty POST to `/agent-lab/workflow-check/scheduled-demo`. The response contains a relative `stream` URL. Open it with an HTTP GET and read its server-sent `check` events. The `notification` field is null on the baseline, `alert` on the first failing check and `recovery` when delivery is restored. The final event has `complete: true`. The server records all three checks even without a listener. Reconnecting with `Last-Event-ID` resumes from the next event while the run remains available for 90 seconds.

## Check your own scenario

1. Choose a task with an observable success condition. For example, a digest should contain at least one item and reference the same release that an earlier step selected.
2. Run the task in your own approved environment. Keep just the few fields needed for the check. Replace private IDs consistently across steps and remove tokens, contact details and customer records.
3. Give each step a unique ID and put its observed JSON object or array in `output`. Define `checks` from the business requirement before inspecting the new run. Use fresh observations with the same checks to verify a fix.
4. POST the JSON as above, or use `tools/list` on [the MCP endpoint](https://rinatsultan.com/agent-lab/workflow-check/mcp) and call `check_workflow` with the same object as its arguments. The [OpenAPI contract](https://rinatsultan.com/agent-lab/workflow-check/openapi.json) describes the HTTP interface.

| Check | What passes |
| --- | --- |
| `exists` | The path is present, including a present null. |
| `nonempty` | The value is present and contains data. Null, blank text, empty objects and empty arrays fail. Zero and false pass. |
| `equals` | The value equals the specified JSON scalar, including its type. |
| `matches_step` | The value equals the value at `otherPath` in the named earlier `step`. Both paths must exist. |

Paths use JSON Pointer, for example `/items/0/id`. An empty string selects the entire output. Use `~1` for a slash inside a field name and `~0` for a tilde. Each request supports up to 12 steps, 20 checks per step and a 64 KiB request (including the envelope when using MCP). Each output allows up to 24 levels of nesting and 4,000 JSON values.

## Read and share the report

A valid run returns HTTP 200. Use `status` to distinguish a passing run from a failed assertion. Use `steps` to locate the failed check, correct the workflow in your own environment and submit fresh outputs. A malformed scenario returns an HTTP error with a correction message. The service evaluates the observations you sent. It never signs into your systems or verifies their provenance. Use neutral names and field paths suitable for the report's audience.

Share `companyBrief` with the workflow owner, or copy the brief and download the report on the interactive page. The brief is a record of one run. The private pilot runs scheduled checks on one monitored delivery flow. Recovery is confirmed when every source record for the affected window has exactly one matching delivery record. The early-access plan is **US$29 per month** for up to five workflows. An owner can [apply by email for their first workflow](mailto:995620@gmail.com?subject=Agent%20Lab%20workflow%20check%20pilot). The free run creates no subscription or charge.
