Evidence import format (CSV)¶
Available from 0.18.0.
Bring an existing tracker into OpenComplAI as attestation records. This page is the specification of the file read by attestations import.
First cut
CSV only. Spreadsheet files (.xlsx) are not read yet: export the sheet as CSV (UTF-8, comma separated). A reader for .xlsx would have to open the file with a hardened XML parser, so it is left for a later step.
What an import does¶
Each row becomes one attestation, a statement that a requirement is met, written under framework_inputs.<framework>.attested in the manifest. It is the same record you would write by hand, so the usual rules decide how the row reads (see More framework packs): a record with valid_until stops counting the day after that date, and a row that a probe also checks follows the probe.
Nothing is generated. The statement, the person and the date are the file's own words.
Columns¶
The first row is the header. Names are case-insensitive and the order is free. An unknown column is an error, so a misspelt valid_until is not silently ignored.
| Column | Required | Meaning |
|---|---|---|
requirement | yes | The requirement id as the framework spells it: Art. 4, NIS2:Art. 21(2)(a), NIST_AI_RMF:GOVERN 1.2. Case does not matter. |
framework | no | The framework key, for a requirement written without its prefix. |
statement | yes | What is attested, at most 2000 characters. |
attested_by | yes | Who stands behind it. |
attested_at | yes | ISO 8601 date or time, for example 2026-03-01. |
valid_until | no | Last day the record counts, YYYY-MM-DD. Left empty, it does not expire. |
evidence | no | Pointers, separated by ;. http:// and https:// references are links, anything else is a file path. The content is never opened. |
Framework id mapping¶
The target framework is decided in this order:
- A
FRAMEWORK:prefix inrequirement(NIS2:Art. 21(2)(a)). - The
frameworkcolumn (NIS2withArt. 21(2)(a)givesNIS2:Art. 21(2)(a)). - Otherwise the EU AI Act, whose ids carry no prefix (
Art. 4).
The framework must be a built-in one. The id must be a requirement that takes an attestation in that framework; a requirement that does not exist, or one that only a probe can decide, is an error that names its line. Custom packs are not covered by this first cut.
Duplicates¶
A duplicate is a requirement that appears twice in the file, or that the manifest already attests. --on-duplicate decides:
| Value | In the file | Already in the manifest |
|---|---|---|
error (default) | Reported with both line numbers | Reported |
skip | The first row wins | The manifest's record stays |
replace | The last row wins | The file's record replaces it |
Limits and failure¶
At most 5000 rows and 2 MiB. Blank lines are skipped. The import is all or nothing: if any row has a problem, every problem is listed (up to 50) with its line number, the command exits 2 and the manifest is not touched. --dry-run runs the same checks and prints the count.
Example¶
requirement,framework,statement,attested_by,attested_at,valid_until,evidence
Art. 4,,AI literacy training delivered to the operations team,lead@example.com,2026-02-10,2027-02-10,https://intranet.example.com/training
Art. 20(1),NIS2,Management body approved the measures,ciso@example.com,2026-03-01,,docs/board-minutes.pdf