Kyron Module Verification Report#

Kyron Module Verification Report
status: draft
security: YES
safety: QM
version: 1

Verification report of the Kyron module. The requirement and architecture traceability, the linked tests and the structural coverage below are generated from the documentation build. The sections after them describe the verification methods and where the results of each run and each release are kept.

Components#

Component Overview#

Component

Safety

Security

Status

comp__kyron_runtime

QM

YES

valid

comp__kyron_foundation

QM

YES

valid

Kyron Runtime#


Component Requirements#

Statistics#
Status ASIL Bvalid_inspectedvalidinvalidStatus QMvalidinvalidTest coveragefullypartiallynot covered
What the colours mean

Status ASIL B
valid_inspected — agreed and formally inspected
valid — agreed, formal inspection still outstanding
invalid — not agreed; metamodel checks are skipped

Status QM
valid — agreed; QM needs are not formally inspected, so this is their final state (valid_inspected counts here too)
invalid — not agreed; metamodel checks are skipped

Test coverage
fully — at least one test fully verifies the need
partially — only partially verifying tests
not covered — no verifying test at all

ASIL B — Requirements

no ASIL B requirements

QM — Requirements

Kyron Runtime Requirements (QM) — Status: valid 24, invalid 0; Test Coverage: fully covered 0, partially covered 19, not covered 5
Traceability#

The following table lists all requirements of this component together with their verification status and the tests that (fully or partially) verify them:

Show requirements table

ID

Title

Safety

Status

Testlink

comp_req__kyron_runtime__yield_guideline

Yielding Guideline

QM

valid

comp_req__kyron_runtime__broadcast_channel

Broadcast Channel

QM

valid

comp_req__kyron_runtime__spsc_channel

Single-Producer Single-Consumer Channel

QM

valid

comp_req__kyron_runtime__reusable_spawn

Spawn From Reusable Futures

QM

valid

comp_req__kyron_runtime__sleep

Async Sleep

QM

valid

comp_req__kyron_runtime__yield_now

Yield Operation

QM

valid

comp_req__kyron_runtime__async_task_exec

Cooperative Async Task Execution

QM

valid

comp_req__kyron_runtime__no_task_prio

No Task Priorities

QM

valid

comp_req__kyron_runtime__tcp

TCP Networking

QM

valid

comp_req__kyron_runtime__udp

UDP Networking

QM

valid

comp_req__kyron_runtime__multi_engine

Multiple Isolated Execution Engines

QM

valid

comp_req__kyron_runtime__safety_api

Safety API Availability

QM

valid

comp_req__kyron_runtime__dedicated_unknown_id

Spawn on Unregistered Dedicated Worker

QM

valid

comp_req__kyron_runtime__fixed_worker_pool

Fixed Async Worker Pool

QM

valid

comp_req__kyron_runtime__task_queue_size

Task Queue Size

QM

valid

comp_req__kyron_runtime__worker_prio

Uniform Async Worker Priority

QM

valid

comp_req__kyron_runtime__worker_affinity

Async Worker Affinity

QM

valid

comp_req__kyron_runtime__dedicated_worker

Dedicated Workers

QM

valid

comp_req__kyron_runtime__task_queue_overflow

Task Queue Overflow

QM

valid

comp_req__kyron_runtime__safety_err_handling

Safety Worker Error Handling

QM

valid

comp_req__kyron_runtime__dedicated_locality

Dedicated Worker Task Locality

QM

valid

comp_req__kyron_runtime__dedicated_affinity

Dedicated Worker Affinity

QM

valid

comp_req__kyron_runtime__thread_params

Worker Thread Parameters

QM

valid

comp_req__kyron_runtime__fifo_task_queue

FIFO Task Queues

QM

valid

Component Architecture#

Statistics#

ASIL B — Architecture Elements

no ASIL B architecture elements

QM — Architecture Elements

Kyron Runtime Architecture Elements (QM) — Status: valid 4, invalid 0; Test Coverage: fully covered 0, partially covered 0, not covered 4
Traceability#

The following table lists the architectural elements of this component together with their inspection status. Elements that have been formally inspected carry the valid_inspected status; elements with another status have not yet been inspected.

Show architectural elements table

ID

Title

Safety

Status

Tags

comp_arc_sta__kyron_runtime__static_view

Kyron Runtime Static View

QM

valid

comp_arc_dyn__kyron_runtime__task_lifecycle

Task Life Cycle

QM

valid

comp_arc_dyn__kyron_runtime__io_wait_wake

I/O Wait and Wake

QM

valid

comp_arc_dyn__kyron_runtime__safety_worker

Safety Worker Error Handling

QM

valid

Test Coverage#

Coverage measurements available for 52/66 selected source files. Green: covered; red: not covered. Percentages describe the available measurements.

Kyron Runtime Coverage — Line Coverage: covered 74%, not covered 26%; Branch Coverage: covered 67%, not covered 33%

Verification & Safety Analysis Documents#

Presence of the standard verification and safety analysis work products for this component. A dash (—) means the corresponding document is missing.

Show work products table

Work Product

Kind

Realized by

Status

wp__requirements_inspect

Requirements Inspection

Status

draft

wp__sw_arch_verification

Architecture Inspection

Status

draft

wp__sw_implementation_inspection

Implementation Inspection

Status

draft

wp__sw_component_dfa

DFA

No needs passed the filters

No needs passed the filters

wp__sw_component_fmea

FMEA

No needs passed the filters

No needs passed the filters

Kyron Foundation#


Component Requirements#

Statistics#
Status ASIL Bvalid_inspectedvalidinvalidStatus QMvalidinvalidTest coveragefullypartiallynot covered
What the colours mean

Status ASIL B
valid_inspected — agreed and formally inspected
valid — agreed, formal inspection still outstanding
invalid — not agreed; metamodel checks are skipped

Status QM
valid — agreed; QM needs are not formally inspected, so this is their final state (valid_inspected counts here too)
invalid — not agreed; metamodel checks are skipped

Test coverage
fully — at least one test fully verifies the need
partially — only partially verifying tests
not covered — no verifying test at all

ASIL B — Requirements

no ASIL B requirements

QM — Requirements

no QM requirements
Traceability#

The following table lists all requirements of this component together with their verification status and the tests that (fully or partially) verify them:

Show requirements table

No needs passed the filters

Component Architecture#

Statistics#

ASIL B — Architecture Elements

no ASIL B architecture elements

QM — Architecture Elements

Kyron Foundation Architecture Elements (QM) — Status: valid 2, invalid 0; Test Coverage: fully covered 0, partially covered 0, not covered 2
Traceability#

The following table lists the architectural elements of this component together with their inspection status. Elements that have been formally inspected carry the valid_inspected status; elements with another status have not yet been inspected.

Show architectural elements table

ID

Title

Safety

Status

Tags

comp_arc_sta__kyron_foundation__static_view

Kyron Foundation Static View

QM

valid

comp_arc_dyn__kyron_foundation__task_queues

Task Queue Push, Overflow and Steal

QM

valid

Test Coverage#

Coverage measurements available for 14/21 selected source files. Green: covered; red: not covered. Percentages describe the available measurements.

Kyron Foundation Coverage — Line Coverage: covered 96%, not covered 4%; Branch Coverage: covered 91%, not covered 9%

Verification & Safety Analysis Documents#

Presence of the standard verification and safety analysis work products for this component. A dash (—) means the corresponding document is missing.

Show work products table

Work Product

Kind

Realized by

Status

wp__requirements_inspect

Requirements Inspection

Status

draft

wp__sw_arch_verification

Architecture Inspection

Status

draft

wp__sw_implementation_inspection

Implementation Inspection

Status

draft

wp__sw_component_dfa

DFA

No needs passed the filters

No needs passed the filters

wp__sw_component_fmea

FMEA

No needs passed the filters

No needs passed the filters

Verification Methods#

Method

Tool

CI workflow

Result handling

Build for all supported targets

Bazel: Linux x86_64 (Ferrocene), QNX 8 x86_64 and aarch64

build.yml, build_qnx8.yml

must pass

Unit tests

Rust #[test] (Bazel //:unit_tests, Cargo); on QNX 8 x86_64 and aarch64 the same tests in a QEMU microVM (rust_test_qnx, score_qnx_unit_tests)

tests.yml, cargo_required.yml, build_qnx8.yml

must pass

Component integration tests

pytest scenarios in tests/test_cases, driving Rust test scenarios

component_integration_tests_bazel.yml

must pass; results are linked to the requirements in this report

Concurrency and undefined-behaviour checks

Loom (atomics), Miri

cargo_required.yml

must pass; skipped on draft pull requests. Miri skips four multi-threaded queue tests, which are listed in its report

Structural coverage

LLVM source-based coverage (@score_coverage), lines and branches

rust_coverage.yml (gate), coverage_report.yml (archive for documentation and release)

line coverage gate of 72 %, with justifications in tools/coverage/coverage_justifications.yaml

Static code analysis

clippy (-D warnings), rustfmt

lint_fmt_clippy.yml (gate), static_analysis_report.yml (report)

must pass

Complexity analysis

lizard, with the limits below

static_analysis_report.yml

reported, not gated

Vulnerability scan

cargo-audit (RustSec) on Cargo.lock; osv-scanner on the product SBOM

vulnerability_scan.yml

fails on a known vulnerability

Complexity Analysis#

The complexity analysis follows gd_req__impl_complexity_analysis. Exceedances of the following limits are reported for both safety levels:

Measure

ASIL B

QM

Measured by

Lines of code per function

100

200

lizard

Lines of code per file

2000

4000

tools/complexity/complexity_report.py

Cyclomatic complexity per function

10

20

lizard

Number of parameters per function

5

7

lizard

Number of public interfaces per component

3

10

not measured yet

The analysis covers src/kyron, src/kyron-foundation and src/kyron-macros. It includes the unit tests that are part of these source files.

Results#

  • Pull requests and main: each workflow writes its results to the summary of its CI run and uploads them as a workflow artifact.

  • Releases: release.yml verifies the head of the release branch (main by default) to be released. The QNX 8 build and unit tests, the Cargo tests, Miri, Loom, the component integration tests, the documentation build, the static analysis and the vulnerability scan must pass. Only then does it create the tag and a draft release with the evidence as assets: the coverage archive (including the unit test results), the component integration test results, the Miri report, the static analysis report (clippy and complexity), the vulnerability scan results, the product SBOM (SPDX 2.3 and CycloneDX 1.6, //:sbom_product), the documentation and SHA256 checksums. A maintainer reviews and publishes the draft.

Known Limitations#

  • The Rust unit tests are not linked to requirements. Requirement-based verification is done by the component integration tests.

  • The number of public interfaces per component is not measured yet.

  • Ignored vulnerability advisories are listed with their justification in .cargo/audit.toml (cargo-audit) and osv-scanner.toml (SBOM scan). The SBOM scan ignores expire, so the scan fails again unless the justification is renewed.

  • The iceoryx2 crates are built from the score_crates git source. Their package URLs in the SBOM point to crates.io, so the SBOM scan cannot match advisories for them.