Skip to content

Commit 7576e9b

Browse files
committed
add failure mode attributes
1 parent 23be786 commit 7576e9b

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

docs/internals/requirements/requirements.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,31 @@ Testing
11261126

11271127
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)
11281128

1129+
1130+
.. tool_req:: Safety Analysis Safety Relevant Attribute
1131+
:id: tool_req__docs_saf_attrs_safety_relevant
1132+
:implemented: YES
1133+
:tags: Safety Analysis
1134+
:version: 1
1135+
1136+
Docs-As-Code shall allow needs of type :need:`tool_req__docs_saf_types` and
1137+
``plat_saf_dfa`` to have an optional ``safety_relevant`` attribute. The
1138+
allowed values are:
1139+
1140+
* yes
1141+
* no
1142+
1143+
1144+
.. tool_req:: FMEA: Root Cause Attribute
1145+
:id: tool_req__docs_saf_attrs_root_cause
1146+
:implemented: YES
1147+
:tags: Safety Analysis
1148+
:version: 1
1149+
1150+
Docs-As-Code shall allow FMEA needs (``feat_saf_fmea``, ``comp_saf_fmea``)
1151+
to have an optional ``root_cause`` attribute with non-empty content.
1152+
1153+
11291154
----------------------------------------------------------------
11301155
Safety Analysis (DFA + FMEA) Process to Tool Requirement Mapping
11311156
----------------------------------------------------------------

src/extensions/score_metamodel/metamodel.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,7 @@ needs_types:
736736
violates: feat_arc_sta
737737
optional_options:
738738
mitigation_issue: ^https://github.com/.*$
739+
safety_relevant: ^(yes|no)$
739740
optional_links:
740741
mitigated_by: stkh_req, aou_req
741742
parts: 3
@@ -758,6 +759,8 @@ needs_types:
758759
optional_options:
759760
# req-Id: tool_req__docs_saf_attrs_mitigation_issue
760761
mitigation_issue: ^https://github.com/.*$
762+
# req-Id: tool_req__docs_saf_attrs_safety_relevant
763+
safety_relevant: ^(yes|no)$
761764
optional_links:
762765
# req-Id: tool_req__docs_saf_attrs_mitigated_by
763766
# (only mandatory once valid status == valid)
@@ -782,6 +785,8 @@ needs_types:
782785
optional_options:
783786
# req-Id: tool_req__docs_saf_attrs_mitigation_issue
784787
mitigation_issue: ^https://github.com/.*$
788+
# req-Id: tool_req__docs_saf_attrs_safety_relevant
789+
safety_relevant: ^(yes|no)$
785790
mandatory_links:
786791
# req-Id: tool_req__docs_saf_attrs_violates
787792
violates: comp_arc_sta
@@ -810,6 +815,10 @@ needs_types:
810815
optional_options:
811816
# req-Id: tool_req__docs_saf_attrs_mitigation_issue
812817
mitigation_issue: ^https://github.com/.*$
818+
# req-Id: tool_req__docs_saf_attrs_safety_relevant
819+
safety_relevant: ^(yes|no)$
820+
# req-Id: tool_req__docs_saf_attrs_root_cause
821+
root_cause: ^[\s\S]+$
813822
mandatory_links:
814823
# req-Id: tool_req__docs_saf_attrs_violates
815824
violates: feat_arc_dyn
@@ -837,6 +846,10 @@ needs_types:
837846
optional_options:
838847
# req-Id: tool_req__docs_saf_attrs_mitigation_issue
839848
mitigation_issue: ^https://github.com/.*$
849+
# req-Id: tool_req__docs_saf_attrs_safety_relevant
850+
safety_relevant: ^(yes|no)$
851+
# req-Id: tool_req__docs_saf_attrs_root_cause
852+
root_cause: ^[\s\S]+$
840853
mandatory_links:
841854
# req-Id: tool_req__docs_saf_attrs_violates
842855
violates: comp_arc_dyn

0 commit comments

Comments
 (0)