Browse documentation

Shared evidence and integrations

Coldverify's own receipt (docs/verify-receipt.md) stays the standalone default. Beside it, a strict run also writes the same verdict in the shared Cold Stack format, so other products can read it without knowing the receipt's fields, and it marks every evidence directory with an owner and an expiry date so a cleaner knows whose files they are.

Both formats belong to ColdStack. Coldverify follows them and does not define them:

ContractColdStack sourcePinned copy here
Run result v1 with the evidence fieldsdocs/run-result.md, ci/run-result.schema.jsoncoldstack/run-result.schema.json
Artifact marker v1docs/artifact-marker.md, ci/artifact-marker.schema.jsoncoldstack/artifact-marker.schema.json

The copies are from ColdStack ecfcb0150a75c7cba6bd29e7f64804f9e4cb4071. tests/test_evidence_export.py validates everything coldverify writes against them. To follow a newer ColdStack version, copy both files again and rerun the tests.

.cold/verify-evidence.json

One run result v1 record per strict run, written after the receipt. It is not written by --compat runs, or when the repository name or the full commit is unknown (no GITHUB_REPOSITORY and no github.com origin remote), because the shared schema requires both. A strict run copies the inventoried artifacts and writes its companions under .cold/verify-runs/run-<run_id>/.cold/, then switches .cold/verify-current with one rename. The checkout's receipt, Markdown, marker and shared-record paths follow that pointer. To read several files together, read the pointer once and use that directory as the root for every .cold/... path. The bundle reader does this automatically. A failed publication exits 2 and leaves the last completed set available. An unconfirmed PR post or check publication leaves the attempted run ID and an INCOMPLETE diagnostic in .cold/verify-pending.json. The first run also exposes that diagnostic at the JSON receipt path until a completed set is available. When a command finishes without a strict receipt (including --compat and the docs-only lane), it publishes only a fresh cleanup marker. Its public receipt and record paths then resolve to no file. Under the writer lock, each new run removes superseded and abandoned run directories older than 14 days. It keeps the selected directory regardless of age.

Run result fieldFrom the receipt
run_idA new random id, also in the .cold/ marker's provenance.run_id.
repoGITHUB_REPOSITORY or the origin remote's owner/repo, and commit.
modelunknown in all three fields: coldverify does not know which model made the change.
stepsOne check <name> step per receipt check, in order. PASS is pass, FAIL is fail (with the reason as failing_excerpt), INCOMPLETE is skip. Checks are not timed, so duration_ms is 0.
outcome, failureAny skip step makes it incomplete, class harness, cause skipped_step. Otherwise a fail step makes it fail, class product, cause test_failure when the first failed check is tests, else behavior_mismatch. Otherwise pass. failure.detail is the receipt's reason.
time, costAll null (unknown).
environmentThe receipt's host, os, isolation and guest_id, plus tools.python and tools.coldverify.
claimstatement is the claim; source is pull request when it is the PR's ## Claim section, else coldverify --claim. Absent when no claim was stated.
procedurerecipe: coldverify and the receipt's procedure commands in order.
artifactsThe receipt's artifacts plus .cold/verify-receipt.json, each with its SHA-256.
retentionThe same block as the .cold/ marker below.

The shared rule is stricter than the receipt in two cases, because the shared schema says a skipped step means no product verdict: a receipt that is FAIL and also has an INCOMPLETE check exports as incomplete, and so does a Coldbox guest PASS, whose criteria were not evaluated (its failure.detail contains criteria not evaluated in a CI guest). It never exports as pass unless the receipt is PASS.

Evidence directory markers

DirectoryMarkerRetention
.cold/ in the checkout, each completed run including --compat, written while holding .cold/verify.lock.cold/.cold-artifact.jsonowner: coldverify, temporary, expires 14 days after the run. A strict run adds provenance.run_id and provenance.repo.
The repro stage copied to the repro host as /tmp/cold-repro-<id>, and the cold-repro-* working directory the repro creates for its base and head worktrees.cold-artifact.json in eachtemporary, expires 1 day after it was created. Coldverify removes both when the repro ends; the marker covers a run that was killed first.
The Linux lane's /tmp/cold-verify-<id> on the runner.cold-artifact.json in itSame as the repro stage.

Checkout markers remain temporary. After a successful private Actions upload, the workflow writes a marker for the staged copy and records it in the job summary. Its retention.preserved_at points to the uploaded artifact.

The .cold/ marker covers the whole folder, including the timing history .cold/verify-history.jsonl. All of it is per-checkout and disposable. An expired marker sends a cleaner back to its own rules, the same as no marker, so the marker never makes anything easier to delete than it is today.

ColdCleaner reads these markers once its support ships. Until then a marker protects nothing.

CI evidence bundle

In this private repository's verify workflow, each attempt that produces a strict receipt can upload one coldverify-evidence-<attempt> Actions artifact. GitHub retains it under the repository's artifact retention settings. The workflow tries to upload evidence for failed and inconclusive runs too. Docs-only runs produce no receipt or bundle.

Download the artifact into its own directory. Paths in both JSON files are relative to that directory.

PathContents
.cold/verify-receipt.jsonStrict receipt, including its ordered procedure.
.cold/verify-evidence.jsonShared run result, including its procedure and the receipt digest.
Paths in the receipt's artifacts arrayReferenced repro, suite, and flow evidence at their original relative paths.

Staging checks the source hashes and revision, redacts the copy, and updates the hashes to describe the downloaded bytes. The workflow uses Coldverify's redactor and runs the existing release-check scanner over every staged path and file. Unreviewed findings or unreadable evidence block the upload. The two reviewed synthetic demo cart screenshots must match their flow paths and SHA-256 hashes. The scanner approves only the media review finding for those exact files. Other binary artifacts block the bundle. The bundle records the original verdict. Use the Coldbox App check for trusted receipt verification.

From a different checkout, download and validate the artifact with the full commit SHA from the workflow's checkout step. On a pull request, this is the merge commit.

gh run download RUN_ID --name coldverify-evidence-ATTEMPT --dir bundle
python3 ci/evidence_bundle.py bundle WORKFLOW_COMMIT_SHA

A missing file, revision mismatch, or hash mismatch fails validation. A failed staging or upload step raises a warning in the workflow. The required verify check still reflects the verifier's exit status. The job summary records preservation only when the upload action succeeds and returns an artifact URL.

For other products

Proof of change (ColdPass, ColdContribute). When coldverify is on PATH, run it in the checkout of the exact revision:

coldverify --ci --claim "what the change does"

The exit code is 0 for PASS, 1 for FAIL and 2 for INCOMPLETE, except in a GitHub Actions job, where a --ci run without --publish-check exits as the merge gate (see the README); read the verdict from result. Read .cold/verify-evidence.json for the shared record, or .cold/verify-receipt.json for the full receipt. Treat a missing coldverify, any other exit code, or a missing record as "not verified", never as a pass, and keep your own standalone check as the fallback.

Lessons (ColdFix). coldfix ingest --format cold-verify --input .cold/verify-trace.jsonl reads coldverify's failed steps today. ColdFix does not read run result records yet: coldpass_sources.normalize() is the one place it will. Once it does, .cold/verify-evidence.json gives it both failed and verified verdicts through that shared parser, with no coldverify-specific code.

On this page.cold/verify-evidence.jsonEvidence directory markersCI evidence bundleFor other products