You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: document machine-readable scan, report, and SBOM output contracts #163
The README shows vg scan, SARIF upload, SBOM export, and report generation, but there is no focused reference explaining the output contracts. CI users need stable expectations for formats, exit codes, and what may vary.
Related but separate: #151 covers a minimal SBOM/VEX end-to-end example. This issue is the contract reference.
What to do
Add a concise docs/OUTPUTS.md (or equivalent) covering:
Facts from the current CLI to anchor docs/OUTPUTS.md:
vg scan --format text|json|sarif|md (default text), --out <file>. JUnit XML is a separate --junit <file> written alongside the main format; --format junit is rejected with a usage error.
vg report reads --in (default .vibgrate/scan_result.json) and supports --format md|text|json.
The scan artifact carries schemaVersion: '1.0' (src/core-open/types.ts). Document it as the version field, and do not promise more stability than that field implies.
Network: --push (with --dsn or VIBGRATE_DSN) is the only upload and is opt-in; --offline makes no network calls. --no-local-artifacts and --max-privacy stop .vibgrate/*.json being written.
Suggested page shape. One table per command (format, default destination, stable fields, fields that vary such as timestamps and durations), then one exit-code table. Exit codes come from src/util/exit.ts; link #234 for the CI-gating walkthrough instead of repeating it.
Examples. Keep each sanitized example under about 30 lines. Generate them from a tiny fixture with --offline, and trim rather than hand-write fields.
Out of scope. The SBOM tutorial (#151), the review JSON contract (#231), and any change to emitters. DCO sign-off, docs: commit.
Activity
vibgrate-team commentedon Oct 5, 2026
Spec notes for implementers
Facts from the current CLI to anchor
docs/OUTPUTS.md:vg scan --format text|json|sarif|md(defaulttext),--out <file>. JUnit XML is a separate--junit <file>written alongside the main format;--format junitis rejected with a usage error.vg reportreads--in(default.vibgrate/scan_result.json) and supports--format md|text|json.vg sbom export --format cyclonedx|spdx;vg sbom delta;vg sbom vex(OpenVEX v0.2.0).schemaVersion: '1.0'(src/core-open/types.ts). Document it as the version field, and do not promise more stability than that field implies.--fail-on <gates>(warn/error, architecture-*,iac-finding[=<severity>],security-finding[=<severity>]),--drift-budget,--drift-worsening.--push(with--dsnorVIBGRATE_DSN) is the only upload and is opt-in;--offlinemakes no network calls.--no-local-artifactsand--max-privacystop.vibgrate/*.jsonbeing written.Suggested page shape. One table per command (format, default destination, stable fields, fields that vary such as timestamps and durations), then one exit-code table. Exit codes come from
src/util/exit.ts; link #234 for the CI-gating walkthrough instead of repeating it.Examples. Keep each sanitized example under about 30 lines. Generate them from a tiny fixture with
--offline, and trim rather than hand-write fields.Out of scope. The SBOM tutorial (#151), the review JSON contract (#231), and any change to emitters. DCO sign-off,
docs:commit.