COLDWORKS / docs / cli DESIGN PREVIEW · COLDWORKS-AUDIT HAS NOT SHIPPED Registry
REFERENCE · DESIGN PREVIEW

The audit CLI

One command with one job: read a trace export on your disk, write an audit report next to it. This page documents the designed interface — it is the contract the build is held to, published before the build so you can hold it to the contract too.

coldworks-audit run

SIGNATURE
coldworks-audit run <PATH> [--docs DIR] [--diff] [--sample] [--open] [--format NAME]

Audits the export at PATH — a file, or a directory whose newest exports are audited together with span-level dedup across overlapping files.

ArgumentWhat it doesStatus
PATHThe export file or directory. Format is detected (Langfuse, LangSmith, OTel GenAI); override with --format. DESIGNED
--docs DIRAnchor recovered judgments to lines in your own documents. Files are hashed and matched locally; anchors carry the provenance line "matched by trial, not by export-carried reference." Multi-document traces are counted unanchorable with their own reason code. DESIGNED
--diffReport what changed since the last run: new repeated judgments, from the local ledger. DESIGNED
--sampleRun on the bundled sample export and documents — a full report with nothing of yours involved, labeled as sample data on every screen. DESIGNED
--openOpen the HTML report when the run finishes. DESIGNED
--from langfuseSkip the manual export: page the Langfuse observations API with LANGFUSE_PUBLIC_KEY / LANGFUSE_SECRET_KEY from your environment, incremental via --since. Your credential, your machine. PLANNED · AFTER FILE PATH

What the headline counts

Files it reads and writes

FileDirectionWhat it is
<PATH>readsYour export. Never modified, never transmitted.
--docs directoryreadsYour documents. Hashed locally for anchoring.
./coldworks-audit.htmlwritesThe report. Self-contained, built to be forwarded — by you.
./.coldworks/audit/ledger.jsonlappendsDerived figures per run, append-only. What --diff reads. Delete it any time; you lose history, nothing else.
Network calls made by run: zero. The one planned exception is --from langfuse, which calls Langfuse — your trace store — with your key, from your machine. Nothing calls Coldworks.

Exit codes

CodeMeaning
0Audit completed — including an honest zero with a field census.
1The export could not be parsed at all; the error names the first unreadable record.
2Usage error; help printed.