Skip to content

Commit 52249f9

Browse files
docs: add folder_templates - finding fixes
Ref: closes #1106
1 parent 39d4420 commit 52249f9

File tree

18 files changed

+227
-51
lines changed

18 files changed

+227
-51
lines changed

process/folder_templates/features/feature_name/architecture/index.rst

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@
1717
Feature Architecture
1818
====================
1919

20+
.. document:: [Your Feature Name] Architecture
21+
:id: doc__feature_name_architecture
22+
:status: draft
23+
:safety: ASIL_D
24+
:realizes: wp__feature_arch
25+
:tags: template
26+
27+
.. attention::
28+
The above directive must be updated according to your Feature.
29+
30+
- Modify ``Your Feature Name`` to be your Feature Name
31+
- Modify ``id`` to be your Feature Name in upper snake case preceded by ``doc__`` and followed by ``_architecture``
32+
- Adjust ``status`` to be ``valid``
33+
- Adjust ``safety`` and ``tags`` according to your needs
34+
2035
Overview
2136
--------
2237
Brief summary
@@ -106,8 +121,8 @@ The following modules are needed to be defined to be able to draw the static fea
106121
They will be replaced by linking the proper module definitions in the used module's repositories as soon as those exist.
107122

108123
.. mod_view_sta:: Module Name
109-
:id: mod_view_sta__feature_name_module_name
110-
:includes: comp_arc_sta__feature_name_component_name
124+
:id: mod_view_sta__feature_name__module_name
125+
:includes: comp_arc_sta__feature_name__component_name
111126

112127
.. needarch::
113128
:scale: 50
@@ -122,7 +137,7 @@ The following components are needed to be defined to be able to draw the static
122137
They will be replaced by linking the proper SW component definitions in the used module's repositories as soon as those exist.
123138

124139
.. comp_arc_sta:: Component Name
125-
:id: comp_arc_sta__feature_name_component_name
140+
:id: comp_arc_sta__feature_name__component_name
126141
:safety: ASIL_D
127142
:security: YES
128143
:status: invalid
@@ -133,5 +148,8 @@ They will be replaced by linking the proper SW component definitions in the used
133148
which can be shown without actual c++/rust interfaces and data types
134149
and there will be link to lower level architecture till code to get actual api descriptions.
135150

136-
.. needextend:: "feature_name/architecture" in docname
137-
:+tags: feature_name
151+
.. attention::
152+
The above directives must be updated according to your feature architecture.
153+
154+
- Replace the example content by the real content (according to :need:`gd_guidl__arch__design`)
155+
- Set the status to valid and start the review/merge process

process/folder_templates/features/feature_name/index.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
.. document:: [Your Feature Name]
2323
:id: doc__feature_name
2424
:status: draft
25-
:safety: ASIL_B
25+
:safety: ASIL_D
26+
:realizes: wp__feat_request
2627
:tags: template
2728

2829
.. attention::
@@ -109,6 +110,7 @@ If applicable, which additional security measures must be implemented to mitigat
109110
Use Trust Boundary, Defense in Depth Analysis and/or Security Software Critically Analysis,
110111
Vulnerability Analysis.
111112
[Methods will be defined later in Process area Security Analysis]
113+
These analyses may not be available at the time of creation of the feature (request) but content will be improved iteratively.
112114

113115
Safety Impact
114116
=============
@@ -126,6 +128,7 @@ If applicable, which additional safety measures must be implemented to mitigate
126128
.. note::
127129
Use Dependency Failure Analysis and/or Safety Software Critically Analysis.
128130
[Methods will be defined later in Process area Safety Analysis]
131+
These analyses may not be available at the time of creation of the feature (request) but content will be improved iteratively.
129132

130133
For new feature contributions:
131134

process/folder_templates/features/feature_name/requirements/index.rst

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,42 @@
1515
Requirements
1616
############
1717

18+
.. document:: [Your Feature Name] Requirements
19+
:id: doc__feature_name_requirements
20+
:status: draft
21+
:safety: ASIL_D
22+
:realizes: wp__requirements__feat
23+
:tags: template
24+
25+
.. attention::
26+
The above directive must be updated according to your Feature.
27+
28+
- Modify ``Your Feature Name`` to be your Feature Name
29+
- Modify ``id`` to be your Feature Name in upper snake case preceded by ``doc__`` and followed by ``_requirements``
30+
- Adjust ``status`` to be ``valid``
31+
- Adjust ``safety`` and ``tags`` according to your needs
32+
1833
<Headlines (for the list of requirements if structuring is needed)>
1934
===================================================================
2035

36+
.. stkh_req:: Template
37+
:id: stkh_req__requirements__template
38+
:reqtype: Non-Functional
39+
:safety: ASIL_D
40+
:rationale: Exists just for the template example
41+
:status: invalid
42+
43+
The platform shall ...
44+
45+
.. attention::
46+
The above stakeholder requirement must be removed, it just serves as a link target for this template.
47+
2148
.. feat_req:: Some Title
2249
:id: feat_req__feature_name__some_title
2350
:reqtype: Process
2451
:security: YES
2552
:safety: ASIL_D
26-
:satisfies: stkh_req__requirements__as_code
53+
:satisfies: stkh_req__requirements__template
2754
:status: invalid
2855

2956
The Feature shall do xyz to the user to bring him to this condition at this time
@@ -42,9 +69,9 @@ Requirements
4269
.. attention::
4370
The above directives must be updated according to your feature requirements.
4471

45-
- Replace the example content by the real content for your first requirement
72+
- Replace the example content by the real content for your first requirement (according to :need:`gd_guidl__req__engineering`)
4673
- Set the status to valid and start the review/merge process
4774
- Add other needed requirements for your feature
4875

49-
.. needextend:: "feature_name/requirements" in docname
76+
.. needextend:: "feature_name" in id
5077
:+tags: feature_name

process/folder_templates/features/feature_name/safety_analysis/dfa.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@
1616
Dependent Failure Analysis
1717
==========================
1818

19+
.. document:: [Your Feature Name] DFA
20+
:id: doc__feature_name_dfa
21+
:status: draft
22+
:safety: ASIL_D
23+
:realizes: wp__sw_feature_dfa
24+
:tags: template
25+
26+
.. attention::
27+
The above directive must be updated according to your Feature.
28+
29+
- Modify ``Your Feature Name`` to be your Feature Name
30+
- Modify ``id`` to be your Feature Name in upper snake case preceded by ``doc__`` and succeeded by ``_dfa``
31+
- Adjust ``status`` to be ``valid``
32+
- Adjust ``safety`` and ``tags`` according to your needs
33+
34+
Dependent Failure Intitiators
35+
-----------------------------
36+
1937
.. code-block:: rst
2038
2139
.. feat_saf_dfa:: <Element descriptor>

process/folder_templates/features/feature_name/safety_analysis/fmea.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,24 @@
1616
Safety Analysis : FMEA
1717
======================
1818

19+
.. document:: [Your Feature Name] FMEA
20+
:id: doc__feature_name_fmea
21+
:status: draft
22+
:safety: ASIL_D
23+
:realizes: wp__sw_feature_safety_analysis
24+
:tags: template
25+
26+
.. attention::
27+
The above directive must be updated according to your Feature.
28+
29+
- Modify ``Your Feature Name`` to be your Feature Name
30+
- Modify ``id`` to be your Feature Name in upper snake case preceded by ``doc__`` and succeeded by ``_fmea``
31+
- Adjust ``status`` to be ``valid``
32+
- Adjust ``safety`` and ``tags`` according to your needs
33+
34+
Failure Mode List
35+
-----------------
36+
1937
.. code-block:: rst
2038
2139
.. feat_saf_fmea:: <Element descriptor>

process/folder_templates/features/feature_name/safety_planning/index.rst

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,30 @@
1717
Feature Safety Planning
1818
=======================
1919

20-
.. list-table:: Feature <feature> Workproducts
20+
.. document:: [Your Feature Name] Safety WPs
21+
:id: doc__feature_name_safety_wp
22+
:status: draft
23+
:safety: ASIL_D
24+
:realizes: wp__platform_safety_plan
25+
:tags: template
26+
27+
.. attention::
28+
The above directive must be updated according to your Feature.
29+
30+
- Modify ``Your Feature Name`` to be your Feature Name
31+
- Modify ``id`` to be your Module Name in upper snake case preceded by ``doc__`` and succeeded by ``_safety_wp``
32+
- Adjust ``status`` to be ``valid``
33+
- Adjust ``safety`` and ``tags`` according to your needs
34+
35+
.. list-table:: Feature <feature_name> Workproducts
2136
:header-rows: 1
2237

2338
* - Workproduct Id
2439
- Link to process
2540
- Process status
2641
- Link to issue
2742
- Link to WP
28-
- WP status
43+
- WP/doc status
2944

3045
* - :need:`wp__feat_request`
3146
- :need:`gd_temp__change__feature_request`
@@ -38,36 +53,36 @@ Feature Safety Planning
3853
- :need:`gd_temp__req__feat_req`
3954
- :ndf:`copy('status', need_id='gd_temp__req__feat_req')`
4055
- <link to issue>
41-
- :doc:`../requirements/index`
42-
- see below
56+
- :need:`doc__feature_name_requirements`
57+
- doc :ndf:`copy('status', need_id='doc__feature_name')` & WP below
4358

4459
* - :need:`wp__requirements__feat_aou`
4560
- :need:`gd_temp__req__aou_req`
4661
- :ndf:`copy('status', need_id='gd_temp__req__aou_req')`
4762
- <link to issue>
48-
- :doc:`../requirements/index`
49-
- see below
63+
- :need:`doc__feature_name_requirements`
64+
- doc :ndf:`copy('status', need_id='doc__feature_name')` & WP below
5065

5166
* - :need:`wp__feature_arch`
5267
- :need:`gd_temp__arch__feature`
5368
- :ndf:`copy('status', need_id='gd_temp__arch__feature')`
5469
- <link to issue>
55-
- :doc:`../architecture/index`
56-
- see below
70+
- :need:`doc__feature_name_architecture`
71+
- doc :ndf:`copy('status', need_id='doc__feature_name_architecture')` & WP below
5772

5873
* - :need:`wp__feature_safety_analysis`
5974
- <link to process>
6075
- <automated>
6176
- <link to issue>
62-
- :doc:`../safety_analysis/fmea`
63-
- <automated>
77+
- :need:`doc__feature_name_fmea`
78+
- doc :ndf:`copy('status', need_id='doc__feature_name_fmea')` & WP below
6479

6580
* - :need:`wp__feature_dfa`
6681
- <Link to process>
6782
- <Process status>
6883
- <Link to issue>
69-
- :doc:`../safety_analysis/dfa`
70-
- <automated>
84+
- :need:`doc__feature_name_dfa`
85+
- doc :ndf:`copy('status', need_id='doc__feature_name_dfa')` & WP below
7186

7287
* - :need:`wp__requirements__inspect`
7388
- :need:`gd_chklst__req__inspection`
@@ -90,6 +105,12 @@ Feature Safety Planning
90105
- <Link to WP>
91106
- <automated>
92107

108+
.. attention::
109+
The above table must be updated according to your feature safety planning.
110+
111+
- Create and link the issues to plan the work products (according to :need:`gd_guidl__saf_plan_definitions`)
112+
- Fill the work producs links and add their status (also possible below) to create the safety package (according to :need:`gd_guidl__saf_package`)
113+
93114
Feature Requirements Status
94115
---------------------------
95116

process/folder_templates/modules/module_name/component_name/docs/architecture/index.rst

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,21 @@
1717
Component Architecture
1818
======================
1919

20+
.. document:: [Your Component Name] Architecture
21+
:id: doc__component_name_architecture
22+
:status: draft
23+
:safety: ASIL_D
24+
:realizes: wp__component_arch
25+
:tags: template
26+
27+
.. attention::
28+
The above directive must be updated according to your needs.
29+
30+
- Modify ``Your Component Name`` to be your Component Name
31+
- Modify ``id`` to be your Component Name in upper snake case preceded by ``doc__`` and followed by ``_architecture``
32+
- Adjust ``status`` to be ``valid``
33+
- Adjust ``safety`` and ``tags`` according to your needs
34+
2035
Overview
2136
--------
2237
Brief summary
@@ -60,7 +75,7 @@ The components are designed to cover the expectations from the feature architect
6075
:status: invalid
6176
:implements: logic_arc_int__feature_name__interface_name
6277
:fulfils: comp_req__component_name__some_title
63-
:includes: comp_arc_sta__component_name_2
78+
:includes: comp_arc_sta__component_name__2
6479

6580
.. needarch::
6681
:scale: 50
@@ -97,7 +112,7 @@ Lower Level Components
97112
----------------------
98113

99114
.. comp_arc_sta:: Component Name 2
100-
:id: comp_arc_sta__component_name_2
115+
:id: comp_arc_sta__component_name__2
101116
:status: invalid
102117
:safety: ASIL_D
103118
:security: YES
@@ -108,5 +123,8 @@ Lower Level Components
108123
.. note::
109124
Architecture can be split into multiple files. At component level the public interfaces to be used by the user and tester to be shown.
110125

111-
.. needextend:: "module_name/component_name/docs/architecture" in docname
112-
:+tags: component_name
126+
.. attention::
127+
The above directives must be updated according to your component architecture.
128+
129+
- Replace the example content by the real content (according to :need:`gd_guidl__arch__design`)
130+
- Set the status to valid and start the review/merge process

process/folder_templates/modules/module_name/component_name/docs/component_classification.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ Component Classification
2020
.. document:: [Your Component Name] Component Classification
2121
:id: doc__component_name_comp_class
2222
:status: draft
23-
:safety: ASIL_B
23+
:safety: ASIL_D
24+
:realizes: wp__sw_component_class
2425
:tags: template
2526

2627
.. attention::
2728
The above directive must be updated according to your Component.
2829

29-
- Modify ``document`` to be your Component Name
30+
- Modify ``Your Component Name`` to be your Component Name
3031
- Modify ``id`` to be your Component Name in upper snake case preceded by ``doc__``
3132
- Adjust ``status`` to be ``valid``
3233
- Adjust ``safety`` and ``tags`` according to your needs

process/folder_templates/modules/module_name/component_name/docs/index.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
.. document:: [Your Component Name]
2323
:id: doc__component_name
2424
:status: draft
25-
:safety: ASIL_B
25+
:safety: ASIL_D
26+
:realizes: wp__cmpt_request
2627
:tags: template
2728

2829
.. attention::

process/folder_templates/modules/module_name/component_name/docs/requirements/index.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@
1515
Requirements
1616
############
1717

18+
.. document:: [Your Component Name] Requirements
19+
:id: doc__component_name_requirements
20+
:status: draft
21+
:safety: ASIL_D
22+
:realizes: wp__requirements__comp
23+
:tags: template
24+
25+
.. attention::
26+
The above directive must be updated according to your Component.
27+
28+
- Modify ``Your Component Name`` to be your Component Name
29+
- Modify ``id`` to be your Component Name in upper snake case preceded by ``doc__`` and followed by ``_requirements``
30+
- Adjust ``status`` to be ``valid``
31+
- Adjust ``safety`` and ``tags`` according to your needs
32+
1833
<Headlines (for the list of requirements if structuring is needed)>
1934
===================================================================
2035

@@ -49,9 +64,9 @@ Requirements
4964
.. attention::
5065
The above directives must be updated according to your feature requirements.
5166

52-
- Replace the example content by the real content for your first requirement
67+
- Replace the example content by the real content for your first requirement (according to :need:`gd_guidl__req__engineering`)
5368
- Set the status to valid and start the review/merge process
5469
- Add other needed requirements for your feature
5570

56-
.. needextend:: "module_name/component_name/docs/requirements" in docname
71+
.. needextend:: "component_name" in id
5772
:+tags: component_name

0 commit comments

Comments
 (0)