Assumptions of Use

Conditions that the integrating project must satisfy when using your SEooC. An own AoU closes FTA root causes when a RootCauseAssessment lists it in its measures, pushing the obligation to prevent them out to the integrator. The AoU itself does not reference a root cause.

Traceability to requirements is established at the Bazel level via the deps attribute on the assumptions_of_use rule — there is no TRLC derived_from or satisfies field on AoU itself. A dependent component requirement can, however, declare that it implements a received AoU by referencing it from its own derived_from field (see AoU Forwarding below).

Listing 4 examples/seooc/docs/aous.trlc
 package SampleType

 import ScoreReq

 ScoreReq.AoU SampleAoU {
     description = "It shall be made sure that shared memory segments are never created with the wrong name (ShmemCreatedWrongName)"
     safety      = ScoreReq.Asil.B
     version     = 1
 }
Listing 5 examples/seooc/docs/BUILD
assumptions_of_use(
    name = "sample_aous",
    srcs = ["aous.trlc"],
)

The dependable_element has no AoU attribute: its own AoUs are the assumptions_of_use targets that the safety_analysis targets of its dependability_analysis list in safety_measures (see below).

Preventing a root cause

An own AoU closes a root cause of a safety_analysis fault tree when a RootCauseAssessment lists it, with its version, in measures:

Listing 6 assessments.trlc
 package SampleLibrary

 import ScoreReq
 import SampleType
 import sample_safety_analysis_fta

 ScoreReq.RootCauseAssessment UserConfigurationAssessed {
     root_causes = [sample_safety_analysis_fta.UserProvidedWrongConfiguration]
     measures    = [SampleType.SampleAoU@1]
     safety      = ScoreReq.Asil.B
     rationale   = "The user provides a correct configuration."
     version     = 1
 }

The safety_analysis target lists the assumptions_of_use target in safety_measures and the assessments in assessments. The assumptions_of_use target needs no fault_trees dep:

assumptions_of_use(
    name = "sample_aous",
    srcs = ["aou.trlc"],
)

safety_analysis(
    name = "sample_safety_analysis",
    assessments = ["assessments.trlc"],
    fault_trees = ":sample_fault_trees",
    safety_measures = [":sample_aous"],
    # ...
)

The dependable_element derives its own AoUs from the safety_measures of its safety analyses: an AoU is exposed to dependees once, however many safety analyses list it. An assumptions_of_use target that no safety_analysis lists in safety_measures is neither rendered nor forwarded, and a dependable_element without a safety analysis has no own AoUs.

An own AoU must not be a derived_from source of a CompReq; only AoUs received from another dependable element are (see AoU Forwarding). The TRLC model does not enforce this.

AoU Forwarding

When a dependable element depends on another via deps, all assumptions of use defined by the dependency are automatically forwarded to the dependee. This ensures the integrating project is made aware of every condition it must satisfy — even those originating from transitive dependencies.

There are two forwarding mechanisms:

Automatic forwarding (own AoUs) All AoUs that the element’s safety analyses list in safety_measures are automatically forwarded to every element that lists it in deps. No configuration is needed.

Chain-forwarding (received AoUs) When a dependable element receives forwarded AoUs from its own dependencies, it can selectively forward them further by providing an aou_forwarding YAML file. Each entry requires a mandatory justification explaining why this AoU is forwarded rather than handled locally:

Listing 7 examples/seooc/aou_forwarding.yaml
 forwarded_aous:
   - aou_id: "OtherLibrary.TimingConstraint@1"
     justification: >
       This SEooC is a library component and has no control over the
       invocation cycle time. The system integrator must ensure that
       calls to the library do not exceed the 10ms cycle time constraint
       imposed by the underlying other_seooc dependency.

aou_id carries the version of the received AoU (Package.Name@version), so a justification is reviewed again when the AoU changes. An unknown ID, a mismatching version or a duplicate entry fails the build.

Handling AoUs received in the dependee Every AoU a dependable element receives appears as an item in a “Received AoUs” tier in the dependee’s lobster traceability report. An AoU that reaches the element along several paths (for example directly and through a dependency that forwards it) appears once; if the paths carry different definitions, the build fails. Each received AoU must be covered by at least one of:

  • Handling it locally: a component requirement’s derived_from field references the AoU it implements (see below). This shows up as “Component Requirements” coverage in the report.

  • Reviewing it manually: a manual_analysis target references the AoU directly (see below). This shows up as “Manual Analysis” coverage in the report.

  • Chain-forwarding it further (with justification) via aou_forwarding, to be handled by this element’s own dependees instead. This shows up as “Forwarded AoUs” coverage in the report.

If a received AoU is neither handled, reviewed nor forwarded, the bazel test traceability check fails.

A single dependable element can do all three at once — receive AoUs from its own dependencies, handle some of them locally, chain-forward the rest, and still contribute its own AoUs to the mix:

Handling a received AoU with a component requirement Add a typed, versioned reference to the AoU (Package.RecordName@version, matching the upstream AoU TRLC record) to the derived_from field of the CompReq that implements it, alongside any FeatReq/ AssumedSystemReq references — all three item kinds share the same field. Two things are required for the reference to resolve:

  1. import the AoU’s package, same as any other TRLC cross-reference.

  2. List the assumptions_of_use target that defines (or, for a received/ forwarded AoU, originally defined) the record in the component_requirements target’s deps. This target provides TrlcProviderInfo, so it can be listed directly – no intermediate wrapper is needed.

Listing 8 examples/integrator/docs/requirements/component_requirements.trlc
 package IntegratorComponent

 import ScoreReq
 import Integrator
 import SampleType

 ScoreReq.CompReq COMP_INT_001 {
     description = "The startup module shall call the SEooC initialization routine before entering the main loop"
     safety = ScoreReq.Asil.B
     derived_from = [Integrator.FEAT_INT_001@1, SampleType.SampleAoU@1]
     version = 1
 }
Listing 9 examples/integrator/docs/requirements/BUILD
component_requirements(
    name = "component_requirements",
    srcs = ["component_requirements.trlc"],
    deps = [
        ":feature_requirements",
        "@seooc//docs:sample_aous",
        "@some_other_library//:other_library_aous",
    ],
)

Being a real TRLC reference, an AoU entry in derived_from is resolved (and a typo or an AoU whose assumptions_of_use target is missing from deps is rejected) by the TRLC parser itself at build time, not by a later lobster-report matching step – while the resulting lobster item is still tagged and traced exactly as before, so the coverage report is unaffected.

Handling a received AoU with manual analysis Reference the received AoU directly in the review’s requirements list and add the review target to dependable_element.manual_analysis. The dependency’s AoU records are already present in the “Received AoUs” report level; they need not be copied into component requirements.

Listing 10 examples/seooc/manual_analysis/received_input_pointer/analysis.yaml
requirements:
  - "OtherLibrary.ValidInputPointer@1"
Listing 11 examples/seooc/BUILD
dependable_element(
    name = "safety_software_seooc_example",
    manual_analysis = [
        "//manual_analysis/received_input_pointer:review",
    ],
    deps = ["@some_other_library//:other_seooc"],
    # Other required attributes omitted.
)

Include the original AoU source, implementation and relevant configuration in the review’s contexts so changes invalidate its lock. LOBSTER coverage establishes the reference, not a successful or current verification result: bazel test of the manual_analysis target checks the lock and the recorded assertions. This does not verify that the element’s own AoUs have been fulfilled by its users.

Example: three-level forwarding chain (the real working code for this example lives in examples/some_other_library, examples/seooc, and examples/integrator)

other_seooc                     → defines AoUs: OtherLibrary.TimingConstraint,
                                                OtherLibrary.SpaceConstraint,
                                                OtherLibrary.ValidInputPointer
    ↑ (deps)
safety_software_seooc_example   → defines own AoU: SampleType.SampleAoU (auto-forwarded)
                                → handles received SpaceConstraint locally via derived_from
                                → reviews received ValidInputPointer with manual analysis
                                → chain-forwards received TimingConstraint via aou_forwarding.yaml
    ↑ (deps)
integrator_seooc                → receives SampleType.SampleAoU (auto-forwarded)
                                   and OtherLibrary.TimingConstraint (chain-forwarded)
                                → also depends on other_seooc directly, so all three of its AoUs
                                   arrive; TimingConstraint is merged into one received AoU
                                → handles SampleAoU, SpaceConstraint and ValidInputPointer
                                   locally via derived_from
                                → reviews TimingConstraint with manual analysis
Listing 12 examples/seooc/BUILD
dependable_element(
    name = "safety_software_seooc_example",
    aou_forwarding = "aou_forwarding.yaml",
    deps = ["@some_other_library//:other_seooc"],
    ...
)