/dossier:audit [--round <n>] [--passes A,B,C] [--path <package-root>] [--external]from dossier
Runs three independent verification passes (evidence, falsification, audience) over a documentation package, collecting findings tables verbatim without merging or judging.
Ships in dossier. Installing the plugin adds it to Claude Code.
Three independent passes, three isolated contexts, three findings tables collected verbatim.
engagement-scoping — resolve the package root and the scope each pass receivesdoc-package-contract — structural precheck before spending any pass budgetThis command must not merge findings, adjudicate disagreements, judge severity, repair anything, or compute a gate verdict. Those belong to /dossier:reconcile and /dossier:gate.
The separation is structural, not stylistic. An orchestrator that merged findings would need the reconciliation logic in its context, and anything in this context is one dispatch away from a verifier's.
_RAW="$ARGUMENTS"
printf '%s\n' "### Audit Arguments"
printf '%s\n' "ARGS=$_RAW"
__dr="${CLAUDE_PLUGIN_ROOT:-}"
[ -x "$__dr/bin/dossier-package-check.sh" ] || __dr=$({ printf '%s\n' plugins/dossier; ls -d "$HOME"/.claude/plugins/cache/synapti-marketplace/dossier/*/ 2>/dev/null | sort -Vr; printf '%s\n' "$HOME/.claude/plugins/marketplaces/synapti-marketplace/plugins/dossier"; } | while read -r __p; do [ -x "${__p%/}/bin/dossier-package-check.sh" ] && { printf '%s\n' "${__p%/}"; break; }; done)
printf '%s\n' "### Preflight"
if [ ! -x "$__dr/bin/dossier-package-check.sh" ]; then
printf '%s\n' "AUDIT_STATE=blocked"
printf '%s\n' "AUDIT_ERROR=dossier plugin scripts not found — reinstall or upgrade the plugin"
true; exit 0
fi
OUTPUT_ROOT=$("$__dr/bin/dossier-resolve-config.sh" --default "docs/dossier" dossier.project.outputRoot 2>/dev/null)
printf '%s\n' "OUTPUT_ROOT=$OUTPUT_ROOT"
printf '%s\n' "PACKAGE_EXISTS=$([ -d "$OUTPUT_ROOT/00-control" ] && printf '%s\n' true || printf '%s\n' false)"
printf '%s\n' "PINNED_VERSION=$("$__dr/bin/dossier-resolve-config.sh" --default auto dossier.project.versionOrCommit 2>/dev/null)"
printf '%s\n' "PASS_MODELS=$("$__dr/bin/dossier-resolve-config.sh" --compact --default '{}' dossier.verification.passModels 2>/dev/null)"
printf '%s\n' "TRACE_COUNT=$("$__dr/bin/dossier-resolve-config.sh" --default 10 dossier.verification.traceCount 2>/dev/null)"
printf '%s\n' "### Structural precheck"
"$__dr/bin/dossier-package-check.sh" --output-root "$OUTPUT_ROOT" 2>&1 | head -20 || true
printf '%s\n' "### Prior rounds"
if [ -d .dossier/runs ]; then
printf '%s\n' "PRIOR_ROUNDS=$(ls -1d .dossier/runs/*/ 2>/dev/null | wc -l | tr -d ' ')"
else
printf '%s\n' "PRIOR_ROUNDS=0"
fi
true
--path <package-root> overrides the resolved project.outputRoot for this run — use it to audit a package that is not the one this repository's config points at (a vendored copy, a second project, a package under review from elsewhere). Everything downstream reads the override, not the config.
A package missing canonical files is a structural finding, not an audit input. Report it and stop rather than spending three passes' budget confirming the same absence three times.
Each pass receives only:
00-control/.scope.json)Each pass receives none of: the drafting transcript · the authored project-model narrative as authority · another pass's findings, this round or any prior · prior-round findings · the reconciliation logic · any self-score or prior gate verdict.
Do not summarize the package for the passes. A summary is authored content, and a pass reading your summary is auditing you rather than the package.
Agent(dossier-pass-a-evidence) → .dossier/runs/<id>/pass-A.md
Agent(dossier-pass-b-falsification) → .dossier/runs/<id>/pass-B.md
Agent(dossier-pass-c-audience) → .dossier/runs/<id>/pass-C.md
One message. Three calls. Sequential dispatch leaks pass A's output into this context before B is spawned.
Apply verification.passModels per pass — but the value inherit is not a dispatch argument.
The Agent tool's per-invocation model override accepts only sonnet, opus, haiku, or fable. inherit is valid in an agent's frontmatter, where it means "use the session model"; it is not a valid override value. The default for all three passes is inherit, so a literal reading of "apply passModels" breaks the out-of-the-box configuration at the moment of dispatch.
passModels.{A,B,C} | What to pass |
|---|---|
inherit (the default) | Omit model entirely. The agent's model: inherit frontmatter already selects the session model |
sonnet / opus / haiku / fable | Pass it as the dispatch override — it takes precedence over frontmatter |
| anything else | Do not dispatch. Report a configuration error naming the invalid value |
Omitting the override and passing model="inherit" are not the same thing: the first works, the second is an invalid enum value.
A plugin cannot guarantee a different model, so this is the honest half-measure: independent context always, a different model only when the operator configures one. Record which tier was used — the package's own evidence standard requires it.
With --passes A,C, run only those and record the narrowed coverage as a deliberate reduction in assurance. Narrowing is legitimate; hiding it is not.
Write each pass's table to .dossier/runs/<id>/pass-{A,B,C}.md unmodified. Do not reorder, renumber, summarize, dedupe, or reconcile. Do not drop a finding you believe is wrong — that judgment belongs to reconciliation, with evidence.
Verify each file carries its marker:
<!-- DOSSIER_AUDIT round={n} pass={A|B|C} model={id} started={ISO} findings={n} critical={n} high={n} -->
A pass that returned no marker did not complete. Report it as an infrastructure failure — never as a clean pass, which is what an empty findings table would otherwise imply.
With --external, render templates/external-audit-prompt.md as a self-contained prompt for a genuinely different model, substituting the package root, scope, and round. Do not run it — hand it to the user.
Ingest the result via /dossier:reconcile --findings <path>.
This is the only path to true cross-model independence, and it is worth saying plainly: in-plugin subagents give independent context, not an independent model.
Append each pass's section to 07-verification/documentation-verification-report.md under the round heading, wrapped in <!-- DOSSIER_VERBATIM_BEGIN --> / <!-- DOSSIER_VERBATIM_END --> markers — the collected pass content only, never the round heading or the summary block below. This is what lets bin/dossier-prose-lint.sh exempt the auditors' own prose from G18's hard-category checks (see references/release-gate-conditions.md G18) without exempting anything else in the package: the exemption is scoped to this one file by the linter itself, and to this one appended block by the markers. Sections stay separate and unmerged until reconciliation.
<!-- DOSSIER_VERBATIM_BEGIN -->
{pass-A.md content}
{pass-B.md content}
{pass-C.md content}
<!-- DOSSIER_VERBATIM_END -->
### Audit complete — round {n}
PASSES_RUN={A,B,C} INDEPENDENCE_TIER={in-plugin|external}
MODELS={A:…, B:…, C:…}
FINDINGS={A:n B:n C:n} CRITICAL={n} HIGH={n}
SCORES={A:n B:n C:n} SCORE_VARIANCE={n}
### Next
`/dossier:reconcile --round {n}`
Score variance across passes is signal. Near-identical scores from three different lenses suggest contamination, not agreement — flag it.
| Action | Tier | Behavior |
|---|---|---|
| Read the package and project sources | 1 | Autonomous, read-only |
| Run the structural precheck | 1 | Autonomous |
| Dispatch the three pass agents | 1 | Autonomous |
Write raw pass output to .dossier/runs/<id>/ | 1 | Autonomous, gitignored working state |
| Append per-pass sections to the verification report | 1 | Autonomous |
| Render the external audit prompt | 1 | Autonomous — renders only, never executes |
| Merge, dedupe, or adjudicate findings | — | Not this command. /dossier:reconcile |
| Repair any document | — | Not this command. Findings are published before repair |
| Issue a gate verdict | — | Not this command. /dossier:gate |
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Other plugins' commands for the same job
9 commands in this plugin
/baselineBuild Documentation Baseline: $ARGUMENTSBuild the full documentation package from evidence. Inventories sources, models the project, resolves material gaps, drafts the 21 internal documents in dependency waves, then derives the 2 public documents from approved claims only./claimAdjudicate Claim: $ARGUMENTSAdjudicate whether a single statement may be said publicly. Traces the claim to its evidence, checks the claim state and disclosure approval, and returns approved, needs-evidence, or blocked with the exact qualification required./npx claudepluginhub synaptiai/synapti-marketplace --plugin dossier