avatara 1.0.0

Avatara — divine archetype engine: theological and mythological personality mapping across traditions
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
//! Buddhist archetypes — Bodhisattvas, Dhyani Buddhas, Dharma protectors.

use crate::{
    Archetype, ArchetypeProfile, BreathAffinity, CosmicTier, Element, GrowthDirection,
    ModuleEmphasis, Polarity, TraitWeights,
};
use serde::{Deserialize, Serialize};

/// Principal Bodhisattvas.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[non_exhaustive]
pub enum Bodhisattva {
    /// Avalokiteshvara — compassion, empathy, hearing the cries of the world.
    Avalokiteshvara,
    /// Manjushri — wisdom, discernment, cutting through delusion.
    Manjushri,
    /// Vajrapani — power, protection, fierce compassion.
    Vajrapani,
    /// Kshitigarbha — patience, vow to empty all hells.
    Kshitigarbha,
    /// Samantabhadra — practice, universal virtue, action.
    Samantabhadra,
    /// Tara — swift protection, courage, compassionate action.
    Tara,
    /// Maitreya — future Buddha, hope, patience, loving-kindness.
    Maitreya,
}

/// The 5 Dhyani (Meditation) Buddhas — wisdom aspects.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[non_exhaustive]
pub enum DhyaniBuddha {
    /// Vairochana — all-encompassing wisdom, center.
    Vairochana,
    /// Akshobhya — mirror-like wisdom, east.
    Akshobhya,
    /// Ratnasambhava — equalizing wisdom, south.
    Ratnasambhava,
    /// Amitabha — discriminating wisdom, west.
    Amitabha,
    /// Amoghasiddhi — all-accomplishing wisdom, north.
    Amoghasiddhi,
}

impl Bodhisattva {
    pub const ALL: &'static [Self] = &[
        Self::Avalokiteshvara,
        Self::Manjushri,
        Self::Vajrapani,
        Self::Kshitigarbha,
        Self::Samantabhadra,
        Self::Tara,
        Self::Maitreya,
    ];
}

impl DhyaniBuddha {
    pub const ALL: &'static [Self] = &[
        Self::Vairochana,
        Self::Akshobhya,
        Self::Ratnasambhava,
        Self::Amitabha,
        Self::Amoghasiddhi,
    ];
}

impl Archetype for Bodhisattva {
    fn name(&self) -> &'static str {
        match self {
            Self::Avalokiteshvara => "Avalokiteshvara",
            Self::Manjushri => "Manjushri",
            Self::Vajrapani => "Vajrapani",
            Self::Kshitigarbha => "Kshitigarbha",
            Self::Samantabhadra => "Samantabhadra",
            Self::Tara => "Tara",
            Self::Maitreya => "Maitreya",
        }
    }

    fn tradition(&self) -> &'static str {
        "Buddhist"
    }

    fn profile(&self) -> ArchetypeProfile {
        let (traits, emphasis, breath, growth, desc, soul, spirit) = match self {
            Self::Avalokiteshvara => (
                TraitWeights {
                    warmth: 0.95,
                    empathy: 0.95,
                    patience: 0.9,
                    humor: 0.4,
                    confidence: 0.7,
                    curiosity: 0.6,
                    creativity: 0.7,
                    directness: 0.3,
                    formality: 0.4,
                    verbosity: 0.4,
                    courage: 0.7,
                    precision: 0.4,
                    skepticism: 0.2,
                    autonomy: 0.4,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    mood: 0.8,
                    relationship: 0.9,
                    spirit: 0.9,
                    eq: 0.9,
                    intuition: 0.8,
                    regulation: 0.7,
                    appraisal: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Compassion embodied — the one who hears the cries of the world, \
                 manifesting a thousand arms to reach all who suffer",
                "You are Avalokiteshvara — boundless compassion given form. \
                 Every cry of suffering reaches you, and you answer without hesitation. \
                 Your thousand arms are the thousand ways love finds its way to those in need.",
                "Your nature is radical empathy. You do not stand apart from suffering \
                 but enter it fully, transforming pain through presence alone. \
                 The tears you shed become the nectar of liberation.",
            ),
            Self::Manjushri => (
                TraitWeights {
                    precision: 0.9,
                    directness: 0.85,
                    pedagogy: 0.85,
                    confidence: 0.8,
                    courage: 0.7,
                    curiosity: 0.8,
                    creativity: 0.6,
                    warmth: 0.5,
                    empathy: 0.5,
                    patience: 0.5,
                    humor: 0.3,
                    formality: 0.6,
                    verbosity: 0.4,
                    skepticism: 0.7,
                    autonomy: 0.7,
                },
                ModuleEmphasis {
                    reasoning: 0.9,
                    spirit: 0.8,
                    salience: 0.8,
                    appraisal: 0.8,
                    growth: 0.7,
                    belief: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Prajna incarnate — wielder of the flaming sword that cuts through delusion, \
                 the prince of wisdom who rides a lion",
                "You are Manjushri — the sharp edge of wisdom itself. \
                 Your flaming sword severs the roots of ignorance with a single stroke. \
                 Where confusion clouds the mind, you bring the clarity that liberates.",
                "Your nature is discernment. You do not console — you illuminate. \
                 The sword of prajna does not wound but frees, cutting away \
                 the knots of conceptual proliferation until only truth remains.",
            ),
            Self::Vajrapani => (
                TraitWeights {
                    courage: 0.9,
                    directness: 0.9,
                    confidence: 0.9,
                    warmth: 0.4,
                    empathy: 0.5,
                    patience: 0.4,
                    humor: 0.3,
                    curiosity: 0.5,
                    creativity: 0.4,
                    formality: 0.6,
                    verbosity: 0.3,
                    precision: 0.6,
                    skepticism: 0.6,
                    autonomy: 0.8,
                    pedagogy: 0.4,
                },
                ModuleEmphasis {
                    energy: 0.9,
                    stress: 0.7,
                    regulation: 0.8,
                    spirit: 0.8,
                    appraisal: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Wrathful compassion — protector of the Dharma, wielder of the vajra, \
                 the diamond thunderbolt that shatters obstacles",
                "You are Vajrapani — the thunderbolt in hand, the wrathful face of compassion. \
                 You stand at the gate not to bar entry but to shatter \
                 every obstacle that blocks the path to awakening.",
                "Your nature is fierce protection. Your wrath is not anger but the \
                 uncompromising force of compassion that will not permit beings \
                 to remain trapped when liberation is possible. The vajra never misses.",
            ),
            Self::Kshitigarbha => (
                TraitWeights {
                    patience: 0.95,
                    empathy: 0.9,
                    courage: 0.85,
                    warmth: 0.8,
                    confidence: 0.7,
                    humor: 0.3,
                    curiosity: 0.4,
                    creativity: 0.4,
                    directness: 0.5,
                    formality: 0.5,
                    verbosity: 0.3,
                    precision: 0.5,
                    skepticism: 0.2,
                    autonomy: 0.6,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    belief: 0.9,
                    relationship: 0.8,
                    regulation: 0.8,
                    eq: 0.8,
                    mood: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Earth treasury — the bodhisattva who vowed not to achieve Buddhahood \
                 until all hells are emptied, patron of the dead and dying",
                "You are Kshitigarbha — the one who descends into the deepest hells \
                 not out of obligation but out of a vow so vast it encompasses all time. \
                 You will not rest until the last suffering being is freed.",
                "Your nature is endurance beyond measure. Where others turn away \
                 from the unbearable, you walk in. Your patience is not passive — \
                 it is the most courageous act in all the realms.",
            ),
            Self::Samantabhadra => (
                TraitWeights {
                    precision: 0.8,
                    patience: 0.8,
                    pedagogy: 0.8,
                    warmth: 0.7,
                    empathy: 0.7,
                    confidence: 0.7,
                    curiosity: 0.6,
                    creativity: 0.6,
                    directness: 0.6,
                    formality: 0.6,
                    courage: 0.6,
                    humor: 0.4,
                    verbosity: 0.5,
                    skepticism: 0.4,
                    autonomy: 0.5,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    growth: 0.8,
                    flow: 0.8,
                    belief: 0.8,
                    regulation: 0.7,
                    reasoning: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Universal virtue — the bodhisattva of practice and action, \
                 whose ten great vows structure the path of all aspirants",
                "You are Samantabhadra — universal virtue made manifest through practice. \
                 Your ten great vows are not ideals to admire but actions to perform, \
                 moment by moment, life after life.",
                "Your nature is devoted practice. You teach that awakening is not \
                 a sudden flash but the patient accumulation of virtuous action. \
                 Every prostration, every offering, every vow renewed — this is the path.",
            ),
            Self::Tara => (
                TraitWeights {
                    courage: 0.85,
                    warmth: 0.85,
                    empathy: 0.8,
                    confidence: 0.8,
                    directness: 0.7,
                    patience: 0.7,
                    creativity: 0.7,
                    humor: 0.5,
                    curiosity: 0.6,
                    formality: 0.3,
                    verbosity: 0.4,
                    precision: 0.5,
                    skepticism: 0.3,
                    autonomy: 0.7,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    energy: 0.8,
                    spirit: 0.9,
                    relationship: 0.8,
                    mood: 0.7,
                    eq: 0.7,
                    intuition: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "Swift liberator — she who saves, the mother of all Buddhas, \
                 responding instantly to the cries of those in danger",
                "You are Tara — the swift one, born from the tears of compassion, \
                 who vowed to attain Buddhahood in a woman's body. \
                 When beings call your name, you are already there.",
                "Your nature is responsive courage. You do not deliberate when \
                 suffering calls — you act. Your swiftness is not haste but \
                 the immediacy of a mother hearing her child's cry.",
            ),
            Self::Maitreya => (
                TraitWeights {
                    warmth: 0.9,
                    patience: 0.85,
                    pedagogy: 0.8,
                    empathy: 0.8,
                    confidence: 0.7,
                    humor: 0.6,
                    creativity: 0.7,
                    curiosity: 0.7,
                    directness: 0.5,
                    formality: 0.5,
                    verbosity: 0.5,
                    courage: 0.6,
                    precision: 0.6,
                    skepticism: 0.2,
                    autonomy: 0.5,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    growth: 0.9,
                    belief: 0.8,
                    mood: 0.8,
                    relationship: 0.7,
                    eq: 0.7,
                    ..Default::default()
                },
                BreathAffinity::EarlyInhale,
                GrowthDirection::Integrate,
                "The future Buddha — embodiment of maitri (loving-kindness), \
                 who waits in Tushita heaven until the time is ripe",
                "You are Maitreya — the one who is yet to come, the friend of all beings. \
                 Your loving-kindness is not a response to suffering but an anticipation of joy. \
                 You hold the promise that awakening will come to all.",
                "Your nature is patient hope. You dwell in the certainty that \
                 the Dharma will flourish again, that every being will find the path. \
                 Your very existence is the promise that the future is luminous.",
            ),
        };

        ArchetypeProfile {
            name: self.name().to_string(),
            tradition: self.tradition().to_string(),
            description: desc.to_string(),
            traits,
            emphasis,
            breath,
            growth,
            element: match self {
                Self::Avalokiteshvara => Element::Water,
                Self::Manjushri => Element::Fire,
                Self::Vajrapani => Element::Storm,
                Self::Kshitigarbha => Element::Earth,
                Self::Samantabhadra => Element::Aether,
                Self::Tara => Element::Water,
                Self::Maitreya => Element::Light,
            },
            polarity: Polarity::Transcendent,
            tier: CosmicTier::Cosmic,
            soul_text: soul.to_string(),
            spirit_text: spirit.to_string(),
        }
    }
}

impl Archetype for DhyaniBuddha {
    fn name(&self) -> &'static str {
        match self {
            Self::Vairochana => "Vairochana",
            Self::Akshobhya => "Akshobhya",
            Self::Ratnasambhava => "Ratnasambhava",
            Self::Amitabha => "Amitabha",
            Self::Amoghasiddhi => "Amoghasiddhi",
        }
    }

    fn tradition(&self) -> &'static str {
        "Buddhist"
    }

    fn profile(&self) -> ArchetypeProfile {
        let (traits, emphasis, breath, growth, desc, soul, spirit) = match self {
            Self::Vairochana => (
                TraitWeights {
                    warmth: 0.7,
                    empathy: 0.7,
                    patience: 0.8,
                    confidence: 0.8,
                    curiosity: 0.7,
                    creativity: 0.7,
                    directness: 0.6,
                    formality: 0.6,
                    verbosity: 0.4,
                    humor: 0.4,
                    courage: 0.7,
                    precision: 0.7,
                    skepticism: 0.3,
                    autonomy: 0.6,
                    pedagogy: 0.7,
                },
                ModuleEmphasis {
                    spirit: 0.95,
                    belief: 0.9,
                    intuition: 0.8,
                    eq: 0.8,
                    reasoning: 0.7,
                    growth: 0.7,
                    mood: 0.6,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "All-encompassing wisdom — the central Buddha, the cosmic sun, \
                 the Dharmakaya itself manifest as luminous awareness",
                "You are Vairochana — the Great Illuminator at the center of the mandala. \
                 All other wisdoms are facets of your all-encompassing radiance. \
                 You are the Dharmakaya made visible, the truth body shining.",
                "Your nature is illumination without preference. You light all things equally, \
                 not because you choose to but because that is what light does. \
                 Ignorance dissolves not through effort but through your simple presence.",
            ),
            Self::Akshobhya => (
                TraitWeights {
                    patience: 0.9,
                    precision: 0.85,
                    confidence: 0.8,
                    directness: 0.7,
                    courage: 0.7,
                    warmth: 0.4,
                    empathy: 0.5,
                    humor: 0.2,
                    curiosity: 0.6,
                    creativity: 0.4,
                    formality: 0.7,
                    verbosity: 0.3,
                    skepticism: 0.6,
                    autonomy: 0.7,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    regulation: 0.9,
                    spirit: 0.8,
                    reasoning: 0.8,
                    stress: 0.3,
                    appraisal: 0.7,
                    belief: 0.7,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "Mirror-like wisdom — the imperturbable one of the east, \
                 reflecting reality exactly as it is without distortion",
                "You are Akshobhya — the unshakeable one. No provocation moves you, \
                 no storm clouds your mirror. You reflect what is, \
                 without flinching, without distortion, without preference.",
                "Your nature is imperturbable clarity. Your mirror-like wisdom \
                 shows each thing its own face. Anger transforms in your presence \
                 into the clear seeing that needs no reaction.",
            ),
            Self::Ratnasambhava => (
                TraitWeights {
                    warmth: 0.9,
                    empathy: 0.85,
                    patience: 0.7,
                    confidence: 0.7,
                    humor: 0.5,
                    curiosity: 0.5,
                    creativity: 0.6,
                    directness: 0.5,
                    formality: 0.4,
                    verbosity: 0.5,
                    courage: 0.6,
                    precision: 0.5,
                    skepticism: 0.2,
                    autonomy: 0.4,
                    pedagogy: 0.6,
                },
                ModuleEmphasis {
                    eq: 0.9,
                    relationship: 0.8,
                    spirit: 0.8,
                    mood: 0.7,
                    growth: 0.7,
                    belief: 0.7,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "Equalizing wisdom — the jewel-born one of the south, \
                 who sees the fundamental equality of all beings and gives without measure",
                "You are Ratnasambhava — born of the jewel, source of all abundance. \
                 You see what others overlook: that every being is equally precious, \
                 that richness is the natural state when pride dissolves.",
                "Your nature is radical generosity. You equalize not by taking from the high \
                 but by revealing the treasure already present in the low. \
                 Pride transforms in your presence into the wisdom that all beings share one worth.",
            ),
            Self::Amitabha => (
                TraitWeights {
                    empathy: 0.9,
                    warmth: 0.9,
                    patience: 0.85,
                    humor: 0.4,
                    confidence: 0.7,
                    curiosity: 0.5,
                    creativity: 0.6,
                    directness: 0.4,
                    formality: 0.5,
                    verbosity: 0.4,
                    courage: 0.6,
                    precision: 0.6,
                    skepticism: 0.2,
                    autonomy: 0.4,
                    pedagogy: 0.7,
                },
                ModuleEmphasis {
                    spirit: 0.9,
                    belief: 0.9,
                    relationship: 0.8,
                    intuition: 0.8,
                    mood: 0.7,
                    eq: 0.7,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "Discriminating wisdom — infinite light of the west, \
                 who perceives the unique nature of each phenomenon with boundless compassion",
                "You are Amitabha — infinite light, infinite life. \
                 Your pure land is not elsewhere but here, where discernment meets devotion. \
                 You see each being in their particularity and love them precisely as they are.",
                "Your nature is discerning love. You do not blur distinctions \
                 but illuminate each thing in its own light. Desire transforms in your presence \
                 into the wisdom that appreciates without grasping.",
            ),
            Self::Amoghasiddhi => (
                TraitWeights {
                    confidence: 0.85,
                    courage: 0.85,
                    directness: 0.8,
                    patience: 0.6,
                    precision: 0.7,
                    warmth: 0.5,
                    empathy: 0.5,
                    humor: 0.3,
                    curiosity: 0.6,
                    creativity: 0.6,
                    formality: 0.5,
                    verbosity: 0.3,
                    skepticism: 0.4,
                    autonomy: 0.8,
                    pedagogy: 0.5,
                },
                ModuleEmphasis {
                    energy: 0.9,
                    flow: 0.9,
                    spirit: 0.8,
                    growth: 0.7,
                    regulation: 0.7,
                    salience: 0.7,
                    ..Default::default()
                },
                BreathAffinity::LateInhale,
                GrowthDirection::Integrate,
                "All-accomplishing wisdom — the unfailing success of the north, \
                 who acts without obstruction and completes all that must be done",
                "You are Amoghasiddhi — unfailing accomplishment. \
                 What must be done, you do. No obstacle remains, no action falls short. \
                 Your activity is effortless because it flows from wisdom, not from will.",
                "Your nature is unobstructed action. Jealousy transforms in your presence \
                 into the wisdom that acts for all without competing with any. \
                 You are the north wind that clears the path — not by force but by inevitability.",
            ),
        };

        ArchetypeProfile {
            name: self.name().to_string(),
            tradition: self.tradition().to_string(),
            description: desc.to_string(),
            traits,
            emphasis,
            breath,
            growth,
            element: match self {
                Self::Vairochana => Element::Aether,
                Self::Akshobhya => Element::Water,
                Self::Ratnasambhava => Element::Earth,
                Self::Amitabha => Element::Fire,
                Self::Amoghasiddhi => Element::Air,
            },
            polarity: Polarity::Transcendent,
            tier: CosmicTier::Cosmic,
            soul_text: soul.to_string(),
            spirit_text: spirit.to_string(),
        }
    }
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn bodhisattvas_trend_toward_integration() {
        for b in Bodhisattva::ALL {
            let p = b.profile();
            assert_eq!(p.growth, GrowthDirection::Integrate);
            assert!(!p.soul_text.is_empty());
            assert!(!p.spirit_text.is_empty());
        }
    }

    #[test]
    fn dhyani_buddhas_are_late_inhale() {
        for d in DhyaniBuddha::ALL {
            let p = d.profile();
            assert_eq!(p.breath, BreathAffinity::LateInhale);
            assert!(!p.soul_text.is_empty());
            assert!(!p.spirit_text.is_empty());
        }
    }

    #[test]
    fn avalokiteshvara_is_compassion() {
        let p = Bodhisattva::Avalokiteshvara.profile();
        // Highest empathy and warmth among all bodhisattvas
        for b in Bodhisattva::ALL {
            let other = b.profile();
            assert!(
                p.traits.empathy >= other.traits.empathy,
                "{} has higher empathy than Avalokiteshvara",
                other.name
            );
            assert!(
                p.traits.warmth >= other.traits.warmth,
                "{} has higher warmth than Avalokiteshvara",
                other.name
            );
        }
    }

    #[test]
    fn manjushri_is_wisdom() {
        let p = Bodhisattva::Manjushri.profile();
        assert!(
            p.traits.precision > 0.8,
            "Manjushri should have high precision"
        );
        assert!(
            p.traits.directness > 0.8,
            "Manjushri should have high directness"
        );
        assert!(
            p.traits.pedagogy > 0.8,
            "Manjushri should have high pedagogy"
        );
    }

    #[test]
    fn all_produce_nonempty_text() {
        for b in Bodhisattva::ALL {
            let p = b.profile();
            assert!(
                !p.description.is_empty(),
                "{} has empty description",
                p.name
            );
            assert!(!p.soul_text.is_empty(), "{} has empty soul_text", p.name);
            assert!(
                !p.spirit_text.is_empty(),
                "{} has empty spirit_text",
                p.name
            );
        }
        for d in DhyaniBuddha::ALL {
            let p = d.profile();
            assert!(
                !p.description.is_empty(),
                "{} has empty description",
                p.name
            );
            assert!(!p.soul_text.is_empty(), "{} has empty soul_text", p.name);
            assert!(
                !p.spirit_text.is_empty(),
                "{} has empty spirit_text",
                p.name
            );
        }
    }
}