Skip to content

Audit a repository

Run xpd audit to combine xpd check, static ledger workflows, --since regression counts, and recorded ledger debt into one read-only report without executing project code.

Target pathsxpd check (read-only)Static ledger surveys(default 4 or all 10)Optional --since commitNew and resolved deltasExisting Duroxide store(read-only)Accepted debt and openfixesText summary or JSONschema v1

Without --workflows, xpd audit runs xpd check together with the four general-purpose static workflows (untangle, harden, optimize, and discover). Terminal runs print a summary table, and piped runs print versioned JSON (schema_version: 1).

Terminal window
xpd audit src/
xpd audit src/ --format json

Pass --workflows all to audit all ten registered static workflows, or pass a comma-separated subset.

Terminal window
xpd audit src/ --workflows all --format json
xpd audit src/ --workflows untangle,harden,data-prep
Flag Purpose
--since <commit> Compare current issues and workflow findings against an earlier Git commit
--workflows <list> Select specific workflows or all (default is untangle,harden,optimize,discover)
--fail-on-regression Exit 1 when --since finds net new issues or findings, or when check reports errors
--format text or --format json Select human summary text or machine-readable JSON

Use --since with --fail-on-regression in CI or local pre-push checks to block newly introduced issues while leaving pre-existing technical debt visible without breaking builds.

Terminal window
xpd audit src/ --since origin/main --fail-on-regression

xpd audit checks out the baseline commit once into a temporary index, compares linter issue multisets and stable workflow finding IDs, and reports both new and resolved counts.

When a worktree already holds recorded ledger runs in its Duroxide store, xpd audit reads each workflow's latest snapshot without creating or modifying the database. Each audited workflow entry includes its ledger status (running, completed, or failed), accepted findings count, accepted checklist exceptions, and open fixes.

See xpd audit for the full flag list and exit status.