AI agents
An AI agent, such as a coding assistant, runs Veridelta through its command line or through its MCP server. This page gives the steps that keep its runs predictable and its replies free of row values.
Steps
-
Check the configuration file.
validatereads no rows, and by default connects to nothing:The JSON holds the
configit checked,valid,errors,warnings, andfindings, which place each error and warning in the file bypath, or bylineandcolumncounted from 1. The command exits1when there is an error. Fix each error before a run. A check that cannot finish exits3and prints anerrorobject instead.--allow-missing-envchecks a file whose secrets are not set, such as in a pull request job. -
Run the comparison with
--json, so stdout carries only the summary: -
Read the run's exit code before its output:
Code Meaning stdout 0A match within threshold.The summary. 1Drift. The summary. 2Invalid arguments. Nothing. 3The run could not finish. One object, {"error": {"type": ..., "message": ...}}, which stderr explains too.Read
typebefore acting onmessage. AConfigErrormeans the configuration file needs a fix, and Exit codes says what the other types mean. Any type that is not a Veridelta error, such as one from a driver, is worth reporting to the user as a possible bug. -
Report counts and column names, which is all the summary holds. Leave row values out of a reply unless the user asks for them.
-
When two columns hold the same values in different encodings, such as
Yandtrue, propose avalue_mapfrom the data:Show the proposals and their evidence to the user before adding them to the configuration.
-
When a column differs by small amounts, such as rounding, padding, case, a date format, or a spelling of NULL, suggest a rule from the data:
Each suggestion names the rows it explains, and its example keys come from the data. Show the suggestions to the user before adding a rule: a rule forgives what it explains in later runs too, such as every gap below a tolerance.
MCP server
veridelta mcp serves steps 1, 2, 5, and 6 above as Model Context Protocol (MCP) tools, so an agent's host can call them without a shell. Two more tools list a side's columns and read the rows that differ. The server needs the mcp extra:
Register the server with the host from the folder that holds the configuration files. In Claude Code, this command does it:
A host that reads its servers from a file takes the same command as an entry. Claude Code reads .mcp.json at the project's root, and Cursor reads .cursor/mcp.json:
{
"mcpServers": {
"veridelta": {
"command": "uv",
"args": ["run", "veridelta", "mcp", "--root", "."]
}
}
}
In VS Code, the extension registers the server with agent mode. It passes one --root per workspace folder, runs the server in the first, and turns the settings veridelta.mcp.allowRowValues, veridelta.mcp.allowQueries, and veridelta.mcp.maxRows into its flags. Without the extension, .vscode/mcp.json takes the same command, with the workspace folder as the root:
{
"servers": {
"veridelta": {
"type": "stdio",
"command": "uv",
"args": ["run", "veridelta", "mcp", "--root", "${workspaceFolder}"],
"cwd": "${workspaceFolder}"
}
}
}
Where Veridelta is installed without uv, the command is veridelta mcp itself. To let the agent read rows, add --allow-row-values to the command. To let it read data on another machine, such as a database server or a bucket, add --allow-host for each host, in lowercase. The server has six tools. Each takes path, the configuration file, and resolves a relative path against the first root:
| Tool | Returns | Reads |
|---|---|---|
validate_config |
What veridelta validate --json prints: config, valid, errors, warnings, and findings, which place each one in the file. Its schemas and allow_missing_env arguments work as the command's flags do. |
No rows. With schemas, each side's columns. |
run_comparison |
The summary that veridelta run --json prints, with three more fields: verdict, which is match or drift; exit_code, which is 0 or 1 as the command exits; and artifacts_written. |
Both sides. |
describe_schema |
One side's columns, each name as stored mapped to its type as Polars names it, such as Int64, and the side. Its side argument is source or target. |
That side's columns, and no rows. A side that reads a query is refused, since only running it would name its columns. |
read_discrepancies |
The rows of one kind, added, removed, or changed, up to limit, 20 by default: kind, total, rows, truncated, and keys_only, which is true when the pair was compared in place, so each row holds its primary key alone. |
Both sides, since each call runs the comparison. Only on a server started with --allow-row-values. |
propose_value_maps |
What veridelta crosswalk --json prints, as proposals, with total and truncated. Its min_confidence, min_support, and sample_fraction arguments work as the command's flags do. |
Both sides. Only on a server started with --allow-row-values. |
suggest_rules |
What veridelta suggest --json prints, as suggestions, with total and truncated. Its max_share argument works as the command's --max-share does. Each suggestion's examples hold primary keys from the data. |
Both sides, read locally, so a pair compared in place is refused. Only on a server started with --allow-row-values. |
Watch a client call three tools, as an agent's host does

> # A client calls the MCP server's tools, as an agent's host does.
> python mcp_client.py
-> validate_config {"path": "veridelta.yaml"}
<- {
"valid": true,
"errors": [],
"warnings": []
}
-> run_comparison {"path": "veridelta.yaml"}
<- {
"verdict": "drift",
"exit_code": 1,
"added_count": 1,
"removed_count": 1,
"changed_count": 1,
"column_mismatches": {
"status": 1
}
}
-> read_discrepancies {"path": "veridelta.yaml", "kind": "changed"}
<- {
"total": 1,
"truncated": false,
"rows": [
{
"id": 2,
"status_source": "closed",
"amount_source": 20.5,
"status_target": "shipped",
"amount_target": 20.5,
"status_is_match": false,
"amount_is_match": true
}
]
}
Watch an agent compare two exports in Claude Code
A real Claude Code session, recorded with the kit in demo/agent/ and the server started with --allow-row-values. It runs unedited from the prompt to the agent's first answer. Two header lines, the model and the plan, are removed, and the last frame is held so the answer can be read.

> Compare the two order exports in this folder with the veridelta tools. Check the
configuration first, then run the comparison, then read the rows that differ. Tell me
what changed, column by column, and whether any change looks like rounding rather than
a real difference. Do not change any file.
Searched for 1 pattern, called veridelta 6 times, ran 3 shell commands
I've finished the comparison. The after export has 1 new order and 3 changed orders, and
no orders were removed. I didn't change any files.
Configuration: veridelta.yaml checked out with no errors or warnings. It matches rows on
order_id and has no tolerance or other rules. Both files have the same three columns:
order_id (integer), status (text) and amount (decimal).
Run: the result was "drift", with 12 orders before and 13 after. The match rate is
66.67%, with 4 issues in total.
Changes by column:
| Column | Mismatches | Orders | Before -> after |
| status | 2 | 1004 | shipped -> cancelled |
| | | 1009 | open -> cancelled |
| amount | 1 | 1006 | 58.50 -> 58.51 |
| (new order) | - | 1013 | open, 99.00 |
In the changed orders, every column other than the one listed stayed the same. I checked
these rows against the CSV files directly and they match what the tool reported.
Rounding or a real difference?
- The two status changes are real. Text values can't be rounding, and both orders were
cancelled. Order 1004 was already shipped, so that cancellation may be worth asking
about.
- The amount change on order 1006 is the only one that could be rounding. It's a single
cent, and both files store the amount to 2 decimal places, so it isn't one export
cutting off digits. The likeliest rounding explanation is two systems rounding
something like 58.505 in different directions. But the files can't tell that apart
from a real one-cent price change. Whoever owns the source system would have to
confirm it.
- The new order 1013 is a real difference, since it only exists in the after file.
The configuration has no tolerance for amount, so even a one-cent difference counts as
drift. If you decide amount differences up to one cent are acceptable, a tolerance rule
would make order 1006 pass. That's your decision to make; I haven't added the rule.
The person who starts the server decides what it may read, and no tool call can change that:
- Each
--rootnames a folder the tools may read configuration files from, and a path outside every root fails the call. The server runs in the first root, so a relative path resolves there. - A tool that opens a side reads files on this machine only from under the roots, after it follows links, since a column name or an error can carry a file's text as a row does. It expands a leading
~/in a file path to the home folder, as the readers do, and reads the rest as written, so./~/xnames a folder~in the working directory. A Snowflakeprivate_key_pathis read as its driver reads it instead, as a bullet below says. It reads asqlite://path as the driver does: decoded, with no~expanded, and from the working directory when relative. It follows the links in that path, so a..after a link climbs from where the link leads, and the check and the driver read that one path. It refuses any other URI the driver reads as SQLite, such as one whose scheme issqlite+x. Apathwith*,?, or[in it is a pattern that Polars expands, so the tool lists the files it matches, hidden ones included, and refuses the side unless each resolves under a root. Such a pattern may not hold.., nor a name with a glob character that starts with a dot, such as.*, since Polars lets that name match... Afile:URI may not hold a pattern at all, since Polars expands one with another matcher, so write it as a plain path. PyArrow drops a folder and the..after it before it follows a link, where the system follows the link first, so the check takes both readings. On Windows, a path that starts with two separators of either kind, such as\\host\share\x.csv,//host/share/x.csv, or\\?\UNC\host\share\x.csv, or with\??\, names another machine or a device, and resolving it reaches that machine. So a tool refuses such a path before anything resolves it, whether a tool call, apath, anoutput_path, a Snowflakeprivate_key_path, asqlite://path such assqlite:////host/share/x.db, or a file a table lists names it. Cygwin and MSYS read such a path as Windows does. A long path to a file on this machine, such as\\?\C:\data\x.csv, is refused too, even under a root, so write it without\\?\. Windows follows a directory junction, a drive thatsubstmakes, and a short name such asPROGRA~1as it resolves a path, so a tool checks the folder each leads to. It also strips a trailing dot or space from a name, as inx.csv., and readsC:x.csvfrom the working directory on driveC:. On Linux and macOS, a path that starts with//is a path on this machine, and is checked as one. Data elsewhere, such as an object store or a warehouse, is held to the hosts the server allows, as the bullets below say. - A location with a scheme, such as
s3://b/t, is also checked as a path from the working directory, since a reader that does not know its scheme opens it here. Polars openss3:x/a.parquet, with no//, andmd://x/a.parquetthat way, and DuckDB opens adatabasewith a scheme it does not know, such aslakefs://r/x.duckdb, that way. Afile:,fs:, oropendal+fs:location's path is checked too, under a root however a reader parses it. Polars and deltalake readfile:tmp/xas/tmp/x, and PyIceberg astmp/xin the working directory. Afile:location may name no host butlocalhost, since deltalake opensfile://host/ton that host on Windows, so a tool refuses one that does, as a location or as a file a table lists. Delta Lake opens anfs:oropendal+fs:location here whatever host it names. A tool also refuses afile:,fs:, oropendal+fs:location whose path starts with//, such asfile:////localhost/x, since Python 3.14 dropslocalhostor this machine's name there, where DuckDB opens/localhost/x, and Windows reads such a path as one on another machine. Write the location with three slashes after the scheme's:, as infile:///data/t. A tool refuses one whose path Python cannot read as a path on this machine too, such as one with a second:on Windows before Python 3.14. - A Delta Lake log or Iceberg metadata can name a file anywhere, in an object store or on this machine. So for each such table, wherever its
table_uripoints, a tool first lists each file its scan reads. For Delta Lake, these are the data files, the file of each deletion vector, and the log of a table on this machine. For Iceberg, they are the version hint, the metadata file, the manifests, and the data and delete files. A tool refuses the table if a file on this machine lies outside every root, if a file elsewhere lies on a host the server does not allow, or if the files cannot be listed. It checks every path and every host a configuration names before it lists a table, since the listing connects to the table's host. - A Delta Lake table has its whole log read before the table is loaded, so a deletion vector that an earlier version recorded counts too. A vector at a relative path must name a folder of letters and digits, or the table is refused. A table is refused if a checkpoint in its log names a sidecar, a file deltalake would read from wherever the checkpoint says. Only a v2 checkpoint holds one, and
veridelta runcannot read such a table either. A table is refused too if a file in its log cannot be read as Delta Lake writes it. - A Delta Lake
table_uriwritten as a URI, such asfile:///data/events, is refused when its path holds a.or..segment, in any spelling, such as%2e%2e. deltalake removes such a segment by its text before it reads the table, where the listing reads the folder the system finds, so the two could read different logs. Write the URI without the segment, or write the table as a path: deltalake and the listing both read a path such as../eventsas the system does. Anfs:oropendal+fs:table_uriis refused when it holds a%escape, since deltalake decodes such a URI's path twice and the listing once. Write the table as a path or afile:URI instead, which both decode once. deltalake expands only~and~/, so the server expands a leading~, such as~alice/events, before deltalake reads the path, as Polars does. - The listing reads a table in an object store with its
storage_options, so it needs the keys the scan needs. On the server, an Iceberg scan reads its files as the listing does: PyIceberg plans the scan and reads every file through one PyArrow FileIO, built fromstorage_optionsalone. Thepolars_icebergplugin, which parses a location otherwise, is not used, and neither is Polars' cache of metadata files. The FileIO checks each file just before it opens it, and stops the scan at one outside every root or on a host the server does not allow, so a file that changes after the listing cannot lead the scan out. That FileIO opens a file only on this machine, or in S3, Google Cloud Storage, Alibaba Cloud OSS, or Azure at anabfs://,abfss://,wasb://, orwasbs://location. So on the server, an Iceberg table fails if it, or a file it names, lies anywhere else, even with its host allowed. Such locations includehf://,hdfs://,viewfs://,http://,https://, andaz://. PyArrow opens HDFS through a library it can load from the working directory, the first root, where an agent can write one. - On the server, a Delta Lake scan lists and checks its table's files again as it starts, and reads the version it checked. It reads the data files through PyArrow, which checks each one just before it opens it, and returns the rows
veridelta runreturns. For a table on this machine, the server copies each file of the log that deltalake reads, and each deletion vector stored in the table's folder, into a private folder just after it checks the file, and deltalake reads that copy. A file that changes after its copy is never read. To load a version, deltalake reads_last_checkpoint, and at the top of the log the files of that version and the ones before it, and passes over a checkpoint it cannot read to the commits before it. So the server copies_last_checkpoint, and each commit, checkpoint, checksum, or compacted commit from version 0 to the version it reads, or to the latest. It checks every other file of the log, and each file of a later version, but never copies one. The copy of one table holds at most 10,000 files and folders, and takes at most 1 GiB, where each file counts its bytes and one block of the temporary folder's file system, 4 KiB or more, and each folder counts one block. The server refuses a table whose copy would pass either limit, since files that take no room under a root, such as sparse files, or hard links named as commits to one empty file, would otherwise fill the temporary folder. So a table with more than about 10,000 commits, checkpoints, and checksums up to the version read is refused, as is one whose log up to that version takes more than 1 GiB. Read such a table withveridelta run, or setversionto an earlier one. On Linux and macOS, the server also refuses a table whose log holds a name with a\, which deltalake reads as/, so the name could lead it to a commit outside the log. The server copies a file only when the file it opens is the one its path named just before the check, and a regular file, so a file swapped in after that moment is refused, and so is a named pipe. Two swaps that bracket the check get through: a file swapped out for the check and back in before the open. The copy then holds a file the check never saw, which can lie outside the roots. Closing that needs the path of the open file itself, which Linux, macOS, and Windows each give through a call of their own. The copy goes in the system's temporary folder, so the server refuses a table on this machine when that folder lies under a root, where an agent could change the copy, or when its path holds a%, which deltalake would decode, or on Linux and macOS a\, which deltalake reads as/. Either way deltalake would read the log of another folder, which the server never wrote or checked. SetTMPDIRto a folder outside the roots whose path holds neither, and whose path only the server's own user can change, since another user who can change it could swap the copy after it is written. A process killed during a call leaves its copy in the temporary folder, held to the same limits. The server writes each file of the copy under a name it builds in that folder, never at a path a log names, and refuses a link there. A tool refuses a table on this machine whose log stores a deletion vector at a path of its own, as a shallow clone does. deltalake reads such a vector where the log says, so a copy could hold it only by writing there or by changing the log. Read such a table withveridelta run. A vector stored in the table's folder, where writers store one by default, is copied. deltalake still reads one kind of file itself: the log of a table elsewhere, such as in an object store, which a writer to that store could change between the server's read and deltalake's, so that deltalake reads a sidecar or a vector the server never checked. deltalake reads those only through the table's own store, so they lie on a host the server allows. A copy on this machine would not hold such a log, since deltalake would then read the table's vectors from this machine, not from the store. - A tool that opens a side connects to another machine only when each host the side names is given with
--allow-host, and refuses the side before it connects otherwise. A side names a URL's host, a bucket or a container, a database server, a Snowflake account's host, a Databricks workspace's host, and any host itsstorage_optionsname, such as an endpoint. The same holds for an endpoint, a region, or an account a reader takes from the server's environment, as bullets below say. - A tool reads a host only when it is written in one shape: DNS labels or an IP address in ASCII, with at most a port of digits, as in
minio.internal:9000,https://minio.internal:9000/, ors3://bucket/t. It refuses a location, an endpoint, a bucket, an account, or a workspace with a login, an@anywhere, or a%, a\, a space, a control character, or a letter outside ASCII in its host, since readers split such text in different places. The AWS SDK in PyArrow readshttp://127.0.0.1:9000@minio.internalas127.0.0.1, for one, where a URL parser readsminio.internal. A file that a table's log or metadata names this way is refused, other than an Azure file named as its container, an@, and its account's host, as below. An@after such a file's host, as in a partition folder such asowner=ann@x.com, is part of its path. A databaseurimay hold a login before its host. An Azure location such asabfss://container@account.dfs.core.windows.net/tholds its container where a login goes, so write the container as the host, as inaz://container/t, and the account instorage_options, such asazure_storage_account_name. Give both the container and the account name with--allow-host. Write an Iceberg table in Azure asabfs://container/t, with the account's name alone inadls.account-name, since its FileIO opens noaz://location. Spark and Java Iceberg name the table's files asabfss://container@account.dfs.core.windows.net/..., which the server reads in that container. Such a file must name the account thatadls.account-namenames, at itsdfsorblobhost, and the server refuses a file in any other account. Give its host with--allow-hosttoo, such asaccount.dfs.core.windows.net, beside the container and the account name. Give the table an account key in base64 asadls.account-key, or a SAS token asadls.sas-token, with or without the?before it. A SAS token with a#in it is refused, since PyArrow drops the text after one. The server refuses a table in Azure with neither, since PyArrow would then sign in as the server's machine does, which can run theazcommand. It also refuses an account name other than 3 to 24 lowercase letters and digits, a key that is not base64, andadls.client-id,adls.client-secret, andadls.tenant-id, since PyArrow ends the server's process on a name with a port in it, on a key it cannot decode, and when such a sign-in fails, as with a wrong client secret. - A tool refuses a location on another machine whose path holds a
.or..segment, such ass3://bucket/t/../u. Any spelling counts:%2e, decoded as often as an escape remains, a\as a separator, and a tab or line break inside the segment. A reader sends the path to the store as written, and the store, or a layer before it, can remove the segment with the bucket or container before it. The read would then reach another bucket or container on the same host, with the same credential. The rule holds every scheme with a host, such ass3://,gs://,az://,abfss://,wasbs://,oss://, andhttps://, and each file that a Delta Lake log or Iceberg metadata names there, which the refusal leaves out. A name that holds dots, such as..xor.hidden, passes, and so does an empty segment, as ins3://bucket//t, which removes no other. A path on this machine is resolved as the system resolves it, and a service that picks its own hosts, such ashf://, is not held to the rule. - A tool refuses a bucket or a container with a capital letter, such as
s3://Lake/t, even whenlakeis allowed. The server compares a host with the allowed ones in lowercase, as DNS does. Polars, Delta Lake, and PyIceberg keep a bucket's case, and a bucket named in another case is another bucket. The rule holds the name after every scheme whose host a URL parser keeps in its case, such ass3://orhdfs://, since the server cannot tell which reader takes it as a bucket. It exempts onlyhttp,https,ftp,ws, andwss, whose host a URL parser lowercases. It also holds a bucket or container instorage_options, such asaws_bucket, and each file that a Delta Lake log or Iceberg metadata names, with the container of an Azure file named ascontainer@host. A host afterhttps://, an endpoint, an account name, and the account's host after an@keep any case, since each is a DNS name. Write the bucket or container in lowercase, as S3, Google Cloud Storage, and Azure name them. A legacy S3 bucket inus-east-1whose name holds a capital letter does not open on the server, so read it withveridelta run. For the same reason,--allow-hosttakes a host only in lowercase, and the server does not start with--allow-host LAKE. Writing it in lowercase would allow bucketlake, another bucket, which the operator never named. - Every location with a scheme of two or more characters names a host, other than
file:,fs:,opendal+fs:,hf:,md:, andmotherduck:. That holds for a scheme the server has no list of, such ashdfs:,sftp:, ors3n:, since a reader can know more schemes than the server does. A location with no host, such ashdfs:///tordbfs:/t, is refused, since its reader picks the host from elsewhere. Adbfs:location is refused whatever host it names, since deltalake opens its path on this machine. So is a file whose name has a colon after two or more letters, such asab:c.csv. - A tool refuses a Delta Lake
table_uriin WebHDFS, aswebhdfs://oropendal+webhdfs://in any case, whatever host it names. deltalake's WebHDFS reader does not connect to the URI's host. It connects to the namenode itsopendal.endpointstorage option names, and without one to port 9870 on the server's own machine, over plain HTTP. The namenode then sends each file's read to a datanode, which can be any host. So the server cannot hold the reader to the hosts it allows. Read such a table withveridelta runinstead. - MotherDuck, Hugging Face, and BigQuery with the server's Application Default Credentials need no host. A configuration still chooses the database, the repository, or the billing project there, and a credential it holds reaches that service, such as a MotherDuck or Hugging Face token from a
${NAME}. - A MotherDuck
databasepasses on only the optionsattach_mode,saas_mode, andsession_name, each with a value of letters, digits,_, and-. A tool refuses any other option, since some, such asmotherduck_host, choose the host MotherDuck's extension connects to. Its name, before the?, holds only letters, digits,_,-, and/, and does not start with/, such asmd:salesormd:_share/sales/1a2b. MotherDuck's extension also reads an option after a&or a#in the name, and DuckDB opensmd://xas a file. - A DuckDB
databaseother than MotherDuck's is a file's path, checked under the roots. The file opens as a DuckDB database through no extension, whatever it holds. Afile:URI is refused, since DuckDB opensfile://host/x.duckdbas/host/x.duckdb, outside the path a URI parser reads. So is a path that starts with~and a name, such as~analyst/x.duckdb, since DuckDB reads it as the home folder followed byanalyst, where the check reads that user's home folder. The server resolves the path, with every link followed and every..folded, checks that path, and hands it to DuckDB. DuckDB has nothing left to resolve in it, so it opens the file checked. Adatabasethe system cannot open as written is refused: one with a part that does not exist, one through more links than the system follows, or one with a separator or..after a file. DuckDB also replays the file's write-ahead log as it opens the file, and after a crash during a checkpoint it replays a second log, so the path of each is held to the roots too, after links are followed. Each is the resolved path with.wal,.wal.checkpoint, or.wal.recoveryput before the first?, or at the end when the path holds none. So a link has its logs beside the file the link leads to,L?/x.duckdbhas its log atL.wal?/x.duckdb, in another folder, and a?in the working directory moves the logs of a relative path. - DuckDB opens a file's path again after the server checks it, so a tool opens the file and its logs only by a path with no link in it. It refuses a log that is a link, even one inside a root. The server opens one DuckDB file at a time. On Linux and macOS, it confirms that a descriptor DuckDB opened just then names the file it checked, and on every system that each log is as it was. Otherwise it closes the connection before any statement runs. A descriptor that another tool call already holds never counts, even one of the same file through a hard link. A server that cannot read its list of open files, such as on Linux without
/procmounted, opens no DuckDB file. On macOS, the server must be allowed to list each folder on the file's path, not only to pass through it. - A tool call that waits more than 60 seconds for another call's DuckDB file to open fails. A file that never finishes opening, such as a pipe an agent puts in its place after the check, makes every later DuckDB read fail that way until the server restarts.
- Three swaps remain unseen. A log put beside the file and removed again while DuckDB opens it replays, and so does a log reached through a folder swapped for a link and back in that time, such as
L.wal?besideL?. A file swapped in and back while DuckDB opens it passes when, at that moment, a query in another tool call opens the checked file, such as through a hard link, or through the file's own folder after it is renamed. On Windows, which lists no descriptors, a link swapped in and back while DuckDB opens the file passes. A hard link inside a root to a file elsewhere is that file to every check, so keep a root free of hard links you did not make. - Two tool calls cannot read a DuckDB file by one path at the same time: the second fails. Run it again once the first ends.
- A query on a DuckDB file that needs more memory than the machine gives it spills to disk. On Linux and macOS, a tool spills into a folder the server creates in the system's temporary folder as the call opens its first DuckDB file, never beside the file, and removes it when the call ends. Set
TMPDIRto move it. Keep that folder out of the roots, since an agent that can write under a root could put a link in it. On Windows, such a query fails instead, as a bullet below says. - A DuckDB
databasesuch assqlite:x.dborpostgres_scanner:host=db, with two or more letters, digits, or underscores before its first colon and no//after it, is refused. DuckDB would open it through an extension, which loads before the sandbox applies and reads a file or a host the check does not see. The command line refuses it too. - A tool passes on only the
storage_optionskeys it can check: credentials, a region, an endpoint, a bucket, and an account name. It refuses any other key, such as a service host, a proxy, a key file, or an emulator switch, since a reader can take one as a place to connect. That includesaws_allow_http. A tool also refuses an endpoint written with a scheme unless it starts withhttps://in lowercase, since Polars and PyIceberg take the scheme from the endpoint and would send the credentials and the rows unencrypted. That refuseshttp://minio.internal:9000andhttp:minio.internalin any case, andHTTPS://minio.internal:9000, which the AWS SDK in PyArrow reads as a host name. This holds for every host,localhostand127.0.0.1too, and for an endpoint a reader takes from the server's environment, so a file, a Delta Lake table, or an Iceberg table at an endpoint that serves plain HTTP, as a local MinIO often does, fails on the server. Serve the store over HTTPS, or read the data under a root. An endpoint with no scheme, such asminio.internal:9000, passes: PyIceberg then reaches it over HTTPS, and Polars and Delta Lake fail before they connect. A bucket or a container namedhttps, with no:, is a name and passes too. A tool also refuses an endpoint with anything after its host and port but a single/. That covers a path in any spelling, such ashttps://minio.internal/otherorminio.internal:9000/other, a query, and a fragment. Polars, Delta Lake, and PyIceberg put an endpoint's path before the bucket or the container. Sohttps://minio.internal/otherwiths3://lake/twould read bucketotherwith the same credential, though onlylakewas allowed. A store served under a path, such as one behind a reverse proxy or an Azurite emulator with its account in the path, is refused too. Serve the store at its host's root, or read it withveridelta run. The rule covers endpoints only: a file whosepathis anhttp://URL is still read over plain HTTP, so its rows travel unencrypted. - Polars and Delta Lake take an endpoint from the server's environment when the configuration names none, and BigQuery, MotherDuck, and PyArrow's Google Cloud Storage reader for Iceberg do too. These are
AWS_ENDPOINT,AWS_ENDPOINT_URL,AWS_ENDPOINT_URL_S3,AZURE_ENDPOINT,AZURE_STORAGE_ENDPOINT,AZURE_AUTHORITY_HOST,AZURE_STORAGE_AUTHORITY_HOST,GOOGLE_BASE_URL,CLOUD_STORAGE_EMULATOR_ENDPOINT,CLOUD_STORAGE_TESTBENCH_ENDPOINT, andBIGQUERY_EMULATOR_HOST, in any case. Delta Lake reads every variable with no prefix as an S3 setting, soENDPOINTandENDPOINT_URLcount too, and itsopendal+s3://store readsAWS_S3_ENDPOINT. No other reader takes these three, so a tool checks them on a Delta Lake side only. Polars also reads theendpoint_urlof the AWS profile the environment selects, when boto3 is installed, even withAWS_IGNORE_CONFIGURED_ENDPOINT_URLSset. Delta Lake reads thegcs_base_urlof the Google service account key thatGOOGLE_SERVICE_ACCOUNTorGOOGLE_SERVICE_ACCOUNT_PATHnames, or thatGOOGLE_SERVICE_ACCOUNT_KEYholds. It reads it even from a key file with a byte outside UTF-8 in a field it ignores, and so does the check. Polars reads it too, on a side withskip_signature, and also from the key thatSERVICE_ACCOUNTnames, with no prefix. Delta Lake's Unity Catalog reader, at auc://table, takes its workspace fromDATABRICKS_HOST,DATABRICKS_WORKSPACE_URL, orUNITY_WORKSPACE_URL. It sends the environment's token there, and the workspace's answer names where the table's files lie. A tool refuses such a key file when it is not a regular file, such as a named pipe, since the server cannot read one without taking its text from the reader. At each call, a tool holds each one that applies to the side's store to the three rules above, on this machine too, and refuses the side otherwise. Its host must be given with--allow-host, it may hold nothing after its host and port but a single/, and a scheme must behttps://. PyArrow reaches aCLOUD_STORAGE_*value with no scheme over plain HTTP, so such a value must start withhttps://. An Iceberg table is checked for every object store, even with its metadata on this machine, since the metadata names the files a scan opens. So is a location whose store the server cannot tell from its scheme, such asopendal+s3://, and auc://table, whose files lie in an object store too. A file at anhttp://orhttps://location is checked for none, even at an S3 or Azure host. Polars reads it with its own HTTP client, at the host the location names, and takes no endpoint from the environment. The refusal names the variable, never its value. On an Azure side, a tool refusesAZURE_STORAGE_USE_EMULATORoutright, since it sends a reader to Azurite over plain HTTP and replaces a configured endpoint. A tool also refuses a switch that turns off Delta Lake's check of an endpoint's certificate, on a side of its store. These areAWS_ALLOW_INVALID_CERTIFICATESon S3,AZURE_ALLOW_INVALID_CERTIFICATESon Azure,GOOGLE_ALLOW_INVALID_CERTIFICATESon Google Cloud Storage, andALLOW_INVALID_CERTIFICATESon a Delta Lake side in S3. With one on, a proxy or anyone else on the route could read the credentials and the rows, even over HTTPS. On a MotherDuck side, it refuses amotherduck_*setting other than the token,attach_mode,saas_mode, andsession_name, since some choose the host the extension connects to. On a Delta Lake side at anhdfs://orviewfs://location, a tool refusesHADOOP_CONF_DIRandHADOOP_HOME, even when empty. Delta Lake's HDFS reader readshdfs-site.xmlandcore-site.xmlfrom the folder either names, and from the working folder when one is empty. Either file can send the reader to a namenode at any address, which no--allow-hostnames. The check applies even when the configuration names its own endpoint. To read such a store, serve it over HTTPS at its host's root and give the host with--allow-host, or leave the variable out of theenvthe MCP host starts the server with. LocalStack serveshttps://localhost.localstack.cloud:4566, for one. A store that serves only plain HTTP needsveridelta run. - A reader also writes a region, an Azure account, or a Google universe from the server's environment into the host it connects to, as in
s3.us-east-1.amazonaws.com,acct.blob.core.windows.net, orstorage.googleapis.com. A value such asx@127.0.0.1:9000/would move the request, with the configuration's credentials, to another machine. So at each call, on an S3 side, a tool holdsAWS_REGION,AWS_DEFAULT_REGION, and theregionof the AWS profile Polars reads to letters, digits, and hyphens, as it holds a region storage option. On a Delta Lake side in S3, it holdsREGIONandDEFAULT_REGIONalike, since Delta Lake reads every variable with no prefix. On an Azure side,AZURE_STORAGE_ACCOUNT_NAMEmust be given with--allow-host, asazure_storage_account_namemust. On a Google Cloud Storage side,storage.followed byGOOGLE_CLOUD_UNIVERSE_DOMAINmust be given with--allow-host, since PyArrow's reader for Iceberg sends its bearer token to that host. On a BigQuery side,bigquery.followed by the universe must be, since the BigQuery client sends each query and its bearer token there. Each name counts in any case, and the refusal names the variable, never its value. - On an S3 side, a tool refuses
AWS_CSM_ENABLEDturned on, and an AWS config file withcsm_enabledin any profile. Either turns on the AWS SDK's client-side monitoring in PyArrow's reader for Iceberg. That reader then sends each request's access key id and session token in clear, over UDP, to a host no--allow-hostnames. The config file is the oneAWS_CONFIG_FILEnames, or~/.aws/config, and a tool refuses it when it is neither a regular file nor the null device. With boto3 installed, a tool also refuses an S3 side when botocore reads itsendpoints.jsonfrom a folder other than its own.AWS_DATA_PATH, a profile'sdata_path, and~/.aws/modelsname such folders. Polars takes an S3 host from that file, so it could send the side's signed requests to a host no--allow-hostnames. - A tool refuses a BigQuery side's
credentials_path, since a key file names the host its sign-in goes to. Give the server credentials through its environment instead, such asGOOGLE_APPLICATION_CREDENTIALS. The server does not read the key file that variable names, so it does not mask the key's fields. - Snowflake's driver opens a side's
private_key_pathon this machine before it connects, so a tool holds the key file to the roots as it holds a data path. It expands a leading~and reads a relative path from the working directory, as the driver does. The driver drops a leading./before it expands~, so./~/k.pemis the key in the home folder, and the tool reads it that way too. It refuses the side before it connects when the key file lies outside every root, or on Windows on another machine. The message names the setting and not the path. Keep the key file under a root, or ask the person who started the server to add its folder with--root. - A tool refuses a database
uriwith an@outside its login, a#, or a\, a space, or a control character before its database, since a driver can read its host from a different place than the check does. - A tool refuses a database
urithat ConnectorX reads as BigQuery, such asbigquery:///sa.json. Its path names a key file on this machine, and the key file names the host its sign-in goes to. Use a source oftype: bigqueryinstead. - A tool refuses a
redshift-iam://databaseuri, which signs in through AWS at hosts its options choose. Write it asredshift://with a user and a password. - A tool refuses a database
uriparameter that names a TLS file on this machine, which the server does not check:sslcert,sslkey, andsslrootcertfor Postgres,ssl-cafor MySQL, andtrust_server_certificate_cafor SQL Server. - A tool refuses an Oracle
uriwithalias, which looks its host up in a file on this machine. ConnectorX writes an Oracle path into the connect string, so a tool passes on only a service name, with at most a server type and an instance, as in/salesor/sales:dedicated/sales1, and refuses any other path, such as/sales,other:1521/x. - ConnectorX decodes a whole
trino://uri before it finds the host, so the check reads that uri decoded, with thepasswordfield in it. A tool refuses a Trinouriwhose decoded user or password holds a character such as@,/,#, or a space. - The check covers the hosts the configuration names, and the host of each file a Delta or Iceberg table's log or metadata names. A host that an allowed host redirects a request to is not checked. Allow only hosts you trust.
- A configuration sends its credentials, a
${NAME}from the server's environment included, to the hosts it names. A host on this machine or its network could also answer with what the agent should not reach. That is why no host is allowed by default, so allow only hosts you trust. A host cannot hold a${NAME}value. The refusal names the setting. - A reader also reaches sign-in and metadata endpoints that the server does not check:
AWS_ENDPOINT_URL_STS,AWS_METADATA_ENDPOINT,AWS_EC2_METADATA_SERVICE_ENDPOINT,AWS_CONTAINER_CREDENTIALS_FULL_URI,AWS_CONTAINER_CREDENTIALS_RELATIVE_URI,IDENTITY_ENDPOINT,MSI_ENDPOINT,AZURE_MSI_ENDPOINT,AZURE_FABRIC_TOKEN_SERVICE_URL,GCE_METADATA_HOST,GCE_METADATA_IP, andGCE_METADATA_ROOT. A reader sends them only the environment's own credentials, and a configuration'sazure_client_idto Azure's managed identity endpoint when only a client id is given. The platform sets them to plain-HTTP link-local addresses, so the person who starts the server answers for them, not the server. HTTP_PROXY,HTTPS_PROXY,ALL_PROXY, andNO_PROXYstay in effect on the server. So doAWS_PROXY_URL,AZURE_PROXY_URL,GOOGLE_PROXY_URL, and, on S3,PROXY_URL, which Delta Lake reads as a proxy for its store. Polars, Delta Lake, and PyArrow's Azure and Google Cloud Storage file systems tunnel an HTTPS request through a proxy withCONNECT host:port. They keep TLS end to end, so a proxy changes the route, not the host. PyArrow's S3 file system ignoresHTTPS_PROXY. Every endpoint must use HTTPS, so a proxy never reads an endpoint's request. A file at anhttp://location still goes throughHTTP_PROXYin clear, so the proxy reads it and can answer it, as it can any such request. A TLS-intercepting proxy sees every request when the machine trusts its certificate authority. The same holds when Delta Lake trusts it through a setting such asAWS_PROXY_CA_CERTIFICATE. A proxy's own credentials go to the proxy.- A run writes the rows that differ to the configuration's
output_path, sorun_comparisonandread_discrepanciesrefuse one outside every root before they read a row. Each file the run writes replaces a link already at its name instead of following it, so a link in that folder cannot lead a write outside the roots. - A side's
queryruns as written, with the configuration's credentials, so a tool that would run one refuses unless the server is started with--allow-queries. Even then, on Linux and macOS, a DuckDB file's connection reads other files, attaches databases, and loads extensions only from under the roots, after DuckDB follows the links in a file's path. Before it refuses a path outside the roots, DuckDB reads each link in it, which reaches no other machine unless the system mounts one when the path is looked up, as an automounter can under/net. On Windows, DuckDB's own check of the roots lets some paths out, such as a drive-relative path with a lowercase letter,c:..\x.csv. It also resolves a share path, which reaches the machine the path names, before it refuses it. So on Windows, a DuckDB file's connection opens no other file at all. Aquery, or a view stored in the file, that reads a file or attaches a database fails with aPermission Error. So does one that needs more memory than DuckDB has, which DuckDB would write to disk, and so does a comparison in place that does. Read such a file as a side of its own. On every system, DuckDB's persistent secrets are off, so the connection neither reads a secret stored in the home folder nor stores or drops one. A MotherDuck connection is not held to the roots. - A tool returns findings, counts, and column names. It never returns the configuration, and it returns a value from the data only on a server started with
--allow-row-values. A password inside an error is masked, as on the command line. - On the server, a
${NAME}may stand only as the whole value of a credential setting. These are thepassword,private_key_passphrase,access_token, andmotherduck_tokenfields, and the storage options that hold a secret key, a token, or an account key. A secret key or a token, in a storage option,access_token, ormotherduck_token, must be letters, digits,+,/,=,.,_,~, and-, since a service can repeat a value it rejects in another form: S3 writes a session token back XML-escaped and trimmed. An account key must be base64 as an encoder writes it, since the reader's error for any other names a character of it. An access key id, a client id, a tenant id, and the Snowflakeusermay be one too, as a login name of letters, digits,.,_,@, and-that starts with a letter or a digit. An Azure SAS token must keep its shape:name=valueparameters joined by&. A databaseuritakes one as its whole user or its whole password, of letters, digits,.,_,~, and-. A SQLite side takes none inpassword, since SQLite has no password and the driver reads it into the file's path. Apasswordorprivate_key_passphrasetakes any text in UTF-8 of 4 or more characters, since no reader repeats one. A ClickHouse side is the exception: itspasswordtakes only letters, digits, and! $ % & ' ( ) * + , . _ ~ -, as Connection string says, and the refusal names those characters. A database side takes a${NAME}at all, inpasswordor as itsuriuser or password, only when ConnectorX reads itsurias PostgreSQL, Redshift, MySQL, SQL Server, Oracle, or ClickHouse. A test drives each of those readers with a wrong password of every kind of character it takes, and no run of 4 characters of it comes back. ClickHouse is also driven with a password of every kind of character, which Veridelta refuses before it connects. The test also drives ClickHouse against a service that writes its whole request back, and the password comes back masked. A Trino side takes no${NAME}, neither a user nor a password. Its reader sends both as base64, which the mask does not match, and repeats a service's whole refusal. - A
uriuser from a${NAME}holds at most 32 characters. A database can cut a longer user name before it writes the name into an error, and the mask matches only a whole value. No supported database cuts a name of 32 characters or fewer: MySQL keeps 32 characters, PostgreSQL 63 bytes, Redshift 127 bytes, and SQL Server and Oracle 128. Write a longer user in the file, or put a token in the side'spasswordsetting. - A value of 1 to 3 characters is refused in every credential setting, since the server could not mask it. That covers a login name, such as a Snowflake
user, an access key id, a client id, or a tenant id, auriuser, and a SAS token. A service can repeat a login in an error: PostgreSQL writespassword authentication failed for user "sa", and Veridelta's own database error names theuriuser. So write a login this short in the file, as inmssql://sa:${SA_PASSWORD}@db.internal/sales, since it is no secret. A SAS token is refused too when itssig, decoded, holds fewer than 4 characters. An empty value passes in every setting, since it holds nothing to mask. A value with a byte outside UTF-8 is refused in every setting, since a driver cannot send it as text, and a reader could repeat it in a form no mask matches. - A tool refuses a
${NAME}anywhere else, or with other text around it, before it reads any data. That covers apath, atable_uri, a host, a reader option, and aquery. The refusal names the setting and the variable. A reader can repeat a setting's value encoded, cut, or joined to other text, in forms no mask matches. Write such a value in the file, or run the configuration withveridelta run. - The server masks every value of 4 or more characters that it has expanded since it started, in every answer, in any case. It masks each value as written, percent-encoded, and form-encoded, with
~as%7E, as object_store writes an OAuth request's body. It also masks a value with some characters percent-encoded and the rest as written, in any mix, since an encoder can keep a+and encode a/or a=. It also masks each value as its bytes in hex, as S3 writes a request it could not verify. It masks only a whole value in one of these forms, never a part, such as the head of a name a database cut. The one exception is a SAS token'ssig, which it masks on its own, as written, decoded, and encoded, since Azure writes the token's parameters back in another order. A reader masks its side's password in a driver's message too, as on the command line. The server's mask runs before it, so a password of one letter written in the file cannot cut an expanded value into pieces. It does not match a value with its quotes doubled, its backslashes escaped, or written as JSON or base64, since no reader that takes a password from the environment writes one so. - The server also masks the credentials its readers take from its environment with no
${NAME}in the configuration. These are the AWS keys and tokens, and the Azure account keys, SAS tokens, tokens, client ids, client secrets, and tenant ids. They also includeGOOGLE_SERVICE_ACCOUNT_KEY,GOOGLE_BEARER_TOKEN,MSI_SECRET,IDENTITY_HEADER,HF_TOKEN, andMOTHERDUCK_TOKEN. The server masks the keys and tokens that deltalake's OpenDAL stores read for Alibaba Cloud OSS, Tencent Cloud COS, Huawei Cloud OBS, and Azure too. Examples areOSS_ACCESS_KEY_ID,OSS_SESSION_TOKEN,TENCENTCLOUD_SECRET_KEY,HUAWEI_CLOUD_SECURITY_TOKEN,AZBLOB_ACCOUNT_KEY, andSYSTEM_ACCESSTOKEN. No configuration reaches those stores on the server yet, since each needs anopendal.storage option, which the server refuses. It also masks the tokens, client ids, and client secrets that deltalake's Unity Catalog reader reads for auc://table. Examples areDATABRICKS_TOKEN,UNITY_ACCESS_TOKEN, andDATABRICKS_CLIENT_SECRET. The server reads each such variable once, as it starts, in the shapes a${NAME}in the same setting needs. It does not start when one lacks its shape, and the error names the variable. It finds a variable under each name a reader takes it by: afterAWS_,AZURE_,GOOGLE_,UNITY_, orDATABRICKS_, a name in any case counts, such asAZURE_Client_SecretorDATABRICKS_Token. It reads the token files thatAWS_WEB_IDENTITY_TOKEN_FILE,AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE,AZURE_FEDERATED_TOKEN_FILE,ALIBABA_CLOUD_OIDC_TOKEN_FILE,TENCENTCLOUD_WEB_IDENTITY_TOKEN_FILE, andTKE_IDENTITY_TOKEN_FILEname at each call, since such a file rotates, and masks the token each file holds then, not one it held before. It reads only a regular file. A named pipe, such as one<(get-token)makes, is never read, since a pipe with no writer would hold the server and a pipe gives its token only to the first process that reads it, which must be the reader. - The server also masks the login of each URL in its environment, in any variable, such as
AWS_ENDPOINT_URL,HTTPS_PROXY, orPIP_INDEX_URL. Polars and Delta Lake write an endpoint back whole in an error. requests and botocore write a URL they cannot parse or reach back whole, or its authority up to the first/,?,#, or\. So the server masks the login with the host after it, the login with its@, and the password alone, as written and decoded. It also masks the Basic credential a proxy receives. Such an error showshttps://***/bucket/a.parquet. A URL that starts with//, as in//user:pass@proxy:3128, counts too, since botocore and requests read it ashttp:and the value. A proxy written with no scheme, as inuser:pass@proxy:3128, counts in a variable whose name ends in_proxy, in any case. A variable whose name starts withAWS_ENDPOINT, in any case, such asAWS_ENDPOINT_URL_STS, holds one endpoint. Its login counts after the quotes and whitespace around it, an optional scheme with its:, and any/or\. So"//user:pass@sts.internal",https:user:pass@sts.internal, anduser:pass@sts.internalcount, which botocore writes back whole as an invalid endpoint. In the last, the user reads as a scheme, so the server maskspass@sts.internal, and the user comes back as written. It does not mask the user alone, which no reader writes on its own. A URL's host ends at whitespace, a,, or a|too, which join the entries of aGOPROXYlist.GOOGLE_SERVICE_ACCOUNT_KEYis not read for URLs, since the server reads its JSON as a key. - The server does not start when a URL in its environment holds an
@after a/,?,#, or\, as inhttps://user:pa/ss@minio.internal. A base64 password can hold such a/. A client cuts the login at that character and writes back the user and the head of the password, which no mask matches. botocore does so for a proxy, and for an endpoint it reads as Polars signs in, such asAWS_ENDPOINT_URL_STS. The server cannot tell which variables a reader reads, so the rule holds in any variable. It cannot tell such a login from an@in a URL's path or query either, as inhttps://cdn.example/npm/pkg@3, so it refuses that too. In a variable that is no proxy or endpoint, a URL's login starts after a://, whatever comes before it, such as a quote, or after a//that starts the value. There, a scheme after whitespace, a,, or a|starts another URL, as in aGOPROXYlist. After the first/,?,#, or\past its://, such a URL ends at whitespace, so an email in the text after it counts for nothing. A proxy or an endpoint variable holds one URL, which runs to the end of the value. Sohttp://user:pa/ss word@sts.internalis refused there. An endpoint's login starts as the bullet above says. A proxy written with no scheme counts its first character as the start of its login, so a://in its password is such a/, as inuser:pa://ss@proxy:3128. A proxy in quotes counts from its quote too, so a quoted proxy with a login is refused. Docker's--env-filekeeps such quotes, as inHTTPS_PROXY="http://user:pass@proxy:3128", so remove them. A quoted proxy with no login starts. Percent-encode those characters and@in a URL's user and password, as inpa%2Fss, and an@in its path as%40. Or leave the variable out of theenvthe host starts the server with. - The server does not start either when it would mask a URL login in its environment in a form that holds
://or?, starts with/, or ends with:or:/. A password does so once decoded inpa%3A%2F%2Fss,tps:,%2F%2Fstore, or%3Fsv%3D. So does a password that holdssig=%253Fsv%253D, since the server masks asigon its own, as written, decoded, and encoded. A host does so when it runs into another URL's scheme, as inhttps://user:pass@host;https://next.example. The mask runs before the server finds each URL by its://and its query by its?. Such a mask could hide part of either next to a URL in an answer, which would then keep its query. Choose another password, end the host with a/, or leave the variable out. - The server never sees a credential a reader finds on its own. That covers a profile or a credentials file, SSO,
credential_process, an instance or container role, managed identity, theazCLI, and the key fileGOOGLE_APPLICATION_CREDENTIALSnames. So the server blanks the elements of an S3 error that repeat a credential, whatever they hold:Token-n,AWSAccessKeyId,CanonicalRequest,StringToSign, andSignatureProvided. Any other echo of such a credential comes back as written with--allow-row-values. Data whose cells hold such an element loses the element's content too. - After that masking, a URL in a failed call's message or in a finding comes back without its query, even with quotes in its path. A URL that starts inside a masked value keeps its query. A reader can quote a URL it signed, such as each request PyArrow signs with an Azure SAS token, and the Azure SDK writes the token's parameters back in another order than the variable holds them. So the
sigparameter of a SAS token from a variable is masked on its own too, as written, decoded, and encoded. - Masking hides text, not effects. Whether a service accepts a credential, and how long a call takes, can still tell an agent something about a value. So can the mask itself. A configuration can put any variable in a credential setting, and an answer then masks each text equal to its value, such as a column name. The same holds for each credential a reader takes from the server's environment. So the mask confirms a guess of a whole value, which lets an agent test guesses at a short or common value. Other than a SAS token's
sig, it masks no part of a value, so a guess at a part, such as its first characters, comes back as written and confirms nothing. It masks a whole value inside other words too, for as long as the server runs: auriuserpostgresturnspostgresql://into***ql://. A placeholder credential in the environment does the same:AWS_ACCESS_KEY_ID=testmasks everytest. A URL login's password of 4 or more characters is masked everywhere too, so a passwordpasshides everypass. A user of a URL login comes back where a reader writes it alone, and a login with its host shorter than 4 characters is not masked. A refusal of a value's shape says whether the value has that shape, such as base64 or 1 to 3 characters, but never quotes it. - With
--allow-row-values,read_discrepanciesreturns at most--max-rowsrows per call, 50 by default.propose_value_mapsreturns at most that many value map entries, counting the entries a column's rule already has, and a proposal comes back whole or not at all.suggest_rulesreturns at most that many example keys, and a suggestion comes back whole or not at all. - With
schemas, a check reads each side's columns asveridelta validate --schemasdoes, and without it a check opens no data.describe_schemareads one side's columns the same way. For a warehouse table, it runs the schema probe a run starts with. - A host may start the server with only some of the user's environment variables. A
${NAME}that the configuration references must reach the server, through the host'senvsetting for it if need be, or the check reports it unset.allow_missing_envchecks a file without them, and still refuses a${NAME}outside a credential setting.
A call that fails returns its error's type and message, as run --json prints them, such as ConfigError for a path outside the roots. Polars, a file reader, or a database driver can quote a value from the data in its message. On a server started without --allow-row-values, the call leaves out such a message and returns the error's type and a hint. validate_config leaves such a message out of a finding the same way, since reading a JSON file's columns parses the whole file. The same holds for a Delta Lake or Iceberg table that cannot be listed or opened, since deltalake or PyIceberg can quote a file it opened, such as a JSON file named as the table's metadata. A refusal of a file that a table's log or metadata names, outside the roots, quotes that file's path only on a server started with --allow-row-values, since the path is a value from the table, such as a partition's value in a folder name. veridelta run and veridelta validate print the whole message. A message Veridelta writes names columns and counts, and the call returns it on any server. Serving tools to an agent lists the command's flags.
Where row values appear
The summary holds counts and column names only. These outputs hold values from the data:
- the discrepancy files a run writes to
output_path; - the HTML report;
- a Markdown summary with
--markdown-max-rowsabove zero; - the proposals
veridelta crosswalkprints; - the example keys
veridelta suggestprints; - what
read_discrepancies,propose_value_maps, andsuggest_rulesreturn, on an MCP server started with--allow-row-values; - the message of an error that Polars, a file reader, a Delta Lake or Iceberg reader, or a database driver raises, which
veridelta runandveridelta validateprint and an MCP server returns only when started with--allow-row-values; - the path of a file that a Delta Lake or Iceberg table's log or metadata names, which an MCP server quotes in a refusal only when started with
--allow-row-values.
A pair compared in place, such as two warehouse tables, brings back counts and primary keys only, unless it fetches a row sample.
Writing a configuration
veridelta schema prints the JSON Schema of the configuration file. Check a draft against it, then run veridelta validate.
Checking the output
veridelta schema run prints the JSON Schema of what veridelta run --json prints. veridelta schema validate, crosswalk, suggest, baseline, and error print the others. The docs site serves the same files; see Printing the schema. A script or an agent can check what it parses against them.
On a pull request, the comment the GitHub Action keeps ends with the run's summary as JSON, in an HTML comment that readers never see. It holds counts and the column names the comment shows, never a value, and Markdown summary shows how to parse it.
Fixing drift in a loop
An agent that changes a pipeline can check its own work against the data the pipeline produced before, and keep fixing until the two match:
- Change the pipeline. Push the change to the pull request, or run the pipeline locally.
- Let the comparison run: the GitHub Action on the pull request, or
veridelta run --jsonlocally. - Read the result and its exit code. On the pull request, parse the JSON at the end of the Action's comment, as Markdown summary shows. Locally, read what
run --jsonprints. Both holdadded_count,removed_count, andchanged_count.column_mismatchesholds every drifting column inrun --json, and in the comment the ones its table lists. - Find the cause in the change, not in the data. The columns that drift, and how many rows each one changes, point to the code that writes them. With the MCP server started with
--allow-row-values,read_discrepanciesreturns the rows that differ. - Fix the change, and go back to step 1.
Stop when the run matches, and report the counts. Stop too when the drift that remains is what the user asked for, such as a new rounding, and say which columns it is in. Never add a rule, or raise threshold, to make a run pass unless the user agrees: a rule changes what counts as a match, for every later run too. When the user accepts the drift that remains, veridelta run --save-baseline accepted.json records it, and later runs pass --baseline accepted.json, so they fail only on new drift; see Accepting drift.
Docs for language models
The site publishes two plain-text files for language models, as the llms.txt proposal describes:
llms.txtlinks every page, each with its opening sentence.llms-full.txtholds every page of prose in one file, this one included.
Agent skill
The steps above are also an agent skill, in skills/veridelta/SKILL.md. An agent that follows the Agent Skills standard loads it from a skills folder in the project. This installs it where Claude Code reads skills; for another agent, use the folder its documentation names:
mkdir -p .claude/skills/veridelta
curl -fsSL -o .claude/skills/veridelta/SKILL.md https://raw.githubusercontent.com/Veridelta/veridelta/main/skills/veridelta/SKILL.md
To pin the skill to a release, put the release's tag in place of main.