textual-notation-of-model/packages/features/middleware/middleware_score_physical_software_realization.sysml
2 view(s) · 131 declared member(s) Jump to source ↓
view scoreMiddlewarePhysicalLogicalMappingViewsource ↓
| Viewpoint | selected (Physical |
|---|---|
| View type | MVD:: |
| Framed concerns |
|
| Exposes | DE4DE4DE4DE4DE4DE4DE4scorescorescorescorescorescoreDE4 |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
view scoreMiddlewareLayerInternalExchangeViewsource ↓
| Viewpoint | selected (Physical |
|---|---|
| Framed concerns |
|
| Render | as |
| Depth | -1 |
| Exposes | scorescore |
| Source | textual-notation-of-model/ |
Hover a model element for details open raw SVG.
Source
1/*2 * DE4SDV middleware physical/software realization for the Eclipse S-CORE3 * realization.4 *5 * INC-MW-011, phase 8: the processes that realize the middleware integration6 * layer of the two-domain member product, the Eclipse S-CORE modules and the7 * AAOS SDV elements they use, the two execution domains around them, and the8 * allocation of the phase-7 logical elements to them. A domain is a side9 * (ADR 0025): the Linux host, and the AAOS SDV guest with two VMs. So the10 * member runs three operating-system instances. S-CORE communication11 * (mw::com) carries the reference vehicle speed and the AEBS signal frames12 * only inside the Linux host: S-CORE v0.9.0 has no binding that crosses the13 * hypervisor. By owner decision of 2026-10-22, the S-CORE SOME/IP gateway,14 * gatewayd with someipd, replaces the DE4SDV host relay of 2026-10-18. It15 * offers the frames as SOME/IP events. By the owner decisions of 2026-10-2816 * (ADR 0025), SOME/IP ends at the AAOS SDV SOME/IP broker in the SDV Core VM17 * of the guest. Data Tunnel and the SDV Gateway on IVI carry the frames to a18 * DE4SDV IVI frame relay in the IVI VM. The relay serves the reused19 * INC-AEBS-010 ingress. Guard rails bound the known defects of the20 * gateway, and the decision is revisited when upstream releases fixes21 * (GAP-MW-036). The gateway is outside the v0.9.0 baseline, so ASM-MW-02122 * states a bounded deviation. The system of interest spans both domains,23 * the way S-CORE structures a crossing it owns on both sides: one logical24 * HMI frame relay with a host half and a guest half, S-CORE on the host25 * only, and the guest platform as context (owner decision of 2026-10-18).26 * The layer refers to the AAOS SDV elements that it uses, as it refers to the27 * S-CORE services (ADR 0025, decision 6). The S-CORE Launch Manager starts and28 * supervises the layer's host processes. The domains are typed with existing29 * platform-stack layers; the per-domain variation is phase 9 work. Three30 * system-to-software signal mappings, each owning its record, cover the speed,31 * health and HMI-frame crossings into software contracts. An allocation32 * assigns responsibility only; it asserts no satisfaction, deployment or33 * execution. No closed slice is edited. No SOME/IP conformance, AAOS SDV34 * compatibility, safety, cybersecurity, compliance or35 * freedom-from-interference claim is made. The HMI stays an informational36 * display, not the AEBS driver warning.37 */3839package DE4SDV_MiddlewareSCOREPhysicalSoftwareRealization {40 private import DE4SDV_MethodContext::*;41 private import DE4SDV_MethodProcess::SystemToSoftwareSignalMappingCandidate;42 private import DE4SDV_MethodProcess::LogicalToSoftwareSignalMappingRecord;43 private import DE4SDV_MethodProcess::SignalMappingDisposition;44 private import DE4SDV_TraceVocabulary::PhysicalAllocationElement;45 private import DE4SDV_SDVPlatformStack::*;46 private import DE4SDV_AAOSSDVMiddlewareBoundary::SDVCoreBoundary;47 private import DE4SDV_AAOSSDVMiddlewareBoundary::SDVGatewayOnIVIBoundary;48 private import DE4SDV_AAOSSDVMiddlewareBoundary::DataTunnelPort;49 private import DE4SDV_MiddlewareSCOREFraming::SCOREMiddlewareIntegrationLayer;50 private import DE4SDV_MiddlewareSCOREOperationalContext::AEBSSignalFrame;51 private import DE4SDV_MiddlewarePhysicalSoftwareRealization::VelocityReportPublication;52 private import DE4SDV_MiddlewarePhysicalSoftwareRealization::DE4SDVReferenceVehicleSpeedPayload;53 private import DE4SDV_MiddlewarePhysicalSoftwareRealization::COVESAVehicleSpeedSemanticSource;54 private import DE4SDV_AEBSPhysicalSoftwareRealization::VelocityReportSubscription;55 private import DE4SDV_AEBSPhysicalSoftwareRealization::DiagnosticPublication;56 private import DE4SDV_AEBSPhysicalSoftwareRealization::VehicleTargetAEBSPhysicalSoftwareBoundary;57 private import DE4SDV_AEBSPhysicalSoftwareRealization::PartialLogicalToPhysicalSoftwareRealization;58 private import DE4SDV_Stakeholders::*;59 private import SAF_Viewpoints::*;60 private import SysideViews::**;61 private import Views::*;6263 port def ReferenceVehicleSpeedEventOut {64 doc /* Offers the reference vehicle speed, one sample per update; the payload is reused from INC-MW-008. */65 out item speedSample : DE4SDVReferenceVehicleSpeedPayload;66 }6768 port def ReferenceVehicleSpeedEventIn {69 in item speedSample : DE4SDVReferenceVehicleSpeedPayload;70 }7172 port def AEBSSignalFrameOut {73 doc /* Sends AEBS signal frames unchanged; each port usage names its transport. */74 out item aebsSignalFrame : AEBSSignalFrame;75 }7677 port def AEBSSignalFrameIn {78 in item aebsSignalFrame : AEBSSignalFrame;79 }8081 part def SCOREMiddlewareIntegrationLayerRealization :> SCOREMiddlewareIntegrationLayer {82 doc /*83 * The physical/software realization of the middleware integration layer,84 * the system of interest of INC-MW-011: three DE4SDV processes, the two85 * processes of the S-CORE SOME/IP gateway, the Eclipse S-CORE modules86 * they use, and the AAOS SDV elements that the layer uses. It spans both87 * domains. The adapter, the health proxy node and S-CORE with the88 * gateway run on the Linux host. The guest holds two VMs (ADR 0025). In89 * the SDV Core VM, the SOME/IP broker of AAOS SDV ends SOME/IP and maps90 * the frame event to a Data Tunnel topic. In the IVI VM, the IVI frame91 * relay subscribes to that topic through the SDV Gateway on IVI. The92 * relay is the guest end of the one-way HMI path. So the layer reaches93 * the HMI application's ingress, as REQ-MW-014 asks.94 * The HMI frame relay is one logical element with a host half and a95 * guest half. The host half is the adapter's frame ingest with gatewayd96 * and someipd. The guest half is the SOME/IP broker with its stack, Data97 * Tunnel, the SDV Gateway on IVI and the IVI frame relay. S-CORE98 * structures a crossing it owns on both sides the same way: one logical99 * gateway with one process per domain (communication 0.5.0,100 * score/mw/com/gateway/README.md:33-34).101 * The layer has two crossings of a VM boundary. SOME/IP crosses the102 * hypervisor from someipd to the SDV Core VM. Data Tunnel carries the103 * topic from the SDV Core VM to the IVI VM. No other exchange of the104 * layer leaves the Linux host. someipd enforces REQ-MW-016 by the host's105 * own configuration. On the guest side, two DE4SDV configurations add a106 * second line. The SOME/IP mapping maps only the frame event, and the107 * stack configuration offers no SOME/IP service. REQ-MW-019 holds at108 * someipd while the broker's subscription is absent. But the broker109 * subscribes as soon as someipd offers the service, whether an IVI110 * subscriber exists or not. So the relay discards the frames that the AEBS111 * stack produced before the HMI application's current subscription. Among112 * them are the stored frames of a late or repeated subscription in the113 * host half (relaySubscriptionPhaseDiscardRule, GAP-MW-039). A band at the114 * start of each subscription stays open (GAP-MW-045).115 * The reused HMI chain is context, with its obligations as assumptions116 * (ASM-MW-024, ASM-MW-029). The guest platform, Android HLOS with the117 * AAOS SDV middleware, is context too, apart from the AAOS SDV elements118 * that the layer refers to. What the path needs from the guest platform119 * is open in GAP-MW-038.120 * Claim boundary (ADR 0025, decision 9). Unless the fallback of ADR 0025,121 * decision 4, applies, the member uses Google's reference stack, a122 * non-production reference sample. Google has not confirmed or endorsed123 * this chain. No SOME/IP conformance or AAOS SDV compatibility claim is124 * made. Unreviewed DE4SDV feasibility runs on the bench VM (2026-10-28)125 * ran this chain end to end. They are design data, not evidence of126 * record (GAP-MW-038).127 * Consequences, with no claim: the trust boundaries between the host and128 * the guest, and between the two VMs, lie inside the layer (GAP-MW-012).129 * The GAP-MW-033 safety review sees the crossings as internal130 * interfaces. Guest images with the relay, the SOME/IP mapping and the131 * stack configuration are realization work of the layer (GAP-MW-038). No132 * element of the layer carries the AEBS emergency intervention command133 * (REQ-MW-017, ASM-MW-028). The layer has no boundary ports of its own:134 * the context parts connect to its processes directly.135 * Ownership: the layer refers to the adapter, the S-CORE services, the SDV136 * Core of the guest and the SDV Gateway on IVI (owner decisions of137 * 2026-10-23 and 2026-10-28). It does not own them. The product around the138 * layer owns them: the Linux host and the two VMs in139 * SCORETwoDomainPhysicalSystem, and the platform stack in the configured140 * product MW-CONFIG-002. Bindings make the references the same things as141 * the owned parts, so each product has one instance and one owner of each.142 * MW-CONFIG-002 leaves the reference to the SDV Gateway on IVI unbound143 * (phase 9). The layer owns the IVI frame relay and the DE4SDV144 * configuration of the AAOS SDV elements: the SOME/IP mapping and the145 * stack configuration (phase 10).146 */147148 ref part adapter : PhysicalAllocationElement, AutowareToSCOREAdapter {149 doc /*150 * The Autoware-to-S-CORE adapter: one DE4SDV process on the Linux host151 * that is both an S-CORE application and a ROS 2 node (GAP-MW-035).152 * The layer refers to it and does not own it.153 * Phase 9 typed it by AutowareToSCOREAdapter, the definition of154 * autowareToSCORE, the adapter variant that the feature model derives155 * for Autoware with Eclipse S-CORE. So the process that REQ-MW-018156 * names is typed by the definition of the derived variant (owner157 * decision of 2026-10-21). The typing adds the two layer ports of the158 * adapter layer. This slice does not connect them: the adapter's own159 * ports carry its exchanges.160 * Speed: it receives the reference vehicle speed as an mw::com proxy161 * and publishes each finite sample once as an Autoware VelocityReport,162 * which is not a VSS signal, whose longitudinal velocity in m/s is the163 * sample's speed_kmh divided by 3.6; it withholds non-finite samples164 * and never publishes a sample twice, also not after a restart165 * (REQ-MW-010, REQ-MW-011, REQ-MW-013). It also withholds a finite166 * sample whose m/s value lies outside the float32 range of167 * longitudinal_velocity. As float32, that value would become an168 * infinity, which REQ-MW-011 keeps away from Autoware. Its km/h value169 * also lies outside the float datatype of VSS Vehicle.Speed, which170 * types speed_kmh. So it is not a reference vehicle speed sample of171 * REQ-MW-010. Frames: it reads the length-delimited frame172 * stream of the INC-AEBS-010 frame assembler on the host loopback and173 * offers each frame, unread and unchanged, as an mw::com event174 * (REQ-MW-015); a sample holds one length-prefixed frame of at most175 * 2048 bytes, the gateway slot of the reused ingress176 * (ingress/main.cpp:36 of the INC-AEBS-010 bench). The event type is177 * the gateway's PreSerializedData<2048>, so gatewayd's null serializer178 * copies the frame bytes unchanged (null_serializer.cpp:58-75;179 * local_service_instance.cpp:207-216 at d9eac670).180 * REQ-MW-018: it links aborts_upon_exception of baselibs 0.2.16, so an181 * exception thrown anywhere in the process, also in the ROS 2 client182 * library, aborts the whole process. The health topic then turns stale,183 * and the HMI shows its stale overlay. Two conditions keep that abort184 * out of normal operation (adapterAbortConditions). Every ROS 2 process185 * on the host runs in one ROS 2 environment with rmw_cyclonedds_cpp;186 * for the processes outside the layer, ASM-MW-031 assumes it. The187 * adapter node has no ROS 2 parameter services.188 * ROS 2 endpoints: its node has its publication port and one more189 * endpoint. rclcpp 16.0.21 gives every node a time source that190 * subscribes to /parameter_events (time_source.cpp:270-278). There the191 * time source reads only this node's use_sim_time. It logs a value of192 * a wrong type instead of throwing (time_source.cpp:427-460), but a193 * peer can switch the node's clock to /clock that way. So the adapter194 * stamps each VelocityReport from a clock of type RCL_SYSTEM_TIME, not195 * from the node clock, and such a switch does not change the stamps.196 * The node starts without parameter services, parameter event197 * publisher and /rosout.198 * Fault-injection interface of the realization, for the test of199 * REQ-MW-018: in every start configuration, the adapter takes three200 * real-time signals, and each one makes one throw. SIGRTMIN+1 makes a201 * throw inside librclcpp.so: the adapter calls get_parameter with an202 * undeclared name, and rclcpp throws. SIGRTMIN+2 makes a throw in203 * adapter code. SIGRTMIN+3 makes std::vector::at throw inside the204 * shared libstdc++. So the test checks the binary and the start205 * configuration that the member runs. Such a signal aborts the adapter206 * outside the test too, and under the Launch Manager that also stops207 * the frame path (GAP-MW-043). Linux lets the same senders send these208 * signals and SIGKILL. So the interface gives a process that may209 * signal the adapter nothing beyond what a kill already does.210 * LoLa rules: the adapter is a LoLa consumer211 * of the speed event and a LoLa provider of the frame event, so it212 * follows three rules. First, each time the speed subscription enters213 * the subscribed state, its first read that stays in that state214 * discards the samples stored before it. A new LoLa subscription215 * returns them (GAP-MW-039). A Subscribe() to an absent provider216 * completes later, and a provider restart enters the subscribed state217 * again. So the rule acts on the state change, not on the call. A read218 * during which the state changes is dropped. The adapter publishes only219 * samples that arrive after the discard read, so a restarted adapter220 * does not publish a sample a second time (REQ-MW-013). The cost: a221 * sample that arrives during that read is not published. Second, on222 * SIGTERM it releases every sample pointer of the speed proxy and223 * calls Unsubscribe() before it destroys the proxy. A proxy that is224 * destroyed while subscribed aborts the process (GAP-MW-041). Third, it225 * offers its frame skeleton once and stops the offer only when it226 * exits. A LoLa skeleton that stops its offer while a proxy is227 * subscribed, and offers again after that proxy is gone, can abort. The228 * upstream fix is not released (GAP-MW-036). Phase 10 tests the three229 * rules. Heap use after initialization (GAP-MW-034): the adapter230 * allocates, because the ROS 2 client library allocates with its231 * default allocator when it publishes and when its executor runs, so232 * the recommendation aou_req__platform__no_heap_alloc_after_init is not233 * followed.234 */235 port referenceSpeedIn : ReferenceVehicleSpeedEventIn {236 doc /* mw::com proxy of the reference vehicle-speed event. */237 }238 port middlewareVelocityStatusOut : VelocityReportPublication {239 doc /* Publication to /de4sdv/middleware/velocity_status; the adapter is its only publisher. */240 }241 port aebsSignalFrameIn : AEBSSignalFrameIn {242 doc /* Client of the frame assembler's length-delimited stream, 127.0.0.1:4721 on the Linux host. */243 }244 port aebsSignalFrameOut : AEBSSignalFrameOut {245 doc /* mw::com skeleton of the AEBS signal frame event. */246 }247 }248249 part healthProxyNode : PhysicalAllocationElement {250 doc /*251 * A DE4SDV ROS 2 node on the Linux host, outside the adapter process:252 * REQ-MW-018 aborts the whole adapter process, so the stale and253 * restored indications of REQ-MW-012 come from outside it. It observes254 * /de4sdv/middleware/velocity_status and, with a 1 s watchdog,255 * publishes a stale indication once the last sample is older than 5 s256 * and a restored indication with the next sample. Provider loss and an257 * aborted adapter look alike to it. The further step to unavailable is258 * specified only by the baseline (REQ-MW-004 and the unavailable state259 * of the baseline health proxy), with no trigger or bound for this260 * member: this node is where GAP-MW-034 puts it, but phase 8 does not261 * realize it, and it stays open with GAP-MW-034. It uses no S-CORE262 * module.263 */264 port middlewareVelocityStatusIn : VelocityReportSubscription {265 doc /* Subscription to /de4sdv/middleware/velocity_status. */266 }267 port middlewareVelocityStatusHealthOut : DiagnosticPublication {268 doc /* Publication to /de4sdv/middleware/velocity_status_health: a DiagnosticArray whose status is STALE for the stale indication and OK for the restored one (REQ-MW-012). */269 }270 }271272 part iviFrameRelay : PhysicalAllocationElement {273 doc /*274 * A DE4SDV process in the IVI VM, the guest end of the HMI frame relay275 * (ADR 0025, decision 4). It is rebuilt from the core of the DE4SDV276 * SOME/IP receiver: its discard policy, its loopback server and its277 * ingress trigger. The receiver leaves the product path (ADR 0025,278 * decision 7).279 * Input: it subscribes through the SDV Gateway on IVI, with280 * libsdvgatewayclient, to the frame topic that the SOME/IP broker281 * publishes in the SDV Core VM. It subscribes by name, with the282 * subscriber flag ASDVGATEWAY_SUBSCRIBER_OPTIONS_FLAG_NONE. So it reads283 * only the messages published after its subscription, and not the last284 * message published before it285 * (sdv_gateway/libsdvgatewayclient/include/libsdvgatewayclient.h:302-316).286 * Each message holds the SOME/IP payload of one frame event in the287 * broker's wrapper for INTERPRET_AS_BYTES: a protobuf message with one288 * bytes field289 * (some_ip/broker_agent_comms/src/translator/broker_translator.rs:248-262).290 * The relay parses the wrapper strictly. Each slot that it reads has the291 * publication's message size. The outer varint gives the length of the292 * message that follows it, and that message must fit in the slot. The293 * message must hold exactly one field: field 1 of wire type 2 (0x0A),294 * whose length equals the rest of the message. Both varints must be in295 * their shortest form. Every byte of the slot after the message must be296 * zero: the broker writes the message into a zero-filled buffer of the297 * slot size298 * (some_ip/broker_agent_comms/src/translator/broker_translator.rs:266-279).299 * Anything else is malformed, and the relay drops it with a reason of300 * its own. Design data, not evidence of record: in the feasibility run,301 * each of the 14038 messages that the IVI probe recorded had this shape302 * in a slot of 4101 bytes, and Data Tunnel carried each slot whole. No303 * run recorded the bytes of a slot after its message in the IVI VM304 * (ASM-MW-032).305 * Then it forwards a payload only when the payload's own length prefix306 * matches the payload length (owner decision of 2026-10-23). So a307 * corrupted payload cannot shift the stream framing of the ingress308 * (GAP-MW-040).309 * Design data, not evidence of record: an unreviewed DE4SDV feasibility310 * run on the bench VM (2026-10-28) subscribed a native IVI probe in this311 * way, with the authorization enforced. The publication was312 * instance1:com.android.sdv.someip.SomeIpBroker/default, unit313 * de4sdv-score-aebs-signal-frame. Over 630 s the probe read 6300 of 6300314 * frames from the bench's synthetic frame source, in order. After it315 * removed the wrapper, each frame was equal byte for byte to the frame316 * on the host.317 * Subscription (owner decision of 2026-10-29):318 * - The relay keeps one subscription for its lifetime, with or without319 * a client. An unsubscription would not stop the stream. In the320 * feasibility runs, the platform sent the topic to the IVI VM for at321 * least 6 minutes after the last client unsubscribed, until the322 * publication went.323 * - It runs the gateway client (init, subscribe and read) on a thread324 * of its own, with bounded waits. The loopback server and the325 * ingress connection do not depend on that thread.326 * - On PublicationDestroyed, it ends the old subscription and327 * subscribes again: every 100 ms for the first 5 s, then every328 * second. In the feasibility run, PublicationDestroyed came within329 * about 0.1 s after a restart of someipd (IVI VM clock corrected by330 * the measured offset). The broker had no new publication yet.331 * - Gateway client (owner decision of 2026-10-29, revised 2026-10-29:332 * the library allows one client per process). A second creation333 * fails, also after the first client was deleted334 * (sdv_gateway/libsdvgatewayclient/include/libsdvgatewayclient.h:473-475).335 * After the client has been created, the relay never deletes and336 * re-creates it. On Disconnected, or when initComms fails after the337 * client was created, the relay logs gateway_client_lost with the338 * status. It ends the phase as a layer-caused phase end and exits with339 * a code of its own. Init then starts the relay as a new process,340 * which triggers the ingress again. In the same process, the relay341 * retries only a creation of the client that itself failed.342 * Disconnected is an event of the API. The feasibility runs did not343 * see it.344 * - When no message comes for 3 s, it ends the subscription and345 * subscribes again. The timeout is above the longest pause of a346 * healthy source. That pause is the reconnect delay of the adapter, at347 * most 2 s (adapter/de4sdv_score_adapter/src/adapter_main.cpp:338 of348 * the S-CORE reference interop bench), plus one frame period. After349 * three subscriptions in a row that bring no message, it waits 5 s350 * between them. This break-before-make design keeps one subscription351 * at a time, because the runs did not test whether a second352 * subscription adds a stream.353 * - It counts each failed subscription and logs it with its status354 * text. A subject without an ACL gets "No publication service unit355 * found", the reply to a missing publication too. So if no356 * subscription succeeds within 30 s of its start, the relay reports a357 * likely fault of the ACL or of the mapping. After that, it tries358 * every 10 s.359 * - It counts a DATA_LOSS status of a read as a gap (GAP-MW-037), not360 * as the end of a phase.361 * A new subscription can miss the messages of its own window. Phase 10362 * measures, on corrected clocks, the latency of PublicationDestroyed363 * and the time to a new publication after a restart of someipd. It364 * also measures the subscribe latency and its loss window, the365 * DATA_LOSS counts, the subscriptions during a death of the stack, and366 * whether new subscriptions add streams or bandwidth.367 * Output: it serves each frame unchanged as the INC-AEBS-010368 * length-delimited stream on 127.0.0.1:4731 of the IVI VM loopback. It369 * serves one client, the reused ingress (ASM-MW-029), and it refuses a370 * second client while one is connected. Port 4731 differs from the371 * frame assembler's 4721, so a leftover forward of 4721 into the guest372 * cannot stand in for the relay.373 * REQ-MW-019: it discards the frames that the AEBS stack produced before374 * the HMI application's current subscription, apart from the band of375 * GAP-MW-045. It drops every frame while it has no client or no376 * subscription. In a subscription phase, it drops the frames produced377 * before the phase started, apart from that band378 * (relaySubscriptionPhaseDiscardRule). For that rule it reads two fields379 * of each frame, the sequence and the frame timestamp. It changes no380 * byte of the frame (REQ-MW-015). The broker subscribes to someipd381 * whether an IVI subscriber exists or not382 * (some_ip/broker_agent_comms/src/pubsub/pubsub_handler.rs:764-923).383 * So the host half and the SDV Core VM cannot see whether the HMI384 * application is connected. This rule is the discard that REQ-MW-019385 * relies on in the guest. It keeps the ingress connection open while the386 * broker's publication is unavailable, and it subscribes again when the387 * publication is available again. So the ingress keeps its last accepted388 * sequence (guestStaleFrameDropGuardRail). It sends nothing to the host389 * or to the SDV Core VM. Only the SDV Gateway on IVI exchanges390 * subscription control with the SDV Core VM for it. That is a design391 * property, not the protection of REQ-MW-016, which someipd (no392 * receiver for guest data) and the host configuration of GAP-MW-046 (DDS393 * ports) enforce.394 * It runs as a native init service of the IVI VM, outside the Launch395 * Manager, which runs only on the Linux host. It is not a oneshot396 * service, so init restarts it when it exits. The relay starts the397 * ingress, because the ingress exits when nothing listens398 * (ingress/main.cpp:183-188). The ingress is a oneshot service, and a399 * property starts it. The relay triggers the ingress: it sets that400 * property to 0 and then to 1. It does so at each of its own starts,401 * once its loopback server listens. Before the trigger, at each start,402 * the relay sets the ingress's frame-server host property to 127.0.0.1.403 * Setting that property also starts the ingress404 * (ingress/de4sdv_aebs_ingress.rc:9-13 of the INC-AEBS-010 bench).405 * Init ignores a start of a oneshot service whose old process it has406 * not reaped yet (init/service.cpp:620-642 and 328-329 of407 * platform/system/core at android17-release).408 * So until the first client of the current relay process connects, the409 * relay repeats the trigger at a fixed interval, a fixed number of410 * times at most. After that first client, it never triggers the411 * ingress again. An ingress that the bench stopped, or that exited by412 * itself, stays down until the bench starts it or the relay restarts.413 * Its bench form, and what stays untested, are in GAP-MW-038.414 */415 port frameTopicIn : DataTunnelPort {416 doc /* Subscription through the SDV Gateway on IVI to the broker's frame topic in the SDV Core VM. Each message is a SOME/IP payload in the broker's wrapper; the relay's behavior unwraps it. */417 }418 port aebsSignalFrameOut : AEBSSignalFrameOut {419 doc /* Length-delimited frame stream, server on 127.0.0.1:4731 of the IVI VM loopback, one client. */420 }421 }422423 ref part scoreServices : EclipseSCORE {424 doc /*425 * The Eclipse S-CORE modules the layer uses, with their processes. The426 * layer refers to them and does not own them; the processes below are427 * parts of the S-CORE instance that the product owns.428 * lifecycle v0.6.1 (commit 432c85d91db8bd72a39a61f245eaf119a570b88d)429 * comes from reference_integration v0.9.0, as its known_good.json430 * integrates it, with its test exclusions (ASM-MW-021). The S-CORE431 * SOME/IP gateway sets the rest: eclipse-score/inc_someip_gateway at432 * commit d9eac670b7534352749da3d30f52aebf5129f168 (Apache-2.0, no tag)433 * needs communication 0.5.0 (mw::com with the LoLa binding) and434 * baselibs 0.2.16. communication carries two patches of the gateway,435 * proxy_usage_marker_order and service_discovery_event_order, and436 * baselibs carries one, restore_qnx8_poll_workaround437 * (MODULE.bazel:239-259 at that commit). The patches and test438 * exclusions of v0.9.0 for these two modules do not apply. No S-CORE439 * baseline holds this set: ASM-MW-021 bounds the deviation. The adapter440 * links one communication version for both its events, and DE4SDV441 * assumes no compatibility between LoLa versions. So every mw::com user442 * on the Linux host builds with this set: the vehicle-speed provider,443 * the adapter, gatewayd and someipd. The layer's mw::com configuration444 * holds two service instances with one event each and no method or445 * field: the reference vehicle speed and the AEBS signal frame. At this446 * commit, gatewayd and someipd also talk over mw::com. someipd offers447 * SomeipdService, through which gatewayd hands it the gateway448 * configuration. gatewayd offers each frame service again as a bridged449 * service, which someipd consumes450 * (score/someipd/etc/mw_com_config.json;451 * score/gateway_ipc_binding/docs/mw_com_binding.rst). A LoLa domain is452 * the applications of one operating-system instance (communication 0.5.0,453 * score/mw/com/dependability/software_architectural_design/generalized_gateway/README.md:27-29),454 * so mw::com carries both events only inside the Linux host. The455 * gateway carries the frame event on as SOME/IP. S-CORE runs on the456 * Linux host only: the AAOS SDV guest is a non-converged system beside457 * it, as S-CORE's platform architecture draws an Android IVI (score458 * v0.7.2, docs/architecture/_assets/platform_architecture.drawio.svg).459 * These are the selected modules of aou_req__platform__testing460 * (GAP-MW-034), the gateway included.461 */462 part launchManager : PhysicalAllocationElement {463 doc /*464 * The Launch Manager of lifecycle v0.6.1. It starts someipd, gatewayd,465 * the adapter and the health proxy node as Native components, which466 * use no lifecycle API, and stops them in order with SIGTERM467 * (lifecycle README.md:24-30; launch_manager.schema.json:19-27, 65-72468 * and 201). A Native component is ready once its process is spawned469 * (concepts.rst:92-94). It passes a component only the environment470 * variables that its configuration names471 * (launch_manager.schema.json:203-210; process_launcher.cpp:488-494).472 * It passes each value literally, with no expansion473 * (environment_config.cpp:21-22), and at most 100 variables474 * (constants.hpp:27). So the layer's configuration, or exec wrappers475 * that source the setup files, set the whole environment of each476 * component:477 * - the library paths of all four components, because the adapter478 * has no RUNPATH and the RUNPATHs of gatewayd and someipd point into479 * the build tree;480 * - for the adapter and the health proxy node, the full ROS 2 setup481 * with the ROS 2 environment of adapterAbortConditions and a482 * directory for the ROS 2 logs (HOME or ROS_LOG_DIR);483 * - VSOMEIP_CONFIGURATION for someipd.484 * Without them the adapter aborts at start: under the default Fast485 * DDS, or when the ROS 2 logging setup fails and rclcpp throws. Two486 * guard rails set its configuration487 * (gatewayStartOrderGuardRail, gatewayPairRestartGuardRail). When one488 * of these components terminates unexpectedly after its ready state,489 * for example on the abort of REQ-MW-018, it runs the component's490 * recovery action. In v0.6.1 that action can only switch to the491 * fallback Run Target (known_limitations.rst:32-33,492 * lifecycle_config.py:559-569), which has no recovery action of its493 * own (launch_manager.schema.json:489-491). The fallback Run Target494 * holds only the health proxy node (gatewayPairRestartGuardRail).495 * GAP-MW-043 states what a failure of any of its components then496 * does. By owner decision of 2026-10-18 the Launch Manager stays:497 * REQ-MW-018 needs only the abort, and the health topic of REQ-MW-012498 * and the stale overlay of the HMI make the loss visible. It realizes499 * part of the lifecycle bridge, the process lifecycle of the layer on500 * the S-CORE side; nothing in the layer makes that lifecycle state501 * visible to Autoware. So the lifecycle request and status items of502 * the logical lifecycle bridge cross no software contract here, and503 * the process control (start, SIGTERM, exit status) carries no504 * information item: neither needs a signal mapping. The IVI frame505 * relay and the AAOS SDV elements in the guest are outside it. The506 * Health Monitor of S-CORE is not used: its supervision needs the507 * lifecycle API, which none of these processes uses. It builds in a508 * workspace of its own, because509 * lifecycle v0.6.1 declares communication 0.4.0 and baselibs 0.2.12;510 * DE4SDV's CI built it there, and it has not run yet (GAP-MW-035).511 */512 }513514 part gatewayd : PhysicalAllocationElement {515 doc /*516 * The gatewayd process of the S-CORE SOME/IP gateway, part of the517 * host half of the HMI frame relay. It is built from518 * eclipse-score/inc_someip_gateway at commit519 * d9eac670b7534352749da3d30f52aebf5129f168 and not vendored520 * (GAP-MW-036). It finds the adapter's frame service and subscribes521 * to it as an mw::com proxy with a maximum sample count of 10522 * (score/someip/constants.h:32,523 * score/gatewayd/impl/local_service_instance.cpp:141). LoLa rejects a524 * subscription that the free sample slots cannot hold525 * (event_subscription_control.cpp:88-95 of communication 0.5.0). So526 * the frame event needs at least 10 sample slots. gatewayd puts a527 * 16-byte SOME/IP header in front of the frame bytes528 * (score/gatewayd/impl/local_service_instance.cpp:166-216). It passes529 * the result to someipd over the gateway's IPC binding, which runs on530 * mw::com at this commit. gatewayd offers the frame service again as531 * a bridged service with 20 sample slots, and someipd subscribes to532 * it: a second LoLa hop533 * (score/gateway_ipc_binding/gateway_ipc_binding_mw_com.hpp:50;534 * score/gateway_ipc_binding/docs/mw_com_binding.rst). someipd removes535 * the header again536 * (score/someipd/impl/local_network_service.cpp:124-127). The layer's537 * gateway configuration (phase 10) gives the frame event538 * the null serializer with a message size of 2048 bytes; the schema539 * fields are at score/config/mw_someip_config.fbs:61-64. gatewayd540 * sizes the bridged event from the serializer, plus the 16-byte541 * header, and falls back to 1500 bytes otherwise542 * (score/gatewayd/main.cpp:49-72). The layer's gateway configuration543 * (phase 10) declares one service type with one event, no method and544 * no remote service instance; the schema fields are at545 * score/config/mw_someip_config.fbs:31-41. gatewayd hands this546 * configuration to someipd when it starts547 * (score/gatewayd/main.cpp:189-209). gatewayd offers mw::com services548 * to the host's applications only for remote service instances549 * (score/gatewayd/impl/remote_service_instance.cpp:49-50, 243-247), so550 * it offers none to them (REQ-MW-016). Its bridged service carries551 * frames away from the host's applications, to someipd. The guard552 * rails bound three of its known defects. A late or repeated553 * subscription forwards stored frames (GAP-MW-039). A restart beside554 * a running someipd corrupted the payloads at an earlier commit555 * (GAP-MW-040). A stop while subscribed aborts the process556 * (GAP-MW-041). It uses no lifecycle API, so the Launch Manager557 * starts it as a Native component.558 */559 port aebsSignalFrameIn : AEBSSignalFrameIn {560 doc /* mw::com proxy of the AEBS signal frame event. */561 }562 port aebsSignalFrameOut : AEBSSignalFrameOut {563 doc /* The gateway's IPC binding to someipd: gatewayd's mw::com skeleton of the bridged frame service. */564 }565 }566567 part someipd : PhysicalAllocationElement {568 doc /*569 * The someipd process of the S-CORE SOME/IP gateway, the last process570 * of the host half of the HMI frame relay. It is built from the same571 * commit with the gateway's patched COVESA vsomeip 3.6.1 archive572 * (MPL-2.0; MODULE.bazel:306-319 at that commit). It hosts the573 * vsomeip routing of the Linux host. It takes the services that574 * gatewayd hands it over the IPC binding575 * (score/someipd/impl/gatewayd_services.cpp:30-134). It offers the576 * frame event as one reliable SOME/IP event on the KVM guest network,577 * to the stack of the SDV Core VM (ADR 0025). It is the only process578 * of the layer on the Linux host that the guest reaches, if the579 * host also keeps the DDS ports of the adapter and the health proxy580 * node off the guest network, as it must keep port 4721 of the frame581 * assembler (ASM-MW-029). Both VMs of the guest are on the host's582 * untagged network segment. So the IVI VM can reach the SOME/IP ports583 * of someipd too: one routing rule in the guest is enough, so the host584 * must not rely on the routing of the guest (GAP-MW-046). No element585 * of the layer in the IVI VM uses SOME/IP.586 * REQ-MW-016, and REQ-MW-019 while the broker's subscription is587 * absent, are enforced here by the host's own configuration and do588 * not rely on the guest. The bench does not have589 * the configuration that keeps these ports off the guest network yet590 * (GAP-MW-046). While ASM-MW-031 holds,591 * the criteria of REQ-MW-016 also cover the ROS 2 processes of the host592 * outside the layer. ASM-MW-031 assumes that they run in the ROS 2593 * environment of adapterAbortConditions.594 * The trust boundary to the guest lies here, inside the layer595 * (GAP-MW-012), and no robustness against malformed input from the596 * guest is claimed.597 * REQ-MW-016: someipd registers a message handler only in its remote598 * network service599 * (score/someipd/impl/remote_network_service.cpp:83-100). It creates600 * one only for a remote service instance of the601 * configuration that gatewayd hands it602 * (score/someipd/impl/gatewayd_services.cpp:96-116). The layer's603 * gateway configuration (phase 10) declares none. So the host has no604 * receiver for guest data. REQ-MW-019: someipd offers a plain605 * event, not a field (score/someipd/impl/routing.cpp:58-60, with the606 * default event type of interface/vsomeip/application.hpp:221-225 of607 * vsomeip 3.6.1). With these defaults, vsomeip takes the event's cycle608 * from the vsomeip configuration609 * (implementation/runtime/src/application_impl.cpp:1365-1367). So610 * someipd's vsomeip configuration (phase 10) gives the frame event no611 * cycle; a cyclic event would send the last frame again. To a remote612 * subscriber, such as the stack of the SDV Core VM, vsomeip sends a613 * current value only for a field614 * (implementation/routing/src/eventgroupinfo.cpp:400-428). So a frame615 * goes only to a current subscriber and is dropped at the host while616 * the broker's subscription is absent. someipd's vsomeip617 * configuration (phase 10) also bounds the external endpoint queue,618 * which vsomeip leaves unlimited by default; the setting is at619 * documentation/vsomeipConfiguration.md:368. So a stalled SDV Core VM620 * gets no growing backlog. It offers every local service that gatewayd621 * hands it, once its vsomeip application registers, and only its own622 * stop withdraws the offer (GAP-MW-042). It uses no lifecycle API, so623 * the Launch Manager starts it as a Native component.624 */625 port aebsSignalFrameIn : AEBSSignalFrameIn {626 doc /* The gateway's IPC binding from gatewayd: someipd's mw::com proxy of the bridged frame service. */627 }628 port aebsSignalFrameOut : AEBSSignalFrameOut {629 doc /* SOME/IP event offered on the KVM guest network of the Linux host, to which the stack of the SDV Core VM subscribes. */630 }631 }632 }633634 ref part sdvCore : SDVCoreBoundary {635 doc /*636 * The SDV Core of the guest: the AAOS SDV services of the SDV Core VM637 * (ADR 0025). The layer uses two of its parts. It refers to them and638 * does not own them: the product around the layer owns the SDV Core.639 * - someIp: the SOME/IP broker and its stack. The broker is the init640 * service sdv_someip_broker_agent (sdv_someip_broker_agent_comms). It641 * takes the SOME/IP event at someIpPort and publishes the topic at642 * topicPublishOut.643 * The stack is Google's reference stack sdv_someip_stack_agent, a644 * thin wrapper of the vsomeip 3.1.37.1 of AOSP (GAP-MW-047), behind645 * the Stable AIDL interface ISomeIpStack. Under the fallback of646 * ADR 0025, decision 4, a custom DE4SDV ISomeIpStack replaces it, and647 * that stack is an element of the layer.648 * - dataTunnel: the Data Tunnel of the SDV Core VM. It carries the649 * broker's frame topic to the IVI VM.650 * The broker subscribes to the frame event of someipd as the DE4SDV651 * SOME/IP mapping says (phase 10). The mapping has one652 * someip_service_mapping, for the frame event, with the message653 * translation mode INTERPRET_AS_BYTES. The VSIDL type of its topic holds654 * the payload in one bytes field. Its catalog comes from the VSIDL655 * catalog provider of the same VM. The DE4SDV stack configuration656 * replaces the vsomeip configuration of the reference stack657 * (/vendor/etc/someip/vsomeip_config.json) and offers no SOME/IP658 * service. The VM starts the broker and the stack on the boot property659 * ro.boot.sdv.someip.enable=true. Both are oneshot services, so init660 * does not restart them (sdv_core_cf/init.sdv_core_cf.rc:47-66 of661 * device/google/sdv; GAP-MW-048). The mapping and the stack662 * configuration go into the SDV Core image when it is built663 * (GAP-MW-038).664 */665 }666667 ref part sdvGateway : SDVGatewayOnIVIBoundary {668 doc /*669 * The SDV Gateway on IVI of the IVI VM (ADR 0025). The relay670 * subscribes through it to the broker's frame topic. The layer refers671 * to it and does not own it. The reused HMI chain uses the same gateway672 * for its own local topic (ASM-MW-024, ASM-MW-029).673 */674 }675676 connection speedTopicToHealthProxy677 connect adapter.middlewareVelocityStatusOut to healthProxyNode.middlewareVelocityStatusIn;678 connection frameEventOverSCORECommunication679 connect adapter.aebsSignalFrameOut to scoreServices.gatewayd.aebsSignalFrameIn;680 connection frameEventOverGatewayIPC681 connect scoreServices.gatewayd.aebsSignalFrameOut to scoreServices.someipd.aebsSignalFrameIn;682 connection frameEventOverSOMEIPAcrossHypervisor683 connect scoreServices.someipd.aebsSignalFrameOut to sdvCore.someIp.someIpPort;684 connection frameTopicPublishedByBroker685 connect sdvCore.someIp.topicPublishOut to sdvCore.dataTunnel.topicPublishPort;686 connection frameTopicOverDataTunnelAcrossVMs687 connect sdvCore.dataTunnel.topicSubscribePort to sdvGateway.dataTunnelPort;688 connection frameTopicThroughSDVGatewayToRelay689 connect sdvGateway.clientPort to iviFrameRelay.frameTopicIn;690 }691692 part def SCORETwoDomainPhysicalSystem {693 doc /*694 * The physical context of the two-domain member product. It holds the695 * Linux host, the AAOS SDV guest under its KVM hypervisor, and the696 * integration layer that spans both. The guest has two VMs (ADR 0025):697 * the SDV Core VM (sdvCoreGuest) and the IVI VM (hmiGuest). Each domain698 * and each VM is typed with the existing layers of the SDV platform699 * stack; phase 9 adds the per-domain variation. The Linux700 * host owns the S-CORE services and the adapter. The SDV Core VM owns701 * the SDV Core, and the IVI VM owns the SDV Gateway on IVI.702 * Five bindings make the layer's references the same things, so this703 * context has one instance and one owner of each (owner decisions of704 * 2026-10-23 and 2026-10-28).705 */706707 part linuxHost {708 doc /*709 * The Linux execution domain: Ubuntu x86_64 (ASM-MW-026) and the KVM710 * hypervisor (ASM-MW-027). It owns its vehicle-level middleware,711 * Eclipse S-CORE (scoreServices), and the adapter process (adapter).712 * The integration layer refers to both. The AEBS emergency713 * intervention command path stays in this domain, outside the layer714 * (ASM-MW-028).715 */716 part os : LinuxPlatform;717 part hypervisor : KVMHypervisor;718 part scoreServices : EclipseSCORE {719 doc /* The Eclipse S-CORE instance of this domain. The layer's scoreServices refers to it and declares its processes. */720 }721 part adapter : AutowareToSCOREAdapter {722 doc /* The adapter process of this domain. The layer's adapter refers to it and declares its ports. */723 }724725 part vehicleSpeedProvider {726 doc /* The vehicle-speed provider, an S-CORE application outside the system of interest; it offers the reference vehicle speed as an mw::com event. */727 ref part vssVehicleSpeedSource : COVESAVehicleSpeedSemanticSource;728 port referenceSpeedOut : ReferenceVehicleSpeedEventOut;729 }730 part aebsSignalFrameAssembler {731 doc /*732 * The frame assembler of INC-AEBS-010, reused unchanged (ASM-MW-029):733 * it assembles the AEBS signal frames and serves them as a734 * length-delimited stream on port 4721. It binds 0.0.0.0735 * (de4sdv_aebs_010_bridge/ros_node.py:34-35 of the INC-AEBS-010736 * bench), so the host must keep the guest network off that port737 * (ASM-MW-029). Then the frames reach the guest only through the738 * layer.739 */740 port aebsSignalFrameOut : AEBSSignalFrameOut;741 }742 part velocityConverter {743 doc /* autoware_vehicle_velocity_converter, launched with input_vehicle_velocity_topic:=/de4sdv/middleware/velocity_status. */744 port velocityIn : VelocityReportSubscription;745 }746 part aebsStack : VehicleTargetAEBSPhysicalSoftwareBoundary {747 doc /*748 * The Autoware-based AEBS stack with the pinned AEB node. Its velocity749 * input, /vehicle/status/velocity_status, has no publisher in the750 * layer (REQ-MW-020); the member product's publisher stays open751 * (GAP-MW-033).752 */753 }754 }755756 part sdvCoreGuest {757 doc /*758 * The SDV Core VM of the AAOS SDV guest under KVM (ADR 0025): the759 * headless sdv_core_cf image, with the boot property760 * ro.boot.sdv.someip.enable=true. It runs the SDV Core services. Of761 * them, the layer refers to the SOME/IP broker with its stack and to762 * Data Tunnel (the layer's sdvCore). The rest of the VM is guest763 * platform, context of the layer. Its image comes from the same764 * android17-release revision as the image of the IVI VM, rebuilt before765 * the first session of record (ADR 0025, decision 8). It has no766 * display, and no element of the HMI chain runs here.767 */768 part os : AndroidHLOS;769 part sdvMiddleware : AndroidSDVMiddleware;770 }771772 part hmiGuest {773 doc /*774 * The IVI VM of the AAOS SDV guest under KVM: the display-capable775 * sdv_ivi_cf image of INC-AEBS-010 (ASM-MW-027, ADR 0025). The reused776 * HMI chain is context, with its obligations as assumptions777 * (ASM-MW-024, ASM-MW-029). The guest platform, Android HLOS with the778 * AAOS SDV middleware, is context too, apart from the SDV Gateway on779 * IVI, which the layer refers to. What the path needs from the guest780 * platform is open in GAP-MW-038. Of the layer, only the IVI frame781 * relay runs here. The IVI image holds no SOME/IP module782 * (sdv_ivi_base/sdv_packages_ivi_services.mk of device/google/sdv).783 */784 part os : AndroidHLOS;785 part sdvMiddleware : AndroidSDVMiddleware;786 part sdvGateway : SDVGatewayOnIVIBoundary {787 doc /* The SDV Gateway on IVI of this VM: the sdv_gateway service of the IVI image. The model holds it beside sdvMiddleware. The layer's sdvGateway refers to it. */788 }789790 part hmiApplication {791 doc /*792 * The HMI chain of INC-AEBS-010, reused unchanged: its ingress793 * (ASM-MW-029), the local Data Tunnel topic of the SDV Gateway on IVI794 * and the center-display application (ASM-MW-024). An informational795 * display, not the AEBS driver warning.796 */797 port aebsSignalFrameIn : AEBSSignalFrameIn {798 doc /* The ingress's frame-server connection, set to the IVI frame relay on the IVI VM loopback. */799 }800 }801 }802803 part integrationLayer : SCOREMiddlewareIntegrationLayerRealization;804 binding scoreServicesBoundToLinuxHost805 bind integrationLayer.scoreServices = linuxHost.scoreServices;806 binding adapterBoundToLinuxHost807 bind integrationLayer.adapter = linuxHost.adapter;808 binding sdvCoreBoundToSDVCoreVM809 bind integrationLayer.sdvCore = sdvCoreGuest.sdvMiddleware;810 binding platformSoftwareBoundToSDVCoreVM811 bind integrationLayer.sdvCore.platformSoftware = sdvCoreGuest.os;812 binding sdvGatewayBoundToIVIVM813 bind integrationLayer.sdvGateway = hmiGuest.sdvGateway;814815 interface sdvCoreGuestUnderKVM : OSHypervisorInterface816 connect sdvCoreGuest.os.hypervisorPort to linuxHost.hypervisor.guestPort;817 interface hmiGuestUnderKVM : OSHypervisorInterface818 connect hmiGuest.os.hypervisorPort to linuxHost.hypervisor.guestPort;819820 connection referenceSpeedOverSCORECommunication821 connect linuxHost.vehicleSpeedProvider.referenceSpeedOut to integrationLayer.adapter.referenceSpeedIn;822 connection framesFromAssemblerOverHostLoopback823 connect linuxHost.aebsSignalFrameAssembler.aebsSignalFrameOut to integrationLayer.adapter.aebsSignalFrameIn;824 connection speedTopicToVelocityConverter825 connect integrationLayer.adapter.middlewareVelocityStatusOut to linuxHost.velocityConverter.velocityIn;826 connection framesToHMIOverGuestLoopback827 connect integrationLayer.iviFrameRelay.aebsSignalFrameOut to hmiGuest.hmiApplication.aebsSignalFrameIn;828 }829830 part scoreTwoDomainPhysicalSystem : SCORETwoDomainPhysicalSystem;831832 // Logical-to-physical allocations (allocatedTo, logical element to physical element);833 // the two partial ones are typed PartialLogicalToPhysicalSoftwareRealization.834 allocation signalTranslatorToAdapter allocate DE4SDV_MiddlewareLogicalArchitecture::system::signalTranslator to scoreTwoDomainPhysicalSystem::integrationLayer::adapter;835 allocation healthProxyToHealthProxyNode : PartialLogicalToPhysicalSoftwareRealization allocate DE4SDV_MiddlewareLogicalArchitecture::system::healthProxy to scoreTwoDomainPhysicalSystem::integrationLayer::healthProxyNode;836 allocation lifecycleBridgeToLaunchManager : PartialLogicalToPhysicalSoftwareRealization allocate DE4SDV_MiddlewareLogicalArchitecture::system::lifecycleBridge to scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::launchManager;837 allocation hmiFrameRelayToAdapter allocate DE4SDV_MiddlewareSCORELogicalArchitecture::hmiFrameRelay to scoreTwoDomainPhysicalSystem::integrationLayer::adapter;838 allocation hmiFrameRelayToGatewayd allocate DE4SDV_MiddlewareSCORELogicalArchitecture::hmiFrameRelay to scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::gatewayd;839 allocation hmiFrameRelayToSomeipd allocate DE4SDV_MiddlewareSCORELogicalArchitecture::hmiFrameRelay to scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::someipd;840 allocation hmiFrameRelayToIviFrameRelay allocate DE4SDV_MiddlewareSCORELogicalArchitecture::hmiFrameRelay to scoreTwoDomainPhysicalSystem::integrationLayer::iviFrameRelay;841842 // System-to-software signal mappings (the method's phase-8 exit rule): one per843 // crossing of a logical information item into a software contract, each with844 // its mapping record. A mapping is not a runtime-interoperability claim.845 allocation vehicleSpeedSignalMapping : SystemToSoftwareSignalMappingCandidate846 allocate DE4SDV_MiddlewareLogicalArchitecture::system::signalTranslator847 to scoreTwoDomainPhysicalSystem::integrationLayer::adapter::referenceSpeedIn {848 item <'MAP-MW-SCORE-VEHICLE-SPEED'> vehicleSpeedMappingRecord : LogicalToSoftwareSignalMappingRecord {849 doc /*850 * The reference vehicle speed from the provider's S-CORE event through851 * the adapter to the velocity input of the Autoware vehicle velocity852 * converter (REQ-MW-010). The owning allocation targets the adapter's853 * S-CORE event port; with the typed ports and the layer's connections854 * it gives the source, the endpoints and the direction. The payload's855 * speed_kmh is typed by VSS Vehicle_Speed, and the provider references856 * the VSS semantic source.857 */858 attribute :>> softwareContractArtifact = "in: the layer's S-CORE mw::com configuration (phase 10), candidate; out: ROS 2 topic /de4sdv/middleware/velocity_status (owner decision D4), exact";859 attribute :>> softwareContractMessage = "in: the reference vehicle-speed service instance with one event, candidate; out: autoware_vehicle_msgs/msg/VelocityReport, exact type, revision pinned in phase 10 with the Autoware image (GAP-MW-035)";860 attribute :>> softwareContractField = "in: speed_kmh, candidate; out: longitudinal_velocity, exact";861 attribute :>> dataTypeAndUnit = "in: speed_kmh : Vehicle_Speed, km/h; out: longitudinal_velocity, float32, m/s, an Autoware message field and not a VSS signal";862 attribute :>> timingQualityAndState = "one VelocityReport per finite sample; non-finite samples withheld (REQ-MW-011), and also a finite sample whose m/s value lies outside the float32 range, which as float32 would become an infinity; each sample at most once, also after a restart (REQ-MW-013), because the adapter discards the samples stored before each entry into the subscribed state (GAP-MW-039)";863 attribute :>> transformationRule = "unit conversion: longitudinal_velocity = speed_kmh / 3.6 as float32 (REQ-MW-010); a value outside the float32 range is withheld, not converted";864 attribute :>> disposition = SignalMappingDisposition::candidate;865 attribute :>> owner = "DE4SDV maintainers";866 attribute :>> nextAction = "phase 10: author the mw::com configuration and run the REQ-MW-010 test (36 and 72 km/h to 10 and 20 m/s) with REQ-MW-011 and REQ-MW-013, in the ROS 2 environment of adapterAbortConditions";867 attribute :>> evidenceOrGap = "no runtime evidence of record yet; GAP-MW-035 (the one-process adapter on the bench; CI design data only), GAP-MW-033 (the publisher of /vehicle/status/velocity_status), GAP-MW-039 (the stored samples of a new LoLa subscription), GAP-MW-043 (a gateway failure also stops the speed path, with no restart)";868 }869 }870 allocation velocityStatusHealthSignalMapping : SystemToSoftwareSignalMappingCandidate871 allocate DE4SDV_MiddlewareLogicalArchitecture::system::healthProxy872 to scoreTwoDomainPhysicalSystem::integrationLayer::healthProxyNode::middlewareVelocityStatusHealthOut {873 item <'MAP-MW-SCORE-VELOCITY-STATUS-HEALTH'> velocityStatusHealthMappingRecord : LogicalToSoftwareSignalMappingRecord {874 doc /*875 * The health of the reference vehicle speed, the forwarded health of876 * the logical health proxy, from the health proxy node to its ROS 2877 * health topic (REQ-MW-012). The owning allocation targets the node's878 * health publication port, which gives the endpoint and the direction.879 * The safety-path status of the logical health proxy is not realized880 * here.881 */882 attribute :>> semanticSource = "the health of the reference vehicle speed, the forwarded health of the logical health proxy: a ROS 2 diagnostic status (DiagnosticArray, STALE or OK) that the health proxy node derives from the age of the last sample on /de4sdv/middleware/velocity_status; a diagnostic, not a vehicle signal, so no VSS source applies";883 attribute :>> softwareContractArtifact = "ROS 2 topic /de4sdv/middleware/velocity_status_health (owner decision D4), exact";884 attribute :>> softwareContractMessage = "diagnostic_msgs/msg/DiagnosticArray, exact type, revision pinned in phase 10 with the ROS 2 distribution of the Autoware image (GAP-MW-035)";885 attribute :>> softwareContractField = "status[].level, exact; the status name and hardware_id, candidate";886 attribute :>> dataTypeAndUnit = "byte level: STALE for the stale indication, OK for the restored one; no unit";887 attribute :>> timingQualityAndState = "a 1 s watchdog; stale once the last sample on /de4sdv/middleware/velocity_status is older than 5 s, restored with the next sample; provider loss and an aborted adapter look alike";888 attribute :>> transformationRule = "state rule: a sample age above 5 s gives STALE, the next sample gives OK; the unavailable step of REQ-MW-004 is not realized (GAP-MW-034)";889 attribute :>> disposition = SignalMappingDisposition::candidate;890 attribute :>> owner = "DE4SDV maintainers";891 attribute :>> nextAction = "phase 10: pin the status name and hardware_id and run the stale and restored test of REQ-MW-012";892 attribute :>> evidenceOrGap = "no runtime evidence yet; GAP-MW-034";893 }894 }895 allocation aebsSignalFrameSignalMapping : SystemToSoftwareSignalMappingCandidate896 allocate DE4SDV_MiddlewareSCORELogicalArchitecture::hmiFrameRelay897 to scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::someipd::aebsSignalFrameOut {898 item <'MAP-MW-SCORE-AEBS-SIGNAL-FRAME'> aebsSignalFrameMappingRecord : LogicalToSoftwareSignalMappingRecord {899 doc /*900 * The AEBS signal frames on the one-way HMI path, hop by hop:901 * - the INC-AEBS-010 frame-server stream into the adapter on the host902 * loopback;903 * - the adapter's S-CORE event inside the host;904 * - the gateway's IPC binding from gatewayd to someipd, a second905 * mw::com hop;906 * - someipd's SOME/IP event across the hypervisor to the stack of the907 * SDV Core VM;908 * - the broker's Data Tunnel topic, from the SDV Core VM to the SDV909 * Gateway on IVI in the IVI VM;910 * - the relay's stream on the IVI VM loopback into the unchanged911 * INC-AEBS-010 ingress.912 * The owning allocation targets someipd's SOME/IP event port, the913 * crossing into the guest; the typed ports and the layer's connections914 * give the other endpoints and the direction. The frame is opaque by915 * owner decision and carries no VSS signal. The relay reads only its916 * sequence and its frame timestamp, for its discard rule.917 */918 attribute :>> semanticSource = "the AEBS signal frame (AEBSSignalFrame), opaque DE4SDV content: it carries no VSS signal, by the owner decision of 2026-10-18 recorded on AEBSSignalFrame";919 attribute :>> softwareContractArtifact = "the INC-AEBS-010 frame-server stream into the adapter: the frame assembler binds 0.0.0.0:4721 (de4sdv_aebs_010_bridge/ros_node.py:34-35), and the adapter connects to 127.0.0.1:4721 on the host loopback (adapter/de4sdv_score_adapter/src/adapter_main.cpp:190-191 of the S-CORE reference interop bench), exact; the layer's S-CORE mw::com configuration, the gateway configuration that gatewayd hands to someipd, the vsomeip 3.6.1 configuration of someipd, the DE4SDV stack configuration of the SDV Core VM, the DE4SDV SOME/IP mapping of the broker with its VSIDL type and catalog, and the authorization entries of the broker's publication and of the relay's subscription (phase 10), candidate; the relay's subscription through the SDV Gateway on IVI, candidate; the relay's stream on the IVI VM loopback, 127.0.0.1:4731, candidate; the INC-AEBS-010 ingress stream (ingress/main.cpp:27-28, 142-146), exact";920 attribute :>> softwareContractMessage = "host and IVI VM loopback: the length-delimited frame stream; mw::com: the AEBS signal frame service instance with one event of the gateway type PreSerializedData<2048>; gateway IPC binding: the same bytes behind a 16-byte SOME/IP header, as a sample of gatewayd's bridged mw::com service, and someipd removes the header; SOME/IP: one service with one reliable event, events only, IDs not yet assigned; Data Tunnel: one topic of the broker's publication, each message the SOME/IP payload in the broker's wrapper for INTERPRET_AS_BYTES, [length varint][0x0A][length varint][payload], a protobuf message with one bytes field (some_ip/broker_agent_comms/src/translator/broker_translator.rs:248-262); the relay removes the wrapper and parses it strictly; in the feasibility run of 2026-10-28 the publication was instance1:com.android.sdv.someip.SomeIpBroker/default, unit de4sdv-score-aebs-signal-frame (design data)";921 attribute :>> softwareContractField = "the whole frame, opaque; the relay reads only sequence and frame_timestamp_ns (aebs_visualization.proto:59-60 of INC-AEBS-010) for its discard rule";922 attribute :>> dataTypeAndUnit = "a length-prefixed frame of at most 2048 bytes; on Data Tunnel the bytes field of the topic's VSIDL type holds at least 2048 bytes; the wrapper adds 5 bytes to a payload of that size, and the maximum message size of the publication must hold both, because the broker does not publish a payload that exceeds it (some_ip/broker_agent_comms/src/translator/broker_translator.rs:263-265); Data Tunnel sends the whole slot, so a larger field costs bandwidth (feasibility run of 2026-10-28 with the bench's synthetic frames: about 4.1 KB on the wire for each 2053-byte message in a 4101-byte slot, design data); no unit";923 attribute :>> timingQualityAndState = "source order (REQ-MW-014), not guaranteed (GAP-MW-037), and on the AAOS SDV hops assumed (ASM-MW-032); discarded while the HMI application is not subscribed (REQ-MW-019): at someipd while the broker's subscription is absent, if someipd's vsomeip configuration gives the frame event no cycle; the broker subscribes whether an IVI subscriber exists or not, and a gateway subscriber with ASDVGATEWAY_SUBSCRIBER_OPTIONS_FLAG_NONE reads only the messages published after its subscription; at the relay outside a subscription phase and, in a phase, when the AEBS stack produced the frame before the phase started (relaySubscriptionPhaseDiscardRule, ASM-MW-030); a new subscription of a LoLa hop can return up to 10 frames from before it (GAP-MW-039), they reach the topic as new messages, and the relay drops those produced before the phase, apart from the band of GAP-MW-045";924 attribute :>> transformationRule = "pass-through and unchanged (REQ-MW-015): no element changes the frame; the broker puts the SOME/IP payload into its wrapper, and the relay removes the wrapper; the relay reads the length prefix to check the framing, and the sequence and the frame timestamp for its discard rule; no VSS signal, by owner decision";925 attribute :>> disposition = SignalMappingDisposition::candidate;926 attribute :>> owner = "DE4SDV maintainers";927 attribute :>> nextAction = "phase 10, in this order: (1) assign the mw::com instance and the SOME/IP service, instance and event IDs, and give the frame event no cycle and 20 sample slots, at least the 10 that gatewayd needs and the count that the relay's copy check sums; (2) set up the SD network of the host: the unicast address 192.168.98.1/24 of someipd on the bridge cvd-ebr, a route for the SD group on cvd-ebr, and an SD group that the bridge forwards, in 224.0.0.0/24 or with an IGMP querier or with no IGMP snooping on cvd-ebr (GAP-MW-047); (3) author the DE4SDV stack configuration, with no offered service and with the remote endpoint of the frame service pinned to 192.168.98.1, so that an SD message from the IVI VM cannot redirect the subscription (else filter SD in the SDV Core VM to 192.168.98.1, or record the residual for REQ-MW-015 under GAP-MW-012), and the DE4SDV SOME/IP mapping: one someip_service_mapping for the frame event with INTERPRET_AS_BYTES, a VSIDL type whose bytes field holds the 2048 bytes of the frame bound and not much more, its catalog, and the authorization entries of the broker's publication and of the relay's subscription, among them the relay's ACL; (4) build the SDV Core image with the mapping and the stack configuration, from a clean, recorded build, and launch the SDV Core VM and the IVI VM from one android17-release revision, both in the UNLOCKED boot mode (ADR 0025, decision 8); (5) provision the relay for the IVI VM: build it into the IVI image, or put it on the instance overlay for the bench, with its init service; set the ingress's frame-server host property to 127.0.0.1 and its port property to 4731; install exactly one ACL file for the relay's subject before the IVI VM boots; then reboot the IVI VM and set its clock (ASM-MW-030) before any case; (6) before each session, apply the clock controls of ASM-MW-030: IVI VM auto_time and auto_time_zone off, a clock setting after each boot, and the two-way measurement with its uncertainty at the start and the end; (7) check on the host that the adapter is the only client of the frame assembler (ASM-MW-029), in two steps: the list of ss -H -t -n -p state established '( sport = :4721 )' holds exactly one connection, with a loopback address as its peer, and ss -H -t -n -p state established '( dport = :4721 )' names the adapter process for the port of that peer; (8) run the sequence-gap and resubscription tests of REQ-MW-014 and REQ-MW-019, and record every phase end of the relay (relaySubscriptionPhaseDiscardRule); (9) run the start, stop and restart cases of the guard rails, a restart of the relay after which it starts the ingress again, a gateway_client_lost exit of the relay with its restart by init and its new trigger of the ingress (iviFrameRelay), a death of the broker and of its stack with the bench recovery of GAP-MW-048, an outage of SD multicast and a long session that checks that the SD offers and renewals keep coming (GAP-MW-047), and a link loss and a reboot of each VM; (10) run the phase-start and stored-frame cases of the relay's discard rule, a corrupted-payload case for its framing check, and a malformed-wrapper case; (11) author the host configuration of GAP-MW-046, written by interface, that makes the DDS ports of every host ROS 2 process, and port 4721, unreachable from each guest domain (a host firewall on the bench), and run the reachability probe of the case that verifies REQ-MW-016 from each VM, over each of its interfaces (eth1, buried_eth0, the VLAN interfaces, wlan if present), to each address of the host (192.168.98.1, the host end of the buried network of each VM, any other cvd-* bridge address) (ASM-MW-029, GAP-MW-046)";928 attribute :>> evidenceOrGap = "no runtime evidence yet; GAP-MW-035, GAP-MW-036, GAP-MW-037, GAP-MW-038, GAP-MW-039, GAP-MW-040, GAP-MW-041, GAP-MW-042, GAP-MW-043, GAP-MW-045, GAP-MW-046, GAP-MW-047, GAP-MW-048; ASM-MW-032; design data only from the feasibility runs of 2026-10-28 (GAP-MW-038)";929 }930 }931932 dependency adapterProcessTracesToAbortRequirement933 from scoreTwoDomainPhysicalSystem::integrationLayer::adapter934 to DE4SDV_MiddlewareSCORENeedsRequirements::reqTerminateAdapterOnException;935936 comment hmiTransportSelection937 about DE4SDV_MiddlewareSCOREFraming::gapHMITransportUnselected938 /*939 * Phase 8 selects the transport of GAP-MW-031. S-CORE mw::com carries the940 * AEBS signal frames inside the Linux host. The S-CORE SOME/IP gateway941 * offers them as reliable SOME/IP events: gatewayd and someipd of942 * eclipse-score/inc_someip_gateway at commit943 * d9eac670b7534352749da3d30f52aebf5129f168. SOME/IP ends at the SOME/IP944 * broker of AAOS SDV in the SDV Core VM of the guest. The broker maps the945 * frame event to a Data Tunnel topic with INTERPRET_AS_BYTES. Data Tunnel946 * and the SDV Gateway on IVI carry the topic to the DE4SDV IVI frame relay947 * in the IVI VM. The relay serves the reused INC-AEBS-010 ingress on the948 * loopback of the IVI VM (owner decisions of 2026-10-28, ADR 0025). The949 * owner decision of 2026-10-22 replaces the DE4SDV host relay of950 * 2026-10-18 with the gateway. It adds guard rails, and it revisits the951 * choice when upstream releases fixes (GAP-MW-036). The gateway pins952 * S-CORE modules outside v0.9.0, so ASM-MW-021 states a bounded953 * deviation. The wire protocol between the host and the guest stays954 * SOME/IP.955 */956957 comment speedTopicNamesSettled958 about DE4SDV_MiddlewareSCORENeedsRequirements::gapSCORESpeedTopicOwnershipOpen959 /*960 * Phase 8 settles the topic names of GAP-MW-033 (owner decision of961 * 2026-10-18). The adapter is the only publisher of962 * /de4sdv/middleware/velocity_status (VelocityReport), which the vehicle963 * velocity converter consumes and the health proxy node observes. The964 * health proxy node publishes /de4sdv/middleware/velocity_status_health965 * (DiagnosticArray), which carries the stale and restored indications of966 * REQ-MW-012. No element of the layer publishes967 * /vehicle/status/velocity_status, the velocity input of the AEB node. The968 * gap stays open: the member product's publisher of that input, the route969 * through /localization/kinematic_state, and the safety expert's review,970 * which follows phase 8. That review sees the two crossings of the HMI971 * path as internal interfaces of the layer, since the system of interest972 * spans both domains: SOME/IP from someipd to the SDV Core VM, and Data973 * Tunnel from the SDV Core VM to the IVI VM.974 */975976 part <'ASM-MW-029'> asmFrameAssemblerAndIngressReusedUnchanged : IncrementAssumption {977 doc /*978 * ASM-MW-029: The frame assembler of INC-AEBS-010 is reused unchanged on979 * the Linux host. Its ingress is reused unchanged in the IVI VM of the980 * AAOS SDV guest, next to the application of ASM-MW-024. The ingress now981 * connects over the loopback of the IVI VM to the layer's IVI frame982 * relay. Only its frame-server host and port properties change983 * (ingress/main.cpp:27-28 and 142-146 of the INC-AEBS-010 bench). The984 * ingress stays unchanged only because of that loopback hop. An ingress985 * rebuilt around a subscription to the broker's topic would save a986 * process in the IVI VM. But it would no longer carry the INC-AEBS-010987 * evidence over. The frame assembler serves one client at a988 * time: it gives its stream to the newest client, and the previous989 * client loses it (de4sdv_aebs_010_bridge/source_adapter.py:273-295).990 * So the adapter must be its only client. That is a condition of991 * REQ-MW-014, and phase 10 checks it with ss -tnp. The frame assembler992 * binds 0.0.0.0 (de4sdv_aebs_010_bridge/ros_node.py:34-35), so port 4721993 * is open on every address of the host. A guest that connects to it994 * takes the stream from the adapter. So the host must keep the guest995 * network off port 4721. The reachability probe of the case that996 * verifies REQ-MW-016 records whether a guest domain reaches it. The997 * bench does not keep it off yet (GAP-MW-046).998 */999 }1000 dependency frameAssemblerReusedOnLinuxHost1001 from asmFrameAssemblerAndIngressReusedUnchanged1002 to DE4SDV_AEBSVisualizationPhysicalSoftwareRealization::Ros2VisualizationSourceAdapter;1003 dependency frameIngressReusedInGuest1004 from asmFrameAssemblerAndIngressReusedUnchanged1005 to DE4SDV_AEBSVisualizationPhysicalSoftwareRealization::SdvGatewayIngressService;10061007 part <'ASM-MW-030'> asmHostAndGuestClocksAgree : IncrementAssumption {1008 doc /*1009 * ASM-MW-030: While the layer runs, the system clocks of the Linux host1010 * and of the IVI VM of the AAOS SDV guest differ by less than 20 ms.1011 * Neither clock is stepped. The relay's discard rule needs this1012 * (relaySubscriptionPhaseDiscardRule). The frame assembler of1013 * INC-AEBS-010 stamps each frame with the system clock of the Linux1014 * host. Its ROS 2 node runs without simulated time1015 * (de4sdv_aebs_010_bridge/ros_node.py:92-98, frame_assembler.py:247-265).1016 * The relay takes the phase start from the system clock of the IVI VM.1017 * So that clock times the start of the HMI application's subscription.1018 * The clock of the SDV Core VM plays no part in the rule. No element of1019 * the member keeps the two clocks together, and Android corrects its1020 * clock only in steps (AOSP behavior, not checked on the sdv_ivi_cf1021 * image). So phase 10 holds the assumption with these controls in each1022 * session:1023 * - the automatic time and time zone of the IVI VM are off (auto_time1024 * and auto_time_zone);1025 * - the IVI VM clock is set after each boot and before each session, by a1026 * two-way time exchange with the chrony of the host, for example with1027 * the sntp of toybox if the image has it. A setting through adb is not1028 * used, because its round trip would add to the offset. If that sntp has1029 * its adjust and daemon modes, it first sets the clock with -s. Then it1030 * slews the clock against the chrony of the host in daemon mode. A slew1031 * changes CLOCK_REALTIME and CLOCK_MONOTONIC alike, so it is no step1032 * under this assumption. Otherwise each session is sized from the1033 * measured drift: at about 60 ppm, the budget lasts about 5 minutes1034 * after a setting;1035 * - the same two-way time exchange, without a clock setting, measures1036 * the offset between the host clock and the IVI VM clock. It does so at1037 * the start and at the end of the session. It is the only control that1038 * bounds the offset. It reports its uncertainty, half of its round1039 * trip. SOME/IP runs between the host and the SDV Core VM, so a capture1040 * of it does not measure the offset of the IVI VM clock. No case starts1041 * before the start measurement gives an offset whose size plus that1042 * uncertainty is below 20 ms;1043 * - the host logs each step of its clock, from the "System clock was1044 * stepped" lines of chrony or from its own CLOCK_REALTIME minus1045 * CLOCK_MONOTONIC;1046 * - the relay logs CLOCK_REALTIME minus CLOCK_MONOTONIC and each step of1047 * it. For the frames that it serves in a phase, it logs the minimum and1048 * the maximum of receipt time minus frame timestamp. That minimum1049 * bounds the offset from one side only: it shows an IVI VM clock that1050 * runs behind the host clock. At the latency of the broker path, about1051 * 31 to 34 ms (GAP-MW-045), the minimum stays positive unless the IVI1052 * VM clock runs behind by more than that. So it cannot detect an offset1053 * inside 20 ms, and it is no bounding control;1054 * - each frame_timestamp_ns is compared with the host capture time of the1055 * SOME/IP packet that carries it, because the bridge node stamps with1056 * its ROS 2 clock (de4sdv_aebs_010_bridge/ros_node.py:93) and a peer1057 * could switch that clock to /clock.1058 * Design data, not evidence of record: in an unreviewed DE4SDV1059 * feasibility run on the bench VM (2026-10-28), the offset of the IVI VM1060 * clock was -63, -657 and +434 ms after three boots. An offset measured1061 * 14 minutes before a session no longer held: the clocks drifted by at1062 * least about 50 ms in that time. These readings came over adb and are1063 * an indication only. So the bound holds only after a clock setting, and1064 * phase 10 measures the drift rate before it sets the length of a1065 * session.1066 * A run whose measured offset plus its uncertainty is not below 20 ms is1067 * void, and so is a run in which a clock steps. The bound keeps the band1068 * of GAP-MW-045 below half of the 100 ms frame period of the frame1069 * assembler (de4sdv_aebs_010_bridge/ros_node.py:56).1070 */1071 }10721073 part <'ASM-MW-031'> asmOneROS2EnvironmentOnHost : IncrementAssumption {1074 doc /*1075 * ASM-MW-031: Every ROS 2 process on the Linux host outside the layer1076 * runs in the one ROS 2 environment of adapterAbortConditions. These are1077 * the Autoware-based AEBS stack, the vehicle velocity converter, the1078 * bridge node of the frame assembler, and the ros2 command line tools1079 * with their daemon. The layer sets that environment for its own two1080 * ROS 2 processes, the adapter and the health proxy node, through the1081 * Launch Manager. It cannot set it for the other processes, so it1082 * assumes it. With one environment, every ROS 2 process of the host uses1083 * one ROS 2 distribution (Humble), one middleware, one domain and one1084 * range of participant indices. The distribution matters: the Gid1085 * message has 24 bytes in Humble and 16 in Iron and Jazzy1086 * (rmw_dds_common/msg/Gid.msg). So a process of another distribution can1087 * send ros_discovery_info samples that the adapter cannot read. Such a1088 * sample reaches the residual of adapterAbortConditions. When more ROS 21089 * processes run than the range holds, the last one to start gets no1090 * participant; if that is the adapter, it aborts. Phase 10 records the1091 * environment of each ROS 2 process of a run, the observers of the bench1092 * among them.1093 */1094 }1095 dependency ros2EnvironmentAssumedForAEBSStack1096 from asmOneROS2EnvironmentOnHost1097 to scoreTwoDomainPhysicalSystem::linuxHost::aebsStack;1098 dependency ros2EnvironmentAssumedForVelocityConverter1099 from asmOneROS2EnvironmentOnHost1100 to scoreTwoDomainPhysicalSystem::linuxHost::velocityConverter;1101 dependency ros2EnvironmentAssumedForFrameAssembler1102 from asmOneROS2EnvironmentOnHost1103 to scoreTwoDomainPhysicalSystem::linuxHost::aebsSignalFrameAssembler;11041105 part <'ASM-MW-032'> asmAAOSSDVPathKeepsOrderAndBytes : IncrementAssumption {1106 doc /*1107 * ASM-MW-032: The AAOS SDV elements that the layer refers to deliver the1108 * broker's frame topic to the relay in the order of publication. They1109 * keep each slot unchanged: the payload inside the broker's wrapper and1110 * the zero fill after it. REQ-MW-014 and REQ-MW-015 rely on this on the1111 * AAOS SDV hops. The broker copies1112 * each payload unchanged into its wrapper1113 * (some_ip/broker_agent_comms/src/translator/broker_translator.rs:248-280).1114 * DE4SDV has not analyzed the order and the bytes of the cross-VM Data1115 * Tunnel and of the SDV Gateway on IVI. A topic queue that is full1116 * discards unread messages (the VSIDL language specification). That gives1117 * a sequence gap (GAP-MW-037), not a change of order or of bytes. The1118 * tests of REQ-MW-014 and REQ-MW-015 check this assumption end to end.1119 * They use the frames' own sequence numbers, and they compare the bytes1120 * with the capture on the host. Design data, not evidence of record: an1121 * unreviewed DE4SDV feasibility run on the bench VM (2026-10-28) delivered1122 * 6300 of 6300 frames over 630 s, in order and equal byte for byte. The1123 * frames came from the bench's synthetic frame source. The run used the1124 * LOCKED mode with the authorization enforced.1125 */1126 }1127 dependency aaosSdvPathAssumedForSDVCore1128 from asmAAOSSDVPathKeepsOrderAndBytes1129 to scoreTwoDomainPhysicalSystem::integrationLayer::sdvCore;1130 dependency aaosSdvPathAssumedForSDVGateway1131 from asmAAOSSDVPathKeepsOrderAndBytes1132 to scoreTwoDomainPhysicalSystem::integrationLayer::sdvGateway;11331134 part <'GAP-MW-035'> gapROS2AndSCOREInOneProcessUnproven : IncrementGap {1135 doc /*1136 * Unproven on the Linux host of the member: that one adapter process1137 * builds and runs there. The process links the ROS 2 client library and1138 * S-CORE communication 0.5.0 with baselibs 0.2.16, including1139 * aborts_upon_exception and the gateway's serializer header. S-CORE1140 * builds with Bazel and needs GCC 12 or later on Ubuntu 24.04 or later1141 * (communication README.md:92-94 at 0.5.0). The Autoware benches of1142 * DE4SDV run ROS 2 Humble images1143 * (implementation/aebs-autoware-executable-bench/compose.yaml:3).1144 * Design data, not evidence of record: DE4SDV's CI built and ran the1145 * one-process adapter on a GitHub-hosted ubuntu-22.04 runner on1146 * 2026-10-28. It verifies no requirement.1147 * - The process links an archive of the S-CORE facade, built with the1148 * gateway's toolchain at d9eac670, the abort archive of baselibs and1149 * rclcpp, with g++ 12. It holds one shared libstdc++. The executable1150 * exports __cxa_allocate_exception, so a throw inside librclcpp.so or1151 * libstdc++.so also reaches the override.1152 * - Three exceptions, each inside a try/catch, aborted the process at1153 * the override: one that rclcpp throws and catches, one in adapter1154 * code and one inside libstdc++. A build without the override1155 * survived all three.1156 * - Under rmw_cyclonedds_cpp, the first build of the adapter ran for 301157 * minutes with the provider, gatewayd, someipd and an observer, and it1158 * did not abort. A later build, without parameter services, with the1159 * fault-injection signals and with RCL_SYSTEM_TIME stamps, ran for 101160 * minutes with the same processes, and it did not abort either. Under1161 * rmw_fastrtps_cpp it aborted at start with the default transports,1162 * and with a UDP-only profile once another ROS 2 process ran1163 * (adapterAbortConditions).1164 * - The Launch Manager of lifecycle v0.6.1 built in a workspace of its1165 * own, and the layer's configuration passed lifecycle's schema check1166 * and serializer. It did not run.1167 * The aborts_upon_exception tree is the same in baselibs 0.2.15 and1168 * 0.2.16 (tree b4e7e0cb87b78445471123f66ee72cf6a097f33a). So the1169 * mechanism carries over from the earlier pin.1170 * Still open: the build and the run on the bench VM, a 30-minute run1171 * with the full Autoware graph, and the Launch Manager at run time.1172 * gatewayd and someipd build with the gateway's own Bazel module. If1173 * Fast DDS must stay on the host, the adapter splits into an S-CORE1174 * process and a ROS 2 process. That changes the adapter process that1175 * REQ-MW-018 names.1176 *1177 * Withdrawn at the baseline decision: the one-process adapter was built and run on the1178 * benchmark Linux host (x86_64) in the S1 to S3b sessions, so the item no1179 * longer holds for that host class.1180 */1181 attribute :>> disposition = LifecycleDisposition::invalidated;1182 }11831184 part <'GAP-MW-036'> gapSCOREGatewayOutsideReleasedBaseline : IncrementGap {1185 doc /*1186 * The layer uses the S-CORE SOME/IP gateway (owner decision of1187 * 2026-10-22), but the gateway is unreleased and outside every S-CORE1188 * baseline. Open:1189 * - eclipse-score/inc_someip_gateway is incubating. Commit1190 * d9eac670b7534352749da3d30f52aebf5129f168 has no tag and is not in the1191 * known_good.json of reference_integration v0.9.0.1192 * - It needs communication 0.5.0 and baselibs 0.2.161193 * (MODULE.bazel:239-259 at that commit). reference_integration v0.9.01194 * integrates 0.4.0 and 0.2.12, and lifecycle v0.6.1 and v0.7.0 declare1195 * them too. Lifecycle v0.8.0 (2026-10-23) declares communication 0.5.01196 * with baselibs 0.2.15 (MODULE.bazel:330-331 at commit1197 * 0472ff81623b68dfdade4c1cd1cd602d1cf264cd). So no S-CORE baseline1198 * holds the set (ASM-MW-021).1199 * - Upstream state of the defects that the guard rails bound: GAP-MW-0391200 * and GAP-MW-041 are LoLa defects of communication 0.4.0 and 0.5.0,1201 * reported to the communication project (2026-10-22). GAP-MW-040 and1202 * GAP-MW-042 are gateway defects, reported to the gateway project1203 * (2026-10-22). The gateway project closed the report of GAP-MW-040 as1204 * completed when the rework merged (2026-10-27). A LoLa skeleton that1205 * stops its offer while a proxy is subscribed, and offers again after1206 * that proxy is gone, can abort; its upstream fix is open. None of1207 * these defects has a released fix. Code contributions stay a later1208 * decision of the owner (scoreUpstreamEngagementOutOfScope).1209 * Trigger to revisit, all three of:1210 * - the open rework of the gateway's IPC binding and configuration is1211 * merged;1212 * - a communication release fixes the LoLa defects;1213 * - a tagged gateway release is in the known_good.json of a1214 * reference_integration release.1215 * The first item holds since 2026-10-27. The rework merged at d9eac670,1216 * where gatewayd and someipd use the IPC binding on mw::com. DE4SDV1217 * repeated its gateway feasibility run there (two runs, 2026-10-28; not1218 * reviewed), and ASM-MW-021 moved from commit 951fbc09 to d9eac670. The1219 * rerun found no new kind of defect. GAP-MW-040 did not occur, and1220 * GAP-MW-039, GAP-MW-041 and GAP-MW-042 did not change. The deployment1221 * archive now holds the null serializer library1222 * (deployment/BUILD.bazel:46-56 at d9eac670), and its start script1223 * starts both daemons. The guard rails stay. When the other two items1224 * hold, DE4SDV repeats its gateway feasibility run on that state,1225 * reviews the guard rails and revises ASM-MW-021 again. The wire1226 * protocol, and with it the SOME/IP end in the SDV Core VM, stays1227 * SOME/IP.1228 */1229 attribute :>> disposition = LifecycleDisposition::deferred;1230 }12311232 part <'GAP-MW-037'> gapInOrderFrameDeliveryNotGuaranteed : IncrementGap {1233 doc /*1234 * REQ-MW-014 is not guaranteed by design. In communication 0.5.0 an1235 * mw::com skeleton cannot send an update while no sample slot is free:1236 * the LoLa binding's Allocate fails with kBindingFailure1237 * (score/mw/com/impl/bindings/lola/skeleton_event.cpp:97-107), so the1238 * adapter then drops that frame. At inc_someip_gateway d9eac670 the1239 * same holds for the second LoLa hop, gatewayd's bridged service with1240 * 20 slots. There gatewayd drops a frame for which it gets no payload1241 * (score/gatewayd/impl/local_service_instance.cpp:157-165). SOME/IP1242 * gives no delivery guarantee for events to the application, even over1243 * TCP (an eclipse-score discussion of 2026-09-04). The bounded external1244 * endpoint queue of someipd (REQ-MW-019) drops frames while a1245 * subscribed SDV Core VM stalls. On the AAOS SDV hops, a topic holds a1246 * bounded queue, and a full queue discards unread messages (the VSIDL1247 * language specification). So a stalled relay loses frames, and it1248 * counts each DATA_LOSS status of a read as such a gap. Reliable1249 * events keep the order on one connection, and slot and queue sizes for1250 * 10 Hz frames of at most 2048 bytes make a gap unlikely, but none of1251 * this rules out a sequence gap. Stored frames of a late subscription in1252 * the host half can also arrive late and out of order (GAP-MW-039). The1253 * order on the AAOS SDV hops is assumed (ASM-MW-032). The relay serves1254 * the frames of a phase as they come, apart from copies, so the test of1255 * REQ-MW-014 sees each gap and each change of order. Phase 10 measures1256 * it with the frames' own sequence numbers.1257 */1258 attribute :>> disposition = LifecycleDisposition::accepted;1259 }12601261 part <'GAP-MW-038'> gapSOMEIPStackOnAAOSGuestUntested : IncrementGap {1262 doc /*1263 * DE4SDV has no evidence of record of the AAOS SDV SOME/IP path of this1264 * member (ADR 0025). The AOSP citations of this slice refer to the1265 * android17-release tree of manifest ad156f32 (platform/manifest), with1266 * these project commits: some_ip 27bff3fe, sdv_gateway c918480a,1267 * middleware 7ab87b58 and samples e8cc5f41 of1268 * platform/system/software_defined_vehicle; device/google/sdv f4bfa128;1269 * platform/external/sdv/vsomeip 906331c2; platform/system/core 545d2487.1270 * A citation that starts with a project name gives the path in that1271 * project. Design data, not evidence of record: unreviewed1272 * DE4SDV feasibility runs on the bench VM (2026-10-28) ran the whole1273 * chain. It went from someipd on the host through the broker and Data1274 * Tunnel to a native probe in the IVI VM. The runs showed:1275 * - a launch of the two images as one multi-VM system. Both images were1276 * eng builds of one android17-release tree (manifest ad156f32). The1277 * launch followed the documented recipe: the SDV Core VM as instance 11278 * and the IVI VM as instance 2, from builds of one tree1279 * (samples/sdv_gateway/NativeSdvGatewayTestApp/README.md:63, 81);1280 * - the VLANs of the SDV communication, which the guests create on eth1:1281 * VLAN 1 for the service discovery mesh, VLAN 2 for Data Tunnel and1282 * VLAN 3 for RPC. The host bridge passed the tagged frames1283 * (sdv_base/ethernet of device/google/sdv);1284 * - both boot modes. Both VMs must use the same boot mode: a mismatch1285 * failed at the handshake. UNLOCKED speaks cleartext HTTP/2, and LOCKED1286 * speaks TLS with DICE;1287 * - Google's reference stack against someipd (GAP-MW-047);1288 * - the broker with a DE4SDV SOME/IP mapping with INTERPRET_AS_BYTES. It1289 * needs a rebuilt SDV Core image: that image cannot be remounted, and1290 * apexd activates every APEX at bootstrap, so it drops an updated data1291 * APEX;1292 * - the cross-VM subscription of a native IVI service, with the1293 * authorization enforced (iviFrameRelay). Google's documentation1294 * states that cross-VM communication is denied by default. The bench1295 * used the allow-all VM-level policy of the sample targets, and a1296 * subject without a service-level ACL was denied. The SD agent of the1297 * IVI VM reads the ACLs only at its start, so a new ACL needs a restart1298 * of the IVI VM. A second ACL file for one subject makes the SD agent1299 * exit;1300 * - the restart behavior of the oneshot broker and stack (GAP-MW-048).1301 * Still open: evidence of record, the build of the relay and its start1302 * as a native init service, and the product form below.1303 * AOSP android17-release ships vsomeip 3.1.37.1 with Boost 1.76.0 in1304 * external/sdv/vsomeip, built with Soong. So an in-tree consumer needs no1305 * Boost port. The Boost and Android.bp work that the vsomeip README names1306 * (README.md:95-115 at 4187431d2815bd351845a09d01aa85b2a3163cab) applies1307 * only to upstream vsomeip, not to this copy.1308 * Claim boundary: Google's reference stack is a non-production reference1309 * sample. This member uses it as AAOS SDV deploys it, in the SDV Core VM.1310 * No SOME/IP conformance or AAOS SDV compatibility claim is made. In the1311 * UNLOCKED mode of the bench, the SD mesh and Data Tunnel run as1312 * cleartext HTTP/2.1313 * Bench form: both images come from one android17-release revision, in1314 * the UNLOCKED boot mode (ADR 0025, decision 8). SELinux stays1315 * permissive, as in the INC-AEBS-010 bench. The SOME/IP mapping and the1316 * stack configuration go into the SDV Core image when it is built. Phase1317 * 10 provisions the relay, its init service and exactly one ACL file for1318 * its subject on the IVI side, before the IVI VM boots. It starts from a1319 * clean, recorded build, not from the images of the feasibility runs.1320 * Product form, still open: SELinux domains of their own, and an IVI image1321 * built with the relay. Because these belong to the system of interest,1322 * that build is realization work of the layer; the rest of the images is1323 * context.1324 * Design data of the parked DE4SDV SOME/IP receiver, which leaves the1325 * product path (ADR 0025, decision 7). An unreviewed DE4SDV feasibility1326 * run tested it on Linux against the real someipd at d9eac670 (CI run1327 * 40696388984, 2026-10-28). After a gatewayd restart in a phase, the1328 * receiver dropped 10 copies of frames that it had served. After a1329 * restart of gatewayd and someipd as a pair, it dropped 9 frames as older1330 * than the new phase. Its client got no copy and no frame produced before1331 * the phase start. The relay keeps this discard core. This is design1332 * data, not evidence of record.1333 */1334 attribute :>> disposition = LifecycleDisposition::deferred;1335 }13361337 part <'GAP-MW-039'> gapLoLaReturnsStoredSamplesOnSubscription : IncrementGap {1338 doc /*1339 * A new LoLa subscription returns samples that the skeleton sent before1340 * it. The subscription starts with a last timestamp of 0. Each read1341 * returns the newest samples still in the slots, up to the count it1342 * asks for, and skips the older ones for good (slot_collector.cpp:241343 * and 34-82, subscription_not_subscribed_states.cpp:88 of1344 * communication 0.5.0; slot_collector.cpp is the same in 0.4.0). DE4SDV1345 * found no setting in the mw::com configuration schema or the gateway1346 * configuration that turns this off. At inc_someip_gateway d9eac670 the1347 * frame path has two LoLa hops: the adapter's skeleton to gatewayd, and1348 * gatewayd's bridged service to someipd. On each hop the subscriber1349 * reads up to 10 samples at a time. gatewayd reads with kMaxSampleCount1350 * (score/gatewayd/impl/local_service_instance.cpp:124-126). someipd reads1351 * with the max_sample_count of the bridged event1352 * (score/gateway_ipc_binding/impl/mw_com/consumer_service_binding.cpp:433),1353 * which is 10 (score/bridged_services/bridged_service_configs.cpp:73).1354 * So the first read after a new subscription on a hop can return up to1355 * 10 frames from before that subscription. An unreviewed DE4SDV1356 * feasibility rerun at d9eac670 (two runs, 2026-10-28) saw this at its1357 * SOME/IP subscriber. That subscriber was a vsomeip client in a second1358 * network namespace, a stand-in for the guest:1359 * - gatewayd starting after the guest had subscribed: 9 frames from1360 * before the guest's subscription, the oldest about 4.1 s old;1361 * - gatewayd restarting beside a running someipd: 9 to 11 old frames, 01362 * to 2 of them repeats from reused shared memory;1363 * - gatewayd and someipd restarting as a pair beside a running1364 * publisher: 9 to 10 old frames, 0 to 1 of them repeats; the guest1365 * already had 9 of them;1366 * - no old frame when the guest subscribed late or again, when the1367 * publisher restarted under a subscribed gatewayd, and at a start in1368 * the start order.1369 * Design data, not evidence of record: an unreviewed DE4SDV feasibility1370 * run of the broker path on the bench VM (2026-10-28) saw it on the wire1371 * too, with the bench's synthetic frame source. After a restart of1372 * someipd or of the pair, 2 of 4 new SOME/IP subscriptions began with a1373 * burst of 8 or 9 frames, 0.7 to 1.0 s old. In one burst all 9 frames1374 * were copies of frames already sent.1375 * Effects on the layer:1376 * - Frame path. The broker subscribes as soon as someipd offers the1377 * service, so these frames reach the broker's topic as new messages.1378 * The relay discards the stored frames that the AEBS stack produced1379 * before the current subscription phase, and copies of frames it1380 * already served (relaySubscriptionPhaseDiscardRule). So these frames1381 * no longer reach the HMI application, apart from the band of1382 * GAP-MW-045. The start-order and pair-restart guard rails1383 * keep the managed start and restart free of most stored frames. The1384 * exception is the short time between the adapter's offer and1385 * gatewayd's subscription; phase 10 measures it. A stored frame that1386 * the AEBS stack produced in the phase, before a subscription in the1387 * host half, still arrives late. REQ-MW-019 allows it, but it can1388 * break the gap and order bounds of REQ-MW-014 (GAP-MW-037).1389 * - Speed path. The adapter's speed subscription returns stored speed1390 * samples. A restarted adapter would then publish samples a second1391 * time, against REQ-MW-013. The first LoLa rule of the adapter1392 * prevents that; phase 10 tests it.1393 * DE4SDV reported the defect to the communication project (2026-10-22).1394 */1395 attribute :>> disposition = LifecycleDisposition::deferred;1396 }13971398 part <'GAP-MW-040'> gapGatewaydOnlyRestartCorruptsPayloads : IncrementGap {1399 doc /*1400 * When gatewayd restarted while someipd kept running, the SOME/IP1401 * subscriber could keep getting one event per frame, at the right rate1402 * and with the right length, but with wrong payloads. A payload then1403 * held only zeros, or the bytes of the last frame before the restart1404 * with leftovers of older frames. No host process logged an error. An1405 * unreviewed DE4SDV feasibility run observed this in every gatewayd-only1406 * restart at inc_someip_gateway 951fbc09, where the gateway's IPC1407 * binding used message passing. The cause was not confirmed. At1408 * d9eac670 the IPC binding runs on mw::com. The DE4SDV rerun there (two1409 * runs, 2026-10-28; not reviewed) found no wrong payload: in each of its1410 * four gatewayd-restart cases, all 50 new frames were byte-correct. The1411 * stored frames of GAP-MW-039 remain. On the HMI path a wrong payload1412 * would break REQ-MW-015 and REQ-MW-014. The pair-restart guard rail1413 * stays: under the Launch Manager, gatewayd never restarts alone. A1414 * payload of the kinds observed would not reach the ingress: the1415 * relay's framing check or its discard rule drops it. Other1416 * corruptions are not ruled out. DE4SDV retested at the head of the1417 * rework and reported the result to the gateway project on 2026-10-27.1418 * The project closed the report as completed when the rework merged on1419 * the same day.1420 */1421 attribute :>> disposition = LifecycleDisposition::deferred;1422 }14231424 part <'GAP-MW-041'> gapLoLaAbortOnSubscribedProxyDestruction : IncrementGap {1425 doc /*1426 * A LoLa proxy that is destroyed while subscribed aborts its process.1427 * The destructor of the subscription state machine is the default one1428 * and does not unsubscribe (subscription_state_machine.cpp:52 of1429 * communication 0.5.0). An assertion in the transaction log reset then1430 * aborts the process (transaction_log_set.cpp:45-52). The assumption of1431 * use EventSubscriptionActiveWhileHoldingSamplePtr says that destruction1432 * would unsubscribe implicitly (aou.trlc:180-186), but the code does not.1433 * Communication 0.4.0 has the same destructor and assertion. Effects on1434 * the layer: gatewayd destroys its subscribed proxies on SIGTERM, so1435 * every orderly stop of gatewayd ends with SIGABRT. The abort guard rail1436 * accepts that. The adapter avoids the abort with its second LoLa rule.1437 * Unreviewed DE4SDV feasibility runs saw the abort in every SIGTERM stop1438 * of a subscribed gatewayd. They ran at commit 951fbc09 and again at1439 * d9eac670, with 17 of 17 stops in each run of 2026-10-28. DE4SDV1440 * reported the defect to the communication project (2026-10-22).1441 */1442 attribute :>> disposition = LifecycleDisposition::deferred;1443 }14441445 part <'GAP-MW-042'> gapSomeipdKeepsLocalOffers : IncrementGap {1446 doc /*1447 * someipd offers each local service that gatewayd hands it over the IPC1448 * binding, once its vsomeip application registers. Nothing but its own1449 * stop withdraws the offer: someipd calls no StopOffer1450 * (score/someipd/impl/routing.cpp:40-105,1451 * score/someipd/impl/gatewayd_services.cpp:123-127 of1452 * inc_someip_gateway at d9eac670). It acts only when a local service1453 * becomes available (score/someipd/impl/local_network_service.cpp:63-84).1454 * gatewayd stops its search once it has the proxy1455 * (score/gatewayd/impl/local_service_instance.cpp:299). So someipd does1456 * not withdraw an offer while the adapter or gatewayd is down. The broker1457 * in the SDV Core VM then stays subscribed to a service that sends1458 * nothing. S-CORE's own feature description asks for a StopOfferService1459 * entry once the service ceases to exist locally (eclipse-score/score1460 * v0.7.2, commit 6d65a262c2329328cb9cbdd276bb143b417c54a4,1461 * docs/features/communication/some_ip_gateway/service_discovery/index.rst:65).1462 * Effect on the layer: under the Launch Manager, someipd stops with every1463 * failure of a component (GAP-MW-043), so the broker sees the service1464 * go. What remains is the start. someipd offers once gatewayd has handed1465 * it the frame service, before the adapter runs, so the broker can1466 * subscribe before any frame flows. The HMI shows its unavailable1467 * disposition until frames come. Unreviewed DE4SDV feasibility runs1468 * observed the kept offer, at commit 951fbc09 and again at d9eac670.1469 * DE4SDV reported the defect to the gateway project (2026-10-22).1470 */1471 attribute :>> disposition = LifecycleDisposition::deferred;1472 }14731474 part <'GAP-MW-043'> gapGatewayFailureStopsAdapterWithNoRestart : IncrementGap {1475 doc /*1476 * Consequences of the start-order and pair-restart guard rails under the1477 * Launch Manager of lifecycle v0.6.1. The owner accepts them (owner1478 * decision of 2026-10-22, re-confirmed by the owner on 2026-10-23 with1479 * the health-proxy consequence). This Launch Manager starts four1480 * processes of the model: someipd, gatewayd, the adapter and the health1481 * proxy node.1482 * In v0.6.1, the default recovery action of every component and every1483 * Run Target is a switch to the fallback Run Target1484 * (scripts/config_mapping/lifecycle_config.py:36-40 and 72-76;1485 * known_limitations.rst:32-33 and 43-44). The fallback holds only the1486 * health proxy node, and an activation terminates the active components1487 * that it does not hold (concepts.rst:131-134).1488 * - So a failure of any of the four processes, the health proxy node1489 * included, stops someipd, gatewayd and the adapter. A failed health1490 * proxy node starts again in the fallback, because the fallback holds1491 * it and it is not active.1492 * - A gateway failure also stops the adapter, and with it the reference1493 * speed path (REQ-MW-010). The health proxy node then publishes the1494 * stale indication (REQ-MW-012), as on a provider loss (SC-MW-003).1495 * - Nothing restarts someipd, gatewayd and the adapter by itself. The1496 * fallback Run Target has no recovery action of its own. Only a new1497 * activation of the main Run Target, on a request of a Control Client,1498 * starts them again, and no element of the layer sends that request.1499 * So after a failure the speed path and the frame path stay down until1500 * the bench or an operator starts the layer again. The owner accepts1501 * this for the bench demonstration (ASM-MW-025).1502 * Ways out of the coupling, each a later decision:1503 * - Drop the adapter's dependency on gatewayd. Then the start order puts1504 * only someipd before gatewayd, and frames that the adapter sends1505 * before gatewayd subscribes are stored (GAP-MW-039).1506 * - Split the adapter's frame ingest into a process of its own. That1507 * changes the adapter process that REQ-MW-018 names (GAP-MW-035).1508 * No way out of the missing restart is assessed.1509 */1510 attribute :>> disposition = LifecycleDisposition::accepted;1511 }15121513 part <'GAP-MW-045'> gapPhaseStartDiscardBand : IncrementGap {1514 doc /*1515 * Open: the member has no time synchronization between the Linux host1516 * and the AAOS SDV guest. So ASM-MW-030 holds only where the bench keeps1517 * the clocks together and measures them, and the band below rests on it.1518 * A narrower band needs closer clocks and a smaller bound.1519 * The band is that of REQ-MW-019 at the start of a subscription phase.1520 * The relay's discard rule compares a frame stamp on the host clock with1521 * a phase start on the clock of the IVI VM1522 * (relaySubscriptionPhaseDiscardRule, ASM-MW-030). So that it drops no1523 * frame produced after the phase start (REQ-MW-014), it puts its 20 ms1524 * margin before the start. A frame that the AEBS stack produced in that1525 * margin can still reach the HMI application. Take the clock offset as the1526 * IVI VM clock minus the host clock. By the host clock, the band is then1527 * 20 ms minus that offset wide: more than 0 ms and less than 40 ms while1528 * ASM-MW-030 holds. Two kinds of frames can fall in it:1529 * - a frame that was on its way through the layer at the phase start;1530 * - a stored frame of GAP-MW-039 that the AEBS stack produced in the1531 * band.1532 * The broker path adds hops between the host and the relay.1533 * Design data, not evidence of record: an unreviewed DE4SDV feasibility1534 * run on the bench VM (2026-10-28) indicated about 31 to 34 ms from the1535 * host to a probe in the IVI VM. Its frames came from the bench's1536 * synthetic frame source. That latency is longer than the 20 ms margin.1537 * So while the clock offset is small, a frame of the first kind comes at1538 * about one phase start in five: the band is 20 ms of the 100 ms frame1539 * period.1540 * The success criteria of REQ-MW-019 declare this margin as the bound of1541 * ASM-MW-030 (owner decision of 2026-10-28). So such a frame meets them1542 * while ASM-MW-030 holds.1543 * Design data, one clock, no rate claimed: an unreviewed DE4SDV1544 * feasibility run of the parked SOME/IP receiver on Linux, with one clock1545 * for both halves (CI run 40713587621, 2026-10-28), saw the first kind.1546 * One frame reached the client inside the band: sequence 63, produced1547 * 4.84 ms before the start of a phase that began when the ingress1548 * connected, and received 5.36 ms after its stamp. It came at 1 of the 51549 * phase starts of the resubscription case. Phase 10 reports each frame1550 * that the AEBS stack produced in the band of a phase start.1551 */1552 attribute :>> disposition = LifecycleDisposition::accepted;1553 }15541555 part <'GAP-MW-046'> gapHostPortIsolationNotAuthored : IncrementGap {1556 doc /*1557 * Open: the host configuration that keeps each guest domain of the layer1558 * off the DDS ports of the host and off port 4721 of the frame assembler1559 * is not authored. REQ-MW-016 asks for DDS ports that no guest domain1560 * reaches, and ASM-MW-029 asks the host to keep the guest network off1561 * port 4721. The bench has no such configuration. When it was inspected1562 * on 2026-10-28, its host had no INPUT firewall, and the guests share1563 * the host's untagged network segment. The loopback binding of the ROS 21564 * environment does not close this gap: CycloneDDS 0.10.5 binds its1565 * receive sockets to INADDR_ANY (ddsi_udp.c:453-456, 479-480). The1566 * execution slice authors the configuration, a host firewall on the1567 * bench, and the reachability probe of the case that verifies REQ-MW-0161568 * checks it. Until then, the isolation1569 * that REQ-MW-016 and ASM-MW-029 need is not realized.1570 * Host configuration (owner decision of 2026-10-29): rules by interface,1571 * not by source address. In an inet input chain, the host drops UDP1572 * 30150-30151 and 30160-30401, and TCP 4721, on every interface except lo.1573 * The UDP ports are the DDS ports of the bench's ROS_DOMAIN_ID 91 with1574 * MaxAutoParticipantIndex 120, and the configuration records both1575 * parameters. A rule by source subnet would miss a guest network: each VM1576 * also has a network of its own (buried_eth0), and CycloneDDS receives on1577 * every address. The reachability probe runs from each VM, over each of1578 * its interfaces (eth1, buried_eth0, the VLAN interfaces, and wlan if1579 * present), to each address of the host (192.168.98.1, the host end of the1580 * buried network of each VM, and any other cvd-* bridge address).1581 * Design data, not evidence of record: an unreviewed DE4SDV feasibility1582 * run on the bench VM (2026-10-28) found layer 3 open on eth1. The IVI1583 * VM can reach the SOME/IP ports of someipd: one routing rule in the1584 * guest is enough, so the host must not rely on the routing of the1585 * guest. No element of the layer in the IVI VM uses SOME/IP.1586 * Hardening (owner decision of 2026-10-29), for REQ-MW-019 and REQ-MW-015,1587 * not for REQ-MW-016: a SOME/IP rule bound to the bridge port of the SDV1588 * Core VM. A rule of the nftables bridge family, or of br_netfilter with1589 * an iifname match, accepts UDP 30490 and TCP 30509 to the host only from1590 * that bridge port. It also matches ip saddr 192.168.98.3 and the MAC1591 * address of that VM. It drops those ports from every other bridge port,1592 * and a static neighbour entry pins that MAC address. So only the broker1593 * subscribes at someipd. An IP match alone is not enough on a shared1594 * bridge: a guest with root can send from 192.168.98.3. REQ-MW-016 does1595 * not need the rule, because someipd has no receiver for guest data.1596 */1597 attribute :>> disposition = LifecycleDisposition::deferred;1598 }1599 dependency hostPortIsolationGapOnLinuxHost1600 from gapHostPortIsolationNotAuthored to scoreTwoDomainPhysicalSystem::linuxHost;16011602 part <'GAP-MW-047'> gapReferenceStackVsomeipSkewUntested : IncrementGap {1603 doc /*1604 * Open: Google's reference stack in the SDV Core VM links the vsomeip1605 * 3.1.37.1 of AOSP (METADATA:21-22 of platform/external/sdv/vsomeip:1606 * last upgrade 2023-09-04). someipd links the1607 * gateway's patched vsomeip 3.6.1 (someipd). Upstream fixes after1608 * 3.1.37.1 touch this path. Examples are the handling of endpoint options1609 * (3.3.7), the acknowledgement of a subscription (3.5.1) and the expiry1610 * of a TTL (3.5.11), in the CHANGES file of vsomeip 3.7.6.1611 * Design data, not evidence of record: unreviewed DE4SDV feasibility runs1612 * on the bench VM (2026-10-28) showed that the two interoperate on this1613 * path. someipd offered the frame service with a TTL of 3 s and a TCP1614 * endpoint. The stack sent the subscription with an IPv4 endpoint option1615 * for TCP, got the acknowledgement, renewed the subscription and read the1616 * events over TCP for 630 s, with the bench's synthetic frame source.1617 * After a restart of someipd it subscribed again within about 0.1 s, on a1618 * new TCP connection. Two findings stay open:1619 * - the path needs SD multicast across the bridge. With multicast1620 * blocked, the stack used no unicast SD. The events stopped about 2.5 s1621 * after the block, when the TTL ran out. They came back on a new TCP1622 * connection about 0.5 s after the block ended, but the old IVI1623 * subscription stayed silent (iviFrameRelay). So the host needs a1624 * route for the SD group on the bridge cvd-ebr (the runs added1625 * 224.0.0.0/4). The group must be one that the bridge forwards: a1626 * group in 224.0.0.0/24 is flooded, and another group needs an IGMP1627 * querier or no IGMP snooping on cvd-ebr. The runs used 224.0.0.0;1628 * - someipd left the multicast group and joined it again about every1629 * 2 s, after "Didn't receive a multicast SD message for 1100ms". The1630 * stack offers every 2000 ms, so this is probably the mismatch of the1631 * two cycles. No event was lost in the 630 s run. The DE4SDV stack1632 * configuration offers no service, so the stack sends no cyclic offer.1633 * Then someipd can leave and join about every 1.1 s. Phase 10 checks1634 * over a long session that the offers and the renewals keep coming.1635 * So the run gave no reason for the fallback of ADR 0025, decision 4. If1636 * a finding breaks the path, the fallback of ADR 0025, decision 4,1637 * applies: a custom DE4SDV ISomeIpStack replaces the reference stack in1638 * the SDV Core VM. The owner decides it on the evidence.1639 */1640 attribute :>> disposition = LifecycleDisposition::deferred;1641 }1642 dependency referenceStackSkewGapOnSDVCoreVM1643 from gapReferenceStackVsomeipSkewUntested to scoreTwoDomainPhysicalSystem::sdvCoreGuest;16441645 part <'GAP-MW-048'> gapSOMEIPBrokerAndStackNotRestarted : IncrementGap {1646 doc /*1647 * Open: nothing restarts the SOME/IP broker or its stack in the SDV Core1648 * VM. Both are oneshot services (sdv_core_cf/init.sdv_core_cf.rc:54 and1649 * 64 of device/google/sdv). The health monitor of AAOS SDV reports their1650 * death, and a listener of the OEM takes the action (the health monitor1651 * page of AAOS SDV).1652 * Design data, not evidence of record: unreviewed DE4SDV feasibility runs1653 * on the bench VM (2026-10-28) showed two different deaths:1654 * - death of the stack: the health monitor logged "Critical agent has1655 * died", and VmHealth reported all_service_bundles_alive as false1656 * within about 90 ms. Init did not restart the stack. A start of the1657 * stack alone gave no message. A restart of the broker after it gave1658 * the frames again, and so did a reboot of the SDV Core VM;1659 * - death of the broker: the health monitor logged "Critical agent has1660 * died" about 60 ms after the kill. Init did not restart the broker. A1661 * start of the broker alone gave no publication. The frames came back1662 * after a toggle of the service availability on the host: a restart of1663 * gatewayd and someipd as a pair. A reboot of the SDV Core VM was not1664 * tried after this death.1665 * Detection: for either death, the logcat of the SDV Core VM shows1666 * "Critical agent has died". VmHealth reports at 10 Hz, and it showed1667 * all_service_bundles_alive as false after the death of the stack.1668 * Effect on the layer: after either death, no frame reaches the relay1669 * until the SDV Core VM recovers. The relay ends its phase on its1670 * timeout and subscribes again (iviFrameRelay). The HMI shows its stale1671 * overlay, as after a failure on the host (GAP-MW-043).1672 * Bench recovery (owner decision of 2026-10-29): a manual recovery by the1673 * operator, for the bench only. The operator reboots the SDV Core VM, in1674 * the guest or by a restart of its cvd group, and not by a new create.1675 * So the reboot keeps the launch configuration:1676 * androidboot.sdv.someip.enable=true comes from the extra kernel command1677 * line. The core VM booted in about 12 s in the runs. The reboot is1678 * preferred to the other recovery of a broker death, a broker start1679 * with a pair restart on the host. The reboot needs no restart on the1680 * host, so it gives no burst of GAP-MW-039, and one procedure covers both1681 * deaths. No availability claim is made. Phase 10 measures how long the1682 * HMI shows stale, and it tests the reboot together with the relay's new1683 * subscription. The owner accepted a manual recovery on the host for the1684 * bench demonstration (GAP-MW-043, ASM-MW-025).1685 * The IVI side has a similar limit. A failure of the SD agent or of1686 * sdv_gateway in the IVI VM needs a reboot of the IVI VM: a restarted SD1687 * agent left sdv_gateway with DEAD_OBJECT. While the SD agent could not1688 * start, the init of the gateway client blocked for good. A reboot of1689 * the IVI VM also restarts the relay and the ingress, and it needs a new1690 * clock setting (ASM-MW-030).1691 * Ways out, each a later decision:1692 * - a DE4SDV listener of VmHealth in the SDV Core VM that restarts the1693 * stack and then the broker. Only the death of the stack has shown1694 * that this order recovers, so it needs a test after a death of the1695 * broker first;1696 * - such a listener that reboots the SDV Core VM, the example action of1697 * the health monitor page.1698 * A listener is DE4SDV code in the SDV Core image, so it is a new element1699 * of the layer, and it needs a requirement of its own.1700 */1701 attribute :>> disposition = LifecycleDisposition::accepted;1702 }1703 dependency brokerRestartGapOnSDVCoreVM1704 from gapSOMEIPBrokerAndStackNotRestarted to scoreTwoDomainPhysicalSystem::sdvCoreGuest;17051706 comment gatewayStartOrderGuardRail1707 about scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::launchManager,1708 DE4SDV_MiddlewareSCORENeedsRequirements::reqDiscardFramesWhileHMIUnsubscribed,1709 gapLoLaReturnsStoredSamplesOnSubscription,1710 gapGatewayFailureStopsAdapterWithNoRestart1711 /*1712 * Guard rail, start order (owner decision of 2026-10-22). The Launch1713 * Manager starts someipd first, then gatewayd, then the adapter. gatewayd1714 * depends on someipd: it waits until someipd runs and has taken its1715 * configuration over the gateway's IPC binding1716 * (score/gatewayd/main.cpp:189-209 of inc_someip_gateway at d9eac670). The1717 * adapter depends on gatewayd (depends_on,1718 * launch_manager.schema.json:65-72 of lifecycle v0.6.1). A1719 * dependency must be ready first, and a Native component is ready once1720 * its process is spawned (concepts.rst:92-94). So gatewayd looks for the1721 * frame service before the adapter offers it, or soon after. It1722 * subscribes as soon as it finds the offer1723 * (score/gatewayd/impl/local_service_instance.cpp:141 and 264-299 at1724 * d9eac670). What the rule achieves: at start, gatewayd forwards no frame1725 * that the adapter sent long before the subscription. DE4SDV's rerun at1726 * d9eac670 saw no frame from before the guest's subscription at a start in1727 * this order. What stays open: the rule orders process starts only, and1728 * it does not wait until gatewayd has subscribed. The frames that the1729 * adapter sends between its offer and gatewayd's subscription are stored,1730 * and gatewayd forwards them with the next frame (GAP-MW-039). Phase 101731 * measures that time. The adapter's dependency on gatewayd also couples1732 * the speed path to the gateway (GAP-MW-043).1733 */17341735 comment gatewayPairRestartGuardRail1736 about scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::launchManager,1737 DE4SDV_MiddlewareSCORENeedsRequirements::reqPreserveAEBSSignalProvenance,1738 DE4SDV_MiddlewareSCORENeedsRequirements::reqDeliverAEBSSignalsInSourceOrder,1739 DE4SDV_MiddlewareSCORENeedsRequirements::reqDiscardFramesWhileHMIUnsubscribed,1740 gapGatewaydOnlyRestartCorruptsPayloads,1741 gapSomeipdKeepsLocalOffers,1742 gapLoLaReturnsStoredSamplesOnSubscription,1743 gapGatewayFailureStopsAdapterWithNoRestart1744 /*1745 * Guard rail, pair restart (owner decision of 2026-10-22). gatewayd and1746 * someipd stop and start only as a pair, never gatewayd alone. At commit1747 * 951fbc09, a gatewayd-only restart beside a running someipd sent events1748 * with wrong payload bytes (GAP-MW-040). At d9eac670 the rerun found no1749 * wrong payload, but such a restart still forwards stored frames1750 * (GAP-MW-039). The Launch Manager of lifecycle v0.6.1 realizes the rule1751 * with its fallback Run Target. Three of its properties set the form:1752 * - Only one Run Target is active. An activation terminates the active1753 * components that the new Run Target does not hold, and it starts the1754 * ones it holds that are not active (concepts.rst:122-134).1755 * - Dependencies resolve transitively (concepts.rst:184-193).1756 * - After the ready state, the only recovery action is a switch to the1757 * fallback Run Target (known_limitations.rst:32-33).1758 * So the fallback Run Target holds only the health proxy node. A fallback1759 * that held the adapter would also hold gatewayd and someipd, through the1760 * start-order dependencies. After a gatewayd failure, it would then start1761 * gatewayd again beside the running someipd.1762 * With this fallback, a failure of any component stops someipd, gatewayd1763 * and the adapter together, and nothing starts them again by itself.1764 * GAP-MW-043 states these consequences, which the owner accepts, and the1765 * ways out. someipd's stop withdraws the offer, so the broker sees the1766 * service go (GAP-MW-042), and the HMI shows its stale overlay. A new1767 * activation of the main Run Target starts the three again in the start1768 * order, as new processes.1769 * What the rule achieves, by the documented behavior of the Launch1770 * Manager: no gatewayd-only restart under it; phase 10 tests that too.1771 * The managed restart also starts a new adapter, so gatewayd's new1772 * subscription should find no frame from before the failure; phase 101773 * tests it. What stays open: a restart of gatewayd by hand still forwards1774 * stored frames, and at commit 951fbc09 it corrupted the payloads1775 * (GAP-MW-040). A pair restart beside a running adapter forwards stored1776 * frames too (GAP-MW-039). The relay discards those that the AEBS stack1777 * produced before its current subscription phase, apart from the band of1778 * GAP-MW-045.1779 */17801781 comment guestStaleFrameDropGuardRail1782 about scoreTwoDomainPhysicalSystem::integrationLayer::iviFrameRelay,1783 asmFrameAssemblerAndIngressReusedUnchanged,1784 DE4SDV_MiddlewareSCORENeedsRequirements::reqDiscardFramesWhileHMIUnsubscribed,1785 gapLoLaReturnsStoredSamplesOnSubscription,1786 asmHostAndGuestClocksAgree1787 /*1788 * Guard rail, guest-side drop (owner decision of 2026-10-22). The guest1789 * side drops a stale frame and a frame that is out of order. Two elements1790 * of the IVI VM do this:1791 * - Inside the layer, the relay drops the frames that the AEBS stack1792 * produced before the current subscription phase, apart from the band1793 * of GAP-MW-045, and copies of frames it already served1794 * (relaySubscriptionPhaseDiscardRule). REQ-MW-019 relies on this rule.1795 * - Outside the layer, the reused INC-AEBS-010 ingress (ASM-MW-029) drops1796 * a frame whose sequence is not above the last accepted one1797 * (validator.cpp:37-40 of the INC-AEBS-010 ingress). It also drops a1798 * frame that is older than its stale timeout of 1 s by the IVI VM clock1799 * (validator.cpp:45-48, main.cpp:34 and 224-229). It keeps the last1800 * accepted sequence while its process runs (main.cpp:194 and 235).1801 * The relay keeps the ingress connection open while the broker's1802 * publication is unavailable. The ingress exits when its stream closes1803 * (main.cpp:198-202), and a new ingress process starts from sequence 0.1804 * What the ingress adds: it drops a frame that the relay serves out of1805 * order, so the display does not step back. The layer itself still1806 * delivers such a frame, and the test of REQ-MW-014 sees it (GAP-MW-037).1807 * After a restart of the ingress, its sequence check starts again from 0.1808 * The ingress's stale check needs clocks that agree. ASM-MW-030 bounds their1809 * offset, which the INC-AEBS-010 bench did not do (main.cpp:29-33).1810 */18111812 comment relaySubscriptionPhaseDiscardRule1813 about scoreTwoDomainPhysicalSystem::integrationLayer::iviFrameRelay,1814 DE4SDV_MiddlewareSCORENeedsRequirements::reqDiscardFramesWhileHMIUnsubscribed,1815 DE4SDV_MiddlewareSCORENeedsRequirements::reqDeliverAEBSSignalsInSourceOrder,1816 DE4SDV_MiddlewareSCORENeedsRequirements::reqPreserveAEBSSignalProvenance,1817 gapLoLaReturnsStoredSamplesOnSubscription,1818 asmHostAndGuestClocksAgree,1819 gapPhaseStartDiscardBand1820 /*1821 * Discard rule of the layer for REQ-MW-019, at the IVI frame relay1822 * (ADR 0025, decision 4). The relay is the last element of the layer. It1823 * is the only element that sees both the subscription of the guest end1824 * to the frame topic and the frame input of the HMI application. So the1825 * rule sits at the layer boundary that the test of REQ-MW-019 observes,1826 * and it does not rely on the reused ingress.1827 * Subscription phase. The layer takes the HMI application as subscribed1828 * while two conditions hold:1829 * - the relay holds a subscription, through the SDV Gateway on IVI, to the1830 * broker's publication of the frame topic;1831 * - the ingress is connected to the relay's loopback server.1832 * The relay is not subscribed at its start. It stops being subscribed on1833 * each of these events (libsdvgatewayclient.h):1834 * - the notification PublicationDestroyed of the subscription;1835 * - the notification Disconnected of the gateway client, an event of the1836 * API that the feasibility runs did not see;1837 * - no message for 3 s, the relay's own timeout.1838 * It is subscribed again when a new subscription to the publication1839 * succeeds (iviFrameRelay). Design data, not evidence of record: an1840 * unreviewed DE4SDV feasibility run on the bench VM (2026-10-28) saw1841 * PublicationDestroyed within about 0.1 s after a restart of someipd. The1842 * old subscription then got no message, and a new one read the frames of1843 * the new publication. After an outage of SD multicast, the old1844 * subscription got one more notification and then no message. After the1845 * stack was killed, a new subscription still succeeded but read no1846 * message. So the timeout is the event that ends the phase then1847 * (GAP-MW-048).1848 * A phase end that the layer causes is a phase end by1849 * PublicationDestroyed, by Disconnected or by the timeout, while the1850 * ingress stays connected. For REQ-MW-014 it is a delivery failure of the1851 * layer, not an unsubscription of the HMI application. For REQ-MW-019 the1852 * new phase is the current subscription. So the verification of1853 * REQ-MW-014 records every phase end. A phase end during the AEBS event1854 * fails the run of REQ-MW-014 or makes it inconclusive. It never lets the1855 * run pass.1856 * A DATA_LOSS status of a read is a gap (GAP-MW-037). It does not end the1857 * phase.1858 * The ingress is connected from the time the relay accepts it as the1859 * only client. A phase starts when the second of the two conditions1860 * starts to hold. It ends when one of them ends. The relay takes the1861 * phase start from the system clock of the IVI VM.1862 * Frames. Outside a phase, the relay reads each message and drops it. It1863 * holds no frame for later delivery. In a phase, it serves a frame1864 * unchanged only if the frame passes two checks:1865 * - Its frame timestamp is not earlier than the phase start less 20 ms,1866 * the bound of ASM-MW-030. The margin is fixed at 20 ms. No option sets1867 * it, and the relay stops at start on any margin option. The frame1868 * assembler stamps each frame with the host clock when it produces the1869 * frame. So this check drops the frames that the AEBS stack produced1870 * before the phase, apart from the band of GAP-MW-045. The stored1871 * frames of GAP-MW-039 are among them.1872 * - It is no copy of a frame that the relay served in this phase, with1873 * the same sequence and frame timestamp. A copy comes from the stored1874 * frames of a restart in the host half during the phase (GAP-MW-039).1875 * For this check the relay keeps the sequence and frame_timestamp_ns of1876 * the last 40 frames it served, and it clears them at each phase start.1877 * This window is the sum of the slot counts on the path: the 20 slots1878 * of the adapter's frame event and the 20 of gatewayd's bridged1879 * service. The broker's topic adds no copy by its documented behavior:1880 * a subscriber with ASDVGATEWAY_SUBSCRIBER_OPTIONS_FLAG_NONE reads only1881 * the messages published after its subscription. In the feasibility run1882 * such a subscriber read no older message, and a subscriber with the1883 * last-message flag read exactly one. After a restart of someipd, a new1884 * publication can start with stored frames up to about 1 s old, also1885 * copies (GAP-MW-039). They are older than the new phase, so the first1886 * check drops them.1887 * The relay reads these two fields of the INC-AEBS-010 frame contract,1888 * sequence and frame_timestamp_ns (aebs_visualization.proto:59-60). It1889 * changes no byte of the frame (REQ-MW-015). It drops a frame in which1890 * one of the two fields has no positive value. It counts and logs each1891 * phase start and each dropped frame with its reason.1892 * Check against REQ-MW-014. While ASM-MW-030 holds, the rule drops no1893 * frame that the AEBS stack produced after the phase start. The first1894 * check passes each such frame, because its 20 ms margin lies before the1895 * start. The second check drops only copies of frames already served.1896 * The rule serves every other frame in the order the frames come, also a1897 * frame older than one already served. So it hides no gap and no change1898 * of order from the test of REQ-MW-014 (GAP-MW-037).1899 * The cost: a frame that the AEBS stack produced shortly before the phase1900 * start can still pass (GAP-MW-045).1901 */19021903 comment gatewayAbortOnStopAcceptedGuardRail1904 about scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::gatewayd,1905 scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::launchManager,1906 gapLoLaAbortOnSubscribedProxyDestruction1907 /*1908 * Guard rail, abort on stop accepted (owner decision of 2026-10-22, the1909 * default option). gatewayd aborts with SIGABRT when it stops while1910 * subscribed (GAP-MW-041). So every orderly stop of the layer ends1911 * gatewayd with SIGABRT. This is accepted as a known gap for now. The1912 * Launch Manager sends SIGTERM and waits for the exit within the shutdown1913 * timeout (launch_manager.schema.json:201). Whether it treats that exit as1914 * a failure during a requested stop is not known; phase 10 records it. A1915 * small upstream change that calls Unsubscribe() before gatewayd destroys1916 * its proxies is a later option. It is a code contribution, which stays a1917 * later decision of the owner (GAP-MW-036,1918 * scoreUpstreamEngagementOutOfScope). The adapter avoids the same defect1919 * with its second LoLa rule.1920 */19211922 comment adapterAbortConditions1923 about scoreTwoDomainPhysicalSystem::integrationLayer::adapter,1924 scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::launchManager,1925 DE4SDV_MiddlewareSCORENeedsRequirements::reqTerminateAdapterOnException,1926 gapROS2AndSCOREInOneProcessUnproven,1927 asmOneROS2EnvironmentOnHost1928 /*1929 * Conditions of the one-process adapter (REQ-MW-018). The override of1930 * aborts_upon_exception turns every throw into an abort, also a throw that1931 * a library catches on its normal path. So the realization sets two1932 * conditions.1933 * - One ROS 2 environment. Fast DDS 2.6 (rmw_fastrtps_cpp) throws and1934 * catches on its normal path. Its shared-memory transport opens its1935 * port with open_only and creates it in the catch1936 * (SharedMemGlobal.hpp:1076-1078 and 1165-1167 of Fast DDS v2.6.12).1937 * Its UDP transport catches asio::system_error when a port is taken1938 * (UDPTransportInterface.cpp:231). Under Fast DDS the adapter aborted at1939 * start with the default transports, and with a UDP-only profile once1940 * another ROS 2 process ran (GAP-MW-035). rmw_cyclonedds_cpp showed no1941 * throw at start, as first participant and after another one. It1942 * showed none in a 30-minute run of the first build of the adapter and1943 * in a 10-minute run of a later build, each with a few participants1944 * (GAP-MW-035). It is C++ too, and it catches exceptions on its error1945 * paths (serdata.cpp:383-389 of rmw_cyclonedds_cpp 1.3.5). The full1946 * Autoware graph is not tested.1947 * So every ROS 2 process on the Linux host runs in one environment. The1948 * Launch Manager sets it for the adapter and the health proxy node1949 * (launchManager). For the other ROS 2 processes of the host, the ros21950 * command line tools and their daemon among them, ASM-MW-031 assumes it.1951 * The environment sets RMW_IMPLEMENTATION=rmw_cyclonedds_cpp, one fixed1952 * ROS_DOMAIN_ID and one CYCLONEDDS_URI. That configuration binds DDS to1953 * the loopback interface, as the AEBS benches of DE4SDV do. That alone1954 * does not keep the DDS ports off the guest network: CycloneDDS 0.10.51955 * binds its receive sockets to INADDR_ANY (ddsi_udp.c:453-456, 479-480).1956 * So the host must also keep these ports off the guest network, as1957 * REQ-MW-016 asks (someipd). It sets MaxAutoParticipantIndex to1958 * at least the number of ROS 2 processes. On an interface without1959 * multicast, CycloneDDS 0.10.5 gives each process an automatic1960 * participant index (q_init.c:1394-1401). At most MaxAutoParticipantIndex1961 * processes get a participant, 9 by default (ddsi_cfgelems.h:1907). A1962 * bind at the last index fails too (q_init.c:1609, 1627-1631). A process1963 * without a participant fails at start, and in the adapter that failure1964 * is an abort at start. A DE4SDV CI probe with the default started 111965 * ROS 2 processes before the adapter: 9 got a participant, and the1966 * adapter aborted at start (design data). The AEBS benches set 1201967 * (implementation/aebs-autoware-executable-bench/cyclonedds.xml).1968 * ROS_LOCALHOST_ONLY stays unset, because the URI already binds the1969 * loopback interface. With ROS_LOCALHOST_ONLY=1, rmw_cyclonedds_cpp1970 * 1.3.5 adds a second entry for 127.0.0.1 (rmw_node.cpp:1052-1061).1971 * CycloneDDS 0.10.5 then refuses the interface with "the same interface1972 * may not be selected twice" (ddsi_ownip.c:364-370, the error at 368).1973 * No participant comes up, and the adapter aborts at start.1974 * - No parameter services. The adapter node starts without the ROS 21975 * parameter services (rclcpp NodeOptions, start_parameter_services set1976 * to false). In rclcpp 16.0.21, the get, get-types, set, set-atomically1977 * and describe services throw and catch ParameterNotDeclaredException1978 * when a request names an undeclared parameter1979 * (parameter_service.cpp:44-51, 63-72, 88-95, 116-124 and 136-141). With1980 * these services, any ROS 2 peer on the host could abort the adapter, an1981 * operator's command line among them. Under the Launch Manager, that1982 * also stops the frame path (GAP-MW-043). The other way, a trusted ROS 21983 * graph on the host, would depend on every peer and every operator. The1984 * limits on who reaches the graph do not bound what a local peer sends.1985 * The adapter needs no parameter change while it runs, so the services1986 * give it nothing. So the test of REQ-MW-018 triggers each throw with a1987 * signal to the adapter, through its fault-injection interface1988 * (adapter), in the member's start configuration.1989 * Residual: a malformed sample from a DDS participant of the domain can1990 * still abort the adapter. rmw_cyclonedds_cpp 1.3.5 takes samples on its1991 * own ros_discovery_info subscription (rmw_node.cpp:849), and the node's1992 * time source takes them on /parameter_events. A sample that fails to1993 * deserialize raises an exception that serdata.cpp:383-389 would catch,1994 * and the override turns that throw into an abort. This lies outside1995 * normal operation. In Humble no configuration removes these two1996 * subscriptions. Only while the host keeps the DDS ports off the guest1997 * network (REQ-MW-016) are the senders processes on the host. No1998 * robustness against malformed DDS input is claimed.1999 * The Launch Manager passes a component only the environment that its2000 * configuration names, so that configuration carries the environment2001 * above (launchManager).2002 */20032004 concern scoreMiddlewarePhysicalAllocationConcern : PhysicalLogicalMappingConcern {2005 doc /*2006 * Product-line engineers, system architects and open-source reviewers2007 * need each logical element of the middleware integration layer, the2008 * six components of MiddlewareSystem and the HMI frame relay, mapped2009 * to the physical elements it is allocated to, with the components2010 * that S-CORE v0.9.0 leaves unrealized as empty rows (GAP-MW-030). A2011 * mark assigns responsibility for the S-CORE member's scope only. Two2012 * allocations are partial and typed2013 * PartialLogicalToPhysicalSoftwareRealization: the Launch Manager2014 * realizes the lifecycle bridge in part, and the health proxy node2015 * forwards the health of the reference speed, not the safety-path2016 * status. The diagnostic proxy and the update coordinator stay empty2017 * because reference_integration v0.9.0 integrates no diagnostics or2018 * update module. The service binding manager stays empty because2019 * mw::com and SOME/IP service discovery bind services without the2020 * authentication that REQ-MW-008 asks for across a trust boundary2021 * (GAP-MW-012).2022 */2023 subject;2024 stakeholder productLineEngineer : ProductLineEngineer;2025 stakeholder systemArchitect : SystemArchitect;2026 stakeholder reviewer : OpenSourceReviewer;2027 }20282029 view scoreMiddlewarePhysicalLogicalMappingView : MVD::MatrixView {2030 viewpoint selectedPhysicalLogicalMappingViewpoint : PhysicalLogicalMappingViewpoint {2031 frame scoreMiddlewarePhysicalAllocationConcern;2032 }2033 view :>> rowView {2034 expose DE4SDV_MiddlewareLogicalArchitecture::system::signalTranslator;2035 expose DE4SDV_MiddlewareLogicalArchitecture::system::diagnosticProxy;2036 expose DE4SDV_MiddlewareLogicalArchitecture::system::lifecycleBridge;2037 expose DE4SDV_MiddlewareLogicalArchitecture::system::healthProxy;2038 expose DE4SDV_MiddlewareLogicalArchitecture::system::updateCoordinator;2039 expose DE4SDV_MiddlewareLogicalArchitecture::system::serviceBindingManager;2040 expose DE4SDV_MiddlewareSCORELogicalArchitecture::hmiFrameRelay;2041 attribute :>> includeReferenceElements = true;2042 attribute :>> representation = Rep::name;2043 }2044 view :>> columnView {2045 expose scoreTwoDomainPhysicalSystem::integrationLayer::adapter;2046 expose scoreTwoDomainPhysicalSystem::integrationLayer::healthProxyNode;2047 expose scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::gatewayd;2048 expose scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::someipd;2049 expose scoreTwoDomainPhysicalSystem::integrationLayer::iviFrameRelay;2050 expose scoreTwoDomainPhysicalSystem::integrationLayer::scoreServices::launchManager;2051 attribute :>> includeReferenceElements = true;2052 attribute :>> representation = Rep::name;2053 }2054 view :>> cellView {2055 expose DE4SDV_MiddlewareSCOREPhysicalSoftwareRealization::*;2056 attribute :>> direction = SysideViews::MatrixTraceabilityDirection::row2col;2057 }2058 }20592060 concern scoreMiddlewareLayerInternalExchangeConcern : PhysicalInternalExchangeConcern {2061 doc /*2062 * System architects, verification engineers and the safety expert who2063 * reviews GAP-MW-033 need the exchanges between the processes of the2064 * integration layer. They need to see which process publishes the2065 * speed topic and which observes it. They need the path of the AEBS2066 * signal frames: over S-CORE communication inside the Linux host,2067 * through the two processes of the S-CORE SOME/IP gateway, over2068 * SOME/IP across the hypervisor into the SDV Core VM, and over Data2069 * Tunnel and the SDV Gateway on IVI into the IVI VM. And they need to2070 * see that nothing flows back from the guest.2071 */2072 subject layer : SCOREMiddlewareIntegrationLayerRealization;2073 stakeholder systemArchitect : SystemArchitect;2074 stakeholder safetyExpert : SafetyExpert;2075 stakeholder verificationEngineer : VerificationEngineer;2076 }20772078 view scoreMiddlewareLayerInternalExchangeView {2079 viewpoint selectedLayerInternalExchangeViewpoint : PhysicalInternalExchangeViewpoint {2080 frame scoreMiddlewareLayerInternalExchangeConcern;2081 }2082 doc /*2083 * Bounded projection of the integration layer. It exposes the three2084 * DE4SDV processes and the S-CORE modules with the Launch Manager,2085 * gatewayd and someipd. It also exposes the SDV Core and the SDV Gateway2086 * on IVI that the layer refers to, their ports and the seven connections2087 * between them. The recursive exposure also reaches the other services2088 * of the SDV Core, which the layer does not use. The published diagram2089 * does not draw all seven connections. The view index says which it2090 * draws and why.2091 * The adapter, the S-CORE modules, the SDV Core and the SDV Gateway on2092 * IVI are references of the layer. The Linux host and the two VMs of2093 * SCORETwoDomainPhysicalSystem own them.2094 * The connections to the context parts are in2095 * SCORETwoDomainPhysicalSystem; the layer has no boundary ports to2096 * delegate them. Allocations are filtered out. Domain placement2097 * is stated in the process docs and the connection name; the view does2098 * not draw the host/guest boundary.2099 */2100 expose scoreTwoDomainPhysicalSystem::integrationLayer;2101 expose scoreTwoDomainPhysicalSystem::integrationLayer::**;2102 filter not (@ SysML::AllocationUsage);2103 attribute depth = -1;2104 attribute showAnnotationRows = false;2105 render asInterconnectionDiagram;2106 }2107}2108