Compliance support

Supports your process. Does not certify. Package twin test runs into traceable records for DO-178C, DO-254, ISO 26262, IEC 61508, CRA Annex I, IEC 62443 and FDA 524B.

Outputs

ArtifactContents
RequirementsImport CSV or ReqIF 1.2 into ct.requirements/1 locally or in your workspace.
LinksTag suite cases, matrices, fault sets and scenes with verifies: [ids].
Trace matrixMaps requirement -> test -> run -> verdict -> SHA-256; flags uncovered requirements, unlinked tests and unknown ids. Exports JSON, CSV, ReqIF 1.2 or standalone HTML.
Structural coveragePer-line/per-function statement coverage and object-code decision coverage for Arm Cortex-M runs.
Evidence packageByte-identical ZIP per matrix: config ids, procedures, results, coverage, trace, open issues, environment and SHA-256 manifest.
Tool qualification kitVerification data and templates you complete to qualify CircuitTwin inside your own process.

These commands post-process existing test reports without re-running firmware. Identical matrices (fresh or cached) yield identical traces, coverage and byte-identical ZIPs. Sign packages with your own key if required. You own tool qualification and the safety credit assigned to simulated runs.

Plans

Included on Team and Enterprise. Every ct compliance command verifies the workspace plan (including on local files) and exits 3 (feature_not_in_plan) on other plans.

Workflow

terminal
ct compliance requirements import requirements.csv --out requirements.json
ct test matrix run power.matrix.yaml --out out          # a matrix with verifies and coverage: true
ct compliance trace --requirements requirements.csv --matrix power.matrix.yaml --report out/report.json --out out/trace
ct compliance coverage --matrix-out out --out out/coverage
ct compliance package --matrix power.matrix.yaml --matrix-out out --requirements requirements.csv --baseline v1.0 --out power-v1.0.zip
ct compliance qualkit --zip kit.zip

Subcommands print Supports your process. Does not certify. unless ct --json is set. Exit codes: 0 done, 1 (trace only) failed/incomplete/not-run/uncovered requirement, 2 invalid input, 3 platform or 403 error.

Requirements

Auto-detects CSV, ReqIF 1.2 or ct.requirements/1 JSON. CSV requires an id header (id, identifier, req id, requirement id or ReqIF.ForeignID); title, text, parent and kind are optional, extra columns stay as attributes. ReqIF files containing a DTD are refused; unpack .reqifz archives to .reqif first.

requirements.csv
id,title,text,kind,parent
PM-REQ-001,No fault exception,"The firmware shall not take a fault exception.",HLR,
PM-REQ-002,Sensor configuration,"The firmware shall write 0x4327 to the Configuration register.",LLR,PM-REQ-001

Use ct compliance requirements import | export | upload (--format csv|reqif for export).

Link tests with verifies

Attach verifies to matrices, fault sets, suite cases or scenes; it does not invalidate cached results. Set coverage: true to record executed instructions (compile with -g for source-line mapping; stripped ELFs still report per-function instruction and decision coverage).

power.matrix.yaml (excerpt)
schemaVersion: ct.test-matrix/1
id: power-monitor-compliance
coverage: true
verifies: [PM-REQ-001]
faults:
  - name: nominal
    verifies: [PM-REQ-002, PM-REQ-003, PM-REQ-004]
  - name: bus-disconnect
    verifies: [PM-REQ-005]
    faults: [{ kind: bus_disconnect, device: ina226 }]

Requirement states: passed (all linked runs pass), failed (any fail/error), incomplete (no fail, at least one inconclusive/unsupported/not run), not_run (linked but unexecuted), uncovered (no test link).

Commands

CommandKey options
ct compliance trace--requirements (required); repeatable pairs --matrix/--report, --suite/--suite-report, --scene/--scene-report; --out DIR; --format json|csv|reqif|html; --cloud MATRIX_ID
ct compliance coverage--matrix-out DIR or --elf + --executed; --out DIR; --cloud MATRIX_ID
ct compliance package--matrix, --matrix-out, --requirements, --baseline, --out FILE (required); --cloud MATRIX_ID
ct compliance qualkit--out DIR (default qualification-kit) or --zip FILE
ct compliance requirementsimport FILE [--name] [--out], export FILE --format csv|reqif [--out], upload FILE [--name]

Server commands accept --server URL. See ct CLI for global flags.

Web app

Open Compliance from Runs → test matrices for three cards: Traceability (upload requirements, pick matrix, download CSV/ReqIF/HTML), Coverage (statements, both-way decisions, entered functions) and Evidence package (ZIP download and qualification kit).

Limits

  • Requirements file: max 4 MiB UTF-8, 5,000 requirements/set, 1,000 sets/workspace.
  • Requirement id: 1 to 64 chars (letters, digits, . _ : / -, starting alphanumeric); max 64 ids in verifies.
  • Coverage requires a little-endian 32-bit Arm ELF.