cops release evidence commands produce and inspect machine-readable release evidence artifacts. Evidence files record gate evaluation results in a versioned JSON schema (v1) and an accompanying Markdown report. They are designed to be stored as release artifacts and compared across releases.
cops release evidence generate
cops release evidence generate
Evaluate all enabled gates from The
cops.project.json and write a release-evidence.json and release-evidence.md to the output directory.Usage
Flags
Project key from
cops.project.json. Defaults to defaultProject or the top-level release block.Directory to write the generated evidence artifacts. Created if it does not exist.
Output format for the command summary:
table, json, or markdown.Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
Override the active config profile.
Output columns
artifact, path, overallTwo rows are written per run — one for the JSON artifact and one for the Markdown report.Evidence file schema (v1)
overall field is pass, warn, or fail:fail— at least one blocking gate failedwarn— at least one gate iswarnorwaived, no blocking failurespass— all gates passed
Exit codes
| Code | Meaning |
|---|---|
0 | All gates passed (overall: pass) |
20 | At least one blocking gate failed (overall: fail) |
10 | At least one gate warned or was waived (overall: warn) |
Examples
cops release evidence validate
cops release evidence validate
Validate one or more release evidence JSON files against the v1 schema contract. Use
--strict to enforce allowed keys and enum values.Usage
Flags
Path to a single evidence JSON file to validate. Provide either
--file or --dir.Directory containing evidence JSON files. Validates all files matching the
--prefix filter.Filename prefix filter when using
--dir.Enable strict validation: enforces allowed top-level and result keys, and validates
severity against low|medium|high|critical.Output format:
table, json, or markdown.Output columns
file, status, detailsExit codes
| Code | Meaning |
|---|---|
0 | All files passed validation |
20 | One or more files failed validation |
Validation rules (v1)
schemaVersionmust bev1generatedAtmust be a valid ISO datetimeoverallmust bepass,warn, orfailresultsmust be an arraygateCountmust equalresults.length- Each result must have
gateId,type,severity,rawStatus(pass|warn|fail),status(pass|warn|fail|waived),blocking(boolean), anddetails
Examples
cops release evidence diff
cops release evidence diff
Compare two release evidence JSON artifacts. Reports added gates, removed gates, status changes, and blocking flag changes between a previous and current evidence file.
Usage
Flags
Path to the previous release evidence JSON file.
Path to the current release evidence JSON file.
Output format:
table, json, or markdown.Output columns
kind, gateId, previous, current, details| Column | Description |
|---|---|
kind | Change type: overall, status_change, blocking_change, added_gate, removed_gate |
gateId | Gate identifier (or - for overall changes) |
previous | Previous value |
current | Current value |
details | Human-readable description of the change |
Exit codes
| Code | Meaning |
|---|---|
0 | No differences found |
10 | One or more differences detected |
Examples
cops release evidence trend
cops release evidence trend
Analyze gate status trend across multiple release evidence JSON files in a directory. Files are sorted by
generatedAt and the most recent --limit files are analyzed.Usage
Flags
Directory containing evidence JSON files to analyze.
Filename prefix filter. Only files starting with this prefix are included.
Maximum number of files to analyze (most recent by
generatedAt).Output format:
table, json, or markdown.Output columns
file, generatedAt, overall, gates, pass, warn, fail, waived, blockingEach row represents one evidence file. Rows are ordered oldest to newest.Exit codes
| Code | Meaning |
|---|---|
0 | Most recent evidence has no blocking gates and no warn/fail |
20 | Most recent evidence has one or more blocking gates |
10 | Most recent evidence has warn or fail gates (no blocking) |
Examples
Related
cops release check
Run release gates and view gate evaluation details.
cops release summary
Cross-product release readiness summary.
