Requirements#
Fault Library Requirements
|
status: draft
security: YES
safety: QM
|
||||
Functional Requirements#
Component Fault Catalog
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall provide an API for defining and managing component fault catalogs. Fault catalogs can be initialized from a JSON file, a JSON string, or constructed programmatically using the provided API. |
|||||
Unique Fault IDs in a Catalog
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall refuse a catalog that defines a fault ID twice. |
|||||
Fault Reporting
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall let a component report a fault of its catalog with its lifecycle stage, the time of the report and optional environment data, through a reporter bound once to the fault’s descriptor. |
|||||
Framework Agnostic
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall be usable from synchronous code without an async runtime and from several threads, particularly also at the same point in time. |
|||||
Debouncing
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall debounce reports per fault before relaying them, with a policy configured in the fault catalog: a minimum count within a time window, a hold time, and/or an edge with a cooldown. |
|||||
Enabling Conditions
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall let a component report the status of an enabling condition and let fault monitors query it. |
|||||
Relay to the Fault Manager
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall relay reports to the diagnostic fault manager over IPC. A report whose send fails with a transient error (transport down, timeout, queue full or rate limited) shall be kept in a retry queue of 512 reports, which drops the oldest report when full. Each report shall be retried up to 10 times, with the delay doubling from 100 ms up to 5 s, and shall be dropped after the tenth failed attempt. |
|||||
Relay Permanent Errors
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall drop a report at once when its send fails with an error that is not transient. |
|||||
Relay Acknowledgement
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall count a successful send as relayed and shall not wait for an acknowledgement from the fault manager. |
|||||
Reporting Errors
|
status: invalid
security: NO
safety: QM
|
||||
The fault library shall return an error to the reporting component when a report cannot be relayed or queued. |
|||||
Assumptions of Use (AoU)#
Fault IDs
|
status: valid
security: NO
safety: QM
|
||||
The integrator shall give the faults of a component’s catalog IDs that are unique within that catalog and shall use only ASCII in text fault IDs and environment data. |
|||||
Verification#
The requirements are verified by the tests of Eclipse OpenSOVD fault-lib at commit 12dac50. fault-lib does
not tag its tests with requirement IDs yet, so they are listed here instead of being linked automatically.