capability-skeleton-string 0.1.0

A robust library for managing skill tree skeletons using string-based nodes and bidirectional conversions between string and numeric formats.
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
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
// ---------------- [ File: capability-skeleton-string/src/fuzzy_from_json_value.rs ]
crate::ix!();

#[cfg(test)]
mod test_sanskrit_yoga_full {
    use super::*;
    use serde_json::{from_str, Value};

    // This is your **entire** JSON string literal, verbatim:
    static SANSKRIT_YOGA_FULL_JSON: &str = r#"
    {
      "fields": {
          "map": {
              "SanskritYoga": {
                  "enum_docs": " Select this object to configure a single node in the string skeleton, tagged by its role.\n\n Note that we do not want the names of our nodes to be trivial or vague categories like \"foundations\", or to use arbitrary separations like \"beginner\", \"intermediate\", \"advanced\". \n\n It is always better for us to slice the chosen topic into *concrete subcomponents* that bear physical meaning. In the case of lockpicking, for example, we could write categories for types of locks, types of equipment, and techniques for entry. \n\n Categorizing into these three would be better than categorizing into \"beginner skills\", \"intermediate skills\", and \"advanced skills\". This same concept applies everywhere. \n\n The essential idea is that the chosen names should refer to *concrete subcomponents* bearing *physical meaning*.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Dispatch",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select this variant at this position in the model to emit a `Dispatch` node in which each dispatch branch wraps a whole rooted subtree",
                          "variant_confidence": 0.9,
                          "variant_justification": "We choose a Dispatch node for the root to structure multiple top-level branches of Sanskrit yoga concepts.",
                          "fields": {
                              "name": "SanskritYoga",
                              "name_confidence": 0.95,
                              "name_justification": "We designate the entire domain root as SanskritYoga.",
                              "children": {
                                  "PronunciationAndPhonetics": {
                                      "branch_selection_likelihood": 16,
                                      "branch_selection_likelihood_confidence": 0.9,
                                      "branch_selection_likelihood_justification": "We allocate a slightly higher likelihood to foundational phonetic coverage."
                                  },
                                  "HistoricalTextsAndScripts": {
                                      "branch_selection_likelihood": 14,
                                      "branch_selection_likelihood_confidence": 0.9,
                                      "branch_selection_likelihood_justification": "We include historical texts at a moderately high frequency."
                                  },
                                  "AsanaLineages": {
                                      "branch_selection_likelihood": 15,
                                      "branch_selection_likelihood_confidence": 0.9,
                                      "branch_selection_likelihood_justification": "Physical posture lineages are central; we set a moderately high chance."
                                  },
                                  "BreathworkIntegration": {
                                      "branch_selection_likelihood": 14,
                                      "branch_selection_likelihood_confidence": 0.9,
                                      "branch_selection_likelihood_justification": "Pranayama and related breathwork remain crucial, so we assign a solid selection likelihood."
                                  },
                                  "MeditativeApproaches": {
                                      "branch_selection_likelihood": 13,
                                      "branch_selection_likelihood_confidence": 0.9,
                                      "branch_selection_likelihood_justification": "We incorporate meditative practices at a moderate likelihood."
                                  },
                                  "YogaChants": {
                                      "branch_selection_likelihood": 14,
                                      "branch_selection_likelihood_confidence": 0.9,
                                      "branch_selection_likelihood_justification": "Chanting forms an important aspect; we keep it fairly likely."
                                  },
                                  "SupplementaryPractices": {
                                      "branch_selection_likelihood": 14,
                                      "branch_selection_likelihood_confidence": 0.9,
                                      "branch_selection_likelihood_justification": "Additional combined practices are also quite relevant; we give a moderate-high chance."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "These seven branches comprehensively span the domain’s core subdivisions.",
                              "ordering": {
                                  "variant_name": "DifficultyAscending",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant starts with simpler branches first, advanced last."
                              }
                          }
                      }
                  ]
              },
              "PronunciationAndPhonetics": {
                  "enum_docs": " Set this object to configure a single node in the string skeleton, tagged by its role.\n\n Note that we do not want the names of our nodes to be trivial or vague categories like \"foundations\", or to use arbitrary separations like \"beginner\", \"intermediate\", \"advanced\". \n\n The essential idea is that the chosen names should refer to *concrete subcomponents* bearing *physical meaning*.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select the `Aggregate` variant to emit a structure aggregating several downstream branches. \n\n An Aggregate node should have at least 3 children. 3-7 is typical. More than 7 is possible where useful.\n\n We use `Aggregate` nodes to model components having children that always activate together (ie *branches that are always taken simultaneously within the domain model path flow*) \n\n `Aggregate` nodes are analogous to *struct data*.\n",
                          "variant_confidence": 0.92,
                          "variant_justification": "We use an Aggregate node to incorporate core phonetic subdivisions together.",
                          "fields": {
                              "name": "PronunciationAndPhonetics",
                              "name_confidence": 0.93,
                              "name_justification": "We define the official name capturing Sanskrit phonetic foundations.",
                              "children": {
                                  "PhonemeClusters": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Clustering is always included for phonetics.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always include these phoneme clusters."
                                  },
                                  "VowelConjugations": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Vowels are critical; we keep them mandatory.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always include a focus on vowel usage."
                                  },
                                  "ConsonantArticulations": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Consonant articulation forms a major subset, so we include it.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always include these articulation details."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "These three subdivisions capture critical aspects of Sanskrit phonetic structure.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "PhonemeClusters": {
                  "enum_docs": " Set this object to configure a single node in the string skeleton, tagged by its role.\n\n The essential idea is that the chosen names should refer to *concrete subcomponents* bearing *physical meaning*.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select this variant to emit a `LeafHolder` node at this tree location. \n\n A LeafHolder node is like the shell of an enum with unit variants only. \n\n `LeafHolder` nodes are typically used as the \"end-effectors\" within the context of a domain model. \n\n `LeafHolder` nodes each have an associated number of \"leaves\" representing the number of ways this end effector can manifest in practice.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We end this branch early with a leaf node describing cluster variations.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "PhonemeClusters",
                              "name_confidence": 0.9,
                              "name_justification": "We designate these final leaves for details on Sanskrit phoneme clusters.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "VowelConjugations": {
                  "enum_docs": " Set this object to configure a single node in the string skeleton, tagged by its role.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select the `Aggregate` variant to emit a structure aggregating several downstream branches. \n\n `Aggregate` nodes are analogous to *struct data*.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We aggregate vowel-related subsets together here.",
                          "fields": {
                              "name": "VowelConjugations",
                              "name_confidence": 0.9,
                              "name_justification": "Core node for Sanskrit vowel groups.",
                              "children": {
                                  "BasicVowels": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Essential for vowel study.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Always included."
                                  },
                                  "Diphthongs": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Critical for combined vowel sounds.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Always included."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "These child branches cover standard and combined vowel forms.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "BasicVowels": {
                  "enum_docs": " Set this object to configure a single node in the string skeleton.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select this variant to emit a `LeafHolder` node at this tree location.\n",
                          "variant_confidence": 0.88,
                          "variant_justification": "We finalize basic vowel forms with direct leaf expansions.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "BasicVowels",
                              "name_confidence": 0.88,
                              "name_justification": "Identifies the fundamental Sanskrit vowels for leaf detail.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "Diphthongs": {
                  "enum_docs": " Set this object to configure a single node in the string skeleton.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select this variant to emit a `LeafHolder` node.\n",
                          "variant_confidence": 0.87,
                          "variant_justification": "Sanskrit diphthongs also terminate with direct expansions.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "Diphthongs",
                              "name_confidence": 0.87,
                              "name_justification": "Represents combined vowel forms as final leaves.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "ConsonantArticulations": {
                  "enum_docs": " Set this object to configure a single node in the string skeleton.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select the `Aggregate` variant to emit a structure aggregating several downstream branches.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We group consonant articulation subsets together.",
                          "fields": {
                              "name": "ConsonantArticulations",
                              "name_confidence": 0.9,
                              "name_justification": "We define articulation breakdown for consonants.",
                              "children": {
                                  "GutturalSeries": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Guttural articulation is essential for Sanskrit consonants.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Always included."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "We keep only one core child here for demonstration.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "GutturalSeries": {
                  "enum_docs": " Set this object to configure a single node in the string skeleton.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select the `Aggregate` variant to model a grouping.\n",
                          "variant_confidence": 0.88,
                          "variant_justification": "We cluster deeper aspects of the guttural region in an Aggregate node.",
                          "fields": {
                              "name": "GutturalSeries",
                              "name_confidence": 0.88,
                              "name_justification": "Specifies guttural consonant clusters for deeper analysis.",
                              "children": {
                                  "VelarStops": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Velar stops are a main subset of guttural consonants.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Included for completeness."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "We highlight velar stops as the primary child.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "VelarStops": {
                  "enum_docs": " Set this object to configure a node in the skeleton.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select the `Aggregate` variant to cluster multiple sub-branches.\n",
                          "variant_confidence": 0.88,
                          "variant_justification": "We gather all velar stop variants in one aggregate category.",
                          "fields": {
                              "name": "VelarStops",
                              "name_confidence": 0.88,
                              "name_justification": "Denotes the velar stop family of consonants.",
                              "children": {
                                  "VelarStopVariants": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Specific variants are always included.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We incorporate all for completeness."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "One direct sub-branch for these specialized stops.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "VelarStopVariants": {
                  "enum_docs": " Configure a leaf node.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select this variant to finalize as leaf expansions.\n",
                          "variant_confidence": 0.88,
                          "variant_justification": "We finalize granular velar stop details here.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "VelarStopVariants",
                              "name_confidence": 0.88,
                              "name_justification": "Identification of varied velar stop articulations.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "HistoricalTextsAndScripts": {
                  "enum_docs": " Set this object to configure a single node.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select the `Aggregate` variant.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We collect major textual references as an Aggregate structure.",
                          "fields": {
                              "name": "HistoricalTextsAndScripts",
                              "name_confidence": 0.9,
                              "name_justification": "Reflects key Sanskrit textual resources.",
                              "children": {
                                  "VedicScriptures": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Vedic traditions are central references.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "They are always included."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "This node focuses on the key scripts and texts.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "VedicScriptures": {
                  "enum_docs": " Single node config.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Aggregating specific subsets.\n",
                          "variant_confidence": 0.88,
                          "variant_justification": "We cluster major Vedic references here.",
                          "fields": {
                              "name": "VedicScriptures",
                              "name_confidence": 0.88,
                              "name_justification": "Represents the prime textual basis within Sanskrit tradition.",
                              "children": {
                                  "RigVedaFocus": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Rig Veda is always included as a fundamental text.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always incorporate it."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "We keep one child for brevity.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "RigVedaFocus": {
                  "enum_docs": " Leaf node for Vedic emphasis.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " A LeafHolder node for enumerating textual expansions.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We finalize early with leaf expansions of Rig Veda study.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "RigVedaFocus",
                              "name_confidence": 0.85,
                              "name_justification": "Leaf expansions reference specific Rig Veda aspects.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "AsanaLineages": {
                  "enum_docs": " Node capturing posture traditions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We gather multiple posture-based subdivisions.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "Physical aspects of Sanskrit yoga are frequently aggregated.",
                          "fields": {
                              "name": "AsanaLineages",
                              "name_confidence": 0.9,
                              "name_justification": "Official aggregator for recognized yoga posture branches.",
                              "children": {
                                  "PrimaryAsanas": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Core postures are mandatory.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always include them."
                                  },
                                  "LineageCommentaries": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Commentaries for lineage context are important.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We consistently include them."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "Two key subdivisions for posture details and historical lineages.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "PrimaryAsanas": {
                  "enum_docs": " Leaf node.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " We finalize with direct posture expansions.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "Basic asanas concluded here as leaves.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "PrimaryAsanas",
                              "name_confidence": 0.85,
                              "name_justification": "Core posture listing as final leaves.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "LineageCommentaries": {
                  "enum_docs": " Node capturing commentaries across guru traditions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We gather distinct commentary threads.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We need a deeper aggregator for lineage commentaries.",
                          "fields": {
                              "name": "LineageCommentaries",
                              "name_confidence": 0.85,
                              "name_justification": "Represents lineage-based interpretive materials.",
                              "children": {
                                  "GuruLineageNotes": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "We always include some direct lineage documentation.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Essential to historical analysis."
                                  }
                              },
                              "children_confidence": 0.85,
                              "children_justification": "We maintain a single main child aggregator for commentary specifics.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "GuruLineageNotes": {
                  "enum_docs": " Final expansions for lineage commentary.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " Summarize commentary as final leaves.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We complete these notes at leaf level.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "GuruLineageNotes",
                              "name_confidence": 0.85,
                              "name_justification": "Provides enumerated expansions of lineage-based commentary.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "BreathworkIntegration": {
                  "enum_docs": " Node capturing breath-based expansions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Aggregates advanced breath techniques.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We unify sub-branches of breath-related practices.",
                          "fields": {
                              "name": "BreathworkIntegration",
                              "name_confidence": 0.9,
                              "name_justification": "Represents combined breathwork domains in Sanskrit yoga.",
                              "children": {
                                  "DynamicPranayama": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Dynamic approaches included consistently.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always adopt dynamic expansions."
                                  },
                                  "StillnessBreathing": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Quiet breath states are also crucial.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Always included."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "Both dynamic and stillness modes are essential.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "DynamicPranayama": {
                  "enum_docs": " Node describing active breath expansions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Aggregates sub-threads of dynamic breathing.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We gather advanced dynamic breath flows here.",
                          "fields": {
                              "name": "DynamicPranayama",
                              "name_confidence": 0.85,
                              "name_justification": "Denotes the active branch of pranayama techniques.",
                              "children": {
                                  "EnergyExchangeFlows": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Core subtopic for dynamic breath transitions.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We consistently include them."
                                  }
                              },
                              "children_confidence": 0.85,
                              "children_justification": "One main child for dynamic expansions.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "EnergyExchangeFlows": {
                  "enum_docs": " Final expansions for dynamic breath.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " We finalize dynamic flows as leaves.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "Leaf expansions describe subtle transitional flows.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "EnergyExchangeFlows",
                              "name_confidence": 0.85,
                              "name_justification": "Denotes enumerated dynamic flow specifics.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "StillnessBreathing": {
                  "enum_docs": " Early leaf node.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " We end here with leaves for calm breath states.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We finalize quiet breath expansions directly.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "StillnessBreathing",
                              "name_confidence": 0.85,
                              "name_justification": "Represents gentle breath states enumerated as final leaves.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "MeditativeApproaches": {
                  "enum_docs": " Node representing concentration branches.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We gather meditative subdivisions.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We unify sub-branches of meditation and concentration.",
                          "fields": {
                              "name": "MeditativeApproaches",
                              "name_confidence": 0.9,
                              "name_justification": "Central aggregator for introspective practices.",
                              "children": {
                                  "MindfulnessCenters": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Mindfulness processes remain a core aspect.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Always included."
                                  },
                                  "MantraConvergence": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Chant-based meditative approach is included too.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always keep it."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "These two branches cover essential meditative forms.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "MindfulnessCenters": {
                  "enum_docs": " Node describing focus points.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We gather key sub-threads of mindfulness.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We want a small aggregator for distinct concentration types.",
                          "fields": {
                              "name": "MindfulnessCenters",
                              "name_confidence": 0.85,
                              "name_justification": "Points of internal meditative focus for aggregator usage.",
                              "children": {
                                  "SinglePointedConcentration": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "One main approach used consistently.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We include it for completeness."
                                  }
                              },
                              "children_confidence": 0.85,
                              "children_justification": "One child focusing on unitary attention.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "SinglePointedConcentration": {
                  "enum_docs": " Final leaf expansions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " We finalize unitive focus forms as leaves.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "Leaf expansions detail unique concentration techniques.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "SinglePointedConcentration",
                              "name_confidence": 0.85,
                              "name_justification": "Straight-to-leaf expansions for singular focus methods.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "MantraConvergence": {
                  "enum_docs": " Leaf node for chanting-based focus.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " We finalize these leaves for mantra-based concentration.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "A direct leaf set covers specialized chanting approaches.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "MantraConvergence",
                              "name_confidence": 0.85,
                              "name_justification": "Represents enumerated mantra-based meditations.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "YogaChants": {
                  "enum_docs": " Node capturing chanting expansions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We gather sub-branches for chanting.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We unify melodic and rhythmic chanting in one aggregator.",
                          "fields": {
                              "name": "YogaChants",
                              "name_confidence": 0.9,
                              "name_justification": "Umbrella aggregator for chanting methods.",
                              "children": {
                                  "MelodicChanting": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Melodic dimension is always considered.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We include it consistently."
                                  },
                                  "RhythmicChanting": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Rhythmic patterns are key as well.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always incorporate them."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "Both melodic and rhythmic aspects are essential for chanting.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "MelodicChanting": {
                  "enum_docs": " Node capturing melody-based forms.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " Aggregates deeper melodic patterns.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We detail melodic lines in a sub-aggregate.",
                          "fields": {
                              "name": "MelodicChanting",
                              "name_confidence": 0.85,
                              "name_justification": "Denotes melodic lines for Sanskrit chanting.",
                              "children": {
                                  "RagaPatterns": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Raga-style patterns are always included for melodic chanting.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We keep them mandatory."
                                  }
                              },
                              "children_confidence": 0.85,
                              "children_justification": "We highlight raga-based expansions as the single child.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "RagaPatterns": {
                  "enum_docs": " Final leaf expansions for melodic chanting.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " We conclude melodic expansions with direct leaves.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "The raga-based expansions are enumerated at leaf level.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "RagaPatterns",
                              "name_confidence": 0.85,
                              "name_justification": "Enumerates core melodic modes and structures.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "RhythmicChanting": {
                  "enum_docs": " Leaf node for rhythmic expansions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " We finalize direct enumerations for rhythmic chanting.\n",
                          "variant_confidence": 0.85,
                          "variant_justification": "We complete with final leaves for rhythmic patterns.",
                          "fields": {
                              "capstone": false,
                              "n_leaves": 10,
                              "name": "RhythmicChanting",
                              "name_confidence": 0.85,
                              "name_justification": "Represents enumerated rhythmic chanting techniques.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "SupplementaryPractices": {
                  "enum_docs": " Node aggregating advanced or combined practices.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We gather various integrated practices as an aggregator.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We use an aggregator for advanced or auxiliary expansions.",
                          "fields": {
                              "name": "SupplementaryPractices",
                              "name_confidence": 0.9,
                              "name_justification": "Broad aggregator for additional specialized branches.",
                              "children": {
                                  "AdvancedSanskritFusion": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "This advanced integrative path is included here.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "We always include it in deeper expansions."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "One major advanced path is represented for further branching.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "AdvancedSanskritFusion": {
                  "enum_docs": " Node capturing integrative advanced threads.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We combine sub-branches of advanced Sanskrit synergy.\n",
                          "variant_confidence": 0.9,
                          "variant_justification": "We require a deeper aggregator to proceed into integrated expansions.",
                          "fields": {
                              "name": "AdvancedSanskritFusion",
                              "name_confidence": 0.9,
                              "name_justification": "Designates advanced integrative Sanskrit yoga aspects.",
                              "children": {
                                  "NadiIntegration": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Nadi-based synergy is always included.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Included for advanced path coverage."
                                  }
                              },
                              "children_confidence": 0.9,
                              "children_justification": "One child path leading deeper into synergy methods.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "NadiIntegration": {
                  "enum_docs": " Node focusing on subtle channel integration.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We gather advanced channel-based synergy.\n",
                          "variant_confidence": 0.88,
                          "variant_justification": "We keep aggregator to embed further expansions.",
                          "fields": {
                              "name": "NadiIntegration",
                              "name_confidence": 0.88,
                              "name_justification": "Emphasizes the channel-based expansions in advanced practice.",
                              "children": {
                                  "CosmicUnionThreads": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "This node always included for culminating synergy steps.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Kept mandatory for deeper coverage."
                                  }
                              },
                              "children_confidence": 0.88,
                              "children_justification": "Focus on a single advanced synergy path for clarity.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "CosmicUnionThreads": {
                  "enum_docs": " Node leading to culminating leaf expansions.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "Aggregate",
                          "variant_type": "struct_variant",
                          "variant_docs": " We unify final advanced expansions.\n",
                          "variant_confidence": 0.88,
                          "variant_justification": "We cluster the ultimate synergy step here.",
                          "fields": {
                              "name": "CosmicUnionThreads",
                              "name_confidence": 0.88,
                              "name_justification": "Represents the final aggregator before the ultimate leaf node.",
                              "children": {
                                  "PinnacleSanskritRealization": {
                                      "optional": false,
                                      "optional_confidence": 0.8,
                                      "optional_justification": "Designated as the culminating node, always included.",
                                      "psome_likelihood": 100,
                                      "psome_likelihood_confidence": 0.8,
                                      "psome_likelihood_justification": "Mandatory for advanced synergy completion."
                                  }
                              },
                              "children_confidence": 0.88,
                              "children_justification": "Single final child aggregator bridging to the capstone leaf.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              },
              "PinnacleSanskritRealization": {
                  "enum_docs": " The ultimate leaf node.\n",
                  "enum_name": "StringSkeletonNode",
                  "has_justification": true,
                  "type": "complex_enum",
                  "variants": [
                      {
                          "variant_name": "LeafHolder",
                          "variant_type": "struct_variant",
                          "variant_docs": " Select this variant to emit a `LeafHolder` node.\n",
                          "variant_confidence": 0.95,
                          "variant_justification": "We designate this culminating node as the capstone leaf.",
                          "fields": {
                              "capstone": true,
                              "n_leaves": 10,
                              "name": "PinnacleSanskritRealization",
                              "name_confidence": 0.95,
                              "name_justification": "Marks the single apex node for advanced Sanskrit yoga synergy.",
                              "ordering": {
                                  "variant_name": "None",
                                  "variant_type": "unit_variant",
                                  "variant_docs": " This variant let's the model pick"
                              }
                          }
                      }
                  ]
              }
          },
          "map_confidence": 0.9,
          "map_justification": "We have constructed a six-level tree with consistent aggregator and dispatch branching, culminating in one capstone leaf."
      },
      "has_justification": true,
      "struct_docs": "Use this object to specify our whole tree of generated data.",
      "struct_name": "StringSkeleton",
      "type": "struct"
    }
    "#;

    #[traced_test]
    fn test_parse_big_sanskrit_yoga_skeleton_verbatim() {
        // 1) Parse the raw JSON string into a serde_json::Value
        let val: serde_json::Value = from_str(SANSKRIT_YOGA_FULL_JSON)
            .expect("Parsing JSON must succeed");

        // 2) Attempt to parse into our JustifiedStringSkeleton with fuzzy logic
        let result = JustifiedStringSkeleton::fuzzy_from_json_value(&val);

        // 3) Check for success
        match result {
            Ok(skel) => {
                // Basic check: we expect at least the "SanskritYoga" node in the map
                assert!(skel.map().contains_key("SanskritYoga"), 
                        "Should contain the SanskritYoga root node");
                // Optionally, you can dig deeper to verify the Dispatch node
                let root_node = skel.map().get("SanskritYoga").unwrap();
                match root_node {
                    StringSkeletonNode::Dispatch { name, children, .. } => {
                        // Confirm the name
                        assert_eq!(name, "SanskritYoga");
                        // Confirm children includes e.g. "PronunciationAndPhonetics"
                        assert!(children.contains_key("PronunciationAndPhonetics"),
                            "Child 'PronunciationAndPhonetics' must exist");
                        // etc. as needed...
                    }
                    _ => panic!("Expected Dispatch variant for root 'SanskritYoga' node"),
                }

                // And so on. If all is well, it means the entire JSON 
                // was properly fuzzy-deserialized.
            }
            Err(e) => panic!("Fuzzy parse failed for big SanskritYoga JSON: {:#?}", e),
        }
    }
}