-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathanalysis.yaml
More file actions
1633 lines (1521 loc) · 56.4 KB
/
Copy pathanalysis.yaml
File metadata and controls
1633 lines (1521 loc) · 56.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# STPA Analysis — Spar AADL Toolchain
#
# Analyzes spar itself as a safety-relevant tool. Spar's analysis results
# inform architecture decisions for DO-178C/DO-254 avionics systems.
# An incorrect analysis result (false negative) could lead to an unsafe
# architecture being approved. A false positive wastes engineering effort
# but is not safety-critical.
artifacts:
# ══════════════════════════════════════════════════════════════════════
# STEP 1a: Losses
# ══════════════════════════════════════════════════════════════════════
- id: L-1
type: loss
title: Unsafe architecture approved
description: >
An architecture with safety-critical defects (scheduling overrun,
single-point-of-failure, unconnected safety paths) is approved for
implementation because spar failed to detect the defect.
stakeholders: [system-integrator, certification-authority, end-user]
- id: L-2
type: loss
title: Excessive engineering rework
description: >
False positive diagnostics cause engineers to redesign correct
architectures, wasting significant time and budget.
stakeholders: [system-integrator, project-manager]
- id: L-3
type: loss
title: Loss of trust in toolchain
description: >
Inconsistent, incorrect, or confusing analysis results cause
engineers to bypass spar and rely on manual review, eliminating
the safety benefit of automated analysis.
stakeholders: [system-integrator, safety-reviewer]
- id: L-4
type: loss
title: Incorrect architecture documentation
description: >
Serialized JSON or rendered SVG output misrepresents the actual
AADL model, leading to incorrect documentation artifacts in the
certification evidence package.
stakeholders: [certification-authority, safety-reviewer]
# ══════════════════════════════════════════════════════════════════════
# STEP 1b: Hazards
# ══════════════════════════════════════════════════════════════════════
- id: H-1
type: hazard
links:
- type: leads-to-loss
target: L-1
title: Analysis produces false negative
description: >
Spar's analysis passes fail to detect a genuine architectural
defect in the AADL model (e.g., schedulability violation,
unconnected safety-critical port, single-point-of-failure path).
severity: critical
losses: [L-1]
- id: H-2
type: hazard
links:
- type: leads-to-loss
target: L-2
- type: leads-to-loss
target: L-3
title: Analysis produces false positive
description: >
Spar reports a defect that does not actually exist in the model,
causing unnecessary rework.
severity: marginal
losses: [L-2, L-3]
- id: H-3
type: hazard
links:
- type: leads-to-loss
target: L-1
- type: leads-to-loss
target: L-4
title: Instance model does not match declarative model
description: >
The instantiated system tree diverges from the declared AADL
structure due to incorrect expansion, missing connections,
or wrong property inheritance.
severity: critical
losses: [L-1, L-4]
- id: H-4
type: hazard
links:
- type: leads-to-loss
target: L-4
title: Serialized output does not match internal model
description: >
JSON, SVG, or text output represents a different model than
what spar computed internally (serialization/rendering bug).
severity: critical
losses: [L-4]
- id: H-5
type: hazard
links:
- type: leads-to-loss
target: L-1
- type: leads-to-loss
target: L-3
title: Parser silently drops valid AADL constructs
description: >
The parser accepts input without error but silently omits valid
AADL constructs from the CST, causing downstream analyses to
operate on an incomplete model.
severity: critical
losses: [L-1, L-3]
- id: H-6
type: hazard
links:
- type: leads-to-loss
target: L-1
title: Property values incorrectly evaluated
description: >
Timing, memory, or deployment properties are parsed or evaluated
to wrong numeric values, causing analyses to compute incorrect
results (e.g., wrong period causes RMA to pass when it should fail).
severity: critical
losses: [L-1]
- id: H-7
type: hazard
links:
- type: leads-to-loss
target: L-1
- type: leads-to-loss
target: L-4
title: SysML v2 lowering produces semantically incorrect AADL
description: >
The SysML v2 to AADL lowering transformation produces AADL
constructs that are syntactically valid but semantically wrong
(e.g., wrong component category, lost property constraints,
missing connections). The resulting AADL model passes all 21
analysis passes but does not faithfully represent the original
SysML v2 design intent.
severity: critical
losses: [L-1, L-4]
- id: H-8
type: hazard
links:
- type: leads-to-loss
target: L-1
- type: leads-to-loss
target: L-3
title: Verification pipeline provides false assurance
description: >
The Bazel-based verification pipeline (Verus, Lean4, WASM component
rules) reports success when verification was not actually performed
(e.g., tool not installed, fallback to no-op, cached stale result).
Engineers believe generated code is formally verified when it is not.
severity: critical
losses: [L-1, L-3]
# ══════════════════════════════════════════════════════════════════════
# STEP 1c: System-Level Constraints
# ══════════════════════════════════════════════════════════════════════
- id: SC-1
type: system-constraint
links:
- type: prevents
target: H-1
title: No false negatives on safety analyses
description: >
Spar must detect all genuine architectural defects for which it
has implemented analysis passes. Coverage gaps must be documented.
spec-baseline: AS5506C
hazards: [H-1]
- id: SC-2
type: system-constraint
links:
- type: prevents
target: H-2
title: Minimize false positives
description: >
Spar should not report defects that do not exist. When uncertain,
spar should clearly indicate the confidence level (info vs warning
vs error severity).
hazards: [H-2]
- id: SC-3
type: system-constraint
links:
- type: prevents
target: H-3
title: Instance model fidelity
description: >
The instance model must faithfully represent the declared AADL
structure. Every subcomponent, connection, mode, flow, and property
in the declarative model must appear in the instance model.
hazards: [H-3]
- id: SC-4
type: system-constraint
links:
- type: prevents
target: H-4
title: Output fidelity
description: >
All serialized outputs (JSON, SVG, text) must accurately represent
the internal computed model. Round-trip deserialization must produce
equivalent data.
hazards: [H-4]
- id: SC-5
type: system-constraint
links:
- type: prevents
target: H-5
title: Parser completeness
description: >
The parser must produce CST nodes for all valid AADL v2.2 constructs.
Unrecognized constructs must produce error diagnostics, never silent
omission.
hazards: [H-5]
- id: SC-6
type: system-constraint
links:
- type: prevents
target: H-6
title: Property evaluation correctness
description: >
Property values must be evaluated with correct units, arithmetic,
defaults, and inheritance chains. Unit conversion factors must match
the AS5506 standard.
hazards: [H-6]
- id: SC-7
type: system-constraint
links:
- type: prevents
target: H-7
title: SysML v2 lowering semantic fidelity
description: >
The SysML v2 to AADL lowering must faithfully preserve the design
intent of the original SysML v2 model. Component categories, port
directions, connection topology, property values, and constraint
semantics must be correctly mapped. Unhandled SysML v2 constructs
must produce diagnostics, not be silently dropped.
hazards: [H-7]
- id: SC-8
type: system-constraint
links:
- type: prevents
target: H-8
title: Verification pipeline integrity
description: >
The Bazel verification pipeline must fail loudly when verification
tools (Verus, Lean4, wasm-tools) are unavailable or produce errors.
A green build must mean verification was actually performed, not
that verification was skipped.
hazards: [H-8]
# ══════════════════════════════════════════════════════════════════════
# STEP 2: Control Structure
# ══════════════════════════════════════════════════════════════════════
- id: CTRL-ENGINEER
type: controller
title: AADL Engineer
controller-type: human
process-model:
- Believes the AADL model is syntactically and semantically correct
- Believes spar will detect architectural defects
- May not know all AADL legality rules
- Relies on spar diagnostics to guide model corrections
- id: CTRL-REVIEWER
type: controller
title: Safety Reviewer
controller-type: human
process-model:
- Believes spar analysis output is complete and correct
- Uses analysis results as evidence for certification
- May not independently verify spar results
- Assumes spar coverage matches documented capability
- id: CTRL-PARSER
type: controller
title: Parser Controller (spar-parser + spar-syntax)
controller-type: automated
source-file: crates/spar-parser/src/lib.rs
process-model:
- Token stream represents complete input
- Grammar rules cover all AADL v2.2 productions
- Error recovery preserves unparsed tokens
- id: CTRL-MODEL
type: controller
title: Model Builder (spar-hir-def)
controller-type: automated
source-file: crates/spar-hir-def/src/item_tree/lower.rs
process-model:
- CST is complete (all valid constructs present)
- Lowering handles all SyntaxKind variants
- Property expressions are correctly typed
- Name resolution finds all cross-file references
- id: CTRL-INSTANCE
type: controller
title: Instance Builder (spar-hir-def::instance)
controller-type: automated
source-file: crates/spar-hir-def/src/instance.rs
process-model:
- Declarative model is complete and correct
- Classifier references resolve to valid types
- Recursive expansion terminates
- Array dimensions are finite positive integers
- id: CTRL-ANALYSIS
type: controller
title: Analysis Engine (spar-analysis)
controller-type: automated
source-file: crates/spar-analysis/src/lib.rs
process-model:
- Instance model faithfully represents the architecture
- Property values are correctly evaluated
- All relevant analysis passes are registered and run
- Diagnostic severity correctly reflects defect impact
- id: CTRL-OUTPUT
type: controller
title: Output Controller (spar-cli, spar-wasm)
controller-type: automated
source-file: crates/spar-cli/src/main.rs
process-model:
- Analysis diagnostics are complete
- Serialization preserves all fields
- Format conversion (JSON, SVG, text) is lossless for the domain
- id: CTRL-SYSML2
type: controller
title: SysML v2 Lowering Controller (spar-sysml2)
controller-type: automated
source-file: crates/spar-sysml2/src/lower.rs
process-model:
- SysML v2 CST is complete (all valid constructs parsed)
- SEI mapping rules cover all SysML v2 construct types
- Category inference heuristics produce correct AADL categories
- Property semantics are preserved across the SysML/AADL boundary
- Unhandled SysML v2 constructs are rare and non-safety-relevant
- id: CTRL-CODEGEN
type: controller
title: Code Generator (spar-codegen)
controller-type: automated
source-file: crates/spar-codegen/src/workspace_gen.rs
process-model:
- AADL instance model is correct and complete
- Generated Bazel rules reference valid tool paths
- Verification rules (Verus, Lean4) produce definitive pass/fail
- WASM component packaging preserves interface contracts
# ── Controlled Processes ───────────────────────────────────────────────
- id: CP-SOURCE
type: controlled-process
title: AADL Source Files
description: The .aadl input files written by engineers
- id: CP-MODEL
type: controlled-process
title: Internal AADL Model (ItemTree + Instance)
description: The in-memory representation of the AADL architecture
- id: CP-DIAGNOSTICS
type: controlled-process
title: Analysis Diagnostics
description: The list of errors, warnings, and info diagnostics produced
- id: CP-DECISIONS
type: controlled-process
title: Architecture Decisions
description: Downstream design decisions informed by spar analysis
# ── Control Actions ────────────────────────────────────────────────────
- id: CA-PARSE
type: control-action
links:
- type: issued-by
target: CTRL-PARSER
- type: acts-on
target: CP-MODEL
title: Parse AADL source
action: Transform source text into concrete syntax tree
source: CTRL-PARSER
target: CP-MODEL
- id: CA-LOWER
type: control-action
links:
- type: issued-by
target: CTRL-MODEL
- type: acts-on
target: CP-MODEL
title: Lower CST to ItemTree
action: Convert syntax tree nodes to typed HIR items
source: CTRL-MODEL
target: CP-MODEL
- id: CA-INSTANTIATE
type: control-action
links:
- type: issued-by
target: CTRL-INSTANCE
- type: acts-on
target: CP-MODEL
title: Instantiate system
action: Recursively expand root implementation into instance tree
source: CTRL-INSTANCE
target: CP-MODEL
- id: CA-ANALYZE
type: control-action
links:
- type: issued-by
target: CTRL-ANALYSIS
- type: acts-on
target: CP-DIAGNOSTICS
title: Run analysis passes
action: Execute registered analyses against instance model
source: CTRL-ANALYSIS
target: CP-DIAGNOSTICS
- id: CA-REPORT
type: control-action
links:
- type: issued-by
target: CTRL-OUTPUT
- type: acts-on
target: CP-DECISIONS
title: Report results
action: Format and output analysis diagnostics
source: CTRL-OUTPUT
target: CP-DECISIONS
- id: CA-REVIEW
type: control-action
links:
- type: issued-by
target: CTRL-REVIEWER
- type: acts-on
target: CP-DECISIONS
title: Review and approve architecture
action: Evaluate analysis output and decide on architecture approval
source: CTRL-REVIEWER
target: CP-DECISIONS
- id: CA-SYSML2-LOWER
type: control-action
links:
- type: issued-by
target: CTRL-SYSML2
- type: acts-on
target: CP-MODEL
title: Lower SysML v2 to AADL
action: Transform SysML v2 CST into AADL ItemTree using SEI mapping rules
source: CTRL-SYSML2
target: CP-MODEL
- id: CA-CODEGEN
type: control-action
links:
- type: issued-by
target: CTRL-CODEGEN
- type: acts-on
target: CP-DECISIONS
title: Generate code and verification pipeline
action: >
Generate Rust crate skeletons, WIT interfaces, and Bazel BUILD files
with verification rules from the AADL instance model
source: CTRL-CODEGEN
target: CP-DECISIONS
# ══════════════════════════════════════════════════════════════════════
# STEP 3: Unsafe Control Actions
# ══════════════════════════════════════════════════════════════════════
# ── Parser UCAs ────────────────────────────────────────────────────────
- id: UCA-1
type: uca
links:
- type: issued-by
target: CTRL-PARSER
- type: leads-to-hazard
target: H-5
title: Parser silently drops construct
uca-type: not-providing
context: >
When AADL source contains a valid construct (e.g., annex subclause,
prototype binding, call sequence) that the parser does not recognize.
rationale: >
Missing CST node means the construct is invisible to all downstream
processing. No diagnostic is emitted, so the engineer believes the
model is complete.
controller: CTRL-PARSER
hazards: [H-5]
- id: UCA-2
type: uca
links:
- type: issued-by
target: CTRL-PARSER
- type: leads-to-hazard
target: H-1
- type: leads-to-hazard
target: H-5
title: Parser accepts invalid AADL without error
uca-type: providing
context: >
When the source contains a syntax error but the parser's error
recovery consumes it without emitting a diagnostic.
rationale: >
Engineer believes the model is valid when it is not. Downstream
analyses may produce incorrect results on a malformed model.
controller: CTRL-PARSER
hazards: [H-1, H-5]
# ── Model Builder UCAs ────────────────────────────────────────────────
- id: UCA-3
type: uca
links:
- type: issued-by
target: CTRL-MODEL
- type: leads-to-hazard
target: H-1
- type: leads-to-hazard
target: H-3
title: Lowering omits CST node
uca-type: not-providing
context: >
When the CST contains a valid node (e.g., property association,
mode transition trigger, connection in_modes) but the lowering
code does not handle that SyntaxKind.
rationale: >
ItemTree is incomplete. Analyses that depend on the missing data
will produce false negatives.
controller: CTRL-MODEL
hazards: [H-1, H-3]
- id: UCA-4
type: uca
links:
- type: issued-by
target: CTRL-MODEL
- type: leads-to-hazard
target: H-6
title: Lowering assigns wrong property value
uca-type: providing
context: >
When a property expression is lowered with incorrect unit conversion,
wrong numeric parsing, or misidentified property type.
rationale: >
Scheduling analysis may use wrong period/deadline values. Resource
budget may use wrong memory sizes.
controller: CTRL-MODEL
hazards: [H-6]
- id: UCA-5
type: uca
links:
- type: issued-by
target: CTRL-MODEL
- type: leads-to-hazard
target: H-3
title: Name resolution returns wrong classifier
uca-type: providing
context: >
When two packages define types with similar names and the resolver
picks the wrong one due to case-insensitive matching or import order.
rationale: >
Subcomponent instantiates the wrong type. Connection type checking
passes when it should fail.
controller: CTRL-MODEL
hazards: [H-3]
# ── Instance Builder UCAs ─────────────────────────────────────────────
- id: UCA-6
type: uca
links:
- type: issued-by
target: CTRL-INSTANCE
- type: leads-to-hazard
target: H-3
title: Instance expansion misses subcomponent
uca-type: not-providing
context: >
When a component implementation has subcomponents filtered by modes
and the instance builder incorrectly filters them out in the
default (non-modal) expansion.
rationale: >
Missing subcomponent means missing connections and missing analyses.
An entire subsystem could be invisible.
controller: CTRL-INSTANCE
hazards: [H-3]
- id: UCA-7
type: uca
links:
- type: issued-by
target: CTRL-INSTANCE
- type: leads-to-hazard
target: H-3
- type: leads-to-hazard
target: H-1
title: Array expansion produces wrong count
uca-type: providing
context: >
When array dimension expression evaluation produces wrong N,
or when array indexing in connection patterns is off-by-one.
rationale: >
Too few instances: missing redundancy paths. Too many: phantom
components consume scheduling/resource budgets incorrectly.
controller: CTRL-INSTANCE
hazards: [H-3, H-1]
- id: UCA-8
type: uca
links:
- type: issued-by
target: CTRL-INSTANCE
- type: leads-to-hazard
target: H-3
- type: leads-to-hazard
target: H-1
title: Connection tracing produces wrong endpoint
uca-type: providing
context: >
When multi-level connection tracing (up/down patterns) follows
the wrong feature in a feature group or resolves to a feature
in the wrong subcomponent.
rationale: >
Connectivity analysis passes (no unconnected ports) but the actual
data flow path is wrong. Latency analysis computes wrong path.
controller: CTRL-INSTANCE
hazards: [H-3, H-1]
- id: UCA-9
type: uca
links:
- type: issued-by
target: CTRL-INSTANCE
- type: leads-to-hazard
target: H-3
title: Instance builder enters infinite recursion
uca-type: stopped-too-soon
context: >
When a component implementation contains a subcomponent whose
classifier directly or indirectly references the parent
(circular containment).
rationale: >
Stack overflow crashes spar. No analysis output is produced.
Engineer may not understand the error.
controller: CTRL-INSTANCE
hazards: [H-3]
# ── Analysis Engine UCAs ──────────────────────────────────────────────
- id: UCA-10
type: uca
links:
- type: issued-by
target: CTRL-ANALYSIS
- type: leads-to-hazard
target: H-1
title: Analysis not registered
uca-type: not-providing
context: >
When a relevant analysis pass exists but is not registered with
the AnalysisRunner for the current invocation (e.g., ARINC 653
analysis exists but is not added when analyzing a partitioned system).
rationale: >
Entire class of defects goes undetected. Engineer believes the
model was fully analyzed.
controller: CTRL-ANALYSIS
hazards: [H-1]
- id: UCA-11
type: uca
links:
- type: issued-by
target: CTRL-ANALYSIS
- type: leads-to-hazard
target: H-1
- type: leads-to-hazard
target: H-6
title: Analysis uses wrong property value
uca-type: providing
context: >
When the analysis reads a property from the instance model but
the property was incorrectly inherited, defaulted, or unit-converted.
rationale: >
RMA with wrong period: schedulability check is meaningless.
Resource budget with wrong memory size: budget check is wrong.
controller: CTRL-ANALYSIS
hazards: [H-1, H-6]
- id: UCA-12
type: uca
links:
- type: issued-by
target: CTRL-ANALYSIS
- type: leads-to-hazard
target: H-1
title: Analysis emits wrong severity
uca-type: providing
context: >
When a genuine safety-critical defect (e.g., CPU utilization > 100%)
is reported as info or warning instead of error.
rationale: >
Engineer or reviewer may dismiss the diagnostic. The defect
persists in the approved architecture.
controller: CTRL-ANALYSIS
hazards: [H-1]
- id: UCA-13
type: uca
links:
- type: issued-by
target: CTRL-ANALYSIS
- type: leads-to-hazard
target: H-2
title: Analysis produces false positive
uca-type: providing
context: >
When the analysis reports a defect that does not exist because
it does not account for modal filtering, property overrides,
or correct inheritance.
rationale: >
Wastes engineering effort. Repeated false positives erode trust.
controller: CTRL-ANALYSIS
hazards: [H-2]
# ── Output Controller UCAs ────────────────────────────────────────────
- id: UCA-14
type: uca
links:
- type: issued-by
target: CTRL-OUTPUT
- type: leads-to-hazard
target: H-4
title: JSON serialization drops field
uca-type: not-providing
context: >
When a spar-hir type gains a new field but the serde derive
does not include it (e.g., field added to struct but not to
the serializable projection).
rationale: >
Downstream consumers (rivet AADL adapter) see incomplete data.
Architecture documentation is incomplete.
controller: CTRL-OUTPUT
hazards: [H-4]
- id: UCA-15
type: uca
links:
- type: issued-by
target: CTRL-OUTPUT
- type: leads-to-hazard
target: H-4
title: SVG rendering misrepresents topology
uca-type: providing
context: >
When the graph builder omits connections, misplaces nodes, or
renders wrong port labels in the SVG diagram.
rationale: >
Visual architecture documentation does not match the actual model.
Reviewer makes decisions based on incorrect diagram.
controller: CTRL-OUTPUT
hazards: [H-4]
- id: UCA-16
type: uca
links:
- type: issued-by
target: CTRL-OUTPUT
- type: leads-to-hazard
target: H-1
title: Diagnostic output suppresses errors
uca-type: not-providing
context: >
When the CLI or WASM output formatter filters, truncates, or
fails to transmit error-severity diagnostics to the user.
rationale: >
Critical defects are computed but never shown to the engineer.
controller: CTRL-OUTPUT
hazards: [H-1]
# ── SysML v2 Lowering UCAs ────────────────────────────────────────────
- id: UCA-17
type: uca
links:
- type: issued-by
target: CTRL-SYSML2
- type: leads-to-hazard
target: H-7
title: SysML v2 lowering silently drops construct
uca-type: not-providing
context: >
When the SysML v2 source contains a valid construct (e.g., flow
definition, view def, analysis case, occurrence def) that the
lower_node wildcard arm silently ignores via `_ => {}`.
rationale: >
The construct is invisible to all downstream AADL processing. No
diagnostic is emitted, so the engineer believes the lowered model
is complete. If the dropped construct carried safety-critical
semantics (e.g., a timing constraint or allocation), the resulting
AADL model is incomplete.
controller: CTRL-SYSML2
hazards: [H-7]
- id: UCA-18
type: uca
links:
- type: issued-by
target: CTRL-SYSML2
- type: leads-to-hazard
target: H-7
- type: leads-to-hazard
target: H-1
title: SysML v2 lowering assigns wrong component category
uca-type: providing
context: >
When the infer_category heuristic misclassifies a part def
(e.g., a software process as a system, or a thread group as a
process) because the heuristic only checks for action/state
usages in the body.
rationale: >
Wrong category causes wrong analysis pass selection. A thread
classified as a system is never scheduled. A process classified
as a system does not get connectivity checks on internal ports.
Scheduling analysis produces no results (false negative).
controller: CTRL-SYSML2
hazards: [H-7, H-1]
- id: UCA-19
type: uca
links:
- type: issued-by
target: CTRL-SYSML2
- type: leads-to-hazard
target: H-7
- type: leads-to-hazard
target: H-6
title: SysML v2 property semantics lost in lowering
uca-type: providing
context: >
When a SysML v2 constraint usage or attribute usage carries timing
or resource semantics but is lowered to an Opaque PropertyExpr
that downstream AADL analyses cannot interpret.
rationale: >
The property exists in the AADL model but has no typed value.
Scheduling analysis skips it (no typed Period). The engineer
believes timing constraints from SysML v2 are being checked
when they are not.
controller: CTRL-SYSML2
hazards: [H-7, H-6]
- id: UCA-20
type: uca
links:
- type: issued-by
target: CTRL-SYSML2
- type: leads-to-hazard
target: H-7
- type: leads-to-hazard
target: H-3
title: Subcomponent category hardcoded to System
uca-type: providing
context: >
When lower_part_usage_to_subcomponent and lower_ref_usage_to_subcomponent
always set category to ComponentCategory::System regardless of the
referenced type's actual category in the SysML v2 model.
rationale: >
A process subcomponent classified as system will not have its
threads scheduled. A bus subcomponent classified as system will
not participate in binding analysis. The wrong category propagates
through instantiation to all downstream analyses.
controller: CTRL-SYSML2
hazards: [H-7, H-3]
# ── Codegen / Verification Pipeline UCAs ────────────────────────────
- id: UCA-21
type: uca
links:
- type: issued-by
target: CTRL-CODEGEN
- type: leads-to-hazard
target: H-8
title: Verification rule silently passes when tool missing
uca-type: not-providing
context: >
When the Bazel verus_verify or lean_verify rule falls back to a
PATH lookup for the tool binary, and the binary is not installed,
the shell command may produce a non-zero exit but Bazel caching
or error handling could mask the failure in certain configurations.
rationale: >
Engineers see a cached green build and believe verification was
performed. The generated code ships without formal verification.
This is a false assurance hazard.
controller: CTRL-CODEGEN
hazards: [H-8]
- id: UCA-22
type: uca
links:
- type: issued-by
target: CTRL-CODEGEN
- type: leads-to-hazard
target: H-8
title: Generated BUILD.bazel omits verification targets
uca-type: not-providing
context: >
When workspace_gen.rs generates per-crate BUILD.bazel files that
include rust_library and wasm_component targets but do not include
verus_verify or lean_verify targets for the generated code.
rationale: >
The generated project builds and tests pass, but no formal
verification is ever invoked. The verification pipeline exists
in the workspace root but is not wired to the generated crates.
controller: CTRL-CODEGEN
hazards: [H-8]
# ══════════════════════════════════════════════════════════════════════
# STEP 3b: Controller Constraints
# ══════════════════════════════════════════════════════════════════════
- id: CC-1
type: controller-constraint
links:
- type: constrains-controller
target: CTRL-PARSER
- type: inverts-uca
target: UCA-1
- type: inverts-uca
target: UCA-2
- type: prevents
target: H-5
title: Parser must emit diagnostic for unrecognized constructs
constraint: >
The parser must produce an error diagnostic for any token sequence
it cannot match to an AADL production. Silent consumption of
tokens without CST node creation is prohibited.
controller: CTRL-PARSER
ucas: [UCA-1, UCA-2]
hazards: [H-5]
- id: CC-2
type: controller-constraint
links:
- type: constrains-controller
target: CTRL-MODEL
- type: inverts-uca
target: UCA-3
- type: prevents
target: H-3
title: Lowering must handle all SyntaxKind variants
constraint: >
The CST-to-ItemTree lowering must have a match arm for every
SyntaxKind that represents a semantic AADL construct. Unhandled
variants must emit a warning diagnostic.
controller: CTRL-MODEL
ucas: [UCA-3]
hazards: [H-3]
- id: CC-3
type: controller-constraint
links:
- type: constrains-controller
target: CTRL-MODEL
- type: inverts-uca
target: UCA-4
- type: prevents
target: H-6