diff --git a/docs/internals/requirements/requirements.rst b/docs/internals/requirements/requirements.rst index dd5d8baa5..6317c5867 100644 --- a/docs/internals/requirements/requirements.rst +++ b/docs/internals/requirements/requirements.rst @@ -1126,6 +1126,31 @@ Testing Docs-As-Code shall enforce that every Safety Analysis has a short description of the failure effect (e.g. failure lead to an unintended actuation of the analysed element) + +.. tool_req:: Safety Analysis Safety Relevant Attribute + :id: tool_req__docs_saf_attrs_safety_relevant + :implemented: YES + :tags: Safety Analysis + :version: 1 + + Docs-As-Code shall allow needs of type :need:`tool_req__docs_saf_types` and + ``plat_saf_dfa`` to have an optional ``safety_relevant`` attribute. The + allowed values are: + + * yes + * no + + +.. tool_req:: FMEA: Root Cause Attribute + :id: tool_req__docs_saf_attrs_root_cause + :implemented: YES + :tags: Safety Analysis + :version: 1 + + Docs-As-Code shall allow FMEA needs (``feat_saf_fmea``, ``comp_saf_fmea``) + to have an optional ``root_cause`` attribute with non-empty content. + + ---------------------------------------------------------------- Safety Analysis (DFA + FMEA) Process to Tool Requirement Mapping ---------------------------------------------------------------- diff --git a/src/extensions/score_metamodel/metamodel.yaml b/src/extensions/score_metamodel/metamodel.yaml index 0b49ce454..f2b74f457 100644 --- a/src/extensions/score_metamodel/metamodel.yaml +++ b/src/extensions/score_metamodel/metamodel.yaml @@ -736,6 +736,7 @@ needs_types: violates: feat_arc_sta optional_options: mitigation_issue: ^https://github.com/.*$ + safety_relevant: ^(yes|no)$ optional_links: mitigated_by: stkh_req, aou_req parts: 3 @@ -758,6 +759,8 @@ needs_types: optional_options: # req-Id: tool_req__docs_saf_attrs_mitigation_issue mitigation_issue: ^https://github.com/.*$ + # req-Id: tool_req__docs_saf_attrs_safety_relevant + safety_relevant: ^(yes|no)$ optional_links: # req-Id: tool_req__docs_saf_attrs_mitigated_by # (only mandatory once valid status == valid) @@ -782,6 +785,8 @@ needs_types: optional_options: # req-Id: tool_req__docs_saf_attrs_mitigation_issue mitigation_issue: ^https://github.com/.*$ + # req-Id: tool_req__docs_saf_attrs_safety_relevant + safety_relevant: ^(yes|no)$ mandatory_links: # req-Id: tool_req__docs_saf_attrs_violates violates: comp_arc_sta @@ -810,6 +815,10 @@ needs_types: optional_options: # req-Id: tool_req__docs_saf_attrs_mitigation_issue mitigation_issue: ^https://github.com/.*$ + # req-Id: tool_req__docs_saf_attrs_safety_relevant + safety_relevant: ^(yes|no)$ + # req-Id: tool_req__docs_saf_attrs_root_cause + root_cause: ^[\s\S]+$ mandatory_links: # req-Id: tool_req__docs_saf_attrs_violates violates: feat_arc_dyn, feat_arc_sta @@ -837,6 +846,10 @@ needs_types: optional_options: # req-Id: tool_req__docs_saf_attrs_mitigation_issue mitigation_issue: ^https://github.com/.*$ + # req-Id: tool_req__docs_saf_attrs_safety_relevant + safety_relevant: ^(yes|no)$ + # req-Id: tool_req__docs_saf_attrs_root_cause + root_cause: ^[\s\S]+$ mandatory_links: # req-Id: tool_req__docs_saf_attrs_violates violates: comp_arc_dyn, comp_arc_sta