StigAnalysisP7GenerateDiagramsTask
Direct P7 diagram producer. Walks the analyzer output directory, loads each *.analysis.json into a PipelineGraph, enriches, transforms, and lays out the graph, then emits any combination of SVG / Cytoscape / Sigma files gated by diagramOutputsSvg / diagramOutputsCytoscape / diagramOutputsSigma.
Output paths follow the issue-12 5-axis scheme:
<outputDir>/<at>/<depth>/<merge_mode>/<diagram_type>/<summary_type>/<slug>.<ext>The task walks the full diagram-type / summary-type matrix, rejects semantically invalid cells with isP7SummaryTypeValidForDiagram, and lets the model-level filters in Transform.keepOnlyDiagramTypeEdges apply the configured diagram semantics.
Properties
Analysed element's display name (e.g. example_activity) — the label of the diagram's outermost box. Wired from the module / DSL. Blank/unset ⇒ no element wrapper (matrix tests, ad-hoc runs). Together with elementAsil / elementType this builds a concrete Element passed to Enrichment.enrich(analyzedElement = …); linking to the real compiled Element instance is a follow-up.
Cfg-files directory produced by stigAnalysisP5GenerateAnalyzerRunPlan. Holds the aggregate <analysisKind>-<sinkASIL>.endpoints.json sidecars. Besides per-symbol ASIL, sink entries carry the exact modeled field and stable presentation slug used to derive logical one-sink views from one aggregate analyzer result. Optional for all-sinks-only ad-hoc rendering; normal report generation always wires it.
Direct-interface view: hide edges fully outside the element + the external nodes left unconnected to it (Transform.keepDirectInterfaces).
Analysed element's configured ASIL name (DSL cascade); blank ⇒ unknown.
Stable canonical Highway model ID for the analysed element, normally the context viewpoint element's MetamodelEntity.id. This is used for the diagram element ID; activityName remains the display label.
Element's implementation namespace (DSL implementationNamespace, e.g. app::perception) — defines "the element's own code" for the direct-interface projection. Blank ⇒ that projection is a no-op.
Analysed element's ElementType name (DSL); defaults to COMPONENT.
Severity threshold for the diagram-completeness postcondition. Absent means report without threshold-based failure.
Logical sink fields acknowledged as current cascading faults by this activity.
Logical sink fields acknowledged as current missing expected flows by this activity.
Gradle project path captured during configuration for canonical problem provenance.
Data-flow diagrams show endpoint-contributing paths: keep only DAG nodes and edges that are on a configured source-to-sink path.
Git provenance — one entry per configured repo, used by Enrichment.applySourceUrls to build the provider-correct, commit-pinned source link emitted on every cytoscape node with a known source location. Three list properties (root + remote URL + commit), indices align — entry i across the three lists describes the same repo.