feat: GSN safety cases + STPA-for-AI schemas with bridges#109
Merged
Conversation
) 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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Apr 2, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two new safety schemas completing rivet's safety toolchain:
GSN Safety Case Schema (#103)
safety-case-stpa.bridge.yaml— STPA hazards → safety goalssafety-case-eu-ai-act.bridge.yaml— risk assessments → safety goalsrivet init --preset safety-caseSTPA-for-AI Extension (#105)
rivet init --preset stpa-aiexamples/stpa-ai/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
cargo check --workspace— clean🤖 Generated with Claude Code