Upgrading to 0.18¶
Release 0.18.0 adds eight beta framework packs, reads more of your pipeline output, and adds new optional manifest fields. Most of it is additive. Four changes can move a result or an exit code on the first run, and one new manifest field is rejected by older CLIs. Each row below names who is affected and what to do.
| Change | Who is affected | What to do |
|---|---|---|
Some attested CRA and NIS2 rows can read Partial instead of Met. Five rows now read the reports your CI writes: a CycloneDX or SPDX SBOM (sbom_report) and a pip-audit, osv-scanner, Trivy or Grype report (vuln_scan_fixed, vuln_scan_clean). The checks are marked required: an attested row reads Met only while they pass, and Partial otherwise (without an attestation the worst check decides). A report that is missing, older than 90 days (SBOM) or 30 days (scan), empty, or lists a critical, high or unrated finding with a fix available (for vuln_scan_clean, any such finding) fails the check | Anyone who targets CRA or NIS2 and attests the rows CRA:Annex I Part II (1), CRA:Annex I Part II (2), CRA:Annex I Part I (2)(a), NIS2:Art. 21(2)(d) or NIS2:Art. 21(2)(e). A score can drop on the first 0.18.0 run, and check --gate-fail-on partial fails the row | Generate the SBOM and the vulnerability scan report in the same CI job, before opencomplai check, and run it from the repository root. The row's rationale names the check that failed. See Cyber Resilience Act |
scan exits 1 when you set an unapproved-AI-endpoint policy and it finds a row. The policy is opt-in: set scan.ai_endpoint_policy.approved_providers in opencomplai.yaml. It reports each public AI vendor SDK import or public AI API host in shipping code that is not approved and not declared hosting: self_hosted. The exit code is 1 at any --fail-on level. Without the setting nothing changes: same output, same JSON, same exit code. check does not run the policy | Only teams that switch the policy on | Approve the providers you use, declare self-hosted models in the manifest, or fix the rows, before you add the setting to a pipeline that must stay green. See scan |
A 0.17.0 or older CLI rejects a manifest that uses the new fields models[].hosting, prompt_sha256 or prompt_ref: it exits 2 with Extra inputs are not permitted (the agent models reject unknown keys). A 0.16.x CLI also rejects the 0.17.0 fields, so every CLI that reads a shared manifest must be 0.18.0 before you add these | Teams where some machines, CI images or pinned GitHub Action versions still run 0.17.0 or older, and the manifest is shared | Upgrade every CLI that reads the manifest to 0.18.0 before you add the fields: pip install --upgrade opencomplai==0.18.0. Pin the same version in CI. See UK agentic manifest fields |
The default .ocignore now lets scan read .vscode/ and .cursor/, where it looks for MCP server configs (.cursor/mcp.json, .vscode/mcp.json; claude_desktop_config.json anywhere in the repository is read too). Only a .ocignore created by 0.18.0 or later leaves those folders out of its defaults. A file created earlier keeps its lines and still hides them | Anyone who wants MCP servers in the scan evidence, and anyone with a .ocignore written by an older version | If your .ocignore was created earlier, remove the .vscode/ and .cursor/ lines to let scan read those configs. Server names only are read: commands, arguments, environment values and URLs never enter the evidence. See Detect AI in your code |
Eight ISO_IEC_42001 rows now also look for a document in the repository: Clause 5.3 and A.3.2 (an accountability document), Clause 7.3 (a training record), Clause 10.1 (a corrective action log), A.4.4 (an AI asset inventory), A.6.1.3 (a design-control document), A.7.6 (a data provenance sheet) and A.9.3 (an objectives record). An attested row with no such document reads Partial instead of Met. 47 of the 65 rows are now checked from evidence as well as attested (39 before) | Anyone who targets ISO_IEC_42001 and attests those rows | Write the document and keep it in the repository (opencomplai scaffold ISO_IEC_42001 --list shows which starting files exist). No requirement wording changes. See ISO/IEC 42001 |
What else changes, with no action needed¶
- Every Annex III area lead and every import candidate that
scanandcheck --scanprint ends with(lead, not a finding). No exit code and no JSON field changes. scan --ai-intentprints one line on stderr when it runs on the built-in matcher (no--ai-model, no saved default). A barepredict_probacall no longer proposes Annex III area 5 on its own; it still counts when the lines around it or the declared purpose carry credit, loan, lending or insurance wording.- The titles of the ISO/IEC 27001 and ISO/IEC 42001 Annex A rows are short descriptions in the project's own words. Row ids, verdicts and evidence rules are unchanged; only the title text in reports and
gapsoutput differs. - Eight beta packs are new and opt-in (
--target):OWASP_LLM_TOP10,OWASP_AGENTIC_TOP10,US_COLORADO_ADMT,US_NYC_LL144,US_CCPA_ADMT,ISO_27701,US_CCPAandUK_FCA_AI_CONTROLS. Their wording is pending legal review. A manifest that does not target them is unchanged. See Frameworks. UK_AGENTICbehaves as in 0.17.0: UKA-02 to UKA-05 can fail the build only when the pack is gated, and UKA-01, 06, 07 and 08 stay warn only.- New commands and options, all opt-in:
webhook send,keys register,attestations import,controls queue,agents register,agents review,agents record-changesandagents state,--oversight-evidenceongapsandcheck, the NIS2 timelines onincident, andreport --output rows.csv. - The Python SDK adds an opt-in runtime
Guardrailand the beta agentic resilience tests.
Rolling out safely¶
- Upgrade the CLI everywhere it runs (developer machines, CI images, the GitHub Action pin) to 0.18.0.
- Run
opencomplai check --scan --with-gapson the unchanged manifest and compare the result with 0.17.0. If a CRA or NIS2 row moved to Partial, read its rationale and generate the missing report. - Add
models[].hosting,prompt_sha256andprompt_refto the manifest only after every CLI that reads it is 0.18.0. - Switch on
scan.ai_endpoint_policylast, once its rows are understood.
Rolling back¶
Remove models[].hosting, prompt_sha256 and prompt_ref from the manifest, and the scan.ai_endpoint_policy setting from opencomplai.yaml, then 0.17.0 reads them again.
The full list of changes is in the changelog. For the previous release, see Upgrading to 0.17.