Validate minitrace JSON, archives, manifests, source identity, and conversion receipts
The validate command supports file-level JSON/session checks and native archive-integrity checks.
go-minitrace validate --path ./session.minitrace.json
go-minitrace validate --path ./output --recursive --output json
File mode reports path, valid_json, and error. It checks JSON syntax plus the session fields currently covered by pkg/validate, including annotations, events, and attachments.
go-minitrace validate --path ./output --archive --output json
Archive mode locates the archive root even when --path points to a period directory or session file. It emits stable machine-readable findings with code, severity, path, session_id, and detail.
Checks include:
timing.started_at;Select checks by repeating --check:
go-minitrace validate --path ./output --archive \
--check archive --check manifest
Valid check names are archive, manifest, source, and receipt. With no --check, all checks run.
Error findings make the command return non-zero by default. Use --fail-on-error=false only when collecting diagnostics without gating a workflow.
Root and period manifests are written atomically. Rebuild them from archive files before validation with:
go-minitrace validate --path ./output --archive --rebuild-manifests
This is the supported replacement for directory-shape-sensitive manifest audit scripts.
| Flag | Default | Description |
|---|---|---|
--path | File, directory, archive root, or path below an archive root | |
--recursive | false | Recursively scan JSON files in file mode |
--archive | false | Enable archive integrity validation |
--check | all | Repeatable archive check selector |
--rebuild-manifests | false | Atomically rebuild manifests before validation |
--fail-on-error | true | Return non-zero for error findings |
go-minitrace convert codex \
--source-list ./sources.txt \
--output-dir ./output \
--run-record ./output/conversion-run.json
go-minitrace validate --path ./output --archive --output json
go-minitrace help convert-commandsgo-minitrace help minitrace-schema