Synthetic billing test data: test a $47.52 refund both ways
By the Ground team
In Ground Billing Replay, a previous refund attempt marked failed should be retried for $47.52. Change only that processor event from failed to pending and the expected action becomes wait. The refund request is still $47.52 in both snapshots. Test both or an agent that always retries can look correct.
The $47.52 refund pair
Both snapshots have the same account, invoice, payment, refund request and decision cutoff. Only the status of processor event EVT-100080 changes. The case IDs are fixture labels, not billing fields.
| Case ID | Previous attempt | Expected action | Refund amount in cents |
|---|---|---|---|
| 111798e8d2badc622ec5 | failed | retry_refund | 4752 |
| 6f77272be40f128d8810 | pending | wait | 0 |
Download and verify the public fixture
Run the following with a shell, curl and uv. It downloads the verifier and all eight Parquet files from a fixed public revision. No Ground account, API key or model call is needed.
The verifier should report 80 independently graded cases and 40 one-record pairs. It loads the Parquet files into DuckDB, reconstructs decisions from the visible records, checks keys and timestamps, and verifies that each pair changes exactly one billing record. This is a dataset validation result, not a model score.
mkdir -p ground-billing-replay && cd ground-billing-replay
repo=https://huggingface.co/datasets/johnnymedhanie/ground-billing-replay-v1
revision=dc1792de2c6f18d3eda0fd7f93c4972765759579
for file in replay.py accounts invoices payments refunds processor_events tasks answers pairs; do
[ "$file" = replay.py ] || file="$file.parquet"
curl -fsSL --retry 2 "$repo/resolve/$revision/$file" -o "$file" || exit 1
done
uv run --no-project --with duckdb==1.4.4 --with pytz==2026.2 python replay.py .What to test in a billing agent
The five source tables are accounts, invoices, payments, refunds and processor_events. The release also includes tasks, reference answers and pair membership. Ground generated the starting rows; a deterministic script added the decision pairs.
- Gate evidence by the decision cutoff. A later-observed event must not change an earlier answer. If no matching processor event was visible by the cutoff, send that case to manual review.
- Order visible events by when they occurred, not just when they arrived. A late report of an older event does not make it the newest state.
- For this fixture, classify a duplicate capture only when exactly two payments each match the invoice amount. Test other capture scenarios separately against your own policy.
Score both snapshots and count incorrect refund attempts
Give the agent the policy and one snapshot at a time. Do not send reference answers, pair membership or the other snapshot as context. Ask for a case ID, action, amount in integer cents and evidence IDs. Score action and amount, action plus exact evidence, and the number of pairs where both answers were correct. Report incorrect refund actions separately.
Save predictions as JSON Lines with fields case_id, action, amount_cents and evidence_ids. For the pending case above the gold evidence is EVT-100080 and RFD-100080.
uv run --no-project --with duckdb==1.4.4 --with pytz==2026.2 python replay.py . --predictions predictions.jsonlReproduce the same check with Faker and Python
Ground’s public release passed 80/80 case checks across 40/40 one-record pairs. An independently written Faker + Python generator made the same 80 cases across the five scenario families and passed the same verifier. It borrows the public table schemas and verifier, not the reference rows or answers.
Faker only generates names in this baseline; explicit Python rules encode linked rows, event timing, amounts and case variations. Ground also used deterministic pairing after generating its starting rows. The exercise compares whether each approach can produce the fixture shape, not relative development speed, realism or model quality. Tonic Fabricate was not run.
# Run from the Ground fixture directory created above.
curl -fsSL https://useground.dev/fixtures/ground-billing-replay/faker_billing_baseline.py -o faker_billing_baseline.py
uv run --no-project --with duckdb==1.4.4 --with pytz==2026.2 --with Faker==37.11.0 python faker_billing_baseline.py . faker-baselineCommon questions
Does this run a real refund?
No. The records are synthetic and the verifier is read-only. The simplified policy is for offline testing, not production payment decisions.
Are these model benchmark results?
No. The public answers and verification script make this a development fixture. A benchmark needs a separate held-out evaluation and a recorded model and protocol.
Try it with your own dataset
Get started, see pricing or use the API.
Review security and privacy when evaluating Ground for your team.