Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a4b9193
add documentation examples
RolandJentschETAS Apr 1, 2026
d663e72
fix copyright check
RolandJentschETAS Apr 1, 2026
bf89f92
add copyright
RolandJentschETAS Apr 1, 2026
683d5df
add newline at end of file
RolandJentschETAS Apr 1, 2026
c23e2f9
Revert "add newline at end of file"
RolandJentschETAS Apr 1, 2026
87736d6
add newlines
RolandJentschETAS Apr 1, 2026
dd338b2
take over general structure according to process
RolandJentschETAS Apr 7, 2026
a368dd9
use folder template from process repo
RolandJentschETAS Apr 7, 2026
ef83c1f
fix commit hash
RolandJentschETAS Apr 7, 2026
90b3293
fix strange format error
RolandJentschETAS Apr 7, 2026
3e7930d
structuring module documentation
RolandJentschETAS Apr 8, 2026
932dd61
add directory tree picture
RolandJentschETAS Apr 8, 2026
32f0836
add some comments
RolandJentschETAS Apr 8, 2026
66f9fae
change to include folder approach
RolandJentschETAS Apr 9, 2026
f00943c
use main path instead of link
RolandJentschETAS Apr 9, 2026
e781916
fix builds
RolandJentschETAS Apr 9, 2026
60aa73e
remove stakeholder reqs
RolandJentschETAS Apr 9, 2026
c14608e
remove stakeholder reqs
RolandJentschETAS Apr 9, 2026
eff3896
temp fix for docs at root
AlexanderLanin Apr 10, 2026
e981b1d
fix links
RolandJentschETAS Apr 10, 2026
7f4f5b5
add any necessary files
RolandJentschETAS Apr 13, 2026
bfee7e5
add main index file
RolandJentschETAS Apr 13, 2026
6fd9311
move aou
RolandJentschETAS Apr 13, 2026
59bc409
move aou
RolandJentschETAS Apr 13, 2026
45b433d
update folder structure entry picture
RolandJentschETAS Apr 13, 2026
778b735
empty gitkeep
RolandJentschETAS Apr 13, 2026
4fd4bcf
rework test folders
RolandJentschETAS Apr 13, 2026
590638c
small adaption of the folder structure
RolandJentschETAS Apr 13, 2026
ea1cf04
remove CR content
RolandJentschETAS Apr 13, 2026
6f7f588
remove CR content
RolandJentschETAS Apr 13, 2026
668691f
move verification
RolandJentschETAS Apr 14, 2026
db86d4e
add review results
RolandJentschETAS Apr 17, 2026
c1bec9b
minor changes
RolandJentschETAS Apr 21, 2026
9d9611f
add hints
RolandJentschETAS Apr 21, 2026
9d90c3b
add missing wp
RolandJentschETAS Apr 21, 2026
31ed8a9
add hint
RolandJentschETAS Apr 21, 2026
91e451f
fix review findings
RolandJentschETAS Apr 22, 2026
70b1e0e
add notes
RolandJentschETAS Apr 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ setup_starpls(
copyright_checker(
name = "copyright",
srcs = [
"src",
"score",
"tests",
"//:BUILD",
"//:MODULE.bazel",
Expand All @@ -44,5 +44,8 @@ dash_license_checker(
use_format_targets()

docs(
source_dir = "docs",
data = [
"@score_process//:needs_json",
],
source_dir = ".",
)
27 changes: 24 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module(
version = "1.0",
)

bazel_dep(name = "rules_python", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "rules_python", version = "1.8.3", dev_dependency = True)

# Python 3.12: Required for testing infrastructure and code generation tools
PYTHON_VERSION = "3.12"
Expand All @@ -30,6 +30,20 @@ python.toolchain(
python_version = PYTHON_VERSION,
)

pip = use_extension(
"@rules_python//python/extensions:pip.bzl",
"pip",
dev_dependency = True,
)
pip.parse(
envsubst = ["PIP_INDEX_URL"],
extra_pip_args = ["--index-url=${PIP_INDEX_URL:-https://pypi.org/simple/}"],
hub_name = "module_template_docs_hub_env",
python_version = PYTHON_VERSION,
requirements_lock = "@score_docs_as_code//src:requirements.txt",
)
use_repo(pip, "module_template_docs_hub_env")

# Add GoogleTest dependency
bazel_dep(name = "googletest", version = "1.17.0", dev_dependency = True)

Expand Down Expand Up @@ -57,9 +71,16 @@ use_repo(llvm, "llvm_toolchain_llvm")
register_toolchains("@llvm_toolchain//:all")

# tooling
bazel_dep(name = "score_tooling", version = "1.0.4", dev_dependency = True)
bazel_dep(name = "score_tooling", version = "1.2.0", dev_dependency = True)
bazel_dep(name = "aspect_rules_lint", version = "1.10.2", dev_dependency = True)
bazel_dep(name = "buildifier_prebuilt", version = "8.2.0.2", dev_dependency = True)

#docs-as-code
bazel_dep(name = "score_docs_as_code", version = "2.3.0", dev_dependency = True)
bazel_dep(name = "score_docs_as_code", version = "3.1.0", dev_dependency = True)
bazel_dep(name = "score_process", version = "1.5.1", dev_dependency = True)

git_override(
module_name = "score_docs_as_code",
commit = "817080b1f184618a3ecb5bb9029e453ebc5fe806",
remote = "https://github.com/eclipse-score/docs-as-code.git",
)
1,151 changes: 998 additions & 153 deletions MODULE.bazel.lock

Large diffs are not rendered by default.

18 changes: 13 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ It provides a **standardized project structure**, ensuring best practices for:
| File/Folder | Description |
| ----------------------------------- | ------------------------------------------------- |
| `README.md` | Short description & build instructions |
| `src/` | Source files and Unit Tests for the module |
| `score/` | Source files and Unit Tests for the module |
| `tests/` | Component and Feature Integration Tests (CIT&FIT) |
| `examples/` | Example files used for guidance |
| `docs/` | Documentation (Doxygen for C++ / mdBook for Rust) |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I know doxygen is not used currently.
OR am I on old information?

Copy link
Copy Markdown
Contributor Author

@RolandJentschETAS RolandJentschETAS Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unchanged (was there also before PR). We have to check that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementation process is not finalised yet, that was planned for implementation, detailed design

Expand Down Expand Up @@ -61,15 +61,15 @@ cd YOUR_PROJECT
To build all targets of the module the following command can be used:

```sh
bazel build //src/...
bazel build //score/...
```

This command will instruct Bazel to build all targets that are under Bazel
package `src/`. The ideal solution is to provide single target that builds
package `score/`. The ideal solution is to provide single target that builds
artifacts, for example:

```sh
bazel build //src/<module_name>:release_artifacts
bazel build //score/<module_name>:release_artifacts
```

where `:release_artifacts` is filegroup target that collects all release
Expand All @@ -89,7 +89,7 @@ bazel test //...
Unit tests:

```sh
bazel test //src/...
bazel test //score/...
```

Component / Feature integration tests:
Expand All @@ -113,6 +113,14 @@ The template integrates **tools and linters** from **centralized repositories**
## 📖 Documentation

- A **centralized docs structure** is planned.
- This template builds Sphinx from the repository root. The configuration stays in
`conf.py`, the main document is `docs/index.rst`, and the root `BUILD` target uses
a repository-local `docs.bzl` wrapper because the upstream SCORE docs macro does not
currently support `source_dir = "."`.

```sh
bazel run //:docs
```

---

Expand Down
15 changes: 14 additions & 1 deletion docs/conf.py → conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,29 @@
"score_layout",
]

# Collect documentation from the module-level docs folder and from each
# component's docs folder. Using include_patterns (added in Sphinx 7.1) avoids
# the need for symlinks inside the docs/ folder.
include_patterns = [
"index.rst",
"docs/**",
"examples/docs/**",
"score/component_example/docs/**",
]

exclude_patterns = [
# The following entries are not required when building the documentation via 'bazel
# build //docs:docs', as that command runs in a sandboxed environment. However, when
# building the documentation via 'bazel run //docs:incremental' or esbonio, these
# entries are required to prevent the build from failing.
"_build",
"bazel-*",
".venv_docs",
]

templates_path = ["templates"]
root_doc = "index"

templates_path = ["docs/templates"]

# Enable numref
numfig = True
219 changes: 219 additions & 0 deletions docs/features/feature_example/architecture/chklst_arc_inspection.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,219 @@
..
# *******************************************************************************
# Copyright (c) 2025 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the
# terms of the Apache License Version 2.0 which is available at
# https://www.apache.org/licenses/LICENSE-2.0
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************


.. document:: [Your Feature Name] Architecture Inspection Checklist
:id: doc__feature_example_arc_inspection
:status: draft
:safety: ASIL_B
:security: YES
:realizes: wp__sw_arch_verification
:tags: template

.. attention::
The above directive must be updated according to your Feature.

- Modify ``Your Feature Name`` to be your Feature Name
- Modify ``id`` to be your Feature Name in lower snake case preceded by ``doc__`` and followed by ``_arc_inspection``
- Adjust ``status`` to be ``valid``
- Adjust ``safety``, ``security`` and ``tags`` according to your needs

Architecture Inspection Checklist
=================================

Purpose
-------

The purpose of the software architecture checklist is to ensure that the design meets the criteria and quality as
defined per project processes and guidelines for feature and component architectural design elements.
It helps to check the compliance with requirements, identify errors or inconsistencies, and ensure adherence to best
practices.
The checklist guides evaluation of the architecture design, identifies potential problems, and aids in
communication and documentation of architectural decisions to stakeholders.

Conduct
-------

As described in the concept :need:`doc_concept__wp_inspections` the following "inspection roles" are expected to be filled:

- content responsible (author): <contributor/committer explicitly named here, who is the main author, as can be seen in config mgt tooling>
- reviewer: <contributor/committer explicitly named here, who is the main content reviewer, must be different from content responsible>
- moderator: <committer explicitly named here, who is is the safety manager, security manager or quality manager initiating the inspection>

Checklist
---------

It is mandatory to fill in the "passed" column with "yes" or "no" for each checklist item and additionally to add in the remarks why it is passed or not passed.
In case of "no" an issue link to the issue tracking system has to be added in the last column (if not solved in the same issue).
See also :need:`doc_concept__wp_inspections` for further information about reviews in general and inspection in particular.

.. list-table:: Architecture Design Review Checklist
:header-rows: 1

* - Review Id
- Acceptance criteria
- Guidance
- passed
- Remarks
- Issue link
* - ARC_01_01
- Is the traceability from software architectural elements to requirements, and other level architectural elements (e.g. component to interface) established according to the "Relations between the architectural elements" as described in :need:`doc_concept__arch_process`?
- Trace should be checked automatically by tool support in the future. It will be removed from the checklist once the requirement (:need:`Correlations of the architectural building blocks <gd_req__arch_build_blocks_corr>`) is implemented. Refer to `Tool Requirements <https://eclipse-score.github.io/docs-as-code/main/internals/requirements/requirements.html>`_ for the current status.
-
-
-
* - ARC_01_02
- Does the software architecture design consider all the requirements allocated to the architectural element, including functional, non-functional, safety, and security requirements and all related design decisions?
- manual
- Check if all requirements allocated to the architectural element are considered in the design. This includes functional requirements (e.g. functional safety requirements), non-functional requirements (e.g. performance, reliability), and security requirements (e.g. confidentiality, integrity). Additionally, ensure that all related design decisions are taken into account and documented in the architectural design.
-
-
* - ARC_01_03
- If the architectural element is related to any supplier manuals (including safety and security), are the relevant parts covered?
- If the architecture makes use of supplied elements, their manuals (like safety) have to be considered (i.e. its provided functionality matches the expectation and assumptions are fulfilled). Note that in case of safety component this means that assumed Technical Safety Requirements and AoUs of the safety manual are covered.
-
-
-
* - ARC_01_04
- Is the architectural element traceable to the lower-level artifacts as defined by the work product traceability?
-
-
-
-
* - ARC_02_01
- Is the software architecture design compliant with the overall feature architecture?
- On component level check against the feature architecture, on feature level check other features with common components used.
-
-
-
* - ARC_02_02
- Is appropriate and comprehensible operation and interface naming present in the architectural design?
- Check :need:`gd_guidl__arch_design`
-
-
-
* - ARC_02_03
- Are the correctness of data flow and control flow within the architectural elements considered?
- For example, examine definitions, transformations, integrity, and interaction of data; check error handling, data exchange between elements, correct response to inputs, and documented decision making.
Note: Consistency is ensured by the process/tooling, by defining each interface only once.
-
-
-
* - ARC_02_04
- Are the interfaces between the software architectural element and other architectural elements well defined?
- Check if the interface handles undefined behaviour or errors; can established protocols be used; are the interfaces for inputs, outputs, and error codes documented; is loose coupling considered and only limited exposure; can unit or integration tests be written against the interface; data amount transferred; ensure no sensitive data is exposed;
-
-
-
* - ARC_02_05
- Does the software architectural element consider the timing constraints (from the parent requirement)?
- If there are strict timing requirements, a programming time estimation should be performed and deadline supervision should be considered.
-
-
-
* - ARC_02_06
- Is the documentation of the software architectural element, including textual and graphical descriptions (e.g., UML diagrams), clear and complete?
- Use of semi-formal notation is expected for architectural elements with an allocated ASIL level. Is the architecture template correctly filled?
-
-
-
* - ARC_03_01
- Is the architectural element modular and encapsulated?
- Check, for example, that only minimal interfaces are used. The design should be object oriented. Interfaces and interactions are clearly defined. Usage of access types (private, protected) is properly set. Limited global variables.
-
-
-
* - ARC_03_02
- Is the suitability of the software architecture for future modifications and maintainability considered?
- Check for, for example, loose coupling, separation of concerns, high cohesion, versioning strategy for interfaces, decision records, and use of established design patterns.
-
-
-
* - ARC_03_03
- Are simplicity and avoidance of unnecessary complexity present in the software architecture?
- Indicators of complexity include: the number of use cases (corresponding to dynamic diagrams) allocated to a single design element, the number of interfaces and operations in an interface, function parameters, global variables, complex types, and limited comprehensibility.

Notes:

If the "number of use cases" or "number of interfaces" above exceeds "3" or "number of function parameters" exceeds "5" or the "number of operations" exceeds "20" or global variables are used, a design rationale is mandatory.
-
-
-
* - ARC_03_04
- Is the software architecture design following best practices and design principles?
- Refer to architectural guidelines and recommendations within the project documentation.
-
-
-
* - ARC_04_01
- If your software architectural design includes processes with different safety ratings (QM/ASIL), is freedom from interference for shared resources (CPU time, shared memory, etc.) ensured? See also ARC_04_03.

Note: see :need:`std_req__iso26262__software_7411` and :need:`std_req__iso26262__software_749` with Annex D for partitioning to ensure freedom from interference.
Note: Modules should not mix ASIL and QM processes unless justified otherwise; therefore, this question is only relevant on the feature level.
-
Check whether your architecture design complies with project guidelines to establish freedom from interference between components. This can be achieved, for example, by using a hypervisor or an OS that supports partitioning with an MMU or specific scheduling mechanisms, as well as safety mechanisms like watchdogs or program flow monitoring.
Also check if the operating system supports freedom from interference between the processes and make sure an "Assumption of Use requirement" for this exists in your project. For example, see `score aou_req__platform__process_isolation <https://eclipse-score.github.io/score/main/requirements/platform_assumptions/index.html#aou_req__platform__process_isolation>`_.
-
-
-
* - ARC_04_02
- Does the software architectural design consider its feasibility with respect to the required resources for the embedded software, especially for time-critical aspects like startup time, but also including RAM, ROM, non-volatile memory, communication bandwidth, and processing time limits according to the requirements or foreseeable customer needs? See also ARC_02_05.

Note: see :need:`std_req__iso26262__software_7413`
-
Check if there are any limits for resource consumption or timing aspects in your project, such as startup time, communication bandwidth, or memory usage. If such limits exist, ensure that your architecture takes these limits into account, especially with respect to scalability. For this, make an estimation of the required resources based on the architectural design and a prototypical implementation or a measurement of an existing implementation, and compare it to the defined limits or planned scalability. Check if any bottlenecks are present in the architecture that could lead to resource overuse or timing violations.
-
-
-
* - ARC_04_03
- If your software architectural design includes processes and tasks, are their scheduling policies and priorities (at least the necessary relationships between them) defined to ensure that timing requirements are met? Please note that the particular priorities or priority ranges will probably be defined by the project handbook or the software development plan.

Note: see :need:`std_req__iso26262__software_743`
- Provide a rationale for these scheduling policies and priorities, or explain why they are not needed.
-
-
-


.. attention::
The above checklist entries must be filled according to your feature architecture in scope.

Note: If a Review ID is not applicable for your architecture, then state ""n/a" in status and comment accordingly in remarks.

The following static views in "valid" state and with "inspected" tag set are in the scope of this inspection:

.. needtable::
:filter: "feature_name" in docname and "architecture" in docname and docname is not None and status == "valid"
:style: table
:types: feat_arc_sta
:tags: feature_name
:columns: id;status;tags
:colwidths: 25,25,25
:sort: title

and the following dynamic views:

.. needtable::
:filter: "feature_name" in docname and "architecture" in docname and docname is not None and status == "valid"
:style: table
:types: feat_arc_dyn
:tags: feature_name
:columns: id;status;tags
:colwidths: 25,25,25
:sort: title

.. attention::
The above tables filtering must be updated according to your Feature.

- Modify ``feature_name`` to be your Feature Name in lower snake case
Loading
Loading