DE4SDV Model Viewer — how to use it
The DE4SDV model viewer is a read-only HTML viewer for the DE4SDV SysML v2 systems model. It follows the project-browser pattern of desktop modeling tools: the model tree on the left, packages and their members with documentation on the right, and every declared view with the diagram that SysIDE renders from it.
It is a viewer, not a modeler. Nothing on these pages edits the model. Diagrams are the committed syside viz artifacts gathered in each first-level model area's diagrams/ folder, so what you see is exactly what the privileged validation workflow rendered — never a re-render.
Diagram provenance
Every diagram in this viewer is a committed artifact, not a live render: it was produced with SysIDE (syside viz) by the privileged validation workflow and committed to the repository beside the model sources in each area's diagrams/ folder. The viewer embeds exactly those files — it never re-renders or invents a diagram.
To render or refresh diagrams yourself, install the SysIDE Editor extension for VS Code — setup and the visualization commands are in the official SysIDE documentation — open the package that declares the view, run the visualization command on it, and contribute the updated SVG through a pull request.
The live website
The public reader experience is viewer.de4sdv.org. It serves one reviewed current revision and its bounded Ask-model capability. Right-click a model element and choose Ask the model to ask a question grounded in the deployed model. The answer is generated, not model authority: follow its element/source links and verify important conclusions against the model.
The prebuilt branch and pull-request viewer remains available at the native GitHub Pages URL as a browse-only engineering mirror. It does not execute Ask-model requests.
Feature Configurator
The Configurator tab (feature-configurator.html) equips the PLEML feature model of the SDV product line as a configurable member. It is not a model copy: the page fetches /api/feature-model.json from the viewer service, which projects the catalogue, the feature docs, the group cardinalities, the requires/xor constraints, the derivation rules, the governed-scope classifications and the committed feature configurations from the deployed SysML v2 API revision — the same revision-bound corpus the Ask-model capability uses. The page names that revision in its header.
The verdict of a selection comes from the model: a selection equal to a committed feature configuration shows that configuration's validity and admission verdict. A selection that matches none of them is reported as "no committed configuration"; the page never invents a verdict of its own. The API endpoint is a reader of the served model, not a second authority. The page starts with nothing equipped: pick the features one by one, or load a committed configuration from the charter (keys 1–9).
The HELP button beside SOUND explains the page's words in a few short lines: feature, group, rule (the C of a rule number like C012 stands for constraint), the derived adapter, the charter, valid against admitted, and the governed-scope tags. The help defines words only: it names no feature, rule, configuration or verdict, so it cannot drift from the model the page reads.
The page exists only at the root of the dynamic site, and only while the viewer service is running: a static build (including the Pages mirror) has no /api/feature-model.json and shows the API-unavailable error instead of a stale catalogue. Ref sub-sites do not carry the tab.
Repository diagram collections
Each first-level model area that declares concrete views has a generated VIEWS.md landing page. It lists every view, explains the reviewer question in one sentence, records the source/viewpoint/concern/exposure metadata, and embeds the committed SVG when the render passed publication QA:
These are today's folders; python scripts/list_view_folders.py prints the current list, which CI derives from the model.
The landing page keeps a visible status entry when a diagram is withheld. Empty view frames, exposure-only renders, and empty table/matrix frames are not published as if they were usable diagrams. Dense or degraded-but-informative renders stay available with a presentation note and should be opened at full size.
No workflow or script lists these folders by hand: python scripts/list_view_folders.py derives them from the model, and CI checks every one. A new model folder whose files declare a view therefore commits its own VIEWS.md (python scripts/generate_view_index.py <folder>) and the diagrams the Privileged Syside Validation run renders for it (the run's syside-diagrams artifact).
Run it locally (your own work)
Localhost serves your own working tree and unmerged branches — use it for your own work and direct feedback before anything is published:
python -m tools.sysml_html_viewer.serve --repo . --port 8787
# open http://127.0.0.1:8787/
Server mode includes auto-refresh and on-demand builds of any branch or pull request you select. Ask-model answers on a working tree or selected ref use source-only method context, labeled regex:viewer-revision-unbound: they do not borrow semantic relationships from the deployed API. A different bound viewer/API revision is labeled regex:revision-mismatch. A bound viewer with an absent or non-full API revision is labeled regex:api-revision-unbound. Only the immutable production root with matching full Git revisions may request an API overlay; the semantic runtime then checks its actual binding and authority separately. The response and LLM evidence carry baseline_context with this boundary. A generated answer is never an authoritative conformance verdict.
Static build (no server, works from file://):
python -m tools.sysml_html_viewer.generate --repo . --out build/model-viewer
Features
Every concern a view frames
A view's card lists the concerns it frames, in the order the model states them. frame is the SysML v2 statement that frames a concern:
- own frame — the view states the frame itself, in its own
viewpointusage (frame closedLoopDrivingBoundary;), or directly in the view. Theframe concern <name> : <ConcernDefinition>;form also names the concern definition the concern is typed by, and the card shows it after the name. - frame inherited from viewpoint definition
<name>— theviewpoint defthat types the view's viewpoint usage frames the concern (frame concern incrementConcern : IncrementConcern;), and the view inherits it. The frames of a definition reached through:>specialization come after the nearer definition's frames.
A concern the view frames itself appears once, as its own frame, even when its viewpoint definition frames the same concern. A view whose viewpoint frames nothing gets no such list: the viewer shows what the model states and adds nothing to it.
Hover tooltips on elements
Rest the pointer on any model label — tree entry or diagram element. A tooltip shows the element kind, its documentation, the source file and line, and a link that jumps to the declaration in the highlighted source. Hovering a compartment row (for example attributes or doc …) shows the tooltip of the element whose compartment it renders: the title of the box that contains the row. An element with a short name shows it before its name, as in the diagrams: <REQ-MW-010> reqDeliverReferenceVehicleSpeed.
Hover tooltips on connections
In a diagram, hover the connection line itself (the polyline between two ports). The tooltip names the connection or flow that the line renders, with its kind, source location, and a link to the declaration. The label lying on the connection wins over the endpoint labels, so you always learn what the wire is, not just where it ends. This works for connection, flow, and bind relationships.
Go to definition
Click any tooltip link to jump to the declaration line in the highlighted source view of the model file. In the source view, identifiers that resolve to model elements are clickable links — hover them for a tooltip, click to jump. Self-links on the declaration itself are omitted so the source stays quiet.
In a qualified name such as guestMiddleware::androidSDV, the link goes to the androidSDV that guestMiddleware declares in its body. This is also true on a line that declares another androidSDV. If the qualifier declares no such element in its body, the link uses the rules for a name without a qualifier. An example is a feature that the qualifier gets from its type. A word in a string ("...") is never a link. A declaration in a library package, such as the COVESA VSS signals, is a link target only in a file that names the library (import COVESA_VSS::*) and in the library file itself. These links help you navigate. They are not SysML v2 name resolution.
Tree search and filters
The search box filters the model tree live by the text of each tree entry: the name, and the short name if the element has one (REQ-MW-010). Type and the tree narrows to matching members, with matches highlighted. The filter row beside the search narrows by kind (part, port, requirement, view, … — only kinds actually used in the model are listed), SAF domain, and SAF aspect. The ✕ button clears search and filters.
Revision picker (branches and pull requests)
Every page header has a Revision picker. It lists the working tree, main, and any branches or open pull requests that were built. In server mode, unbuilt revisions are built on demand when you select them (a progress overlay shows while building). The picker is disabled (with the reason shown) for revisions that were not built. The published mirror is built from main alone, so its picker lists main only.
Fullscreen diagrams
Every diagram frame has a ⛶ button that expands the diagram to fill the window. Press Esc or click ⛶ again to exit. Tooltips keep working in fullscreen.
Auto-refresh (server mode)
In server mode, editing a .sysml file (or the viewer's own code) and refreshing the page shows the change immediately — the server rebuilds when it detects newer files.
Community chat
The Chat link in the header points to the DE4SDV Mattermost community (<https://chat.de4sdv.org>).
Ask window: the model or the repository
The Ask button at the bottom-right of every page opens one chat window. A switch in its header chooses what answers:
- Model — Ask the model, for one specific model element. Right-click the element in a diagram, on a page or in the project tree and choose Ask the model…; the window switches to Model mode with that element selected. Answers are generated from the element's declaration, documentation, children and method relations, and name the element they were grounded on.
- Repository — DE4SDV Guide, a chat assistant for the repository: documentation, architecture material, architecture decision records, tooling, the contribution workflow, and product-line assets. Answers carry source references that open on GitHub at the exact deployed revision.
Both are generated answer sources, not engineering or model authorities. DE4SDV Guide is grounded in the deployed Git checkout and never queries the Systems Modeling API; when the repository material does not answer a question, it says so instead of guessing. The two modes keep separate conversations and never substitute for each other.
The window is minimized by default. "New chat" clears the conversation of the current mode; the window, the mode and both conversations stay available while you navigate the viewer (stored in your browser only).
Static vs. server mode
A page served from a static build (including the native Pages mirror) shows a note when a revision is listed but not built: "served statically — run python -m tools.sysml_html_viewer.serve …". Server mode is the only mode that builds revisions on demand and watches for model changes. The public interactive service is intentionally pinned to one reviewed application revision and one validated model revision; it does not expose arbitrary branch or pull-request builds.