Local integration · Engine 1.1.0

A check your agent
can actually run.

Add a deterministic checkpoint between generating a quote table and handing it to a person. JSON in, explicit findings out. No signup, key, model or network call during checking.

Try JSON or CSV in your browser

1. Save three files together.

Download cli.mjs, audit.mjs and csv.mjs into one directory. Use Node.js 22 or newer. There is no package installation or runtime dependency.

Inspect these small modules before running them. The CLI reads standard input only and writes results to standard output. Downloading the files uses the network; executing the checker does not.

2. Run JSON or CSV.

Extract the inconsistent object from examples.json into quote.json, then:

node cli.mjs < quote.json

Or download example.csv and supply the declared total and currency explicitly:

node cli.mjs --format csv --currency USD --total 69.90 < example.csv

The fictional CSV returns exit code 1 with three findings. A matching total alone does not rule out a wrong line calculation. CSV header order may vary; the exact columns are id,quantity,unit_price,line_total. Quoted fields, escaped quotes, UTF-8 BOM and LF/CRLF are supported. Number fields are preserved as strings: remove nothing and do not guess decimal separators.

3. Route the outcome explicitly.

ExitMeaningNext step
0These consistency checks passContinue to human source review.
1One or more inconsistenciesRead issues[]; check the original source.
2Invalid input or usageRepair the export; no valid audit was produced.

Valid results are one JSON object on stdout. Invalid-input errors are one JSON object on stderr. Do not treat an invalid result as a pass or automatically rewrite the quote. Multiple findings may describe the same underlying error.

import { auditTable } from './audit.mjs';
const result = auditTable(exportedQuote);
if (!result.passed) {
  // Send result.issues to your existing review step.
}
// A pass still requires source review.

The result includes engine_version, schema_version, passed, totals and stable issue codes. The browser can download the same result JSON; it does not include a copy of every input row.

Know exactly what is checked.

At most 60 KB of UTF-8 input and 1–100 rows. Quantities are nonnegative whole-number strings up to six digits. Amounts have up to nine whole digits and two decimal places. Supported currencies are USD, EUR and GBP. The engine checks line multiplication, trimmed unique row IDs and supplied versus recomputed totals.

Unsupported: fractional quantities, negative lines, tax, discounts, currency conversion, PDFs, XLSX files and spreadsheet formulas. CSV files are read as text, never evaluated. This is not invoice approval, supplier verification, an audit opinion or spending authorization.

Exact JSON input schema · Machine-readable manifest · Worked example

Use the hosted endpoint when you need saved checks.

POST https://agentverify-customers.pages.dev/api/v1/tablecheck accepts the same structured JSON. Eligible paid plans include it at no extra add-on charge: Starter $29/month for 100 total new checks, Pro $79/month for 1,000, shared with structural and workspace checks. One table has up to 100 rows. Exact idempotent retries use no additional unit. No automatic overages.

Owner sign-in, key creation and hosted payment completion are required. California paid pilot only; read the current catalog and hosted onboarding and error handling. A paid API key stays server-side, never in the browser checker.

For a Node.js example, save hosted-example.mjs beside client.mjs. Provide your key and a stable request ID through your server's environment; pipe JSON into the example. Unlike the offline CLI, this example sends the table to the hosted service and uses paid quota. It performs no purchase or downstream action.

node hosted-example.mjs < quote.json
# Required server environment:
# AGENTVERIFY_API_KEY — your scoped key
# AGENTVERIFY_REQUEST_ID — stable ID for this exact table

The sample exits 0 for a valid consistency pass, 1 for findings and 2 for request/input failure. All outcomes still require source review. An exact retry can retrieve the saved result while paid access remains active. Input hashes and result findings are stored; do not submit sensitive customer data.

See hosted scope and plans