automapper-validation 0.12.0

AHB condition expression parsing, evaluation, and EDIFACT validation
Documentation
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
{
  "generated_at": "2026-03-12T10:40:40Z",
  "ahb_file": "IFTSTA_AHB_2_0h_Fehlerkorrektur_20250623.xml",
  "format_version": "FV2510",
  "conditions": {
    "93": {
      "confidence": "high",
      "reasoning": "Checks STS where elements[0][0]=Z37 (Auftragstatus Sperren) and elements[1][0]=Z13 (gescheitert status). Uses has_qualified_value with qualifier on element 0 and value check on element 1 component 0.",
      "description_hash": "23b2ce5a",
      "is_external": false
    },
    "107": {
      "confidence": "high",
      "reasoning": "Checks STS where elements[0][0]=Z37 (Auftragstatus Sperren) and elements[1][0]=Z32 (Ablehnung). Uses has_qualified_value analogously to conditions 93/94.",
      "description_hash": "ee810d4e",
      "is_external": false
    },
    "51": {
      "confidence": "high",
      "reasoning": "Unconditional restriction: only Abweisung cluster codes are possible at this position. No qualifying condition — always evaluates to True to enforce the code cluster constraint.",
      "description_hash": "5fb16850",
      "is_external": false
    },
    "91": {
      "confidence": "high",
      "reasoning": "Checks if any STS segment has DE1131 (elements[2][1] in C556) equal to E_0472. E_0472 appears in the Auftragstatus Sperren (Z37) STS variant.",
      "description_hash": "68cf2a9c",
      "is_external": false
    },
    "69": {
      "confidence": "high",
      "reasoning": "STS Z30 = Statuskategorie for Gegenvorschlag des Fahrplananteils. Check elements[0][0]=Z30 and elements[1][0]=Z32 (Ablehnung). Condition is True when this rejection STS exists.",
      "description_hash": "111ddc3f",
      "is_external": false
    },
    "933": {
      "confidence": "high",
      "reasoning": "Format condition checking HHMM portion of a DTM value equals 2300. Uses validate_hhmm_equals helper.",
      "description_hash": "b5e9c81e",
      "is_external": false
    },
    "533": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation about using Steuerbare Ressource ID. Always returns True.",
      "description_hash": "9dd0a791",
      "is_external": false
    },
    "538": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational note stating that the code from the EBD (Entscheidungsbaum-Diagramm) is transmitted at this position. Always applies unconditionally.",
      "description_hash": "375f3629",
      "is_external": false
    },
    "115": {
      "confidence": "high",
      "reasoning": "Whether the NAD+MS sender is acting in the role of NB (Netzbetreiber) cannot be determined from the EDIFACT message content alone — market participant roles are runtime business context.",
      "description_hash": "3ec93c12",
      "is_external": true
    },
    "495": {
      "confidence": "medium",
      "reasoning": "The timestamp must be ≤ DE2380 of DTM+137 (document creation date). Compares DTM+334 against DTM+137 using lexicographic ordering, valid for format 303 (YYYYMMDDhhmm) timestamps.",
      "description_hash": "15943b5e",
      "is_external": false
    },
    "65": {
      "confidence": "high",
      "reasoning": "STS+Z28+Z32 vorhanden: identical to condition 53. The 'only codes from EBD-Cluster Ablehnung' clause is a value-set constraint; the condition checks presence of STS+Z28+Z32.",
      "description_hash": "9c55b076",
      "is_external": false
    },
    "62": {
      "confidence": "high",
      "reasoning": "STS+Z27+Z30 vorhanden: find STS where elements[0][0]==\"Z27\" (Ausfallarbeit), check elements[1][0]==\"Z30\" (Zustimmung). The 'only codes from EBD-Cluster Zustimmung' clause is a value-set constraint evaluated elsewhere; the condition itself is the existence check.",
      "description_hash": "b4b218d3",
      "is_external": false
    },
    "96": {
      "confidence": "high",
      "reasoning": "Checks if any STS segment has DE1131 (elements[2][1] in C556) equal to E_0487. E_0487 appears in the Auftragstatus Entsperren (Z38) STS variant.",
      "description_hash": "6f51a94a",
      "is_external": false
    },
    "492": {
      "confidence": "high",
      "reasoning": "The NAD+MR segment (recipient MP-ID) can be read from the message, but whether the market participant belongs to 'Sparte Strom' (electricity sector) requires an external market participant registry lookup. The sector affiliation is not encoded in the EDIFACT message itself.",
      "description_hash": "bd78e2d8",
      "is_external": true
    },
    "525": {
      "confidence": "high",
      "reasoning": "Hinweis: informational annotation about cardinality (one MSCONS status per SG14). Always applies unconditionally.",
      "description_hash": "29bd2359",
      "is_external": false
    },
    "496": {
      "confidence": "medium",
      "reasoning": "The timestamp must be strictly greater than DE2380 of DTM+137. Inverse of condition 495. Applied to DTM+334 which must be after the document creation date in this usage context.",
      "description_hash": "7b2ffff7",
      "is_external": false
    },
    "140": {
      "confidence": "medium",
      "reasoning": "Checks if any STS segment has DE9013 (elements[2][0]) with a non-empty value that is not 'A01'. Medium confidence because 'in diesem STS' implies a segment-level context that may not be fully captured by message-wide search.",
      "description_hash": "5f1095ba",
      "is_external": false
    },
    "4": {
      "confidence": "high",
      "reasoning": "Checks that no STS segment exists with elements[0][0]='Z02' (Abweisung der Summenzeitreihe). Direct absence check using lacks_qualifier.",
      "description_hash": "087a0315",
      "is_external": false
    },
    "23": {
      "confidence": "high",
      "reasoning": "The condition checks for an STS segment matching Z25 at elements[0][0] (Statuskategorie), Z31 at elements[1][0] (Status), and one of the listed codes at elements[2][0] (Statusanlaß/Code des Prüfschritts). All indices confirmed via the 'Status des Lieferscheins' entry in the segment structure reference.",
      "description_hash": "a255e523",
      "is_external": false
    },
    "149": {
      "confidence": "medium",
      "reasoning": "Checks DE1131 (elements[2][1]) in STS segments within SG14. Returns True if any STS has DE1131 present and not equal to E_0278, False if all present values equal E_0278, Unknown if no STS has DE1131 set. Uses navigator for group-scoped check with message-wide fallback.",
      "description_hash": "e7edbf56",
      "is_external": false
    },
    "141": {
      "confidence": "medium",
      "reasoning": "Checks if any STS segment has DE9013 (elements[2][0]) equal to 'A01'. Medium confidence due to segment-level context ambiguity.",
      "description_hash": "6f486b1a",
      "is_external": false
    },
    "502": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation documenting that the value originates from REQOTE BGM DE1004. Always applies unconditionally with no boolean predicate.",
      "description_hash": "f3212ab6",
      "is_external": false
    },
    "510": {
      "confidence": "high",
      "reasoning": "Hinweis informational note — always returns True unconditionally.",
      "description_hash": "9fda2a85",
      "is_external": false
    },
    "939": {
      "confidence": "medium",
      "reasoning": "Checks if any COM segment value contains both '@' and '.' characters, validating email address format. COM segments carry communication details; email format requires both characters. This is the standard way to detect email COM values in EDIFACT.",
      "description_hash": "05a09b9a",
      "is_external": false
    },
    "530": {
      "confidence": "high",
      "reasoning": "Hinweis: informational annotation describing field semantics (expected work/performance in delivery note). Always applies unconditionally.",
      "description_hash": "e6500ab2",
      "is_external": false
    },
    "94": {
      "confidence": "high",
      "reasoning": "Checks STS where elements[0][0]=Z37 (Auftragstatus Sperren) and elements[1][0]=Z14 (erfolgreich status). Mirror of condition 93.",
      "description_hash": "00ff3dee",
      "is_external": false
    },
    "147": {
      "confidence": "high",
      "reasoning": "COM segment DE3155 (elements[0][1]) — checks for telephone (TE), fax (FX), or other non-email channel codes AJ/AL.",
      "description_hash": "6aac2a48",
      "is_external": false
    },
    "43": {
      "confidence": "high",
      "reasoning": "Finds STS segments where Statuskategorie elements[0][0] is Z01 (Prüfstatus Antwort auf Summenzeitreihen) and Status Code elements[1][0] is Z07. Presence indicates the Zustimmung code cluster applies per the segment structure reference.",
      "description_hash": "a85c3159",
      "is_external": false
    },
    "153": {
      "confidence": "high",
      "reasoning": "DE1131 is elements[2][1] in STS segments (component 1 of C556 Statusanlaß). The condition checks if the current STS has DE1131 = E_0286. has_segment_matching checks message-wide for an STS where elements[2][1] == E_0286. This matches the STS variant for 'Status des Umbaus der Messlokation' (Z15) which lists E_0286 as a valid DE1131 code.",
      "description_hash": "0ea98b9f",
      "is_external": false
    },
    "63": {
      "confidence": "high",
      "reasoning": "STS+Z27+Z32 vorhanden: identical to condition 52. The 'only codes from EBD-Cluster Ablehnung' clause is a value-set constraint; the condition itself just checks presence of STS+Z27+Z32.",
      "description_hash": "bceead95",
      "is_external": false
    },
    "133": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z37 (Auftragstatus Sperren) where DE1131 (elements[2][1]) equals E_1003.",
      "description_hash": "5baf7cfb",
      "is_external": false
    },
    "532": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation about using Netzlokation ID. Always returns True.",
      "description_hash": "9592f83e",
      "is_external": false
    },
    "935": {
      "confidence": "high",
      "reasoning": "Format condition checking HHMM portion of a DTM value equals 0500. Uses validate_hhmm_equals helper.",
      "description_hash": "192bd97e",
      "is_external": false
    },
    "61": {
      "confidence": "medium",
      "reasoning": "Mirror of condition 60: checks whether any SG15 with STS+Z28+Z32 (Fahrplananteil rejected) shares the same RFF+ACW as an SG15 with STS+Z27+Z32 (Ausfallarbeit rejected). The two conditions are semantically equivalent but expressed from different perspectives (the AHB uses them on different fields). Same SG14→SG15 navigator approach.",
      "description_hash": "a2b0ef3f",
      "is_external": false
    },
    "32": {
      "confidence": "high",
      "reasoning": "Checks QTY segment where DE6411 (unit code at elements[0][2] within C186 composite) is KWT or K5 (kilowatts). Message-wide fallback for the SG16-scoped check.",
      "description_hash": "dca23e0b",
      "is_external": false
    },
    "99": {
      "confidence": "high",
      "reasoning": "Same DE1131 check as condition 96 — checks elements[2][1]=E_0487. The 'dann ist nur der Code A01 möglich' clause is a constraint implication, not an additional check; the evaluable predicate is identical to condition 96.",
      "description_hash": "7e44e87a",
      "is_external": false
    },
    "85": {
      "confidence": "medium",
      "reasoning": "STS+Z37 (Sperren) with Status Z32 (Ablehnung) and Statusanlass DE9013=A01 (Codeliste E_0501). Checks elements[0][0]=Z37, elements[1][0]=Z32, elements[2][0]=A01. Message-wide search used as SG14/SG15 child group traversal is not in documented helpers.",
      "description_hash": "ccdd4cd0",
      "is_external": false
    },
    "145": {
      "confidence": "medium",
      "reasoning": "Checks that in some SG15 instance, RFF+Z13 (mandatory Prüfidentifikator) is present but RFF+Z17 (Preisschlüsselstamm reference) is absent.",
      "description_hash": "f84ebc8e",
      "is_external": false
    },
    "55": {
      "confidence": "high",
      "reasoning": "STS+Z30+Z32: find STS where elements[0][0]==\"Z30\" (Gegenvorschlag Fahrplananteil), check elements[1][0]==\"Z32\".",
      "description_hash": "77d1e5b6",
      "is_external": false
    },
    "951": {
      "confidence": "medium",
      "reasoning": "Format condition validating Zählpunktbezeichnung (33 alphanumeric chars). In IFTSTA, Zählpunkt is typically associated with LOC+Z19 (Messlokation/Zählpunkt). Uses validate_zahlpunkt helper. Medium confidence because the exact LOC qualifier for Zählpunkt in IFTSTA may vary — could also be a different qualifier depending on context.",
      "description_hash": "f35fc481",
      "is_external": false
    },
    "92": {
      "confidence": "high",
      "reasoning": "Checks if any STS segment has DE1131 (elements[2][1] in C556) equal to E_0501. E_0501 appears in the Auftragstatus Sperren (Z37) STS variant.",
      "description_hash": "9fa9c68f",
      "is_external": false
    },
    "10": {
      "confidence": "high",
      "reasoning": "Whether a message from BKV/NB/ÜNB arrives after the deadline (nach Frist) cannot be determined from the EDIFACT message content itself — it requires comparison of the message receipt timestamp against a business-defined deadline, both of which are external to the message.",
      "description_hash": "a95c765d",
      "is_external": true
    },
    "144": {
      "confidence": "medium",
      "reasoning": "Checks that in some SG15 instance (inside SG14 for IFTSTA Family B), RFF+Z13 (Prüfidentifikator, always present) is present but RFF+Z45 (Artikel-ID reference) is absent. Uses RFF+Z13 as the anchor since it is mandatory in every SG15.",
      "description_hash": "3c3a94d3",
      "is_external": false
    },
    "504": {
      "confidence": "high",
      "reasoning": "Hinweis informational note — always returns True unconditionally.",
      "description_hash": "249fdf5f",
      "is_external": false
    },
    "120": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z21 (Bestellung) where DE1131 (elements[2][1]) equals E_0529.",
      "description_hash": "71a6bd8b",
      "is_external": false
    },
    "60": {
      "confidence": "medium",
      "reasoning": "Checks whether any SG15 with STS+Z27+Z32 (Ausfallarbeit rejected) shares the same RFF+ACW reference value as an SG15 with STS+Z28+Z32 (Fahrplananteil rejected), within the same SG14 transaction group. Assumes SG15 is a child group of SG14 (consistent with IFTSTA Family B tx_group=SG14).",
      "description_hash": "24a1a5ae",
      "is_external": false
    },
    "934": {
      "confidence": "high",
      "reasoning": "Format condition checking HHMM portion of a DTM value equals 0400. Uses validate_hhmm_equals helper.",
      "description_hash": "d06a46c8",
      "is_external": false
    },
    "16": {
      "confidence": "high",
      "reasoning": "Whether the MP-ID in SG1 NAD+MR has the market role BKV (Bilanzkreisverantwortlicher) cannot be determined from the EDIFACT message alone — NAD+MR only contains the party identifier, not their role classification. Role determination requires external business context.",
      "description_hash": "d6343b1c",
      "is_external": true
    },
    "501": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation documenting that the value originates from QUOTES BGM DE1004. Always applies unconditionally with no boolean predicate.",
      "description_hash": "450b3696",
      "is_external": false
    },
    "519": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation documenting value origin from ORDERS BGM DE1004. Always returns True.",
      "description_hash": "cdb82de2",
      "is_external": false
    },
    "154": {
      "confidence": "medium",
      "reasoning": "Checks for STS in SG14/SG15 with Statuskategorie Z15 (Status des Umbaus der Messlokation), Status Z13, and Statusanlaß A99:E_0286. Uses has_segment_matching_in_group with authoritative element indices from the segment reference: elements[0][0]=Z15, elements[1][0]=Z13, elements[2][0]=A99 (DE9013 Prüfschritt), elements[2][1]=E_0286 (DE1131 Codeliste). Medium confidence because A99 is not listed in the abbreviated reference for this STS variant (reference shows Z74/Z75), so it may be an additional valid code from the full BDEW codelist.",
      "description_hash": "34f65260",
      "is_external": false
    },
    "44": {
      "confidence": "high",
      "reasoning": "Finds STS segments where Statuskategorie elements[0][0] is Z01 and Status Code elements[1][0] is Z08. Presence indicates the Ablehnung code cluster applies per the segment structure reference.",
      "description_hash": "ffb7805b",
      "is_external": false
    },
    "64": {
      "confidence": "high",
      "reasoning": "STS+Z28+Z30 vorhanden: find STS where elements[0][0]==\"Z28\" (Fahrplananteil), check elements[1][0]==\"Z30\" (Zustimmung).",
      "description_hash": "2e4df2d5",
      "is_external": false
    },
    "57": {
      "confidence": "medium",
      "reasoning": "Same cross-SG15 comparison pattern as condition 56, but referencing STS+Z28 (Status des Fahrplananteils) instead of Z27.",
      "description_hash": "5c5954c6",
      "is_external": false
    },
    "6": {
      "confidence": "medium",
      "reasoning": "The condition states that when BIKO has a Prüfstatus for the 3-tuple (MaBiS-ZP, Betrachtungszeitraum, Version), it must always be transmitted together with the Datenstatus. Interpreted as: this condition is True when STS with Z03 category (Prüfstatus zur Summenzeitreihe) is present in the message, triggering the co-transmission requirement. The BIKO role context is implicit in the message structure.",
      "description_hash": "76154df7",
      "is_external": false
    },
    "491": {
      "confidence": "high",
      "reasoning": "Checks if the CCYYMMDD portion of the DTM value falls within the MEZ (German winter time, UTC+1) period as defined in Kapitel 3.6. Uses the is_mez_utc() format validation helper which implements the EU DST rule.",
      "description_hash": "305e3493",
      "is_external": false
    },
    "903": {
      "confidence": "medium",
      "reasoning": "Format condition requiring value == 1. Uses validate_numeric with == operator. Targets QTY segment value (elements[0][1]) as most common numeric value field in IFTSTA context.",
      "description_hash": "ef3b7862",
      "is_external": false
    },
    "48": {
      "confidence": "high",
      "reasoning": "Unconditional restriction: only Zustimmung cluster codes are possible at this position. No qualifying condition — always evaluates to True to enforce the code cluster constraint.",
      "description_hash": "66dc7705",
      "is_external": false
    },
    "139": {
      "confidence": "medium",
      "reasoning": "Condition checks if DE1131=E_1020 in STS Z38 (Auftragstatus Entsperren). The clause 'dann ist nur der Code A01 möglich' documents that when this condition is true, only code A01 is valid for the dependent field — this is a downstream validation note, not an additional condition predicate. Implementation is identical to condition 138.",
      "description_hash": "d6803868",
      "is_external": false
    },
    "535": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation that value comes from UTILMD IDE DE7402. Always returns True.",
      "description_hash": "eb18b623",
      "is_external": false
    },
    "135": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z21 (Bestellung) where DE9013 (elements[2][0]) equals A99. Group-scoped to SG15 but message-wide fallback via has_qualified_value.",
      "description_hash": "7067c907",
      "is_external": false
    },
    "131": {
      "confidence": "medium",
      "reasoning": "Check STS with Statuskategorie Z37 (Auftragstatus Sperren), Status Z13, DE9013 in {A04,A05,A06} (elements[2][0]), and DE1131 E_1003 (elements[2][1]). Group-scoped to SG14 but falls back to message-wide.",
      "description_hash": "929fe380",
      "is_external": false
    },
    "31": {
      "confidence": "high",
      "reasoning": "Checks QTY segment where DE6411 (unit code at elements[0][2] within C186 composite) is KWH or K3 (kilowatt-hours). Message-wide fallback for the SG16-scoped check since no QTY-specific group helper exists.",
      "description_hash": "a72da16c",
      "is_external": false
    },
    "27": {
      "confidence": "high",
      "reasoning": "Whether an MP-ID belongs to the electricity sector (Sparte Strom) vs. gas or other sectors requires external lookup against market participant registry data. The MP-ID value in NAD segments is an opaque identifier — sector classification is not embedded in the EDIFACT message.",
      "description_hash": "f3221dba",
      "is_external": true
    },
    "53": {
      "confidence": "high",
      "reasoning": "STS+Z28+Z32: find STS where elements[0][0]==\"Z28\" (Statuskategorie=Z28, Fahrplananteil), check elements[1][0]==\"Z32\". Direct match using has_qualified_value.",
      "description_hash": "9647225c",
      "is_external": false
    },
    "130": {
      "confidence": "medium",
      "reasoning": "Check STS with Statuskategorie Z20, Status Z32, Prüfschritt A99 (elements[2][0]), and DE1131 E_0531 (elements[2][1]). Group-scoped to SG14 but falls back to message-wide search.",
      "description_hash": "e1311b8f",
      "is_external": false
    },
    "537": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational note explaining why a code is required across all use cases where the information cannot be derived from a decision tree. Always applies unconditionally.",
      "description_hash": "7c77badd",
      "is_external": false
    },
    "30": {
      "confidence": "medium",
      "reasoning": "Checks STS segment for Statuskategorie Z20 (elements[0][0]), Status Z32 (elements[1][0]), Prüfschritt A07 (elements[2][0]), and Codeliste E_0207 (elements[2][1]). Uses message-wide low-level access since no group-scoped helper supports simultaneous multi-field checks on a single segment. The 'A07' code is taken from the AHB shorthand notation at DE9013 position per the segment structure reference.",
      "description_hash": "6046a1d9",
      "is_external": false
    },
    "72": {
      "confidence": "high",
      "reasoning": "Whether a counter-proposal can be created depends on external business rules and system state, not on the content of the EDIFACT message itself.",
      "description_hash": "d14cc8c0",
      "is_external": true
    },
    "117": {
      "confidence": "high",
      "reasoning": "Whether the NAD+MR recipient is acting in the role of MSB (Messstellenbetreiber) cannot be determined from the EDIFACT message content alone — market participant roles are runtime business context.",
      "description_hash": "12ad921b",
      "is_external": true
    },
    "71": {
      "confidence": "medium",
      "reasoning": "Symmetric to condition 70: additionally to Ausfallarbeit counter-proposal (STS Z29 Z32) being rejected, the Fahrplananteil counter-proposal (STS Z30 Z32) is also rejected. Same simplification of the RFF+ACW cross-group correlation applies.",
      "description_hash": "a65ae076",
      "is_external": false
    },
    "59": {
      "confidence": "medium",
      "reasoning": "Same cross-SG15 comparison pattern as condition 56, but referencing STS+Z30 (Status des Gegenvorschlags des Fahrplananteils).",
      "description_hash": "abae0e02",
      "is_external": false
    },
    "98": {
      "confidence": "high",
      "reasoning": "Checks STS where elements[0][0]=Z38 (Auftragstatus Entsperren) and elements[1][0]=Z14 (erfolgreich). Mirror of condition 97.",
      "description_hash": "a31d91f7",
      "is_external": false
    },
    "512": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation documenting value origin from MSCONS BGM DE1004. Always returns True.",
      "description_hash": "a27ff5a6",
      "is_external": false
    },
    "961": {
      "confidence": "medium",
      "reasoning": "SR-ID (Steuerbare Ressource ID) uses the same 11-digit Luhn check digit format as Marktlokations-ID. LOC+Z19 is the standard qualifier for SteuerbareRessource. Element 1, component 0 holds the location ID.",
      "description_hash": "99d3e1d7",
      "is_external": false
    },
    "33": {
      "confidence": "high",
      "reasoning": "Checks if DTM with qualifier 163 (Beginn Messperiode / Beginn des Zeitraums, elements[0][0]) is present in the SG16 group context. Falls back to message-wide search when no navigator is available.",
      "description_hash": "48b5264e",
      "is_external": false
    },
    "84": {
      "confidence": "medium",
      "reasoning": "STS+Z38 (Entsperren) with Status Z13 and Statusanlass DE9013=A02 (Codeliste E_0499). Checks elements[0][0]=Z38, elements[1][0]=Z13, elements[2][0]=A02. Message-wide search used as SG14/SG15 child group traversal is not in documented helpers.",
      "description_hash": "e1b044fb",
      "is_external": false
    },
    "17": {
      "confidence": "high",
      "reasoning": "Whether a message from BKV arrives at the wrong aggregation level is a business context check that cannot be determined from the EDIFACT message content alone — requires knowledge of the expected aggregation level for the market participant.",
      "description_hash": "a4e7decb",
      "is_external": true
    },
    "531": {
      "confidence": "high",
      "reasoning": "This is a Hinweis (informational note) describing the provenance and intended use of the field value — the transaction number used by MSBN in step 1 of the process document, for use by LF when ordering a configuration contingent on a successful MSB switch. It documents field semantics, not a boolean predicate, and always applies.",
      "description_hash": "32f63123",
      "is_external": false
    },
    "902": {
      "confidence": "medium",
      "reasoning": "Format condition requiring value >= 0. Applied to QTY segment value (elements[0][1]) which is the standard location for quantity values in EDIFACT. Uses validate_numeric helper with >= 0.0.",
      "description_hash": "42d45052",
      "is_external": false
    },
    "29": {
      "confidence": "high",
      "reasoning": "The role ÜNB (Übertragungsnetzbetreiber) of the NAD+MR recipient cannot be derived from the EDIFACT message; requires external market participant role registry lookup.",
      "description_hash": "ca618921",
      "is_external": true
    },
    "26": {
      "confidence": "high",
      "reasoning": "Whether the MP-ID in SG1 NAD+MR has the market role NB (Netzbetreiber) requires external business context — the NAD segment only carries the party identifier. Role classification is not encoded in the EDIFACT message itself.",
      "description_hash": "cc9bd757",
      "is_external": true
    },
    "45": {
      "confidence": "high",
      "reasoning": "Finds STS segments where Statuskategorie elements[0][0] is Z03 (Prüfstatus zur Summenzeitreihe) and Status Code elements[1][0] is Z07. Presence confirms the Zustimmung cluster applies.",
      "description_hash": "775dbdce",
      "is_external": false
    },
    "118": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z21 (Bestellung) where DE1131 (elements[2][1]) equals E_0526. E_0526 is listed under Bestellung STS codes.",
      "description_hash": "0e080cc1",
      "is_external": false
    },
    "534": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation that only one value may be transmitted in DE3148. Always returns True.",
      "description_hash": "b7cc061b",
      "is_external": false
    },
    "58": {
      "confidence": "medium",
      "reasoning": "Same cross-SG15 comparison pattern as condition 56, but referencing STS+Z29 (Status des Gegenvorschlags der Ausfallarbeit).",
      "description_hash": "80ecd449",
      "is_external": false
    },
    "143": {
      "confidence": "medium",
      "reasoning": "STS Z41 (Grund der Privilegierung nach EnFG) supports up to 5 C556 groups (elements[2]-[6]). 'mehr als ein Grund' is indicated when elements[3][0] (second C556 DE9013) is non-empty, meaning the first slot alone was insufficient. Medium confidence because the exact threshold depends on which positional slot this condition guards.",
      "description_hash": "24f61146",
      "is_external": false
    },
    "136": {
      "confidence": "medium",
      "reasoning": "Check STS with Statuskategorie Z38 (Auftragstatus Entsperren), Status Z13, Prüfschritt A02 (elements[2][0]), and DE1131 E_1005 (elements[2][1]). Group-scoped to SG14 but falls back to message-wide.",
      "description_hash": "9c5d5f14",
      "is_external": false
    },
    "47": {
      "confidence": "high",
      "reasoning": "Unconditional restriction: only Ablehnung cluster codes are possible at this position. No qualifying condition — always evaluates to True to enforce the code cluster constraint.",
      "description_hash": "e24adc62",
      "is_external": false
    },
    "523": {
      "confidence": "high",
      "reasoning": "Hinweis: informational annotation describing where a value comes from. Always applies unconditionally.",
      "description_hash": "85e3ed2c",
      "is_external": false
    },
    "66": {
      "confidence": "high",
      "reasoning": "STS+Z29+Z30 vorhanden: find STS where elements[0][0]==\"Z29\" (Gegenvorschlag Ausfallarbeit), check elements[1][0]==\"Z30\" (Zustimmung).",
      "description_hash": "0f5cc580",
      "is_external": false
    },
    "505": {
      "confidence": "high",
      "reasoning": "Hinweis informational note — always returns True unconditionally.",
      "description_hash": "d7954b75",
      "is_external": false
    },
    "931": {
      "confidence": "medium",
      "reasoning": "Format condition: timezone must be UTC (+00). Uses validate_timezone_utc on the DTM value field. Targets first DTM segment found.",
      "description_hash": "825c510c",
      "is_external": false
    },
    "490": {
      "confidence": "high",
      "reasoning": "Checks if the CCYYMMDD portion of the DTM value falls within the MESZ (German summer time, UTC+2) period as defined in Kapitel 3.5. Uses the is_mesz_utc() format validation helper which implements the EU DST rule.",
      "description_hash": "b21c790d",
      "is_external": false
    },
    "520": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation describing the point in time at which a switch occurs if it takes place. Always returns True.",
      "description_hash": "e6f61892",
      "is_external": false
    },
    "129": {
      "confidence": "medium",
      "reasoning": "Check STS with Statuskategorie Z20, Status Z32, Prüfschritt A99 (elements[2][0]), and DE1131 E_0524 (elements[2][1]). Group-scoped to SG14 but falls back to message-wide search.",
      "description_hash": "7df1d73b",
      "is_external": false
    },
    "911": {
      "confidence": "high",
      "reasoning": "This is an informational note (Hinweis) describing that values must start at 1 and increment sequentially per message. Runtime sequential validation cannot be expressed with the available API — treating as informational annotation that always applies.",
      "description_hash": "d53234ee",
      "is_external": false
    },
    "49": {
      "confidence": "high",
      "reasoning": "Finds STS segments where Statuskategorie elements[0][0] is Z25 (Status des Lieferscheins) and Status Code elements[1][0] is Z30. Presence confirms the Zustimmung cluster applies per the segment structure reference.",
      "description_hash": "783a3673",
      "is_external": false
    },
    "932": {
      "confidence": "medium",
      "reasoning": "Format condition: HHMM must equal 2200. Uses validate_hhmm_equals. DTM+163 is a common time qualifier in IFTSTA for delivery end times.",
      "description_hash": "943b98c4",
      "is_external": false
    },
    "960": {
      "confidence": "medium",
      "reasoning": "Netzlokations-ID uses the same 11-digit Luhn check digit format as Marktlokations-ID. LOC+Z18 is the standard qualifier for Netzlokation in IFTSTA. Element 1, component 0 holds the location ID.",
      "description_hash": "0ce0bd80",
      "is_external": false
    },
    "67": {
      "confidence": "high",
      "reasoning": "STS Z29 = Statuskategorie for Gegenvorschlag der Ausfallarbeit. Check elements[0][0]=Z29 (qualifier) and elements[1][0]=Z32 (Status, Ablehnung). Condition is True when this STS variant exists, constraining allowable EBD cluster codes to Ablehnung.",
      "description_hash": "d0255067",
      "is_external": false
    },
    "1": {
      "confidence": "medium",
      "reasoning": "Whether transmission of non-codeable information is necessary is a business context decision that cannot be determined from the EDIFACT message content alone. It depends on whether the sending system has information that cannot be expressed via defined code lists.",
      "description_hash": "6e845713",
      "is_external": true
    },
    "906": {
      "confidence": "medium",
      "reasoning": "Format condition: max 3 decimal places. Applies to QTY segment value field (elements[0][1]).",
      "description_hash": "97bdb0c7",
      "is_external": false
    },
    "7": {
      "confidence": "low",
      "reasoning": "The condition checks for absence of Datenstatus values 'Abgerechnete Daten' and 'Abgerechnete Daten Korrektur-BKA'. These are specific code values in STS+Z04 at elements[1][1] (DE1131), but the exact BDEW code list values (e.g. E_0042, E_0043 are plausible guesses) cannot be confirmed from the MIG segment structure reference alone. Requires the full AHB code table to implement correctly.",
      "description_hash": "40e99b37",
      "is_external": false
    },
    "28": {
      "confidence": "high",
      "reasoning": "The sector (Gas/Strom) of an MP-ID cannot be determined from the EDIFACT message content alone; requires external lookup of the market participant's sector assignment in a registry.",
      "description_hash": "8cea5aed",
      "is_external": true
    },
    "46": {
      "confidence": "high",
      "reasoning": "Finds STS segments where Statuskategorie elements[0][0] is Z03 and Status Code elements[1][0] is Z08. Presence confirms the Ablehnung cluster applies.",
      "description_hash": "9c52f1da",
      "is_external": false
    },
    "97": {
      "confidence": "high",
      "reasoning": "Checks STS where elements[0][0]=Z38 (Auftragstatus Entsperren) and elements[1][0]=Z13 (gescheitert). Uses has_qualified_value analogously to condition 93.",
      "description_hash": "48ac4049",
      "is_external": false
    },
    "121": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z21 (Bestellung) where DE1131 (elements[2][1]) equals E_0536.",
      "description_hash": "1bdf0734",
      "is_external": false
    },
    "77": {
      "confidence": "high",
      "reasoning": "Check within SG14 group instances: STS with Statuskategorie Z37 (Auftragstatus Sperren) and Status code Z14 (erfolgreich abgeschlossen). elements[0][0]=Z37 as qualifier filter, elements[1][0]=Z14 as value check.",
      "description_hash": "81a4c9a1",
      "is_external": false
    },
    "146": {
      "confidence": "high",
      "reasoning": "COM segment: C076 composite is elements[0], DE3155 (communication channel code) is component [0][1]. Checks if any COM segment has channel code 'EM' (email).",
      "description_hash": "f7255aef",
      "is_external": false
    },
    "50": {
      "confidence": "high",
      "reasoning": "Finds STS segments where Statuskategorie elements[0][0] is Z25 and Status Code elements[1][0] is Z31. Presence confirms the Ablehnung cluster applies per the segment structure reference.",
      "description_hash": "d30fb61b",
      "is_external": false
    },
    "83": {
      "confidence": "medium",
      "reasoning": "STS+Z37 (Sperren) with Status Z13 and Statusanlass (elements[2][0], DE9013) in {A04, A05, A06}. The Codeliste code E_0472 in elements[2][1] is not checked as the primary discriminator is the DE9013 Prüfschritt code. Message-wide search is used as group-scoped SG15 traversal is not available via documented helpers.",
      "description_hash": "b6d7e077",
      "is_external": false
    },
    "70": {
      "confidence": "medium",
      "reasoning": "Condition 70 means: additionally to Fahrplananteil counter-proposal (STS Z30 Z32) being rejected, the Ausfallarbeit counter-proposal (STS Z29 Z32) is also rejected. The 'identischem Wert aus RFF+ACW' (same RFF+ACW reference) cross-group correlation is simplified — checks that both rejection STS types are present in the message. Full cross-SG14 value matching would require navigator group enumeration not fully supported by current helpers.",
      "description_hash": "21375850",
      "is_external": false
    },
    "493": {
      "confidence": "high",
      "reasoning": "The NAD+MR segment (recipient MP-ID) can be read from the message, but whether the market participant belongs to 'Sparte Gas' requires an external market participant registry lookup. The sector affiliation is not encoded in the EDIFACT message itself.",
      "description_hash": "75612dee",
      "is_external": true
    },
    "521": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation describing the point in time from which the MSBN actually takes over metering operations. Always returns True.",
      "description_hash": "ce831f68",
      "is_external": false
    },
    "3": {
      "confidence": "high",
      "reasoning": "Checks that no STS segment exists with elements[0][0]='Z01' (Prüfstatus Antwort auf Summenzeitreihen). Direct absence check using lacks_qualifier.",
      "description_hash": "524f36ab",
      "is_external": false
    },
    "54": {
      "confidence": "high",
      "reasoning": "STS+Z29+Z32: find STS where elements[0][0]==\"Z29\" (Gegenvorschlag Ausfallarbeit), check elements[1][0]==\"Z32\".",
      "description_hash": "3945d979",
      "is_external": false
    },
    "506": {
      "confidence": "high",
      "reasoning": "Hinweis informational note — always returns True unconditionally.",
      "description_hash": "9727b89c",
      "is_external": false
    },
    "86": {
      "confidence": "high",
      "reasoning": "'Wenn MP-ID in SG1 NAD+MS in der Rolle LF' checks whether the sender market participant (NAD+MS) has the role LF (Lieferant). Market participant roles cannot be determined from the BDEW/DVGW MP-ID in the EDIFACT message alone — requires external market role registry lookup.",
      "description_hash": "c618521b",
      "is_external": true
    },
    "8": {
      "confidence": "high",
      "reasoning": "The condition depends on external business context: whether the message is from BIKO to NB, whether the relevant entity is classified as a NZR (Netto-Zeitreihe), and whether the Datenstatus is absent for that entity. Sender/receiver roles and entity type classification cannot be determined from the EDIFACT message content alone.",
      "description_hash": "ce6dded2",
      "is_external": true
    },
    "103": {
      "confidence": "medium",
      "reasoning": "DE1131 (Codeliste, Code) appears at elements[2][1] in the majority of STS variants per the segment structure reference (C556, second component). Condition is True when that position is absent or empty. The 'in diesem STS' scope cannot be fully resolved without a current-segment concept in EvaluationContext, so this checks all STS segments. Note: STS+Z04 has DE1131 at elements[1][1] instead — this edge case is not covered.",
      "description_hash": "b4e8ec46",
      "is_external": false
    },
    "79": {
      "confidence": "medium",
      "reasoning": "STS+Z37 (Sperren) is absent in the SG14 that contains STS+Z38 (Entsperren). Symmetric to condition 78 — finds SG14 where STS+Z38 is present but STS+Z37 is not.",
      "description_hash": "c57bf964",
      "is_external": false
    },
    "76": {
      "confidence": "high",
      "reasoning": "'Wenn MP-ID in SG1 NAD+MR in der Rolle ESA' checks whether the recipient market participant (NAD+MR) has the role ESA (Energiedienstleister mit Sonderverteilung). Market participant roles cannot be determined from the MP-ID in the EDIFACT message alone — requires external role registry lookup.",
      "description_hash": "25f93c25",
      "is_external": true
    },
    "100": {
      "confidence": "high",
      "reasoning": "Checks STS where elements[0][0]=Z43 (Bearbeitungsstatus) and elements[1][0]=Z47. Uses has_qualified_value with category qualifier on element 0 and status code check on element 1 component 0.",
      "description_hash": "f8494ead",
      "is_external": false
    },
    "134": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z37 (Auftragstatus Sperren) where DE1131 (elements[2][1]) equals E_1002.",
      "description_hash": "fca554e6",
      "is_external": false
    },
    "503": {
      "confidence": "high",
      "reasoning": "Hinweis informational note — always returns True unconditionally.",
      "description_hash": "078bdff3",
      "is_external": false
    },
    "20": {
      "confidence": "high",
      "reasoning": "Whether the MP-ID in SG1 NAD+MR has the market role LF (Lieferant) requires external business context — the NAD segment only carries the party identifier. Role classification is not encoded in the EDIFACT message itself.",
      "description_hash": "b6ef0538",
      "is_external": true
    },
    "522": {
      "confidence": "high",
      "reasoning": "Hinweis condition — informational annotation describing the point in time from which the gMSB takes over metering operations. Always returns True.",
      "description_hash": "bffc0853",
      "is_external": false
    },
    "137": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z38 (Auftragstatus Entsperren) where DE1131 (elements[2][1]) equals E_1005.",
      "description_hash": "b4faaf7b",
      "is_external": false
    },
    "19": {
      "confidence": "high",
      "reasoning": "Checks that no STS segment exists with elements[0][0]='Z24' (Ersteinbau mME Planungsstatus). Direct absence check using lacks_qualifier.",
      "description_hash": "3e7dcc5a",
      "is_external": false
    },
    "95": {
      "confidence": "high",
      "reasoning": "Checks if any STS segment has DE1131 (elements[2][1] in C556) equal to E_0499. E_0499 appears in the Auftragstatus Entsperren (Z38) STS variant.",
      "description_hash": "c3761005",
      "is_external": false
    },
    "148": {
      "confidence": "high",
      "reasoning": "Checks for STS Bearbeitungsstatus with category Z43 (elements[0][0]), status code Z48 (elements[1][0]), DE9013 code A99 (elements[2][0]), and DE1131 codeliste code E_0595 (elements[2][1]).",
      "description_hash": "701a98ea",
      "is_external": false
    },
    "151": {
      "confidence": "high",
      "reasoning": "STS+Z20+Z32+A99:E_0278 maps to: elements[0][0]=Z20 (Statuskategorie), elements[1][0]=Z32 (Status, Code), elements[2][0]=A99 (DE9013 Code des Prüfschritts), elements[2][1]=E_0278 (DE1131 Codeliste). Uses has_segment_matching_in_group for group-scoped multi-element match within SG14.",
      "description_hash": "d6193de5",
      "is_external": false
    },
    "68": {
      "confidence": "high",
      "reasoning": "STS Z30 = Statuskategorie for Gegenvorschlag des Fahrplananteils. Check elements[0][0]=Z30 and elements[1][0]=Z30 (Zustimmung). Condition is True when this acceptance STS exists.",
      "description_hash": "6504c270",
      "is_external": false
    },
    "5": {
      "confidence": "high",
      "reasoning": "Checks that no STS segment exists with elements[0][0]='Z03' (Prüfstatus zur Summenzeitreihe). Direct absence check using lacks_qualifier.",
      "description_hash": "2469359b",
      "is_external": false
    },
    "940": {
      "confidence": "medium",
      "reasoning": "Checks if any COM segment value starts with '+' and is followed only by digits — the international phone number format (E.164). This is the standard pattern for phone number validation in German energy market EDIFACT messages.",
      "description_hash": "de8363bc",
      "is_external": false
    },
    "150": {
      "confidence": "medium",
      "reasoning": "Identical pattern to condition 149 but checks DE1131 != E_0281. Returns True if any STS in SG14 has DE1131 present and not equal to E_0281, False if all equal E_0281, Unknown if absent.",
      "description_hash": "9fff359d",
      "is_external": false
    },
    "119": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z21 (Bestellung) where DE1131 (elements[2][1]) equals E_0528.",
      "description_hash": "4d292579",
      "is_external": false
    },
    "494": {
      "confidence": "medium",
      "reasoning": "The date must be the document creation time (DTM+137) or earlier. Applied to DTM+334 (Zeitpunkt der Statusvergabe) which is the most natural target in IFTSTA. Format 303 timestamps are lexicographically ordered so string comparison is valid.",
      "description_hash": "e0eddcc9",
      "is_external": false
    },
    "18": {
      "confidence": "high",
      "reasoning": "Checks that no STS segment exists with elements[0][0]='Z19' (Ersteinbau iMS Planungsstatus). Direct absence check using lacks_qualifier.",
      "description_hash": "a26dfa5c",
      "is_external": false
    },
    "142": {
      "confidence": "high",
      "reasoning": "Checks if any STS segment has DE1131 (elements[2][1], the Codeliste code in C556) equal to 'E_0535'. Straightforward value check.",
      "description_hash": "f2aad151",
      "is_external": false
    },
    "152": {
      "confidence": "high",
      "reasoning": "Identical pattern to condition 151 but for E_0281 instead of E_0278. STS+Z20+Z32+A99:E_0281 with the same element positions. Uses has_segment_matching_in_group for SG14-scoped multi-element match.",
      "description_hash": "68abb5ca",
      "is_external": false
    },
    "524": {
      "confidence": "high",
      "reasoning": "Hinweis: informational annotation describing where a value comes from. Always applies unconditionally.",
      "description_hash": "dd973571",
      "is_external": false
    },
    "80": {
      "confidence": "high",
      "reasoning": "Check within SG14 group instances: STS with Statuskategorie Z38 (Auftragstatus Entsperren) and Status code Z14. elements[0][0]=Z38 as qualifier filter, elements[1][0]=Z14 as value check.",
      "description_hash": "398e23f5",
      "is_external": false
    },
    "950": {
      "confidence": "high",
      "reasoning": "Format condition validating Marktlokations-ID (11-digit with Luhn check). Looks up LOC+Z16 segment and validates the ID in element 1 component 0 using validate_malo_id helper.",
      "description_hash": "a9ddfaec",
      "is_external": false
    },
    "132": {
      "confidence": "medium",
      "reasoning": "Check STS with Statuskategorie Z37 (Auftragstatus Sperren), Status Z32, Prüfschritt A01 (elements[2][0]), and DE1131 E_1002 (elements[2][1]). Group-scoped to SG14 but falls back to message-wide.",
      "description_hash": "78b2cf0b",
      "is_external": false
    },
    "114": {
      "confidence": "high",
      "reasoning": "Whether the NAD+MS sender is acting in the role of MSB (Messstellenbetreiber) cannot be determined from the EDIFACT message content alone — market participant roles are runtime business context.",
      "description_hash": "69f7033d",
      "is_external": true
    },
    "52": {
      "confidence": "high",
      "reasoning": "STS+Z27+Z32: find STS where elements[0][0]==\"Z27\" (Statuskategorie=Z27, Ausfallarbeit), check elements[1][0]==\"Z32\" (Status=Z32, abgelehnt). Direct match using has_qualified_value.",
      "description_hash": "b47ac60e",
      "is_external": false
    },
    "56": {
      "confidence": "medium",
      "reasoning": "Cross-SG15 comparison: find SG15 instances with STS+Z27, collect their RFF+ACW values, then check if any SG15's RFF+ACW differs. Requires low-level navigator access. Medium confidence because the exact group path (SG14→SG15) is inferred from IFTSTA Family B structure.",
      "description_hash": "634df52f",
      "is_external": false
    },
    "138": {
      "confidence": "high",
      "reasoning": "Check any STS with Statuskategorie Z38 (Auftragstatus Entsperren) where DE1131 (elements[2][1]) equals E_1020.",
      "description_hash": "a08ac0ec",
      "is_external": false
    },
    "78": {
      "confidence": "medium",
      "reasoning": "STS+Z38 (Entsperren) is absent in the SG14 that contains STS+Z37 (Sperren). Uses any_group_has_qualifier_without to find an SG14 instance where STS+Z37 is present but STS+Z38 is not, covering the intra-SG14 scoping requirement.",
      "description_hash": "e57d8c61",
      "is_external": false
    },
    "101": {
      "confidence": "high",
      "reasoning": "Checks STS where elements[0][0]=Z43 (Bearbeitungsstatus) and elements[1][0]=Z48. Mirror of condition 100 for the 'keine Änderung der Daten' cluster.",
      "description_hash": "aa3859a2",
      "is_external": false
    }
  }
}