Kyron Release Note#
Kyron Release Note
|
status: valid
security: YES
safety: QM
|
||||
Overview#
This document lists the changes in Kyron v0.2.1 compared with the origin release v0.2.0. It is a bug fix release for the scheduler: work stealing, the safety worker, task re-queueing and worker shutdown. It also adds the executor component requirements with their linked tests, the QM classification of the module, unit tests on QNX and Miri in the Bazel build. The public API is unchanged. Updating is recommended for all users.
Disclaimer#
This release note does not “release for production”, as it does not come with a safety argumentation and a performed safety assessment. The work products are created with care according to a process satisfying standards, but the project, being a non-profit and open source organization, cannot take over any liability for their content.
Changes to the Module#
New Features#
None.
Improvements#
Executor requirements: component requirements for the executor core, scheduling and worker threads (worker priority and affinity, FIFO task queue, queue size and overflow,
yield_now), derived from the orchestration feature requirements and linked to the architecture and the component integration tests (#189, #190).Component integration tests: stronger checks for engine isolation, dedicated worker locality and tasks that yield. Test cases linked to requirements go from 83 to 103 (#202, #206).
Coverage gate: the unit test line coverage gate is raised from 44% to 72% (#206).
QNX unit tests: the unit tests of
kyron,kyron-foundationandkyron-testingrun on QNX 8 (x86_64, aarch64) in a QEMU microVM, in CI and in the release verification (#111).Miri: Miri runs in the Bazel build. The internal waker detects Miri at compile time instead of reading an environment variable on every pipe creation (#79).
Process documentation: Kyron is classified as a QM element in the module safety and security plans, with the tailoring of the safety work products until ASIL B qualification (#186). The user manual is written (#187).
Safety API documentation: the
safety::spawn*functions state that theSafetyWorkerwake-up applies when theJoinHandleis awaited with a waker of the runtime.
Bug Fixes#
Work stealing: when a worker refills its local queue from the global queue, the free space is measured from the steal cursor, so slots that a concurrent steal is still copying are not reused (#211).
Safety worker: when a safety task finishes with an error and its
JoinHandleis awaited through a waker not created by the runtime (for exampleFuturesUnordered,join_allover more than 30 handles, or another executor), that waker is woken through its own implementation and a warning with the task id is logged.Task re-queueing: the safety worker and the dedicated workers report a full task queue with a non-recoverable error when re-queueing a woken task. Before, the task was dropped and its
JoinHandlenever resolved (#205).Worker shutdown: waking a worker no longer overwrites its shutdown state, so a stopped worker does not run one more task (#203).
Bazel integration: Kyron loads as a dependency module when it is not the root module. The product SBOM moves to
//tools/sbom:sbom_product;//:sbom_productstays as an alias (#201).
Other changes by Label#
ci: the QNX workflow runs the unit tests for both QNX configurations (#111).
ci: the Miri run is part of the Bazel test workflow (#79).
dependencies:
score_qnx_unit_tests0.3.0 andscore_rules_imagefs0.0.3 are new development dependencies for the QNX unit tests (#111).
Compatibility#
Public API: unchanged since v0.2.0.
Behaviour:
A full task queue when the safety worker or a dedicated worker re-queues a woken task is a non-recoverable error, as for the other spawn paths (#205).
The
SafetyWorkerwake-up for a safety task error applies only when theJoinHandleis awaited with a waker of the runtime. Otherwise the error reaches the awaiting task through the regular wake-up.
Dependencies: no change to the product dependencies since v0.2.0. Rust 1.90.0 for Cargo builds and for Bazel builds without a platform configuration; the platform configurations use the Ferrocene toolchains.
Performed Verification#
This release note is based on the verification documented in the module verification report Kyron Module Verification R... (doc__kyron_verification_report). The release run also runs the unit tests on QNX 8 (x86_64, aarch64). Its results are attached to the GitHub release: coverage archive with the unit test results, component integration test results, Miri report, static analysis report, vulnerability scan results, SBOM and the documentation.
Known Issues#
Safety wake-up through foreign wakers: a
JoinHandleof a safety task that is awaited through a waker not created by the runtime does not get theSafetyWorkerwake-up on an error. Await such handles directly from a task.
Other known issues are tracked in the Kyron issue tracker.
Known Vulnerabilities#
RUSTSEC-2026-0574 to RUSTSEC-2026-0582 (heapless 0.7.17):
heaplessreaches the product only throughscore_cratesiceoryx2-cal-qnx8and the default features ofpostcard1.1.3.iceoryx2-calcalls onlypostcard::to_allocvecandpostcard::from_bytes, which use none of the affectedheaplesstypes, and Kyron does not useheapless. The advisories are ignored with this justification inosv-scanner.tomluntil 2027-02-28; the fix is requested inscore_crates.
Upgrade Instructions#
Bazel users: update
bazel_dep(name = "score_kyron", ...). No code changes are needed. If you build the SBOM of Kyron,//:sbom_productstill works; the target is defined in//tools/sbom.Cargo users: no change to the dependencies. Kyron needs Rust 1.87.0 or newer; it is tested with 1.90.0.
Safety API users: if you await safety
JoinHandlevalues through combinators such asFuturesUnorderedorjoin_all, await them directly from a task to keep theSafetyWorkerwake-up on errors.
For any questions or support, please contact the Project lead or raise an issue/discussion.