╔══════════════════════════════════════════════════════════╗
║ ║
║ ███╗ ██╗ █████╗ ████████╗██╗ ██╗██████╗ █████╗ ║
║ ████╗ ██║██╔══██╗╚══██╔══╝██║ ██║██╔══██╗██╔══██╗ ║
║ ██╔██╗ ██║███████║ ██║ ██║ ██║██████╔╝███████║ ║
║ ██║╚██╗██║██╔══██║ ██║ ██║ ██║██╔══██╗██╔══██║ ║
║ ██║ ╚████║██║ ██║ ██║ ╚██████╔╝██║ ██║██║ ██║ ║
║ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ║
║ E N T R O P Y E D I T I O N ║
║ ║
║ 🧘 Biofeedback-Driven Chair Yoga for Every 🧘 ║
║ Apple Platform ║
║ ║
╚══════════════════════════════════════════════════════════╝
✨ Guided wellness sessions with real-time heart rate, Shannon Collapse Index, adaptive music, CareKit prescriptions, and multi-screen display across iPhone, iPad, Apple Watch, Apple TV, and Apple Vision Pro. ✨
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
NATURaL RPG TRAINER CARD
╔════════════════════════╗ ╔═══════════════════════╗
║ Press START to begin ║ ║ NAME: Bonhomme ║
║ ║ ║ REGION: Apple ║
║ ◄ NEW GAME ► ║ ║ BADGES: 13 ║
║ CONTINUE ║ ║ YOGA: 26/26 ║
║ OPTIONS ║ ║ POKEDRUG: 84/84 ║
╚════════════════════════╝ ╚═══════════════════════╝
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
┌─────────────────────────────────────────────────────┐
│ #001 NATURaL │
│ Code Name: Bonhomme │
│ Type: BIOFEEDBACK / ENTROPY │
│ Region: All Apple Platforms │
│ │
│ "A chair yoga app that pairs guided poses with │
│ live biofeedback from Apple Watch. Sessions │
│ render simultaneously on phone, TV, and Vision │
│ Pro through a unified display architecture." │
│ │
│ STATS ░░░░░░░░░░░░░░░░░░░░ │
│ HP ████████████████████░░░ 85/100 │
│ ATK ██████████████░░░░░░░ 65/100 (Entropy) │
│ DEF ████████████████████░ 90/100 (Stability) │
│ SPD ██████████████████░░░ 80/100 (Real-time) │
│ SP █████████████████████ 95/100 (Multi-signal) │
└─────────────────────────────────────────────────────┘
The Shannon Collapse Index (SCI) — inspired by the entropy framework in Shannon and the thermodynamic scoring validated in FlexAID∆S — measures focus coherence from heart rate variability in real time. When HRV entropy narrows during deep breathing, the SCI rises, giving practitioners a live "focus ring" on every display surface.
Normal resting HRV: H ~ 6-8 bits (broad, variable intervals)
Focused breathing: H ~ 2-4 bits (narrow, coherent rhythm)
─────────────────────────────────────────
SCI score: 0 ──────────── 50 ──────────── 100
😵 Distracted 😌 Settling 🧘 Deep Focus
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
✨ NATURaL acquired the following skills! ✨
| 💪 Power | 26 poses / 3 levels |
| 🎯 Accuracy | Bilingual EN + FR-CA |
| 🔋 PP | Unlimited |
- 🧘 26 chair yoga poses across 3 difficulty levels with bilingual content (English / French Canadian)
- 🦴 7 anatomical categories: spine, hip, shoulder, neck, balance, breathing, full-body
⚠️ Per-pose modifications, contraindications, and breathing patterns- 🗣️ Voice cue text for guided audio in both languages
- 🎨 Category-specific SF Symbols and accent colors for visual differentiation
🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢🟢
| 💪 Power | Real-time HRV |
| 🎯 Accuracy | Shannon Entropy |
| 🔋 PP | Continuous |
- 💓 Real-time heart rate and calorie tracking via
HKWorkoutSession - 📊 Shannon Collapse Index computed from R-R interval entropy via shared
EntropyCalculator - 🔌 Generalized
HealthSignal→SignalAnalyzer→FeedbackEnginearchitecture supporting unlimited signal types - 🔗 Cross-signal correlation (medication timing vs. HRV response)
- 💚 HR zone classification with animated gauge (Recovery → Anaerobic)
- ⭕ Activity ring integration (Move / Exercise / Stand)
- 🏋️ Apple Fitness+ session history blended into unified timeline
- 📡 Background delivery for HRV, sleep, respiratory rate, and medication records
🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣🟣
💥 Critical hit! The analysis pipeline is built on a protocol-driven architecture that generalizes the SCI methodology to any health signal:
HealthSignal (protocol) SignalAnalyzer (protocol)
├── HRVSignal ──────────────────▸ HRVAnalyzer (Shannon entropy → SCI)
├── MedicationSignal ───────────▸ MedicationAnalyzer (adherence scoring)
├── DockingSignal ─────────────▸ DockingInsightAnalyzer (FlexAID∆S entropy)
└── SurveySignal ───────────────▸ (extensible for ResearchKit surveys)
│
▼
FeedbackEngine
(orchestrator with cross-signal context)
│
▼
AnalysisInsight
(score 0–1, trend, status, bilingual summary)
The EntropyCalculator — extracted as a shared utility — enables entropy-based scoring for any distribution: HRV intervals, sleep stage durations, respiratory rate patterns, or activity variability.
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
| 💪 Power | 70+ pharmacokinetic profiles |
| 🎯 Accuracy | p < 0.05 validated |
| 🔋 PP | Per-dose event |
Detects autonomic drug response signatures by measuring Shannon entropy changes in HRV RR-interval distributions around medication dose events — the physiological analog of FlexAID∆S molecular docking entropy:
🧪 FlexAID∆S (in silico) 💊 NATURaL (in vivo)
───────────────────── ─────────────────────
Torsional angles (°) RR intervals (ms)
H = -Σ p_i log₂(p_i) H = -Σ p_i log₂(p_i) ← same math
Binding → ΔS_config < 0 Drug → ΔH_hrv < 0 ← same signal
↘ ↙
🔬 EntropyCalculator (shared)
- 📈 DrugResponseAnalyzer — Computes baseline entropy (30 min pre-dose), measures ΔH at post-dose windows (15–360 min), detects entropy collapse (sympathomimetic) or expansion (parasympathomimetic)
- 💊 70+ pharmacokinetic profiles — Substance database with autonomic mechanism, Tmax, expected ΔH range, therapeutic class, and FDA status
- 🧬 60+ binding entropy profiles — Published ΔS_config values (bits) and -TΔS (kcal/mol) from computational chemistry literature
- 🔬 CrossDomainValidator — Correlates |ΔS_config| (molecular) with |ΔH_hrv| (physiological) via Pearson r to validate the entropy-collapse framework across domains
- 🔩 FlexAIDdSAnalyzer — Computes configurational entropy from torsional angle distributions using the same EntropyCalculator
- 📋 MedicationTracker — HealthKit FHIR medication import, manual dose logging, automatic drug response analysis
📄 See POKEDRUG_PLAN.md for the complete technical plan.
☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️☠️
| 💪 Power | SCI-driven |
| 🎯 Accuracy | 3s crossfade |
| 🔋 PP | Per-session |
🎵 Music dynamically adjusts based on real-time SCI during workouts:
- 🚀 High coherence + improving (SCI > 70%): crossfade to energizing playlists
- 🧘 Low coherence (SCI < 30%): fade to meditative/calming tracks
- ⚖️ Mid-range: maintain current mood
- ⏱️ 30-second debounce prevents jarring rapid transitions
- 🎚️ 3-second volume crossfade between mood switches
🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚🧚
| 💪 Power | Clinical-grade |
| 🎯 Accuracy | OCKStore |
| 🔋 PP | Prescribed |
For clinical and rehabilitation settings where a therapist prescribes yoga regimens:
- 🏗️
CareKitBridgemanagesOCKStorewith prescribed task scheduling - 📝
YogaTaskBuildermapsWorkoutPlantoOCKTaskwith frequency-based scheduling - ✅ Workout completions automatically recorded as
OCKOutcomewith duration, calories, SCI score - 📊 Adherence tracking over configurable time windows
- 💊 "Prescribed" section in HomeView when active prescriptions exist
⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️⚙️
| 💪 Power | Seamless |
| 🎯 Accuracy | 5s intervals |
| 🔋 PP | Automatic |
If the app is killed mid-workout, the session resumes seamlessly:
- 💾
WorkoutStateStorepersists phase, pose index, and timing every 5 seconds - 🔄 On relaunch, the app detects persisted state and offers a resume prompt
- ❤️🩹 HealthKit workout sessions recovered via
HKWorkoutSessionpersistence (iOS 17+) - 🧹 State cleared on normal completion or explicit stop
👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻👻
| 💪 Power | Cross-device |
| 🎯 Accuracy | SwiftData |
| 🔋 PP | Automatic |
☁️ Cross-device persistence with automatic iCloud synchronization:
- 📓
WorkoutRecord— full workout history with SCI scores - 🔥
SessionStreak— daily practice streak tracking - ⚙️
UserPreferences— language, music mood, notification settings - 💊
MedicationSchedule— user-defined dose reminders - 📦 Shared app group container for widget data access
- 🛟 Automatic fallback to local storage when iCloud unavailable
🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊🧊
| 💪 Power | On-device AI |
| 🎯 Accuracy | FoundationModels |
| 🔋 PP | iOS 26+ |
🤖 On-device insight generation via the FoundationModels framework:
- 💡
InsightEnginesynthesizes natural-language narratives from multi-signal analysis - 🎯 Personalized pose coaching based on current biofeedback context
- 📝 Post-workout summary generation correlating HRV, medication, and survey data
- 🌐 Template-based bilingual fallback on pre-iOS 26 devices
🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠🧠
| 💪 Power | 5 surfaces |
| 🎯 Accuracy | Bonjour + AirPlay |
| 🔋 PP | Simultaneous |
- 📺 Native tvOS companion via Bonjour (
_bonhomme._tcp) with length-prefixed JSON framing - 🖥️ AirPlay 2 second-screen via
UIScenewith.windowExternalDisplayNonInteractiverole - 🔄 Automatic fallback: tvOS discovery (3s timeout) → AirPlay route detection
- 🎨 Shared
TVDisplayViewrendered identically on both paths
┌──────────────────┐
┌───── NWConnection ────▸ │ 📺 tvOS │
│ │ TVDisplayView │
┌─────────────┤ └──────────────────┘
│ 📱 iPhone │
│ (iOS 17+) │ ┌──────────────────┐
│ ├───── AVRouteDetect ───▸ │ 🖥️ AirPlay 2 │
│ 🏋️ Workout │ │ Second Screen │
│ Engine │ └──────────────────┘
│ │
│ 📊 Feedback│ ┌──────────────────┐
│ Engine+SCI ├───── WCSession ───────▸ │ ⌚ Apple Watch │
│ │ (biofeedback) │ Native HKSession│
│ 🎵 Adaptive│ │ On-wrist SCI │
│ MusicKit │ └──────────────────┘
│ │
│ 🏥 CareKit│ ┌──────────────────┐
│ Bridge ├───── SwiftUI ─────────▸ │ 📱 iPad │
│ │ (NavigationSplit) │ 60/40 Split │
│ 💾 SwiftDat│ └──────────────────┘
│ + CloudKit │
└─────────────┤ ┌──────────────────┐
└───── RealityKit ──────▸ │ 🥽 Vision Pro │
│ Immersive Space │
│ 3D Pose Figure │
└──────────────────┘
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
🎮 Your party is ready for battle! 🎮
| Feature | Framework | Platform | |
|---|---|---|---|
| 🏃 | Workout recording | HealthKit (HKWorkoutSession) |
iOS / watchOS |
| 💓 | Heart rate monitoring | HealthKit (HKAnchoredObjectQuery) |
iOS / watchOS |
| 📊 | On-wrist SCI computation | FeedbackEngine + HRVAnalyzer | watchOS |
| 📡 | Watch ↔ Phone relay | WatchConnectivity (WCSession) |
watchOS / iOS |
| 🏋️ | Fitness+ history | HealthKit (source bundle filter) | iOS |
| ⭕ | Activity rings | HealthKit (HKActivitySummary) |
iOS |
| 📥 | Background delivery | HealthKit (enableBackgroundDelivery) |
iOS |
| 💊 | Medication records | HealthKit (FHIR clinical records) | iOS |
| 🧘 | Mindful session write | HealthKit (HKCategoryType.mindfulSession) |
iOS |
| 📳 | Live Activities | ActivityKit | iOS |
| 📊 | Home & Lock Screen widgets | WidgetKit | iOS |
| 🗣️ | Siri shortcuts | App Intents (4 intents + 2 entities) | iOS |
| 🎵 | Adaptive music | MusicKit (SCI-driven crossfade) | iOS |
| 👥 | Group sessions | SharePlay (GroupActivity) |
iOS |
| 💰 | Subscriptions | StoreKit 2 | iOS |
| 🏥 | Care plan prescriptions | CareKitStore (OCKStore) |
iOS |
| 💾 | Data persistence + sync | SwiftData + CloudKit | iOS |
| 🤖 | On-device AI insights | FoundationModels (iOS 26+) | iOS |
| 📱 | iPad multicolumn | NavigationSplitView | iPadOS |
| 🥽 | Spatial display | RealityKit + ImmersiveSpace | visionOS |
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
🎮 Select your training regimen! 🎮
| Plan | Poses | Duration | Level | Access |
|---|---|---|---|---|
| 🌅 Morning Flow | 5 | ~4 min | 🟢 Beginner | 🆓 Free |
| 🌸 Gentle Stretch | 5 | ~4 min | 🟢 Beginner | 🆓 Free |
| 💼 Quick Desk Break | 5 | ~3 min | 🟢 Beginner | 🆓 Free |
| 🧘 Full Session | 8 | ~7 min | 🟡 Mixed | ⭐ Premium |
| 💪 Strength & Balance | 6 | ~5 min | 🟡 Intermediate | ⭐ Premium |
| 🔥 Advanced Chair Yoga | 8 | ~6 min | 🔴 Advanced | ⭐ Premium |
26 bilingual chair yoga poses (EN/FR-CA) across 3 difficulty tiers — see MOVE 1 above.
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
⚡ Every substance has a TYPE. Every TYPE has a signature. ⚡
A Pose in PokeDrug is not a yoga posture — it's a molecular docking pose: a drug (ligand) bound to its receptor (target) in a specific binding geometry. Each pose has a conformational entropy cost (ΔS_config) measured in bits, and a detectable autonomic signature measured via Apple Watch HRV.
Each TYPE maps to a real physiological event detected through HealthKit or molecular docking:
| TYPE | Pharmacological Basis | HealthKit / Docking Signal |
|---|---|---|
| 🔥 FIRE | Stimulates fight-or-flight (amphetamine, cocaine, caffeine) | HR ↑, HRV entropy collapse (ΔH < 0) |
| 🧊 ICE | Calms autonomic system (beta-blockers, clonidine) | HR ↓, HRV entropy expansion (ΔH > 0) |
| 🐉 DRAGON | Dual-branch / biphasic (antipsychotics, alcohol) | Biphasic ΔH — initial collapse then expansion |
| 👻 GHOST | Enhances GABA inhibition (benzodiazepines, zolpidem) | Respiratory rate ↓, sleep entropy shift |
| ⚡ ELECTRIC | Targets reward pathway (bupropion, modafinil) | Activity ring spike, acute HRV compression → rebound |
| ☠️ POISON | Blocks acetylcholine (atropine, scopolamine) | Vagal brake removed → paradoxical sympathetic ↑ |
| 🧚 FAIRY | Modulates 5-HT receptors (SSRIs, psychedelics) | Slow HRV modulation over days, sleep architecture Δ |
| 🔮 PSYCHIC | Binds μ/κ/δ opioid receptors (morphine, fentanyl) | Deep parasympathetic shift, respiratory entropy collapse |
| 🌿 GRASS | CB1/CB2 agonism (THC, CBD) | Mixed HR response, altered HRV spectral balance |
| ⚙️ STEEL | Rigid molecules / structural agents (lithium, lamotrigine) | Minimal ΔS_config, subtle ΔH_hrv |
💥 When two TYPEs collide, the entropy tells the story! 💥
| Matchup | Interaction | Entropy Signature |
|---|---|---|
| 🔥 FIRE vs 🧊 ICE | Sympathomimetic + beta-blocker | Mutual cancellation — ΔH → 0 |
| 👻 GHOST vs ⚡ ELECTRIC | Sedative dampens stimulant rebound | Entropy stays collapsed longer |
| ☠️ POISON vs 🧚 FAIRY | Anticholinergic blocks serotonergic GI | Blunted ΔH time-course |
| 🔮 PSYCHIC vs 🔥 FIRE | Opioid + stimulant (speedball) | Dangerous mixed signal — chaotic ΔH |
| 🐉 DRAGON vs any | Mixed agents resist classification | Biphasic ΔH curves, type-resistant |
| 🌿 GRASS vs 👻 GHOST | Cannabinoid + GABAergic | Additive sedation, entropy expansion |
| ⚙️ STEEL vs all | Rigid molecules bind cleanly | Minimal conformational penalty (low |
Code mapping (PharmacokineticProfile.swift):
AutonomicMechanism.sympathomimetic ──→ 🔥 FIRE
AutonomicMechanism.parasympathomimetic ──→ 🧊 ICE
AutonomicMechanism.mixed ──→ 🐉 DRAGON
TherapeuticClass.anxiolytic/.sedativeHypnotic ──→ 👻 GHOST
TherapeuticClass.stimulant (NDRI) ──→ ⚡ ELECTRIC
TherapeuticClass.anticholinergic ──→ ☠️ POISON
TherapeuticClass.antidepressant (SSRI/SNRI) ──→ 🧚 FAIRY
TherapeuticClass.opioidAnalgesic ──→ 🔮 PSYCHIC
TherapeuticClass.cannabinoid ──→ 🌿 GRASS
(rigid molecules, |ΔS| < 2 bits) ──→ ⚙️ STEEL
🔥🧊🐉👻⚡☠️🧚🔮🌿⚙️🔥🧊🐉👻⚡☠️🧚🔮🌿⚙️🔥🧊🐉👻⚡☠️🧚🔮🌿⚙️🔥🧊🐉👻⚡☠️🧚🔮🌿⚙️
🎯 Gotta dock 'em all! 🎯
| Tier | Rotatable Bonds | |ΔS_config| | Docking Difficulty | |------|----------------|------------|-------------------| | 🟢 Rigid | 0–2 | < 3 bits | Easy — molecule snaps into pocket | | 🟡 Flexible | 3–5 | 3–8 bits | Medium — conformational search needed | | 🔴 Highly Flexible | 6+ | > 8 bits | Hard — massive entropy penalty on binding |
🔥 FIRE — Sympathomimetics (click to expand)
Stimulates fight-or-flight via catecholamine release or reuptake inhibition. Detected by HR ↑ and HRV entropy collapse (ΔH < 0).
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | amphetamine | Stimulant (DAT/NET) | 2 | -2.9 | 1.2 | 3h | 10h | -2.0 to -0.8 | C-II | 🟢 |
| 2 | dextroamphetamine | Stimulant (DAT/NET) | 2 | -2.9 | 1.2 | 3h | 12h | -2.0 to -0.8 | C-II | 🟢 |
| 3 | methamphetamine | Stimulant (DAT/NET) | 2 | -3.2 | 1.3 | 3h | 10h | -2.5 to -1.0 | C-II | 🟡 |
| 4 | lisdexamfetamine | Prodrug → d-amph | 4 | -4.4 | 1.8 | 3.5h | 12h | -1.8 to -0.6 | C-II | 🟡 |
| 5 | methylphenidate | Stimulant (DAT) | 3 | -6.8 | 2.8 | 2h | 3h | -1.5 to -0.5 | C-II | 🟡 |
| 6 | cocaine | DAT/NET/SERT blocker | 4 | -4.9 | 2.0 | 30m | 1h | -2.5 to -1.0 | C-II | 🟡 |
| 7 | caffeine | Xanthine (A₂ₐ antag) | 0 | -1.0 | 0.4 | 45m | 5h | -0.8 to -0.2 | — | 🟢 |
| 8 | theophylline | Xanthine (PDE inhib) | 0 | -0.7 | 0.3 | 1.5h | 8h | -0.6 to -0.1 | Rx | 🟢 |
| 9 | nicotine | nAChR agonist | 1 | -2.2 | 0.9 | 10m | 2h | -1.0 to -0.3 | — | 🟢 |
| 10 | mdma | Monoamine releaser | 3 | -3.7 | 1.5 | 2h | 8h | -1.8 to -0.5 | C-I | 🟡 |
⚡ ELECTRIC — Dopaminergic / Noradrenergic (click to expand)
Targets the reward pathway via dopamine/norepinephrine reuptake inhibition or MAO inhibition. Detected by activity ring spike, acute HRV compression → rebound.
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 11 | modafinil | Wakefulness (DAT) | 4 | -5.3 | 2.2 | 3h | 15h | -0.8 to -0.2 | C-IV | 🟡 |
| 12 | armodafinil | Wakefulness (R-mod) | 4 | -5.3 | 2.2 | 2h | 15h | -0.8 to -0.2 | C-IV | 🟡 |
| 13 | atomoxetine | NRI (non-stimulant) | 4 | -6.1 | 2.5 | 1.5h | 5h | -1.0 to -0.3 | Rx | 🟡 |
| 14 | bupropion | NDRI | 3 | -4.4 | 1.8 | 2h | 21h | -0.8 to -0.2 | Rx | 🟡 |
| 15 | phenelzine | MAOI (irreversible) | 2 | -2.4 | 1.0 | 2h | 12h | -0.6 to 0.0 | Rx | 🟢 |
| 16 | tranylcypromine | MAOI (irreversible) | 0 | -1.2 | 0.5 | 1.5h | 2.5h | -1.0 to -0.3 | Rx | 🟢 |
🧊 ICE — Parasympathomimetics (click to expand)
Calms the autonomic system via β-adrenergic blockade or α₂-agonism. Detected by HR ↓ and HRV entropy expansion (ΔH > 0).
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 17 | propranolol | β-blocker (non-sel) | 5 | -8.5 | 3.5 | 1.5h | 4h | +0.3 to +1.5 | Rx | 🟡 |
| 18 | metoprolol | β₁-blocker (sel) | 7 | -9.7 | 4.0 | 1.5h | 4h | +0.2 to +1.2 | Rx | 🔴 |
| 19 | atenolol | β₁-blocker (hydro) | 6 | -9.3 | 3.8 | 3h | 7h | +0.2 to +1.0 | Rx | 🔴 |
| 20 | bisoprolol | β₁-blocker (hi-sel) | 7 | -9.7 | 4.0 | 2h | 11h | +0.2 to +1.0 | Rx | 🔴 |
| 21 | carvedilol | β+α₁-blocker | 6 | -8.5 | 3.5 | 1.5h | 7h | +0.2 to +1.3 | Rx | 🔴 |
| 22 | clonidine | α₂-agonist (central) | 1 | -1.5 | 0.6 | 2h | 12h | +0.3 to +1.5 | Rx | 🟢 |
| 23 | guanfacine | α₂A-agonist (sel) | 2 | -3.4 | 1.4 | 4h | 17h | +0.2 to +1.2 | Rx | 🟡 |
| 24 | digoxin | Cardiac glycoside | 8 | -12.2 | 5.0 | 2h | 42h | +0.2 to +0.8 | Rx | 🔴 |
| 25 | ivabradine | If-channel blocker | 5 | -7.3 | 3.0 | 1h | 6h | -0.2 to +0.3 | Rx | 🟡 |
🧚 FAIRY — Serotonergic (click to expand)
Modulates 5-HT receptors via reuptake inhibition (SSRIs/SNRIs), partial agonism, or direct agonism (psychedelics). Detected by slow HRV modulation over days and sleep architecture Δ.
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 26 | sertraline | SSRI | 3 | -5.4 | 2.2 | 6.5h | 26h | -0.5 to +0.1 | Rx | 🟡 |
| 27 | fluoxetine | SSRI | 5 | -7.3 | 3.0 | 7h | 48h | -0.5 to +0.1 | Rx | 🟡 |
| 28 | escitalopram | SSRI | 4 | -6.1 | 2.5 | 5h | 30h | -0.4 to +0.1 | Rx | 🟡 |
| 29 | paroxetine | SSRI + ACh | 3 | -4.9 | 2.0 | 5h | 21h | -0.6 to 0.0 | Rx | 🟡 |
| 30 | venlafaxine | SNRI | 6 | -9.3 | 3.8 | 2h | 5h | -0.8 to -0.1 | Rx | 🔴 |
| 31 | duloxetine | SNRI | 3 | -5.6 | 2.3 | 6h | 12h | -0.7 to -0.1 | Rx | 🟡 |
| 32 | trazodone | SARI | 4 | -6.8 | 2.8 | 1h | 7h | 0.0 to +0.5 | Rx | 🟡 |
| 33 | buspirone | 5-HT₁A agonist | 5 | -7.3 | 3.0 | 1h | 2.5h | -0.2 to +0.3 | Rx | 🟡 |
| 34 | psilocybin | 5-HT₂A agonist | 3 | -3.4 | 1.4 | 1.5h | 3h | -0.6 to +0.3 | C-I | 🟡 |
| 35 | lsd | 5-HT₂A agonist | 1 | -2.4 | 1.0 | 2h | 3.5h | -0.5 to +0.2 | C-I | 🟢 |
🐉 DRAGON — Mixed / Biphasic (click to expand)
Dual-branch autonomic agents (antipsychotics, alcohol) with multi-receptor affinity. Detected by biphasic ΔH — initial collapse then expansion.
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 36 | quetiapine | Atypical AP (D₂/5-HT₂) | 7 | -11.0 | 4.5 | 1.5h | 7h | -0.3 to +0.4 | Rx | 🔴 |
| 37 | olanzapine | Atypical AP (D₂/5-HT₂) | 2 | -4.4 | 1.8 | 6.5h | 30h | -0.5 to +0.2 | Rx | 🟡 |
| 38 | risperidone | Atypical AP (D₂/5-HT₂) | 4 | -6.8 | 2.8 | 1h | 21h | -0.4 to +0.2 | Rx | 🟡 |
| 39 | haloperidol | Typical AP (D₂) | 6 | -8.8 | 3.6 | 4h | 24h | -0.4 to +0.1 | Rx | 🔴 |
| 40 | chlorpromazine | Typical AP (D₂/ACh) | 3 | -4.9 | 2.0 | 3h | 30h | -0.5 to +0.2 | Rx | 🟡 |
| 41 | clozapine | Atypical AP (multi) | 2 | -3.7 | 1.5 | 2.5h | 12h | -0.6 to +0.1 | Rx | 🟡 |
| 42 | aripiprazole | AP (D₂ partial ag) | 6 | -8.5 | 3.5 | 4h | 75h | -0.3 to +0.2 | Rx | 🔴 |
| 43 | ethanol | GABA-A / NMDA | 0 | -0.2 | 0.1 | 1h | 1.5h | -1.0 to +0.5 | — | 🟢 |
| 44 | mirtazapine | NaSSA (α₂/5-HT₂/H₁) | 1 | -2.9 | 1.2 | 2h | 30h | +0.1 to +0.6 | Rx | 🟢 |
| 45 | hydroxyzine | Antihistamine (H₁) | 5 | -7.8 | 3.2 | 2h | 20h | 0.0 to +0.5 | Rx | 🟡 |
👻 GHOST — GABAergic / Sedative (click to expand)
Enhances GABA-A inhibition (benzodiazepines), blocks orexin (suvorexant), or activates GABA-B (GHB). Detected by respiratory rate ↓ and sleep entropy shift.
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 46 | alprazolam | BZD (short-acting) | 0 | -2.0 | 0.8 | 1.5h | 11h | +0.2 to +1.0 | C-IV | 🟢 |
| 47 | diazepam | BZD (long-acting) | 1 | -2.7 | 1.1 | 1.25h | 60h | +0.2 to +1.0 | C-IV | 🟢 |
| 48 | lorazepam | BZD (intermediate) | 0 | -2.2 | 0.9 | 2h | 12h | +0.2 to +0.9 | C-IV | 🟢 |
| 49 | clonazepam | BZD (long-acting) | 0 | -2.2 | 0.9 | 2.5h | 35h | +0.2 to +0.9 | C-IV | 🟢 |
| 50 | zolpidem | Z-drug (ω₁ sel) | 2 | -3.4 | 1.4 | 1.6h | 2.5h | +0.1 to +0.6 | C-IV | 🟡 |
| 51 | suvorexant | Orexin antagonist | 4 | -6.1 | 2.5 | 2h | 12h | 0.0 to +0.4 | C-IV | 🟡 |
| 52 | ghb | GABA-B agonist | 2 | -1.5 | 0.6 | 35m | 45m | +0.2 to +1.0 | C-I/III | 🟢 |
🔮 PSYCHIC — Opioidergic (click to expand)
Binds μ/κ/δ opioid receptors as full agonists, partial agonists, or antagonists. Detected by deep parasympathetic shift and respiratory entropy collapse.
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 53 | morphine | μ-agonist (full) | 1 | -2.4 | 1.0 | 1h | 2.5h | +0.2 to +1.2 | C-II | 🟢 |
| 54 | oxycodone | μ-agonist (full) | 1 | -2.9 | 1.2 | 1.5h | 3.5h | +0.2 to +1.2 | C-II | 🟢 |
| 55 | hydrocodone | μ-agonist (full) | 1 | -2.7 | 1.1 | 1.3h | 4h | +0.2 to +1.0 | C-II | 🟢 |
| 56 | fentanyl | μ-agonist (potent) | 7 | -10.2 | 4.2 | 25m | 7h | +0.3 to +1.5 | C-II | 🔴 |
| 57 | methadone | μ-agonist (long) | 5 | -7.8 | 3.2 | 3.25h | 30h | +0.2 to +1.0 | C-II | 🟡 |
| 58 | buprenorphine | μ-partial agonist | 2 | -3.7 | 1.5 | 1h | 37h | +0.1 to +0.7 | C-III | 🟡 |
| 59 | tramadol | μ-weak + SNRI | 3 | -4.9 | 2.0 | 2h | 6h | -0.2 to +0.6 | C-IV | 🟡 |
| 60 | naltrexone | μ-antagonist | 2 | -3.2 | 1.3 | 1h | 4h | -0.4 to +0.1 | Rx | 🟢 |
☠️ POISON — Anticholinergic (click to expand)
Blocks muscarinic acetylcholine receptors, removing the vagal brake. Detected by paradoxical sympathetic ↑ (HR rises despite no catecholamine release).
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 61 | atropine | mAChR antagonist | 4 | -7.8 | 3.2 | 1h | 4h | -1.2 to -0.4 | Rx | 🟡 |
| 62 | scopolamine | mAChR antagonist | 4 | -6.8 | 2.8 | 1h | 4.5h | -0.6 to 0.0 | Rx | 🟡 |
| 63 | diphenhydramine | H₁-antag + mAChR | 4 | -6.8 | 2.8 | 2h | 6h | -0.4 to +0.2 | OTC | 🟡 |
| 64 | promethazine | H₁-antag + mAChR | 3 | -5.3 | 2.2 | 2.5h | 12h | -0.3 to +0.3 | Rx | 🟡 |
🌿 GRASS — Cannabinoid (click to expand)
CB1/CB2 receptor agonism with mixed autonomic effects. Detected by mixed HR response and altered HRV spectral balance (LF/HF ratio shift).
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 65 | thc | CB1/CB2 agonist | 4 | -5.3 | 2.2 | 10m (inh) | 30h | -0.8 to +0.3 | C-I | 🟡 |
| 66 | dronabinol | Synthetic THC | 4 | -5.3 | 2.2 | 3h (oral) | 30h | -0.6 to +0.3 | C-III | 🟡 |
⚙️ STEEL — Structural / Rigid Agents (click to expand)
Rigid molecules that bind cleanly with minimal conformational penalty (low |ΔS|). Includes mood stabilizers, anticonvulsants, NSAIDs, corticosteroids, muscle relaxants, and TCAs.
| # | Substance | Class | Bonds | ΔS (bits) | -TΔS | Tmax | t½ | ΔH_hrv (bits) | Schedule | Tier |
|---|---|---|---|---|---|---|---|---|---|---|
| 67 | lithium | Mood stab (monatomic) | 0 | 0.0 | 0.0 | 3h | 27h | -0.3 to +0.2 | Rx | 🟢 |
| 68 | gabapentin | Ca²⁺-channel ligand | 3 | -3.7 | 1.5 | 2.5h | 6h | 0.0 to +0.5 | Rx | 🟡 |
| 69 | pregabalin | Ca²⁺-channel ligand | 3 | -3.9 | 1.6 | 1.5h | 6h | 0.0 to +0.5 | C-V | 🟡 |
| 70 | lamotrigine | Na⁺-channel blocker | 1 | -1.7 | 0.7 | 2.5h | 25h | -0.2 to +0.2 | Rx | 🟢 |
| 71 | valproate | GABA enhancer (multi) | 4 | -4.4 | 1.8 | 4h | 12.5h | -0.2 to +0.3 | Rx | 🟡 |
| 72 | carbamazepine | Na⁺-channel blocker | 1 | -2.0 | 0.8 | 4.5h | 14.5h | -0.3 to +0.1 | Rx | 🟢 |
| 73 | topiramate | Multi-mechanism AED | 3 | -3.9 | 1.6 | 2h | 21h | -0.2 to +0.2 | Rx | 🟡 |
| 74 | ibuprofen | NSAID (COX inhib) | 3 | -3.9 | 1.6 | 1.5h | 2h | -0.2 to +0.2 | OTC | 🟡 |
| 75 | prednisone | Corticosteroid | 2 | -2.9 | 1.2 | 2h | 3.5h | -0.5 to 0.0 | Rx | 🟢 |
| 76 | dexamethasone | Corticosteroid (potent) | 3 | -3.7 | 1.5 | 2h | 45h | -0.5 to 0.0 | Rx | 🟡 |
| 77 | metoclopramide | D₂ antagonist (prokinetic) | 4 | -6.1 | 2.5 | 1.5h | 5.5h | -0.2 to +0.2 | Rx | 🟡 |
| 78 | levothyroxine | Thyroid hormone (T₄) | 4 | -5.9 | 2.4 | 3h | 7d | -0.3 to +0.1 | Rx | 🟡 |
| 79 | cyclobenzaprine | Muscle relax (TCA-like) | 2 | -3.7 | 1.5 | 5.5h | 18h | -0.4 to +0.1 | Rx | 🟡 |
| 80 | baclofen | GABA-B agonist | 2 | -2.9 | 1.2 | 2.5h | 3.5h | 0.0 to +0.4 | Rx | 🟢 |
| 81 | tizanidine | α₂-agonist (central) | 1 | -1.7 | 0.7 | 1h | 2.5h | +0.2 to +0.8 | Rx | 🟢 |
| 82 | ketamine | NMDA antagonist | 1 | -2.0 | 0.8 | 20m | 2.5h | -0.8 to +0.4 | C-III | 🟢 |
| 83 | amitriptyline | TCA (NE/5-HT + ACh) | 3 | -4.9 | 2.0 | 4h | 25h | -0.8 to -0.2 | Rx | 🟡 |
| 84 | nortriptyline | TCA (NE > 5-HT) | 2 | -3.9 | 1.6 | 5h | 28h | -0.7 to -0.1 | Rx | 🟡 |
84 docking poses catalogued · 10 pharmacological TYPEs · 3 flexibility tiers
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
All models, analysis engine, and TV display views live in BonhommeCore, a platform-agnostic Swift Package compiled for iOS, watchOS, tvOS, and visionOS:
📦 BonhommeCore/
├── 📋 Package.swift # iOS 17, watchOS 10, tvOS 17, visionOS 1
└── 📂 Sources/BonhommeCore/
├── 🗂️ Models/
│ ├── 🧘 Pose.swift # Bilingual pose with category, difficulty, modifications
│ ├── 📚 PoseCatalog.swift # 26 poses + 6 workout plans
│ ├── 🌐 LocalizedString.swift # EN/FR-CA resolver by device locale
│ ├── 📋 WorkoutPlan.swift # Ordered pose sequence with computed duration
│ ├── 📺 TVDisplayPayload.swift # Codable message: iPhone → TV surface
│ ├── 💓 BiofeedbackSnapshot.swift # HR, HRV, SCI, calories + multi-signal insights
│ └── 📊 WorkoutResult.swift # Post-session summary with HR samples
├── 🔬 Analysis/
│ ├── 🧮 EntropyCalculator.swift # Shared Shannon entropy utility (reusable)
│ ├── 📡 HealthSignal.swift # Protocol + HRVSignal, MedicationSignal, DockingSignal
│ ├── 🔍 SignalAnalyzer.swift # Protocol + AnalysisInsight, AnalysisContext
│ ├── 💓 HRVAnalyzer.swift # Shannon Collapse Index from R-R intervals
│ ├── 💊 MedicationAnalyzer.swift # Adherence scoring with HRV correlation
│ ├── ⚙️ FeedbackEngine.swift # Thread-safe multi-signal orchestrator
│ ├── 📈 DrugResponseAnalyzer.swift # ΔH detection around medication dose events
│ ├── 🧪 PharmacokineticProfile.swift # 70+ substance PK/autonomic profiles
│ ├── 🧬 BindingEntropyProfile.swift # 60+ molecular ΔS_config reference values
│ ├── 🔩 FlexAIDdSAnalyzer.swift # Torsional ΔS_config computation
│ ├── 🔬 CrossDomainValidator.swift # |ΔS_config| ↔ |ΔH_hrv| correlation
│ └── 🔗 DockingInsightAnalyzer.swift # SignalAnalyzer adapter for FeedbackEngine
└── 📺 TVDisplay/
├── 🖼️ TVDisplayView.swift # Shared layout: 60% pose + 40% biofeedback
├── ⏱️ PoseCountdownView.swift # Circular countdown timer with category color
├── 💚 HeartRateGaugeView.swift # BPM gauge with HR zone
├── 🎯 SCIVisualizationView.swift # Focus ring with trend indicator
└── 📊 SessionProgressView.swift # Pose dots + elapsed time
Instead of .strings files, NATURaL uses a data-driven approach where all content is self-contained in the Swift Package:
public struct LocalizedString: Codable, Sendable, Hashable {
public let en: String
public let fr: String
public var localized: String {
Locale.current.language.languageCode?.identifier
.hasPrefix("fr") == true ? fr : en
}
}🏠 NATURaL/
├── 📱 Bonhomme/ # iOS app (iPhone + iPad hub)
│ ├── 🚀 App/ # @main entry, AppState, SwiftData container
│ ├── ✨ Features/
│ │ ├── 🏋️ Workout/ # Flow VM, guided session UI, home (iPad split)
│ │ ├── 📊 Summary/ # Post-workout charts + SwiftData persistence
│ │ ├── 📜 History/ # Blended NATURaL + Fitness+ timeline
│ │ └── 💰 Paywall/ # StoreKit 2 subscription view
│ ├── ⚙️ Services/
│ │ ├── ❤️ HealthKit/ # HR, workout recorder, Fitness+ reader,
│ │ │ # InsightEngine, MedicationTracker, ResearchKit
│ │ ├── 🎵 Music/ # MusicKit adaptive playlists (SCI-driven)
│ │ ├── 💾 Persistence/ # WorkoutStateStore, SwiftData PersistentModels
│ │ ├── 🏥 CareKit/ # CareKitBridge, YogaTaskBuilder
│ │ ├── ⌚ WatchConnectivity/ # PhoneConnectivityBridge (iOS ↔ Watch)
│ │ ├── 👥 SharePlay/ # GroupActivity session coordinator
│ │ ├── 🗣️ Siri/ # App Intents + 4 shortcuts
│ │ └── 💳 Subscription/ # StoreKit 2 entitlements
│ ├── 📺 TVRelay/ # Coordinator, AirPlay, native companion
│ └── 🎨 Shared/Components/ # Activity rings, reusable views
├── 📦 BonhommeCore/ # Shared Swift Package (all platforms)
│ ├── 📂 Sources/BonhommeCore/ # Models + Analysis + TV display views
│ └── 🧪 Tests/BonhommeCoreTests/ # Unit tests (entropy, analyzers, codable)
├── 📺 BonhommeTV/ # tvOS companion app
│ ├── 🚀 App/ # @main entry
│ ├── 🌐 Networking/ # NWListener Bonjour service
│ └── 🖼️ Views/ # TV root + idle views
├── ⌚ BonhommeWatch/ # watchOS companion app
│ └── 🚀 App/ # WatchApp, WorkoutManager, WCSession bridge,
│ # SessionView (3-page vertical), HomeView
├── 🥽 BonhommeVision/ # visionOS spatial app
│ └── 🚀 App/ # VisionApp, SpatialPoseView, ImmersivePoseSpace,
│ # SpatialBiofeedbackView (ornament gauges)
├── 📳 NATURaLLiveActivity/ # ActivityKit Dynamic Island
├── 📊 NATURaLWidgets/ # Streak + Activity Rings widgets
└── 🧪 Tests/
├── ✅ BonhommeTests/ # iOS app unit tests
└── 🤖 BonhommeUITests/ # Xcode UI test suites
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
| Dependency | Version |
|---|---|
| 🛠️ Xcode | 15.0+ (26+ for Apple Intelligence) |
| 🦅 Swift | 5.9+ |
| 📱 iOS deployment | 17.0+ |
| ⌚ watchOS deployment | 10.0+ |
| 📺 tvOS deployment | 17.0+ |
| 🥽 visionOS deployment | 1.0+ |
| 📦 External dependencies | None (CareKit added at project level) |
🧪 The Professor: "Are you ready? Your very own NATURaL adventure is about to unfold!" 🧪
# 📥 Clone
git clone https://github.com/lmorency/NATURaL.git
cd NATURaL
# 🛠️ Open in Xcode
open Bonhomme.xcodeproj # or .xcworkspace
# 🎯 Select scheme → Bonhomme, destination → iPhone 15 Pro
# ⌘R to build and run| Scheme | Destination | Description |
|---|---|---|
| 📱 Bonhomme | iPhone / iPad Simulator (iOS 17+) | Main hub app with adaptive layout |
| 📺 BonhommeTV | Apple TV 4K Simulator (tvOS 17+) | TV companion display |
| ⌚ BonhommeWatch | Apple Watch Series 9 (watchOS 10+) | Native HR sensor + on-wrist SCI |
| 🥽 BonhommeVision | Apple Vision Pro (visionOS 1.0+) | Spatial yoga with 3D pose figure |
| Entitlement | Purpose |
|---|---|
| ❤️ HealthKit | Workout recording, HR/HRV monitoring, medication records |
| 🏥 HealthKit (clinical) | FHIR medication record access |
| 📡 Background Modes | HealthKit background delivery, workout processing |
| ☁️ iCloud (CloudKit) | SwiftData cross-device sync |
| 🤖 Apple Intelligence | On-device Foundation Model insight generation |
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
🏆 "You've defeated the ARENA MASTER! You earned the test badge!" 🏆
# 🧪 BonhommeCore unit tests (platform-agnostic)
xcodebuild test -scheme BonhommeCore -destination 'platform=iOS Simulator,name=iPhone 15 Pro'
# 📱 iOS app unit tests
xcodebuild test -scheme Bonhomme -destination 'platform=iOS Simulator,name=iPhone 15 Pro'
# 🤖 UI tests (requires simulator)
xcodebuild test -scheme BonhommeUITests -destination 'platform=iOS Simulator,name=iPhone 15 Pro'| Badge | Tests | Scope |
|---|---|---|
🟢 LocalizedStringTests |
5 | Codable, hashable, EN/FR resolution |
🟢 PoseTests |
5 | Init, codable, difficulty/category enums |
🟢 PoseCatalogTests |
10 | Unique IDs, bilingual coverage, distribution |
🟢 WorkoutPlanTests |
4 | Duration calc, codable, edge cases |
🟢 TVDisplayPayloadTests |
4 | Codable roundtrip, nil biofeedback, SCI trend |
🟢 WorkoutResultTests |
3 | Result codable, nil heart rate |
🟡 AnalyzerTests |
17 | Shannon entropy, SCI scoring, medication adherence, FeedbackEngine multi-signal, EntropyCalculator edge cases + parity |
🟡 DrugResponseAnalyzerTests |
24 | Sympathomimetic/parasympathomimetic detection, dose-response curves, profile matching, batch aggregation, Cohen's d, AUC |
🔴 FlexAIDdSAnalyzerTests |
27 | Torsional entropy, ΔS_config, kcal/mol conversion, cross-domain validation, BindingEntropyProfile registry, DockingInsightAnalyzer pipeline |
🟢 WorkoutFlowViewModelTests |
3 | Plan structure, TV payload, localization |
🟢 TVDisplayCoordinatorTests |
3 | Payload size <10KB, framing, Bonjour type |
🟣 WorkoutFlowUITests |
5 | Home screen, navigation, countdown, a11y |
🟣 AirPlayFallbackUITests |
3 | TV section, connection prompt, stability |
🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅🏅
┌─────────────────────────────────────────────────────────┐
│ ✨ LEGENDARY ALLIES ENCOUNTERED! ✨ │
│ │
│ 🔵 Shannon — Entropy collapse detection. │
│ Provides the mathematical │
│ foundation for the SCI │
│ biofeedback metric. │
│ │
│ 🔴 FlexAID∆S — Entropy-driven molecular docking.│
│ Validated the thermodynamic │
│ scoring framework adapted for │
│ HRV analysis. │
└─────────────────────────────────────────────────────────┘
| Project | Role |
|---|---|
| 🔵 Shannon | Entropy collapse detection — provides the mathematical foundation for the SCI biofeedback metric |
| 🔴 FlexAID∆S | Entropy-driven molecular docking — validated the thermodynamic scoring framework adapted for HRV analysis |
🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣🔴🟠🟡🟢🔵🟣
╔══════════════════════════════════════════════════╗
║ 🏆 HALL OF FAME 🏆 ║
║ ║
║ 🔒 LICENSE: Proprietary. All rights reserved. ║
║ ║
║ 🤝 CONTRIBUTING: ║
║ This project is currently in private ║
║ development. Contact the maintainer for ║
║ collaboration inquiries. ║
║ ║
║ 💾 SAVE GAME? [Y] / [N] 💾 ║
╚══════════════════════════════════════════════════╝