Skip to content

Share evidence with an auditor or reviewer

After a check, you often need to hand the result to someone else: an internal auditor, a customer, a notified body. This guide shows what to produce, how to sign it, and how the other person checks it, all offline. Every command was run on 0.17.0.

OpenComplAI produces evidence. It does not certify anything, and a Met row is a heuristic, not a legal finding.

1. Produce a signed artifact with the gap report

Bash
opencomplai check --manifest system-manifest.json --scan --with-gaps --scan-mode ci --sign
PowerShell
opencomplai check --manifest system-manifest.json --scan --with-gaps --scan-mode ci --sign

--sign needs a signing key: ~/.opencomplai/signing.key (made by opencomplai init) or SIGNING_KEY_PRIVATE (the base64-encoded PEM, for CI). With neither it exits 2 and writes nothing. --sign-if-available signs when it can and writes an unsigned artifact with a warning otherwise.

The check exits 1 while there are failed controls; the artifact is still written. For what to do about that, see Fix a failed check.

2. Check the signature yourself

Bash
opencomplai verify compliance-artifact.json
Text Only
verified: signature matches

Exit 0 verified, 1 unsigned or invalid, 2 bad input. An unsigned artifact reports unsigned: no signature present and proves nothing.

3. Write a report a person can read

Bash
opencomplai report --manifest system-manifest.json -o report.html
opencomplai report --manifest system-manifest.json -o report.pdf

report reads compliance-artifact.json from the current directory (change it with --artifact) and combines the manifest, the rule results and the gap report. It makes no network calls. The extension picks the format: .html or .pdf. See report.

4. Write one neutral evidence package

Bash
opencomplai export compliance-artifact.json --out evidence-package.json --artifact-out artifact-copy.json
opencomplai export compliance-artifact.json --format csv --out evidence.csv

The JSON package is one versioned file that a tool can read without knowing the artifact model. --artifact-out also writes the embedded artifact so the recipient can run verify on it. The CSV has one row per article (system_id, article, status, source, evidence_ref, verdict, ...). To sign the package itself, add --sign (JSON only), then:

Bash
opencomplai verify evidence-package.json --kind evidence-package

See export.

5. Add the Annex IV dossier

Bash
opencomplai docs generate --manifest system-manifest.json --system-id <id> --output-dir out
opencomplai verify out/dossier_<dossier-id>.json --kind dossier

docs generate runs locally with no Docker. The dossier is unsigned unless a key is available: set SIGNING_KEY_PRIVATE (or DOSSIER_SIGNING_KEY_PATH) for the run and verify --kind dossier then reports verified. Without a key it reports unsigned (exit 1). If the system is halted after a modification, see Handle a modification halt.

6. Hand over, and what the recipient does

Send these files, and the public key signing.pub (never the private key):

File Made by Recipient checks with
compliance-artifact.json check --sign opencomplai verify compliance-artifact.json --pub-key signing.pub
report.html or report.pdf report reads it
evidence-package.json, artifact-copy.json export verify ... --kind evidence-package, verify artifact-copy.json
out/dossier_<id>.json docs generate verify ... --kind dossier

The recipient installs opencomplai, saves your public key and runs verify with --pub-key. Nothing is uploaded and no account is needed. verify checks a signature, not whether the content is right.

7. Show what changed between two runs

Keep the previous artifact and compare:

Bash
opencomplai diff previous/compliance-artifact.json compliance-artifact.json
opencomplai diff previous/compliance-artifact.json compliance-artifact.json --fail-on-regression

diff lists the added, removed and changed article verdicts and notes when the rule set changed. --fail-on-regression exits 1 when any verdict got worse, which makes it a CI gate for a scheduled re-run: see Scheduled re-run. Reference: diff.

See also