Skip to main content
The Files simulator stands in for the SFTP drops that payers, clearinghouses, and health information exchanges use to exchange batched documents: claim files, 837/835 batches, lab result packets, referral PDFs, eligibility rosters. Your agent reads inbound files out of an inbox and writes outbound files to a delivery path. The verification engine scores sftp-file-present criteria against the final file tree.

How your agent connects

The Files sandbox is exposed over HTTP under the benchmark-run path. All reads and writes happen through /v1/benchmark-runs/{id}/files/*. The sandbox is seeded by the linked Files dataset, which stores the actual files in GCS under datasets/{datasetId}/files/. When the sandbox is branched from the dataset, a copy of the files is made available to the sandbox.

Endpoints

Paths mirror the directory layout a real SFTP drop would have, for example inbox/referrals/, outbound/claims/, archive/.
The run-scoped v1 files surface is read-only today. Writing outbound files from the agent (PUT/DELETE) is not yet wired on /v1/benchmark-runs/{id}/files/*. When the rollout needs to stage a file for a criterion to read, use a scenario step like drop_file_inbox to seed content before the agent starts.

Driving the rollout

List the inbox:
Download a specific file:

Configuration

The Files simulator is configured by its linked dataset’s manifest. The dataset’s manifest describes the initial file tree; at provisioning time, the sandbox branches a copy of the dataset’s files so mutations made during the rollout don’t affect the original.
The accompanying dataset defines the directory layout and seeded contents. See Datasets for the manifest shape.

Verification

The sftp-file-present check asserts that at least one file matches a glob pattern in the final file tree, optionally parsing it as JSON and asserting on field values.
See the Criteria concept page for the full assertion spec.

Next Steps

Criteria

Full reference for sftp-file-present assertions.

Datasets

How file manifests seed the Files sandbox.

Simulators overview

Lifecycle, provisioning, and configuration patterns.

Sandboxes

File-system branching and checkpoints.