Skip to content

feat: GSN safety cases + STPA-for-AI schemas with bridges#109

Merged
avrabe merged 2 commits intomainfrom
feat/safety-schemas
Apr 2, 2026
Merged

feat: GSN safety cases + STPA-for-AI schemas with bridges#109
avrabe merged 2 commits intomainfrom
feat/safety-schemas

Conversation

@avrabe
Copy link
Copy Markdown
Contributor

@avrabe avrabe commented Apr 2, 2026

Summary

Two new safety schemas completing rivet's safety toolchain:

GSN Safety Case Schema (#103)

  • 6 artifact types: safety-goal, safety-strategy, safety-solution, safety-context, safety-justification, away-goal
  • 5 link types with inverses (decomposes, supports, scopes, justifies, sub-goal-of)
  • 4 traceability rules (goals need support, strategies decompose goals)
  • safety-case-stpa.bridge.yaml — STPA hazards → safety goals
  • safety-case-eu-ai-act.bridge.yaml — risk assessments → safety goals
  • rivet init --preset safety-case
  • Covers UL 4600, ISO/PAS 8800 assurance arguments

STPA-for-AI Extension (#105)

  • 7 ML lifecycle artifact types: ml-controller, training-data-source, data-hazard, ml-uca, ml-loss-scenario, monitoring-trigger, retraining-requirement
  • 5 traceability rules for ML safety lifecycle
  • rivet init --preset stpa-ai
  • Example project in examples/stpa-ai/
  • Based on DeepSTPA, UniSTPA, ISO/PAS 8800

Schema count: 12 built-in (was 9)

common, dev, stpa, stpa-ai, aspice, cybersecurity, aadl, score, eu-ai-act, safety-case + 4 bridge schemas

Refs #103, #105.

Test plan

  • All 16 embedded schema tests pass (includes new schemas)
  • cargo check --workspace — clean
  • CI

🤖 Generated with Claude Code

avrabe added 2 commits April 1, 2026 21:12
)

Goal Structuring Notation for structured safety arguments:
- 6 artifact types: safety-goal, safety-strategy, safety-solution,
  safety-context, safety-justification, away-goal
- 5 link types: decomposes, supports, scopes, justifies, sub-goal-of
- 4 traceability rules (goals need support, strategies need goals)
- safety-case-stpa.bridge.yaml: STPA hazards → safety goals
- safety-case-eu-ai-act.bridge.yaml: risk assessments → safety goals
- rivet init --preset safety-case with starter artifacts

Covers UL 4600, ISO/PAS 8800 assurance arguments.
Extends STPA for AI/ML systems with 7 new artifact types:
- ml-controller, training-data-source, data-hazard, ml-uca,
  ml-loss-scenario, monitoring-trigger, retraining-requirement

5 traceability rules enforcing ML safety lifecycle.
rivet init --preset stpa-ai with starter artifacts.
Example project in examples/stpa-ai/.

Based on DeepSTPA, UniSTPA, and ISO/PAS 8800 methodology.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@avrabe avrabe merged commit 43830b9 into main Apr 2, 2026
16 of 18 checks passed
@avrabe avrabe deleted the feat/safety-schemas branch April 2, 2026 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant