textual-notation-of-model/packages/features/middleware/middleware_score_verification_evidence.sysml
1 view(s) · 140 declared member(s) Jump to source ↓
view scoreMiddlewareVerificationCaseViewsource ↓
| Viewpoint | selected (System |
|---|---|
| Framed concerns |
|
| Render | as |
| Exposes | referencenonstaleataebsaebsnonoadapterunsubscribednoSCOREReceiptgap |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
Source
1/*2 * DE4SDV middleware verification and evidence model slice for the Eclipse3 * S-CORE realization.4 *5 * INC-MW-011, phase 10, first slice: the verification cases. Each case6 * verifies one requirement of DE4SDV_MiddlewareSCORENeedsRequirements. It7 * checks the success criteria that the requirement states and adds no8 * criterion of its own. It binds the subject of its requirement to the9 * middleware integration layer of the configured product MW-CONFIG-00210 * (phase 9).11 *12 * No case has started. No evidence record exists, and each requirement13 * keeps the verification status NotStarted. The doc of each case usage14 * states the bench that the case needs, so that the execution slices can15 * plan the runs. The owner chose the System 2 test environment on16 * 2026-10-28. Its model element and the bench of each case stay open17 * (GAP-MW-044). The validation of the needs stays planned in phase 418 * (SC-MW-006 to SC-MW-009). This slice adds no validation case.19 *20 * Phase 8 names more realization checks for phase 10. They are the LoLa21 * rules of the adapter and the start, stop and restart cases of the guard22 * rails. They also include the corrupted-payload and malformed-wrapper cases23 * of the IVI frame relay and the subscription time of gatewayd. An outage of24 * SD multicast and a link loss are among them too. The other phase starts25 * and stored frames of the relay's discard rule belong to them. So do the26 * relay's subscribe latency, its loss window and its subscriptions during a27 * death of the stack. Its use of Data Tunnel streams and the ROS 228 * environment of the adapter belong to them as well.29 * They are preflight checks of the execution slices and stay with30 * GAP-MW-035, GAP-MW-039 to GAP-MW-043 and GAP-MW-045 to GAP-MW-048. They31 * verify no requirement, so no case of this slice holds them. Where a check32 * verifies a requirement, the case of that requirement holds it as a step:33 * - VC-MW-014: the adapter restart;34 * - VC-MW-015: every phase end of the relay, its DATA_LOSS counts and the35 * client check of the frame assembler. It also holds the SD offers and36 * renewals of a long session;37 * - VC-MW-016: the SD offer from the IVI VM that must not redirect the38 * subscription of the stack;39 * - VC-MW-017: the ROS 2 environment of each ROS 2 process on the host, the40 * host configuration of GAP-MW-046 and the probe from both VMs;41 * - VC-MW-020: the clock controls of ASM-MW-030 and the bench recovery of42 * GAP-MW-048.43 * VC-MW-020 also records two measurements as context, with no criterion:44 * - how long the HMI shows stale while the SDV Core VM is down;45 * - the latency of PublicationDestroyed after a pair restart, on corrected46 * clocks.47 *48 * The cases reuse the outcome vocabulary and the verdict mapping of49 * INC-MW-010 and edit no closed slice. The evidence record of this slice50 * specializes the retained record of INC-MW-010. It adds the receipt digest51 * and the identities of the model and of the S-CORE sources. This slice52 * makes no claim, argument or counter-claim; they come with the evidence.53 * It makes no result, safety, cybersecurity, compliance or certification54 * claim.55 */5657package DE4SDV_MiddlewareSCOREVerificationEvidence {58 private import DE4SDV_MethodContext::*;59 private import DE4SDV_Stakeholders::*;60 private import DE4SDV_MiddlewareSCORENeedsRequirements::*;61 private import DE4SDV_MiddlewareVerificationEvidence::RetainedMiddlewareEvidence;62 private import DE4SDV_MiddlewareVerificationEvidence::MiddlewareEvidenceOutcome;63 private import DE4SDV_MiddlewareVerificationEvidence::MapEvidenceOutcomeToVerdict;64 private import VerificationCases::*;65 private import VerificationMethodKind::*;66 private import SAF_Viewpoints::*;67 private import Views::*;6869 item def ReceiptBoundMiddlewareEvidence :> RetainedMiddlewareEvidence {70 doc /*71 * The evidence record that each case of this slice collects: the retained72 * record of INC-MW-010 with the identity of the run added. A record binds73 * MW-CONFIG-002 as its configurationIdentity. receiptSha256 is the SHA-25674 * of the receipt that the run ran against, as MW-CONFIG-002 asks of the75 * evidence that binds it. modelRevision is the Git commit of the DE4SDV76 * model that the run evaluated. scoreReferenceIntegrationCommit and77 * scoreSOMEIPGatewayCommit are the commits of78 * eclipse-score/reference_integration and eclipse-score/inc_someip_gateway79 * that the run built. ASM-MW-021 names the pins of the increment. If80 * receiptSha256 differs from the receiptSha256 of MW-CONFIG-002, the run81 * ran against an earlier receipt. In that case, its verdict holds for82 * MW-CONFIG-002 only if the configuration's own receipt record did not83 * change. As MW-CONFIG-002 states, the pull request that rebinds84 * receiptSha256 says whether it changed. A record also binds the85 * execution environment, the contract, the raw observation artifact and86 * the observer. For a run in the guest, executionEnvironmentIdentity87 * names the builds of the SDV Core image and of the IVI image. It also88 * names their android17-release revision and their boot mode, which must89 * be the same for both (ADR 0025, decision 8). In the UNLOCKED mode,90 * claimBoundary states that the SD mesh and Data Tunnel run as cleartext91 * HTTP/2 (GAP-MW-038). A missing or partial record gives inconclusive,92 * never pass. No record exists yet.93 */94 attribute receiptSha256 : ScalarValues::String;95 attribute modelRevision : ScalarValues::String;96 attribute scoreReferenceIntegrationCommit : ScalarValues::String;97 attribute scoreSOMEIPGatewayCommit : ScalarValues::String;98 }99100 part def SCOREMiddlewareVerificationBench {101 doc /*102 * The bench of the verification cases of INC-MW-011. System 1 is the103 * configured product MW-CONFIG-002, which the bench refers to and does104 * not own. integrationLayer is its middleware integration layer: the105 * subject that each verified requirement binds. The System 2 test106 * environment is not part of this definition yet, because it has no107 * model element (GAP-MW-044). The bench is not a product selection.108 */109 ref part system1ConfiguredProduct :> DE4SDV_MiddlewareSCOREVariabilityConfiguration::configuredProduct;110 ref part integrationLayer :> DE4SDV_MiddlewareSCOREFraming::scoreMiddlewareIntegrationLayer = system1ConfiguredProduct.integrationLayer;111 }112113 part scoreMiddlewareVerificationBench : SCOREMiddlewareVerificationBench;114115 part <'GAP-MW-044'> gapSCOREVerificationEnvironmentOpen : IncrementGap {116 doc /*117 * The System 2 test environment of the phase-10 runs has no model element118 * yet. By owner decision of 2026-10-28, the System 2 bench is the GCP VM119 * de4sdv-aaos-build: n2-standard-16 in europe-west4-a, with nested120 * virtualization, restored from the snapshot de4sdv-aaos-build-20261014.121 * Two items stay open. The first is the exact System 2 identity as a122 * model element. The second is the assignment of each case to a bench.123 * The Linux-side cases can also run on GitHub-hosted runners if the124 * S-CORE build fits there. The cases that run need a Linux x86_64 host125 * (ASM-MW-026) with Eclipse S-CORE, the layer's host processes and the126 * Autoware nodes that each case names.127 * VC-MW-015, VC-MW-016 and VC-MW-020 also need the AAOS SDV guest with128 * the HMI application under KVM on that host (ASM-MW-027). The guest129 * needs its two VMs (ADR 0025). The SDV Core VM is built with the DE4SDV130 * SOME/IP mapping and stack configuration, and the IVI VM runs the IVI131 * frame relay (GAP-MW-038). The inspection cases VC-MW-018 and VC-MW-021132 * need no run. They need the configurations and the wiring that the133 * execution slices author. VC-MW-017 needs them too, and a run for its134 * reachability probe from both VMs of the guest. The next slice adds the135 * System 2 test environment element and closes this gap.136 */137 attribute :>> disposition = LifecycleDisposition::deferred;138 }139140 /* Each case collects one ReceiptBoundMiddlewareEvidence record141 * (collectData). processData compares the record with the success criteria142 * of the verified requirement and gives a MiddlewareEvidenceOutcome.143 * evaluateData maps the outcome to a VerdictKind with144 * MapEvidenceOutcomeToVerdict of INC-MW-010. A record that meets the145 * criteria gives passBoundedVerification, so pass. A record that shows the146 * criteria not met gives failObservedBehavior, so fail. Missing evidence147 * (inconclusiveMissingEvidence) and a blocked run (blockedTargetRuntime)148 * give inconclusive, and errorEvidence gives error. Each objective binds149 * the subject of its requirement to the integration layer of MW-CONFIG-002150 * on the bench. A verify is a planned verification objective, not a151 * verdict. */152153 verification def ReferenceVehicleSpeedDeliveryVerification {154 doc /*155 * Test of REQ-MW-010. The vehicle-speed provider publishes the samples156 * that the success criteria name, over Eclipse S-CORE communication. An157 * observer independent of the integration layer subscribes to the158 * velocity input of the Autoware vehicle velocity converter159 * (/de4sdv/middleware/velocity_status, phase 8). collectData records each160 * provider sample and each message that the observer receives, with the161 * identity of the observer. processData pairs each sample with its162 * message and compares the longitudinal velocity with the value that the163 * criteria state.164 */165 subject verifiedBench : SCOREMiddlewareVerificationBench;166 objective referenceVehicleSpeedDeliveryObjective {167 verify reqDeliverReferenceVehicleSpeed { subject integrationLayer = verifiedBench.integrationLayer; }168 }169 action collectData {170 @VerificationMethod{ kind = test; }171 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;172 }173 action processData {174 @VerificationMethod{ kind = analyze; }175 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;176 out evaluatedOutcome : MiddlewareEvidenceOutcome;177 }178 action evaluateData {179 @VerificationMethod{ kind = analyze; }180 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;181 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);182 }183 return verdict : VerdictKind = evaluateData.verdict;184 }185186 verification def NonFiniteSpeedSampleWithholdingVerification {187 doc /*188 * Test of REQ-MW-011. The vehicle-speed provider publishes finite189 * samples, then the NaN, positive-infinity and negative-infinity samples190 * that the success criteria name, then finite samples again. An observer191 * subscribes to the velocity input of the Autoware vehicle velocity192 * converter. collectData records each provider sample and each message at193 * that input. processData checks that no message comes from a non-finite194 * sample and that each finite sample arrives.195 */196 subject verifiedBench : SCOREMiddlewareVerificationBench;197 objective nonFiniteSpeedSampleWithholdingObjective {198 verify reqWithholdNonFiniteSpeedSample { subject integrationLayer = verifiedBench.integrationLayer; }199 }200 action collectData {201 @VerificationMethod{ kind = test; }202 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;203 }204 action processData {205 @VerificationMethod{ kind = analyze; }206 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;207 out evaluatedOutcome : MiddlewareEvidenceOutcome;208 }209 action evaluateData {210 @VerificationMethod{ kind = analyze; }211 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;212 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);213 }214 return verdict : VerdictKind = evaluateData.verdict;215 }216217 verification def StaleReferenceVehicleSpeedIndicationVerification {218 doc /*219 * Test of REQ-MW-012. The vehicle-speed provider publishes, stops, and220 * then publishes again. An observer subscribes to the speed topic and to221 * the health topic that accompanies it222 * (/de4sdv/middleware/velocity_status_health, phase 8). collectData223 * records all times on the Linux host clock. For the last finite sample224 * before the stop, it records when the provider publishes it and when the225 * observer receives it on the speed topic. It records when the first226 * stale indication arrives. For the next finite sample, it records the227 * publish time and the receipt time. It records when the first restored228 * indication arrives after that sample. Each delay starts when the229 * provider publishes its sample. The receipt times show how much of each230 * bound the path latency uses. The 5 s threshold and the 1 s watchdog of231 * the health proxy node (phase 8) already reach the stale bound of the232 * criteria. processData compares the two delays with the bounds that the233 * success criteria state.234 */235 subject verifiedBench : SCOREMiddlewareVerificationBench;236 objective staleReferenceVehicleSpeedIndicationObjective {237 verify reqIndicateStaleReferenceVehicleSpeed { subject integrationLayer = verifiedBench.integrationLayer; }238 }239 action collectData {240 @VerificationMethod{ kind = test; }241 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;242 }243 action processData {244 @VerificationMethod{ kind = analyze; }245 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;246 out evaluatedOutcome : MiddlewareEvidenceOutcome;247 }248 action evaluateData {249 @VerificationMethod{ kind = analyze; }250 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;251 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);252 }253 return verdict : VerdictKind = evaluateData.verdict;254 }255256 verification def AtMostOnceSpeedSampleDeliveryVerification {257 doc /*258 * Test of REQ-MW-013. It checks both clauses of the success criteria and259 * adds no criterion. The vehicle-speed provider publishes samples with260 * distinct values, stops, and then publishes again. While the provider261 * publishes, the run also restarts the adapter. GAP-MW-039 names this262 * restart: a restarted adapter could publish stored samples a second263 * time. An observer subscribes to the velocity input of the Autoware264 * vehicle velocity converter. The run declares an in-flight bound before265 * it starts. In the same run, it measures the one-way latency of the path266 * from the provider to that input. collectData records each provider267 * sample, the stop and the restart of the provider, the adapter restart268 * and each message at that input. processData pairs each delivered269 * message with one distinct provider sample that the provider published270 * before it. The case fails the second clause if a message has no such271 * sample, or if two messages pair with the same sample. After the stop272 * and until the provider publishes again, a message is no failure only273 * under two conditions. It pairs with a distinct sample that is not yet274 * delivered. It also arrives within the in-flight bound after the275 * publish of that sample. Any other message in that time fails the first276 * clause.277 */278 subject verifiedBench : SCOREMiddlewareVerificationBench;279 objective atMostOnceSpeedSampleDeliveryObjective {280 verify reqDeliverSpeedSampleAtMostOnce { subject integrationLayer = verifiedBench.integrationLayer; }281 }282 action collectData {283 @VerificationMethod{ kind = test; }284 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;285 }286 action processData {287 @VerificationMethod{ kind = analyze; }288 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;289 out evaluatedOutcome : MiddlewareEvidenceOutcome;290 }291 action evaluateData {292 @VerificationMethod{ kind = analyze; }293 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;294 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);295 }296 return verdict : VerdictKind = evaluateData.verdict;297 }298299 verification def AEBSSignalSourceOrderVerification {300 doc /*301 * Test of REQ-MW-014. The Autoware-based AEBS stack runs the AEBS event302 * that the success criteria name (SC-MW-002). Through the whole event,303 * the HMI application in the IVI VM of the AAOS SDV guest is subscribed.304 * The event comes at the end of a long session, as long as the clock305 * controls of ASM-MW-030 allow. So the path has carried many cycles of SD306 * offers and renewals before the event (GAP-MW-047). Before and after307 * the event, the run checks on the host that the adapter is the only308 * client of the frame assembler (ASM-MW-029). The check has two steps:309 * - ss -H -t -n -p state established '( sport = :4721 )' lists the310 * connections that the frame assembler accepted. The list must hold311 * exactly one connection, and its peer must be a loopback address;312 * - ss -H -t -n -p state established '( dport = :4721 )' must name the313 * adapter process for the port of that peer.314 * collectData records two frame lists with sequence numbers and times.315 * The first list holds the frames that the AEBS stack produced on the316 * Linux host, as the frame assembler serves them. The second list holds317 * the frames at the frame input of the HMI application. The IVI frame318 * relay delivers them there, on 127.0.0.1:4731 of the IVI VM. A capture of319 * that loopback stream gives the second list, before the ingress's own320 * checks. The capture does not use the relay's and the ingress's own321 * logs. The unchanged ingress logs sequence numbers only for the frames322 * that it accepts. collectData also records every start and end of a323 * subscription phase of the relay, with its cause, from the relay's log.324 * Two captures in the IVI VM corroborate each phase start:325 * - a cleartext capture of Data Tunnel on VLAN 2, in the UNLOCKED mode,326 * for the subscription through the SDV Gateway on IVI;327 * - the loopback capture, for the accept of the ingress.328 * The record holds their difference from the relay's log. Where they329 * differ, processData uses the time of the captures.330 * collectData also records the relay's DATA_LOSS counts, the SD offers331 * and renewals that the host captures, and the clock controls of332 * ASM-MW-030.333 * processData decodes the produced frames with the frame contract of334 * INC-AEBS-010. If they do not show all four stages, MONITORING,335 * WARNING, INTERVENTION and RELEASED, the run does not meet the condition336 * of the criteria. In that case, the outcome is337 * inconclusiveMissingEvidence. processData compares the two lists for338 * completeness, order and sequence gaps. A DATA_LOSS of the relay in the339 * event is a sequence gap. It also compares the inter-arrival gaps with340 * the bound that the criteria state. A phase end that the layer causes341 * while the ingress stays connected is a delivery failure of the layer342 * (relaySubscriptionPhaseDiscardRule). The layer causes it by the relay's343 * timeout, PublicationDestroyed or Disconnected. If such a phase end344 * falls in the AEBS event, the outcome is failObservedBehavior.345 * A delivery failure that does not depend on the clock fails the run346 * whatever else holds. In the event, such failures are a phase end that347 * the layer causes, a DATA_LOSS and a change of order. An ingress348 * disconnect that the relay causes is such a delivery failure too, not an349 * inconclusive condition. The relay causes it by its exit, or by a close350 * of the stream from port 4731 in the loopback capture. Otherwise the three351 * conditions below make the run inconclusive. In each of them, the run352 * does not meet the condition of the criteria, and the outcome is353 * inconclusiveMissingEvidence:354 * - the ingress disconnects in the event;355 * - another client holds the stream of the frame assembler;356 * - ASM-MW-030 does not hold.357 * If the run's records show a second client on port 4721, the execution358 * slice records a bench discrepancy before any fail counts against the359 * layer. Such a client breaks ASM-MW-029, so the run never passes.360 * So no phase end in the AEBS event lets the run pass. So the case also361 * checks the order part of ASM-MW-032 end to end, on the AAOS SDV hops.362 */363 subject verifiedBench : SCOREMiddlewareVerificationBench;364 objective aebsSignalSourceOrderObjective {365 verify reqDeliverAEBSSignalsInSourceOrder { subject integrationLayer = verifiedBench.integrationLayer; }366 }367 action collectData {368 @VerificationMethod{ kind = test; }369 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;370 }371 action processData {372 @VerificationMethod{ kind = analyze; }373 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;374 out evaluatedOutcome : MiddlewareEvidenceOutcome;375 }376 action evaluateData {377 @VerificationMethod{ kind = analyze; }378 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;379 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);380 }381 return verdict : VerdictKind = evaluateData.verdict;382 }383384 verification def AEBSSignalProvenanceVerification {385 doc /*386 * Test of REQ-MW-015. The Autoware-based AEBS stack runs an AEBS event387 * (SC-MW-002) while the HMI application in the IVI VM of the AAOS SDV388 * guest is subscribed. collectData records each frame that the AEBS stack389 * produced on the Linux host. It also records each frame that the IVI VM390 * received at the frame input of the HMI application. A capture of the391 * stream of the IVI frame relay on 127.0.0.1:4731 gives the received392 * frames, independent of the relay's and the ingress's own logs.393 * processData decodes both lists with the frame contract of INC-AEBS-010.394 * It compares each received frame with its produced frame, field by395 * field, with the source kind of each field. So the case also checks the396 * byte part of ASM-MW-032 end to end, through the wrapper of the broker.397 * An SD message from the IVI VM must not redirect the subscription of the398 * stack in the SDV Core VM to another provider (phase 8). So the case399 * inspects the DE4SDV stack configuration for a remote endpoint of the400 * frame service that is pinned to 192.168.98.1. It also inspects the SDV401 * Core VM for a filter of SD to that address. If the pin or the filter402 * exists, the run sends an SD offer of the frame service from the IVI VM.403 * It sends it on the shared network segment, during the event. The404 * received frames must still match. collectData also records, from the405 * SD captures, the provider that the stack subscribes to after that406 * offer. If that provider is not 192.168.98.1, the outcome is407 * failObservedBehavior. The outcome is also failObservedBehavior if the408 * received frames stop after the offer for the inter-arrival bound of409 * REQ-MW-014 or longer. If neither the pin nor the filter exists, the run410 * sends no such offer. The record then names the residual for REQ-MW-015411 * under GAP-MW-012, as phase 8 allows.412 * The SOME/IP hardening of GAP-MW-046 lets only the bridge port of the413 * SDV Core VM reach the SOME/IP ports of the host (VC-MW-017). It is a414 * recorded design measure, and no part of the pass condition of this415 * case. The case makes no robustness claim for it (GAP-MW-012).416 */417 subject verifiedBench : SCOREMiddlewareVerificationBench;418 objective aebsSignalProvenanceObjective {419 verify reqPreserveAEBSSignalProvenance { subject integrationLayer = verifiedBench.integrationLayer; }420 }421 action collectData {422 @VerificationMethod{ kind = test; }423 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;424 }425 action processData {426 @VerificationMethod{ kind = analyze; }427 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;428 out evaluatedOutcome : MiddlewareEvidenceOutcome;429 }430 action evaluateData {431 @VerificationMethod{ kind = analyze; }432 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;433 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);434 }435 return verdict : VerdictKind = evaluateData.verdict;436 }437438 verification def NoApplicationDataFromHMIGuestVerification {439 doc /*440 * Inspection of REQ-MW-016, with a runtime probe for its second finding.441 * It inspects the artifacts that the success criteria name. They are the442 * interface definition of the HMI path and the configuration of each443 * element of the layer. These elements are the S-CORE services, the444 * adapter, gatewayd, someipd, the health proxy node and the IVI frame445 * relay. For the first finding, the artifacts also include the446 * configuration that DE4SDV authors for the AAOS SDV elements. That447 * configuration could declare a return path (phase 8). It has three448 * parts. The first is the DE4SDV SOME/IP mapping of the broker, with its449 * VSIDL type and catalog. The second is the DE4SDV stack configuration of450 * the SDV Core VM. The third is the authorization entries of the broker's451 * publication and of the relay's subscription. The mapping must map only452 * the frame event, and the stack configuration must offer no SOME/IP453 * service. For the second finding, the artifacts are the ROS 2454 * environment of each ROS 2 process on the Linux host. They also include455 * the DDS configuration that each environment names, and the host456 * configuration of GAP-MW-046.457 * By owner decision of 2026-10-29, that configuration drops UDP458 * 30150-30151 and 30160-30401, and TCP 4721, on every interface except459 * lo, in an inet input chain. The configuration records its two460 * parameters, ROS_DOMAIN_ID 91 and MaxAutoParticipantIndex 120.461 * collectData records each inspected artifact at its exact revision. It462 * also records each receiver on the Linux host that it finds for463 * application data from the AAOS SDV guest. For the ROS 2 processes464 * outside the layer, it records whether ASM-MW-031 holds on the member.465 * While the layer runs, collectData also runs a reachability probe from466 * each VM of the guest domain. These VMs are the SDV Core VM and the IVI467 * VM. The probe has three steps:468 * - It lists the sockets that the ROS 2 processes of the host have bound469 * (ss -ulnp, IPv4 and IPv6, unicast and multicast). It lists every470 * other host listener bound to an address that the VM reaches, port471 * 4721 of the frame assembler among them. It lists every host address472 * that the VM reaches. These are 192.168.98.1, the host end of the473 * buried network of each VM, and any other cvd-* bridge address.474 * - It sends marked datagrams to each listed DDS socket, and it tries a475 * connection to each listed TCP listener. It does so over each476 * interface of the VM: eth1, buried_eth0, the VLAN interfaces, and477 * wlan if present. It observes the delivery on the host: a capture on478 * the guest-facing interface, and the counters of the isolation rule.479 * - It runs a positive control with the same method. The control targets480 * a socket that the host exposes on INADDR_ANY, or it runs with the481 * isolation off for a control window. The same observation must show482 * the delivery.483 * From the SDV Core VM, the SOME/IP ports of someipd stay the control of484 * the network path. The probe also records the SOME/IP hardening of485 * GAP-MW-046 (owner decision of 2026-10-29). It accepts UDP 30490 and TCP486 * 30509 to the host only from the bridge port of the SDV Core VM. It also487 * matches the address and the MAC address of that VM. It blocks the IVI488 * VM, also with the source address 192.168.98.3. The hardening is a489 * recorded design measure. It is no part of the pass condition of any490 * case, and processData does not judge it. No robustness claim is made491 * for it (GAP-MW-012). VC-MW-016 checks the SD offer from the IVI VM.492 * The record holds the lists, the observations and both controls.493 * processData compares the findings with the criteria. A reachable DDS494 * port of an element of the layer fails the case, whatever the control495 * or ASM-MW-031 show. If the control fails, an unreachable result shows496 * nothing, and the outcome is inconclusiveMissingEvidence. If ASM-MW-031497 * does not hold, the case shows nothing about the other processes, and498 * for them the outcome is inconclusiveMissingEvidence. If no layer port499 * is reachable but ASM-MW-031 does not hold, the outcome is500 * inconclusiveMissingEvidence. A reachable port 4721 is a finding against501 * ASM-MW-029, not against these criteria.502 */503 subject verifiedBench : SCOREMiddlewareVerificationBench;504 objective noApplicationDataFromHMIGuestObjective {505 verify reqNoApplicationDataFromHMIGuest { subject integrationLayer = verifiedBench.integrationLayer; }506 }507 action collectData {508 @VerificationMethod{ kind = (inspect, test); }509 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;510 }511 action processData {512 @VerificationMethod{ kind = analyze; }513 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;514 out evaluatedOutcome : MiddlewareEvidenceOutcome;515 }516 action evaluateData {517 @VerificationMethod{ kind = analyze; }518 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;519 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);520 }521 return verdict : VerdictKind = evaluateData.verdict;522 }523524 verification def NoEmergencyCommandOnMiddlewareVerification {525 doc /*526 * Inspection of REQ-MW-017. It inspects the artifacts that the success527 * criteria name. They are the S-CORE service configuration, the adapter528 * interfaces, gatewayd and someipd. They also include each element of the529 * layer in a guest domain and the interface definition of the HMI path.530 * In the guest domain, these are the IVI frame relay and the531 * configuration that DE4SDV authors for the AAOS SDV elements. That532 * configuration is the DE4SDV SOME/IP mapping, the DE4SDV stack533 * configuration and the authorization entries. It also follows the path534 * of the AEBS emergency intervention command from the AEB node to the535 * vehicle command gate on the Linux host. collectData records each536 * inspected artifact at its exact revision, each element that carries the537 * command, and each element on that path. processData compares the538 * findings with the criteria.539 */540 subject verifiedBench : SCOREMiddlewareVerificationBench;541 objective noEmergencyCommandOnMiddlewareObjective {542 verify reqNoEmergencyCommandOnMiddleware { subject integrationLayer = verifiedBench.integrationLayer; }543 }544 action collectData {545 @VerificationMethod{ kind = inspect; }546 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;547 }548 action processData {549 @VerificationMethod{ kind = analyze; }550 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;551 out evaluatedOutcome : MiddlewareEvidenceOutcome;552 }553 action evaluateData {554 @VerificationMethod{ kind = analyze; }555 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;556 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);557 }558 return verdict : VerdictKind = evaluateData.verdict;559 }560561 verification def AdapterAbortOnExceptionVerification {562 doc /*563 * Test of REQ-MW-018. The adapter process runs on the Linux host. The564 * case throws an exception in the adapter's own code. It also throws one565 * inside a library that the adapter links, such as the ROS 2 client566 * library. The adapter of the member has no ROS 2 parameter services567 * (phase 8). So the case triggers each throw through the fault-injection568 * interface of the adapter (phase 8): one real-time signal per throw, to569 * the binary and the start configuration that the member runs. For the570 * throw inside the ROS 2 client library, the adapter calls get_parameter571 * with an undeclared name, and rclcpp throws inside librclcpp.so. The572 * record names the trigger. The run uses the ROS 2 environment that573 * phase 8 sets. Under another ROS 2 middleware, the adapter can abort574 * before any trigger. collectData records each thrown exception and how575 * the process ends. processData checks that each exception aborts the576 * process. If the adapter splits into two processes (GAP-MW-035), the577 * case is revisited.578 */579 subject verifiedBench : SCOREMiddlewareVerificationBench;580 objective adapterAbortOnExceptionObjective {581 verify reqTerminateAdapterOnException { subject integrationLayer = verifiedBench.integrationLayer; }582 }583 action collectData {584 @VerificationMethod{ kind = test; }585 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;586 }587 action processData {588 @VerificationMethod{ kind = analyze; }589 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;590 out evaluatedOutcome : MiddlewareEvidenceOutcome;591 }592 action evaluateData {593 @VerificationMethod{ kind = analyze; }594 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;595 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);596 }597 return verdict : VerdictKind = evaluateData.verdict;598 }599600 verification def UnsubscribedFrameDiscardVerification {601 doc /*602 * Test of REQ-MW-019. It runs four conditions. The first three follow its603 * source scenario SC-MW-004 in the guest of ADR 0025, and the fourth is a604 * restart in the host half:605 * - the HMI application down;606 * - the IVI VM down, with a reboot;607 * - the SDV Core VM down: a death of the SOME/IP broker or of its stack,608 * with the bench recovery of GAP-MW-048. The operator reboots the SDV609 * Core VM by hand, for the bench only;610 * - a restart of gatewayd and someipd as a pair611 * (gatewayPairRestartGuardRail). The new publication can start with612 * stored frames (GAP-MW-039).613 * The AEBS stack produces frames all the time. In each condition, the614 * current subscription phase of the IVI frame relay ends, and a new one615 * starts later. collectData records the frames that the AEBS stack616 * produced on the Linux host. It records the times of the stop and of the617 * new subscription, and the offset between the host clock and the guest618 * clock. It also records the frames at the frame input of the HMI619 * application after the new subscription. A capture of the relay's620 * stream on 127.0.0.1:4731 of the IVI VM gives them, before the ingress's621 * own checks. The capture does not use the relay's and the ingress's own622 * logs.623 * For the third condition, collectData records the death detection: the624 * line "Critical agent has died" in the logcat of the SDV Core VM, and625 * VmHealth. It records how long the HMI shows stale. No criterion applies626 * to that time, and no availability claim is made (GAP-MW-048). For the627 * fourth condition, it records the latency of PublicationDestroyed and628 * the time to the new publication. It records both on the host clock and629 * on the IVI VM clock corrected by the measured offset. No criterion630 * applies to these two times.631 * processData checks each frame that arrives after the new subscription.632 * The AEBS stack must not have produced it more than the bound of633 * ASM-MW-030 before the new subscription. processData takes the634 * production time from the frame timestamp, on the host clock. It takes635 * the start of the new subscription from the guest clock. The guest clock636 * is the clock of the IVI VM, which times the phase start of the relay.637 * The run applies the clock controls of ASM-MW-030 and records them.638 * Among them are the two offset measurements, at the start and at the639 * end of the session, each with its uncertainty. If both measurements640 * exist, processData also checks each frame against a wider limit. It641 * applies that limit only if the relay logged no clock step between the642 * two measurements. The limit is the 20 ms bound of ASM-MW-030, plus the643 * larger absolute offset of the two measurements, plus the uncertainty of644 * that measurement. A frame that the AEBS stack produced more than that645 * limit before the new subscription is a clock-independent violation.646 * Such a frame fails the run, whatever else holds. Otherwise, if647 * ASM-MW-030 does not hold in the run, the run does not show the criteria648 * met. In that case, the outcome is inconclusiveMissingEvidence.649 * After a reboot of the IVI VM, the relay and the ingress start before the650 * bench can set the clock (GAP-MW-048). So for the second condition, the651 * bench sets the clock after the reboot and then starts the ingress652 * again. The case judges the phase that starts then. collectData still653 * records the first phase after the reboot, as data. The claimBoundary of654 * the record names that phase as outside the judged scope (GAP-MW-045).655 * The new subscription is the start of a subscription phase of the IVI656 * frame relay, as phase 8 defines it (relaySubscriptionPhaseDiscardRule).657 * The relay's log shows it. Two captures in the IVI VM corroborate it:658 * - a cleartext capture of Data Tunnel on VLAN 2, in the UNLOCKED mode,659 * for the subscription through the SDV Gateway on IVI;660 * - the loopback capture, for the accept of the ingress.661 * processData takes the later of two times as the start of the new662 * subscription. They are the relay's phase_start in its log and the663 * accept of the ingress in the loopback capture. It records both times664 * and their difference. A later start can only make the check stricter.665 * processData also runs the same check with a second start: the time of666 * the subscription in the Data Tunnel capture. If that check fails and the667 * first one passes, the outcome is inconclusiveMissingEvidence. In the668 * third and fourth conditions the ingress stays connected, so only this669 * check is independent of the relay's record.670 * For REQ-MW-014, a phase end that the layer causes is a delivery failure671 * (VC-MW-015). For REQ-MW-019, the new phase is the current subscription.672 * The SOME/IP hardening of GAP-MW-046 is a recorded design measure673 * (VC-MW-017). It is no part of the pass condition of this case, and the674 * case makes no robustness claim for it (GAP-MW-012).675 * A pass covers these four conditions only. It does not show the stored676 * frames of every other late or repeated subscription in the host half677 * (GAP-MW-039). Phase 8 discards them at the relay, and the preflight678 * checks of the execution slices test that rule. While GAP-MW-039 is679 * open for a restart of gatewayd alone and for a late start of gatewayd,680 * a pass does not close REQ-MW-019.681 */682 subject verifiedBench : SCOREMiddlewareVerificationBench;683 objective unsubscribedFrameDiscardObjective {684 verify reqDiscardFramesWhileHMIUnsubscribed { subject integrationLayer = verifiedBench.integrationLayer; }685 }686 action collectData {687 @VerificationMethod{ kind = test; }688 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;689 }690 action processData {691 @VerificationMethod{ kind = analyze; }692 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;693 out evaluatedOutcome : MiddlewareEvidenceOutcome;694 }695 action evaluateData {696 @VerificationMethod{ kind = analyze; }697 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;698 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);699 }700 return verdict : VerdictKind = evaluateData.verdict;701 }702703 verification def NoSpeedSampleToAEBVelocityInputVerification {704 doc /*705 * Inspection of REQ-MW-020. It inspects the topic wiring of the member on706 * the Linux host, as the success criteria name it. That is the launch707 * configuration and the remappings that give the publishers of the708 * velocity input of the Autoware AEB node709 * (/vehicle/status/velocity_status). collectData records the inspected710 * artifacts at their exact revision and each publisher of that input with711 * its owner. processData checks that no publisher belongs to the712 * integration layer. The publisher of that input in the member stays open713 * (GAP-MW-033); the case does not need it.714 */715 subject verifiedBench : SCOREMiddlewareVerificationBench;716 objective noSpeedSampleToAEBVelocityInputObjective {717 verify reqNoSpeedSampleToAEBVelocityInput { subject integrationLayer = verifiedBench.integrationLayer; }718 }719 action collectData {720 @VerificationMethod{ kind = inspect; }721 out item retainedEvidence : ReceiptBoundMiddlewareEvidence;722 }723 action processData {724 @VerificationMethod{ kind = analyze; }725 in item retainedEvidence : ReceiptBoundMiddlewareEvidence = collectData.retainedEvidence;726 out evaluatedOutcome : MiddlewareEvidenceOutcome;727 }728 action evaluateData {729 @VerificationMethod{ kind = analyze; }730 in evaluatedOutcome : MiddlewareEvidenceOutcome = processData.evaluatedOutcome;731 out verdict : VerdictKind = MapEvidenceOutcomeToVerdict(evaluatedOutcome);732 }733 return verdict : VerdictKind = evaluateData.verdict;734 }735736 verification <'VC-MW-011'> referenceVehicleSpeedDeliveryVerification : ReferenceVehicleSpeedDeliveryVerification {737 doc /* Not started. Bench: the Linux host only, with the vehicle-speed provider, the layer's host processes, the Autoware vehicle velocity converter and an observer independent of the layer. */738 @VerificationMethod{ kind = (test, analyze); }739 subject verifiedBench :> scoreMiddlewareVerificationBench;740 }741742 verification <'VC-MW-012'> nonFiniteSpeedSampleWithholdingVerification : NonFiniteSpeedSampleWithholdingVerification {743 doc /* Not started. Bench: the Linux host only, as VC-MW-011, with a provider that can publish non-finite samples. */744 @VerificationMethod{ kind = (test, analyze); }745 subject verifiedBench :> scoreMiddlewareVerificationBench;746 }747748 verification <'VC-MW-013'> staleReferenceVehicleSpeedIndicationVerification : StaleReferenceVehicleSpeedIndicationVerification {749 doc /* Not started. Bench: the Linux host only, as VC-MW-011, with the health proxy node and an observer of its health topic. */750 @VerificationMethod{ kind = (test, analyze); }751 subject verifiedBench :> scoreMiddlewareVerificationBench;752 }753754 verification <'VC-MW-014'> atMostOnceSpeedSampleDeliveryVerification : AtMostOnceSpeedSampleDeliveryVerification {755 doc /* Not started. Bench: the Linux host only, as VC-MW-011, with a way to restart the adapter. */756 @VerificationMethod{ kind = (test, analyze); }757 subject verifiedBench :> scoreMiddlewareVerificationBench;758 }759760 verification <'VC-MW-015'> aebsSignalSourceOrderVerification : AEBSSignalSourceOrderVerification {761 doc /* Not started. Bench: the Linux host and the AAOS SDV guest under KVM, for a session as long as the clock controls of ASM-MW-030 allow. The host runs the Autoware-based AEBS stack, the frame assembler and the layer's host processes, and it captures SOME/IP and SD. The SDV Core VM runs the SOME/IP broker and its stack with the DE4SDV SOME/IP mapping and stack configuration. The IVI VM runs the IVI frame relay and the HMI application, and it captures its loopback and Data Tunnel on VLAN 2. */762 @VerificationMethod{ kind = (test, analyze); }763 subject verifiedBench :> scoreMiddlewareVerificationBench;764 }765766 verification <'VC-MW-016'> aebsSignalProvenanceVerification : AEBSSignalProvenanceVerification {767 doc /* Not started. Bench: the Linux host and the AAOS SDV guest with the HMI application, as VC-MW-015. For the SD check, it also needs a way to send an SD offer from the IVI VM. */768 @VerificationMethod{ kind = (test, analyze); }769 subject verifiedBench :> scoreMiddlewareVerificationBench;770 }771772 verification <'VC-MW-017'> noApplicationDataFromHMIGuestVerification : NoApplicationDataFromHMIGuestVerification {773 doc /* Not started. Bench: the Linux host with the layer running, and the SDV Core VM and the IVI VM up with a reachability probe in each. someipd serves the SDV Core VM. The positive control needs a control socket that the host exposes on INADDR_ANY, or a control window with the isolation off. The case also needs the interface definition of the HMI path: the SOME/IP service definition and the frame contract of INC-AEBS-010. It also needs the layer's mw::com configuration and the gateway configuration of gatewayd and someipd. It needs the vsomeip configuration of someipd and the configuration of the IVI frame relay too. It needs the DE4SDV SOME/IP mapping, the DE4SDV stack configuration and the authorization entries. For ROS 2 (DDS), it needs the Launch Manager configuration and the launch configuration of the member on the Linux host. It also needs the DDS configuration of the Linux host. It needs the host configuration of GAP-MW-046 too, which makes the DDS ports and port 4721 unreachable from the guest domain. The execution slices author all of them except the frame contract. */774 @VerificationMethod{ kind = (inspect, test, analyze); }775 subject verifiedBench :> scoreMiddlewareVerificationBench;776 }777778 verification <'VC-MW-018'> noEmergencyCommandOnMiddlewareVerification : NoEmergencyCommandOnMiddlewareVerification {779 doc /* Not started. Bench: no run. The case needs the interface definition and the mw::com, gateway, vsomeip, relay and DE4SDV guest configurations that VC-MW-017 needs. It also needs the wiring of the AEBS stack on the Linux host. */780 @VerificationMethod{ kind = (inspect, analyze); }781 subject verifiedBench :> scoreMiddlewareVerificationBench;782 }783784 verification <'VC-MW-019'> adapterAbortOnExceptionVerification : AdapterAbortOnExceptionVerification {785 doc /* Not started. Bench: the Linux host only, with the adapter process in the ROS 2 environment of phase 8 and a way to throw an exception in it. */786 @VerificationMethod{ kind = (test, analyze); }787 subject verifiedBench :> scoreMiddlewareVerificationBench;788 }789790 verification <'VC-MW-020'> unsubscribedFrameDiscardVerification : UnsubscribedFrameDiscardVerification {791 doc /* Not started. Bench: the Linux host and the AAOS SDV guest with the HMI application, as VC-MW-015. The bench stops and starts the HMI application and reboots the IVI VM on demand. It kills the SOME/IP broker or its stack, and the operator then reboots the SDV Core VM (GAP-MW-048). It also restarts gatewayd and someipd as a pair. */792 @VerificationMethod{ kind = (test, analyze); }793 subject verifiedBench :> scoreMiddlewareVerificationBench;794 }795796 verification <'VC-MW-021'> noSpeedSampleToAEBVelocityInputVerification : NoSpeedSampleToAEBVelocityInputVerification {797 doc /* Not started. Bench: no run. The case needs the launch configuration of the member on the Linux host, which the execution slices author. */798 @VerificationMethod{ kind = (inspect, analyze); }799 subject verifiedBench :> scoreMiddlewareVerificationBench;800 }801802 part scoreMiddlewareVerificationSystem {803 perform referenceVehicleSpeedDeliveryVerification;804 perform nonFiniteSpeedSampleWithholdingVerification;805 perform staleReferenceVehicleSpeedIndicationVerification;806 perform atMostOnceSpeedSampleDeliveryVerification;807 perform aebsSignalSourceOrderVerification;808 perform aebsSignalProvenanceVerification;809 perform noApplicationDataFromHMIGuestVerification;810 perform noEmergencyCommandOnMiddlewareVerification;811 perform adapterAbortOnExceptionVerification;812 perform unsubscribedFrameDiscardVerification;813 perform noSpeedSampleToAEBVelocityInputVerification;814 }815816 /* The verification system performs the cases. It is the System 2817 * performer that GAP-MW-044 still leaves without an identity. */818 dependency environmentGapOnVerificationSystem819 from gapSCOREVerificationEnvironmentOpen to scoreMiddlewareVerificationSystem;820821 concern scoreMiddlewareVerificationCaseConcern : RequirementTraceConcern {822 doc /*823 * Verification engineers and open-source reviewers need the method,824 * bench and status of the one verification case of each requirement825 * of the middleware integration layer. Before any run, the status is826 * not started.827 */828 subject;829 stakeholder verificationEngineer : VerificationEngineer;830 stakeholder reviewer : OpenSourceReviewer;831 }832833 view scoreMiddlewareVerificationCaseView {834 viewpoint selectedVerificationTraceViewpoint : SystemRequirementTraceabilityViewpoint {835 frame scoreMiddlewareVerificationCaseConcern;836 }837 doc /*838 * The eleven cases with their subject, the requirement that each839 * objective verifies, the methods and the doc that states the status and840 * the bench. The bench definition shows the configured product and its841 * integration layer. The evidence record shows the receipt digest and842 * the identities of the run. The gap records the chosen test environment843 * and what stays open.844 */845 expose referenceVehicleSpeedDeliveryVerification;846 expose nonFiniteSpeedSampleWithholdingVerification;847 expose staleReferenceVehicleSpeedIndicationVerification;848 expose atMostOnceSpeedSampleDeliveryVerification;849 expose aebsSignalSourceOrderVerification;850 expose aebsSignalProvenanceVerification;851 expose noApplicationDataFromHMIGuestVerification;852 expose noEmergencyCommandOnMiddlewareVerification;853 expose adapterAbortOnExceptionVerification;854 expose unsubscribedFrameDiscardVerification;855 expose noSpeedSampleToAEBVelocityInputVerification;856 expose SCOREMiddlewareVerificationBench;857 expose ReceiptBoundMiddlewareEvidence;858 expose gapSCOREVerificationEnvironmentOpen;859 render asTreeDiagram;860 }861}862