Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions rivet-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1980,6 +1980,18 @@ artifacts:

const ASPICE_SAMPLE: &str = "\
artifacts:
- id: STKHR-001
type: stakeholder-req
title: Operators need full sensor history for fleet diagnostics
status: draft
description: >
Fleet operators need access to a complete time-series record of
every sensor reading so anomalies discovered post-trip can be
diagnosed against ground-truth data.
fields:
priority: must
source: fleet-operations-stakeholder-doc-v1

- id: SYSREQ-001
type: system-req
title: System shall provide data logging
Expand All @@ -1991,6 +2003,9 @@ artifacts:
priority: must
verification-criteria: >
Verify that sensor data is recorded at 100Hz under nominal load.
links:
- type: derives-from
target: STKHR-001

- id: SWREQ-001
type: sw-req
Expand Down
13 changes: 13 additions & 0 deletions schemas/aspice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,19 @@ link-types:
source-types: [verification-verdict]
target-types: [verification-execution]

# `allocated-from` is the forward direction used by ASPICE
# `sw-arch-component` to point at its allocating sw-req. The common
# schema declares the inverse-named pair (`allocated-to` with
# `inverse: allocated-from`) but only registers the forward token
# `allocated-to`. ASPICE swaps the canonical direction for SWE.2,
# so we declare `allocated-from` here as a forward link-type to
# avoid the gotcha-G.3 footgun in the seed.
- name: allocated-from
inverse: allocated-to
description: SW arch component is allocated from a SW requirement (SWE.2)
source-types: [sw-arch-component]
target-types: [sw-req, system-arch-component]

# ──────────────────────────────────────────────────────────────────────────
# ASPICE traceability rules
#
Expand Down
Loading