You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rivet currently ships 9 schemas: common, dev, aadl, aspice, cybersecurity, stpa, stpa-sec, score, research. These cover automotive (ASPICE, ISO 26262 via STPA) and general development.
No open-source traceability tool provides schema-driven validation for medical, aerospace, railway, or general industrial safety standards. The competitive landscape outside automotive is a desert — teams use DOORS, Jira+plugins, or spreadsheets. Each schema Rivet ships is a domain it owns by default.
This issue adds four domain schemas for the major safety-critical verticals beyond automotive. Each follows Rivet's existing patterns: artifact types, link types, traceability rules, conditional rules, and extends: [common]. All compose with STPA/STPA-Sec via bridge schemas.
Relevant timing:
IEC 62304 Edition 2 — draft targeting publication ~August 2026, expands scope from medical devices to all health software, adds AI lifecycle requirements, simplifies safety classes from A/B/C to two levels (I/II)
Software architecture element (items, interfaces, SOUP)
med-sw-detail-design
5.4
Detailed design (Class C / Level II only)
med-sw-unit
5.5
Software unit implementation
med-sw-integration-test
5.6
Software integration and integration testing
med-sw-system-test
5.7
Software system testing
med-sw-release
5.8
Software release artifact
med-sw-maintenance
6
Software maintenance record
med-risk-control
7
Risk control measure (links to ISO 14971 hazards)
med-config-item
8
Configuration management item
soup-item
5.3
Software of Unknown Provenance — third-party/OSS component
med-anomaly
9
Problem / anomaly report
Edition 2 additions:
| ai-dev-plan | New | AI/ML development lifecycle plan |
| ai-training-data | New | Training data record (provenance, quality, bias assessment) |
| ai-validation | New | AI model validation record |
Traceability rules:
Every med-sw-req must derive from a system requirement or risk control (derives-from, error)
Every med-sw-arch must be allocated from a software requirement (allocated-from, error)
Every med-sw-req must be verified by a test (verified-by backlink, severity by class/level)
Every soup-item must have a risk assessment (risk-assessed-by backlink, error for Class B+C / Level II)
Every med-risk-control must link to at least one hazard (mitigates, error)
Conditional rules (class-dependent rigor):
Class C / Level II: med-sw-detail-design required, full unit verification required
Class A / Level I: detailed design and unit verification recommended but not required
ISO 14971 (risk management for medical devices — risk controls link target)
Schema 2: DO-178C — Airborne Software
Standard: RTCA DO-178C (2011), with supplements DO-330 through DO-333
Design Assurance Levels (DAL):
Level A: Catastrophic (most rigorous — e.g. flight control)
Level B: Hazardous/Severe-Major
Level C: Major
Level D: Minor
Level E: No safety effect (least rigorous)
Objectives-based structure:
DO-178C defines ~71 objectives across processes. The number of objectives and independence requirements increase with DAL. Rather than prescribing methods, it specifies what must be demonstrated.
Context
Rivet currently ships 9 schemas:
common,dev,aadl,aspice,cybersecurity,stpa,stpa-sec,score,research. These cover automotive (ASPICE, ISO 26262 via STPA) and general development.No open-source traceability tool provides schema-driven validation for medical, aerospace, railway, or general industrial safety standards. The competitive landscape outside automotive is a desert — teams use DOORS, Jira+plugins, or spreadsheets. Each schema Rivet ships is a domain it owns by default.
This issue adds four domain schemas for the major safety-critical verticals beyond automotive. Each follows Rivet's existing patterns: artifact types, link types, traceability rules, conditional rules, and
extends: [common]. All compose with STPA/STPA-Sec via bridge schemas.Relevant timing:
Schema 1: IEC 62304 — Medical Device Software Lifecycle
Standard: IEC 62304:2006+A1:2015 (current), Edition 2 draft (targeting 2026)
Safety classification: Three classes (Edition 1) → Two levels (Edition 2 draft)
Lifecycle processes (Clause 5-8):
med-sw-dev-planmed-sw-reqmed-sw-archmed-sw-detail-designmed-sw-unitmed-sw-integration-testmed-sw-system-testmed-sw-releasemed-sw-maintenancemed-risk-controlmed-config-itemsoup-itemmed-anomalyEdition 2 additions:
|
ai-dev-plan| New | AI/ML development lifecycle plan ||
ai-training-data| New | Training data record (provenance, quality, bias assessment) ||
ai-validation| New | AI model validation record |Traceability rules:
med-sw-reqmust derive from a system requirement or risk control (derives-from, error)med-sw-archmust be allocated from a software requirement (allocated-from, error)med-sw-reqmust be verified by a test (verified-bybacklink, severity by class/level)soup-itemmust have a risk assessment (risk-assessed-bybacklink, error for Class B+C / Level II)med-risk-controlmust link to at least one hazard (mitigates, error)Conditional rules (class-dependent rigor):
med-sw-detail-designrequired, full unit verification requiredBridge schema:
iec-62304-stpa-bridge.yamlmed-risk-controlmeasuresmed-anomalyreportsReferences:
Schema 2: DO-178C — Airborne Software
Standard: RTCA DO-178C (2011), with supplements DO-330 through DO-333
Design Assurance Levels (DAL):
Objectives-based structure:
DO-178C defines ~71 objectives across processes. The number of objectives and independence requirements increase with DAL. Rather than prescribing methods, it specifies what must be demonstrated.
air-system-reqair-hlrair-llrair-sw-archair-source-codeair-hlr-testair-llr-testair-structural-coverageair-integration-testair-hw-sw-integrationair-reviewair-tool-qualificationair-derived-reqair-problem-reportTraceability rules (bidirectional, end-to-end):
air-hlr→air-system-req(derives-from, error)air-llr→air-hlr(derives-from, error)air-source-code→air-llr(implements, error)air-hlr-test→air-hlr(verifies, error)air-llr-test→air-llr(verifies, error for DAL A/B/C)air-hlrmust have test coverage (verified-by backlink, error)air-derived-reqmust have safety justification (error)air-structural-coverage→air-source-code(covers, error for DAL A/B)Conditional rules (DAL-dependent):
Companion document artifacts:
air-model-element(DO-331 — model-based development)air-formal-proof(DO-333 — formal methods supplement)air-oo-class(DO-332 — object-oriented supplement)References:
Schema 3: IEC 61508 — Functional Safety (General Industrial)
Standard: IEC 61508:2010 (7 parts), the "mother standard" for functional safety
Safety Integrity Levels (SIL):
Overall safety lifecycle (16 phases):
fs-conceptfs-scopefs-hazard-riskfs-safety-reqfs-safety-req-allocfs-sw-safety-reqfs-sw-archfs-sw-modulefs-sw-unitfs-sw-integration-testfs-sw-validationfs-safety-planfs-safety-assessmentfs-modificationfs-tool-qualificationTraceability rules:
fs-sw-safety-req→fs-safety-req-alloc(derives-from, error)fs-sw-arch→fs-sw-safety-req(allocated-from, error)fs-sw-module→fs-sw-arch(refines, error)fs-sw-safety-reqmust be verified (verified-by backlink, error)fs-hazard-riskmust have a safety requirement addressing it (satisfies backlink, error)fs-safety-assessmentrequired for SIL 3/4 (conditional rule)Conditional rules (SIL-dependent rigor):
Bridge:
iec-61508-stpa-bridge.yamlfs-hazard-riskanalysisfs-safety-reqReferences:
Schema 4: EN 50128 / EN 50716 — Railway Software Safety
Standard: EN 50128:2011 (superseded by EN 50716:2023)
EN 50128 is a sector-specific derivation of IEC 61508 for railway applications. EN 50716 is its successor with updated terminology and structure.
SIL levels: 0-4 (same as IEC 61508, applied to railway context)
rail-sw-reqrail-sw-archrail-sw-designrail-sw-unitrail-sw-unit-testrail-sw-integrationrail-sw-integration-testrail-sw-validationrail-sw-assessmentrail-verification-reportrail-validation-reportrail-tool-classrail-config-mgmtrail-modificationTraceability rules:
rail-sw-req→ system requirement (derives-from, error)rail-sw-arch→rail-sw-req(allocated-from, error)rail-sw-design→rail-sw-arch(refines, error)rail-sw-unit→rail-sw-design(implements, error)rail-sw-reqmust be verified (verified-by backlink, error)rail-sw-unitmust have unit test (verified-by backlink fromrail-sw-unit-test, error for SIL 2+)Conditional rules:
EN 50716 changes:
Bridge:
en-50128-iec-61508-bridge.yamlReferences:
Implementation approach
Phase 1: IEC 61508 first (parent standard)
IEC 61508 is the "mother standard" — IEC 62304, EN 50128, and (indirectly) ISO 26262 all derive from it. Build this schema first as the foundation.
Phase 2: Sector schemas in parallel
Phase 3: Bridge schemas
iec-61508-stpa-bridge.yamliec-62304-stpa-bridge.yamlen-50128-iec-61508-bridge.yamldo-178c-stpa-bridge.yamlPhase 4: Cross-domain coverage
rivet coverage --schema iec-62304shows medical compliance statusrivet export --format compliance-report --schema do-178cgenerates certification evidencerivet init --schema iec-62304with starter artifacts and example projectPer-schema deliverables
schemas/examples/{domain}/descriptionandcommon-mistakesfields (Spec-driven development: schema packages, bridges, guide API, CRUD CLI #93 Phase 1)Dependencies
manifest.yaml, guidance fields) — enriches all schemascommon.yaml(extends),stpa.yaml/stpa-sec.yaml(bridge targets)