Skip to content

Allow draft status for safety analysis types - #1065

Open
PandaeDo wants to merge 2 commits into
eclipse-score:mainfrom
qorix-group:vohae_saf_status_draft
Open

PandaeDo wants to merge 2 commits into
eclipse-score:mainfrom
qorix-group:vohae_saf_status_draft

Conversation

@PandaeDo

Copy link
Copy Markdown
Contributor

Implements the new Safety Analysis status draft from eclipse-score/process_description#885.

Changes

  • metamodel.yaml: status of plat_saf_dfa, feat_saf_dfa, comp_saf_dfa, feat_saf_fmea, comp_saf_fmea now allows ^(draft|valid|invalid)$.
  • tool_req__docs_common_attr_status → version 3, lists draft (safety analysis elements only).
  • Links updated to gd_req__saf_attr_status[version==2] and gd_req__saf_attr_mitigation_issue[version==2].
  • tool_req__docs_saf_attrs_mitigated_by: clarifies that draft needs are not checked. No logic change needed, since the mitigated_by graph check and the valid-only-links-to-valid check only apply to status == valid.
  • Test test_options_common_attrs_status.rst: new positive test for draft on a safety analysis type; the negative test now uses valid_inspected.

Dependency
The [version==2] links resolve only after a score_process_description release containing #885 and a bump of the bazel_dep here (currently 2.2.4).

Local checks

  • bazel run //:ide_support
  • bazel test //src/extensions/score_metamodel:file_based_tests_options :file_based_tests_safety :unit_tests → passed
  • .venv_docs/bin/python -m pytest -vv src/tests/docs_bzl → 67 passed

Related: eclipse-score/module_template#253

Assisted-by: Anthropic Claude Opus 5.5 (claude-opus-5-5)

🤖 Generated with Claude Code

Safety Analysis (FMEA/DFA) status can now be draft, valid or invalid,
following gd_req__saf_attr_status version 2. Draft analyses are not
checked for mitigated_by, as the existing check only applies to
status == valid.

Assisted-by: Anthropic Claude Opus 5.5 (claude-opus-5-5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant