CLI report formats¶
These notes accompany the command reference. JSON reports are useful for scripts and for reviewing scan coverage without terminal formatting.
Source reports¶
add <path>... --jsonwrites one JSON report to stdout; human output and upstream logs stay on stderr, with no progress animation. For example:biotope add raw --json > scan.json(keep the report outside the scanned directory). The report containsschema_version,project_root, overallstatus, andsources. Each scanned source includesinput,root, the full Bakerscanreport with per-file outcomes/reasons/details, captured logdiagnostics, and written artifact paths. Paths are relative toproject_root; paths insidescan.filesare relative to the source'sroot. JSON keeps every file even when human output groups partitions. Partial-parse warnings remain diagnostics; adescribedoutcome does not certify completeness.complete_with_gapsmeans metadata was written with undescribed files or diagnostics. Already tracked inputs areskipped; a wholly skipped run isunchanged. Runtime failures producestatus: failedand a nonzero exit. Argument-parsing errors use Click's ordinary stderr errors before a report is started.map inspect <manifest> --json > inspection.jsonwrites one JSON document to stdout (schema_version: 2).record_setsand recursivesub_fieldsretain exact IDs, names, declareddata_type, descriptions, array shape and fieldsourcedescriptors. Each record set'ssource_idsrefers to@identries indistribution; unresolved references remain present. Paths keep their declared form. Missing IDs arenull. Additional metadata, including field references, is retained inattributes;contextpreserves the dataset's JSON-LD context.kindis a best-effort normalized classification, not a value check. Load errors go to stderr with a nonzero exit and no JSON on stdout.
Graph reports¶
Graph commands accept --json and emit one document with an operation-specific
report_kind. Check, quality and build reports have schema_version: 2, which
dropped the validation and query-context keys; --report and build replacement
still accept version 1. Diagnostics and incidental project output go to stderr.
Operational failures also produce a report; argument errors can occur before
reporting starts and use the CLI's normal stderr output.
Every finding has a stable code, a severity, a subject, a message and an
optional location. A source.drift finding lists every JSON-pointer difference
in its examples. Quality prints its assessment and writes no file. Build records
the assessment in graph/build/run.json; a failed rebuild writes
graph/build/last_failure.json and keeps the previous build. Metagraph JSON writes
no HTML and cannot be combined with --out.
See typed graph technical notes for measurement limits, provenance and export artifacts.