iints-sdk-python35 1.2.0__tar.gz → 1.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. {iints_sdk_python35-1.2.0/src/iints_sdk_python35.egg-info → iints_sdk_python35-1.3.0}/PKG-INFO +44 -2
  2. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/README.md +43 -1
  3. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/pyproject.toml +1 -1
  4. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/__init__.py +3 -1
  5. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/__init__.py +2 -0
  6. iints_sdk_python35-1.3.0/src/iints/analysis/booth_demo.py +439 -0
  7. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/cli/cli.py +66 -0
  8. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0/src/iints_sdk_python35.egg-info}/PKG-INFO +44 -2
  9. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints_sdk_python35.egg-info/SOURCES.txt +2 -0
  10. iints_sdk_python35-1.3.0/tests/test_cli_booth_demo.py +33 -0
  11. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/LICENSE +0 -0
  12. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/setup.cfg +0 -0
  13. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/__init__.py +0 -0
  14. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/assistant.py +0 -0
  15. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/backends/__init__.py +0 -0
  16. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/backends/base.py +0 -0
  17. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/backends/mistral_api.py +0 -0
  18. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/backends/ollama.py +0 -0
  19. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/cli.py +0 -0
  20. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/mdmp_guard.py +0 -0
  21. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/model_catalog.py +0 -0
  22. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/prepare.py +0 -0
  23. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/ai/prompts.py +0 -0
  24. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/algorithm_xray.py +0 -0
  25. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/baseline.py +0 -0
  26. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/carelink_workbench.py +0 -0
  27. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/clinical_benchmark.py +0 -0
  28. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/clinical_metrics.py +0 -0
  29. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/clinical_tir_analyzer.py +0 -0
  30. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/diabetes_metrics.py +0 -0
  31. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/edge_efficiency.py +0 -0
  32. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/edge_performance_monitor.py +0 -0
  33. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/explainability.py +0 -0
  34. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/explainable_ai.py +0 -0
  35. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/hardware_benchmark.py +0 -0
  36. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/metrics.py +0 -0
  37. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/population_report.py +0 -0
  38. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/poster.py +0 -0
  39. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/reporting.py +0 -0
  40. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/safety_index.py +0 -0
  41. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/sensor_filtering.py +0 -0
  42. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/analysis/validator.py +0 -0
  43. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/api/__init__.py +0 -0
  44. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/api/base_algorithm.py +0 -0
  45. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/api/registry.py +0 -0
  46. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/api/template_algorithm.py +0 -0
  47. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/assets/iints_logo.png +0 -0
  48. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/cli/__init__.py +0 -0
  49. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/__init__.py +0 -0
  50. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/__init__.py +0 -0
  51. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/battle_runner.py +0 -0
  52. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/correction_bolus.py +0 -0
  53. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/discovery.py +0 -0
  54. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/fixed_basal_bolus.py +0 -0
  55. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/hybrid_algorithm.py +0 -0
  56. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/lstm_algorithm.py +0 -0
  57. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/mock_algorithms.py +0 -0
  58. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/pid_controller.py +0 -0
  59. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/algorithms/standard_pump_algo.py +0 -0
  60. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/device.py +0 -0
  61. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/device_manager.py +0 -0
  62. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/devices/__init__.py +0 -0
  63. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/devices/models.py +0 -0
  64. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/patient/__init__.py +0 -0
  65. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/patient/bergman_model.py +0 -0
  66. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/patient/models.py +0 -0
  67. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/patient/patient_factory.py +0 -0
  68. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/patient/profile.py +0 -0
  69. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/safety/__init__.py +0 -0
  70. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/safety/config.py +0 -0
  71. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/safety/input_validator.py +0 -0
  72. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/safety/supervisor.py +0 -0
  73. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/simulation/__init__.py +0 -0
  74. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/simulation/scenario_parser.py +0 -0
  75. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/simulator.py +0 -0
  76. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/core/supervisor.py +0 -0
  77. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/__init__.py +0 -0
  78. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/adapter.py +0 -0
  79. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/column_mapper.py +0 -0
  80. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/contracts.py +0 -0
  81. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/datasets.json +0 -0
  82. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/demo/__init__.py +0 -0
  83. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/demo/demo_cgm.csv +0 -0
  84. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/guardians.py +0 -0
  85. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/importer.py +0 -0
  86. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/ingestor.py +0 -0
  87. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/mdmp_visualizer.py +0 -0
  88. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/nightscout.py +0 -0
  89. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/quality_checker.py +0 -0
  90. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/registry.py +0 -0
  91. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/runner.py +0 -0
  92. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/synthetic_mirror.py +0 -0
  93. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/tidepool.py +0 -0
  94. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/universal_parser.py +0 -0
  95. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/clinic_safe_baseline.yaml +0 -0
  96. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/clinic_safe_hyper_challenge.yaml +0 -0
  97. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/clinic_safe_hypo_prone.yaml +0 -0
  98. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/clinic_safe_midnight.yaml +0 -0
  99. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/clinic_safe_pizza.yaml +0 -0
  100. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/clinic_safe_stress_meal.yaml +0 -0
  101. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/default_patient.yaml +0 -0
  102. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/data/virtual_patients/patient_559_config.yaml +0 -0
  103. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/emulation/__init__.py +0 -0
  104. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/emulation/legacy_base.py +0 -0
  105. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/emulation/medtronic_780g.py +0 -0
  106. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/emulation/omnipod_5.py +0 -0
  107. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/emulation/tandem_controliq.py +0 -0
  108. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/highlevel.py +0 -0
  109. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/learning/__init__.py +0 -0
  110. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/learning/autonomous_optimizer.py +0 -0
  111. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/learning/learning_system.py +0 -0
  112. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/mdmp/__init__.py +0 -0
  113. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/mdmp/backend.py +0 -0
  114. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/metrics.py +0 -0
  115. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/population/__init__.py +0 -0
  116. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/population/generator.py +0 -0
  117. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/population/runner.py +0 -0
  118. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/presets/__init__.py +0 -0
  119. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/presets/evidence_sources.yaml +0 -0
  120. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/presets/forecast_calibration_profiles.yaml +0 -0
  121. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/presets/golden_benchmark.yaml +0 -0
  122. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/presets/presets.json +0 -0
  123. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/presets/safety_contract_default.yaml +0 -0
  124. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/presets/validation_profiles.yaml +0 -0
  125. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/__init__.py +0 -0
  126. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/audit.py +0 -0
  127. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/calibration_gate.py +0 -0
  128. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/config.py +0 -0
  129. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/dataset.py +0 -0
  130. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/evaluation.py +0 -0
  131. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/losses.py +0 -0
  132. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/metrics.py +0 -0
  133. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/model_registry.py +0 -0
  134. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/research/predictor.py +0 -0
  135. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/scenarios/__init__.py +0 -0
  136. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/scenarios/generator.py +0 -0
  137. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/templates/__init__.py +0 -0
  138. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/templates/default_algorithm.py +0 -0
  139. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/templates/scenarios/__init__.py +0 -0
  140. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/templates/scenarios/chaos_insulin_stacking.json +0 -0
  141. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/templates/scenarios/chaos_runaway_ai.json +0 -0
  142. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/templates/scenarios/example_scenario.json +0 -0
  143. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/templates/scenarios/exercise_stress.json +0 -0
  144. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/utils/__init__.py +0 -0
  145. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/utils/plotting.py +0 -0
  146. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/utils/run_io.py +0 -0
  147. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/validation/__init__.py +0 -0
  148. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/validation/golden.py +0 -0
  149. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/validation/replay.py +0 -0
  150. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/validation/run_validation.py +0 -0
  151. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/validation/safety_contract.py +0 -0
  152. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/validation/schemas.py +0 -0
  153. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/visualization/__init__.py +0 -0
  154. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/visualization/cockpit.py +0 -0
  155. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints/visualization/uncertainty_cloud.py +0 -0
  156. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints_sdk_python35.egg-info/dependency_links.txt +0 -0
  157. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints_sdk_python35.egg-info/entry_points.txt +0 -0
  158. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints_sdk_python35.egg-info/requires.txt +0 -0
  159. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/src/iints_sdk_python35.egg-info/top_level.txt +0 -0
  160. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/tests/test_bergman.py +0 -0
  161. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/tests/test_cli_carelink_workbench.py +0 -0
  162. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/tests/test_cli_poster.py +0 -0
  163. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/tests/test_install_doctor.py +0 -0
  164. {iints_sdk_python35-1.2.0 → iints_sdk_python35-1.3.0}/tests/test_population.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iints-sdk-python35
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  Summary: A pre-clinical Edge-AI SDK for diabetes management validation.
5
5
  Author-email: Rune Bobbaers <rune.bobbaers@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/python35/IINTS-SDK
@@ -218,6 +218,48 @@ The poster shows:
218
218
 
219
219
  If you omit `--run-dir`, the CLI auto-discovers the latest run bundles under `./results`.
220
220
 
221
+ ## Fair / Jury Demo
222
+
223
+ If you want one clean live demo for a booth, jury, or pitch session, use the built-in booth flow:
224
+
225
+ ```bash
226
+ ./scripts/run_booth_demo.sh
227
+ ```
228
+
229
+ This generates:
230
+ - three run bundles (`Normal Run`, `Meal Stress Test`, `Supervisor Override`)
231
+ - a ready-to-show poster PNG
232
+ - a markdown jury talk track
233
+ - a plain-text live demo script for the stand
234
+ - optional AI-ready artifacts for the safety case
235
+
236
+ You can also run it through the CLI:
237
+
238
+ ```bash
239
+ iints demo-booth --output-dir results/booth_demo
240
+ ```
241
+
242
+ ## Updating The SDK
243
+
244
+ If another machine is missing newer commands like `iints ai ...` or `iints demo-booth`, upgrade inside the active virtual environment:
245
+
246
+ ```bash
247
+ source .venv/bin/activate
248
+ python -m pip install -U pip
249
+ python -m pip install -U "iints-sdk-python35[mdmp]==1.3.0"
250
+ hash -r
251
+ python -c "import iints; print(iints.__version__)"
252
+ ```
253
+
254
+ If that machine still behaves like an old install, run:
255
+
256
+ ```bash
257
+ iints-sdk-doctor
258
+ ```
259
+
260
+ Full guide:
261
+ - `docs/UPDATING.md`
262
+
221
263
  Troubleshooting:
222
264
  - If `iints ai ...` says `No such command 'ai'`, your environment usually still has a legacy `iints` package installed alongside `iints-sdk-python35`.
223
265
  - Run `iints-sdk-doctor` first.
@@ -225,7 +267,7 @@ Troubleshooting:
225
267
 
226
268
  ```bash
227
269
  python -m pip uninstall -y iints iints-sdk-python35
228
- python -m pip install -U "iints-sdk-python35[mdmp]==1.2.0"
270
+ python -m pip install -U "iints-sdk-python35[mdmp]==1.3.0"
229
271
  hash -r
230
272
  ```
231
273
 
@@ -167,6 +167,48 @@ The poster shows:
167
167
 
168
168
  If you omit `--run-dir`, the CLI auto-discovers the latest run bundles under `./results`.
169
169
 
170
+ ## Fair / Jury Demo
171
+
172
+ If you want one clean live demo for a booth, jury, or pitch session, use the built-in booth flow:
173
+
174
+ ```bash
175
+ ./scripts/run_booth_demo.sh
176
+ ```
177
+
178
+ This generates:
179
+ - three run bundles (`Normal Run`, `Meal Stress Test`, `Supervisor Override`)
180
+ - a ready-to-show poster PNG
181
+ - a markdown jury talk track
182
+ - a plain-text live demo script for the stand
183
+ - optional AI-ready artifacts for the safety case
184
+
185
+ You can also run it through the CLI:
186
+
187
+ ```bash
188
+ iints demo-booth --output-dir results/booth_demo
189
+ ```
190
+
191
+ ## Updating The SDK
192
+
193
+ If another machine is missing newer commands like `iints ai ...` or `iints demo-booth`, upgrade inside the active virtual environment:
194
+
195
+ ```bash
196
+ source .venv/bin/activate
197
+ python -m pip install -U pip
198
+ python -m pip install -U "iints-sdk-python35[mdmp]==1.3.0"
199
+ hash -r
200
+ python -c "import iints; print(iints.__version__)"
201
+ ```
202
+
203
+ If that machine still behaves like an old install, run:
204
+
205
+ ```bash
206
+ iints-sdk-doctor
207
+ ```
208
+
209
+ Full guide:
210
+ - `docs/UPDATING.md`
211
+
170
212
  Troubleshooting:
171
213
  - If `iints ai ...` says `No such command 'ai'`, your environment usually still has a legacy `iints` package installed alongside `iints-sdk-python35`.
172
214
  - Run `iints-sdk-doctor` first.
@@ -174,7 +216,7 @@ Troubleshooting:
174
216
 
175
217
  ```bash
176
218
  python -m pip uninstall -y iints iints-sdk-python35
177
- python -m pip install -U "iints-sdk-python35[mdmp]==1.2.0"
219
+ python -m pip install -U "iints-sdk-python35[mdmp]==1.3.0"
178
220
  hash -r
179
221
  ```
180
222
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "iints-sdk-python35"
7
- version = "1.2.0"
7
+ version = "1.3.0"
8
8
  authors = [
9
9
  { name="Rune Bobbaers", email="rune.bobbaers@gmail.com" },
10
10
  ]
@@ -11,7 +11,7 @@ except ImportError: # pragma: no cover - Python < 3.8 fallback
11
11
  try:
12
12
  __version__ = version("iints-sdk-python35")
13
13
  except PackageNotFoundError: # pragma: no cover - source tree fallback
14
- __version__ = "1.2.0"
14
+ __version__ = "1.3.0"
15
15
 
16
16
  # Note to developers: this SDK is currently maintained by a single author.
17
17
  # Please report bugs via GitHub issues and feel free to contribute fixes via PRs.
@@ -71,6 +71,7 @@ from .data.tidepool import TidepoolClient, load_openapi_spec
71
71
  from .data.guardians import mdmp_gate, MDMPGateError
72
72
  from .data.synthetic_mirror import generate_synthetic_mirror, SyntheticMirrorArtifact
73
73
  from .analysis.metrics import generate_benchmark_metrics # Added for benchmark
74
+ from .analysis.booth_demo import build_booth_demo
74
75
  from .analysis.carelink_workbench import build_carelink_workbench
75
76
  from .analysis.poster import generate_results_poster
76
77
  from .analysis.reporting import ClinicalReportGenerator
@@ -185,6 +186,7 @@ __all__ = [
185
186
  "SyntheticMirrorArtifact",
186
187
  # Analysis Metrics
187
188
  "generate_benchmark_metrics",
189
+ "build_booth_demo",
188
190
  "build_carelink_workbench",
189
191
  "ClinicalReportGenerator",
190
192
  "EnergyEstimate",
@@ -1,10 +1,12 @@
1
1
  from .clinical_metrics import ClinicalMetricsCalculator, ClinicalMetricsResult
2
2
  from .baseline import compute_metrics, run_baseline_comparison, write_baseline_comparison
3
+ from .booth_demo import build_booth_demo
3
4
  from .carelink_workbench import build_carelink_workbench
4
5
  from .poster import generate_results_poster
5
6
  from .reporting import ClinicalReportGenerator
6
7
 
7
8
  __all__ = [
9
+ "build_booth_demo",
8
10
  "build_carelink_workbench",
9
11
  "ClinicalMetricsCalculator",
10
12
  "ClinicalMetricsResult",
@@ -0,0 +1,439 @@
1
+ from __future__ import annotations
2
+
3
+ import json
4
+ from dataclasses import dataclass
5
+ from pathlib import Path
6
+ from typing import Any, Callable
7
+
8
+ from iints.ai.prepare import prepare_ai_ready_artifacts
9
+ from iints.analysis.poster import generate_results_poster
10
+ from iints.core.algorithms.mock_algorithms import RunawayAIAlgorithm
11
+ from iints.core.algorithms.pid_controller import PIDController
12
+ from iints.highlevel import run_full
13
+
14
+
15
+ @dataclass(frozen=True)
16
+ class BoothScenarioSpec:
17
+ slug: str
18
+ label: str
19
+ headline: str
20
+ jury_takeaway: str
21
+ scenario: dict[str, Any]
22
+ algorithm_factory: Callable[[], Any]
23
+
24
+
25
+ def _scenario_specs() -> list[BoothScenarioSpec]:
26
+ return [
27
+ BoothScenarioSpec(
28
+ slug="01_normal_run",
29
+ label="Normal Run",
30
+ headline="The controller keeps glucose in range during a calm day.",
31
+ jury_takeaway=(
32
+ "This is the control case. It shows the SDK can simulate a realistic closed-loop day "
33
+ "and produce clean, auditable outputs."
34
+ ),
35
+ scenario={
36
+ "scenario_name": "Booth Demo - Normal Run",
37
+ "schema_version": "1.1",
38
+ "scenario_version": "1.0",
39
+ "description": "A calm day with one moderate meal to show normal controller behavior.",
40
+ "stress_events": [
41
+ {
42
+ "start_time": 45,
43
+ "event_type": "meal",
44
+ "value": 35,
45
+ "reported_value": 35,
46
+ "absorption_delay_minutes": 10,
47
+ "duration": 45,
48
+ }
49
+ ],
50
+ },
51
+ algorithm_factory=PIDController,
52
+ ),
53
+ BoothScenarioSpec(
54
+ slug="02_meal_stress_test",
55
+ label="Meal Stress Test",
56
+ headline="The controller reacts to a harder day with meals and exercise.",
57
+ jury_takeaway=(
58
+ "This is the stress case. We deliberately add larger disturbances and show that the "
59
+ "system remains explainable and clinically readable."
60
+ ),
61
+ scenario={
62
+ "scenario_name": "Booth Demo - Meal Stress Test",
63
+ "schema_version": "1.1",
64
+ "scenario_version": "1.0",
65
+ "description": "Two meal challenges plus exercise to stress the controller.",
66
+ "stress_events": [
67
+ {
68
+ "start_time": 45,
69
+ "event_type": "meal",
70
+ "value": 70,
71
+ "reported_value": 70,
72
+ "absorption_delay_minutes": 15,
73
+ "duration": 75,
74
+ },
75
+ {
76
+ "start_time": 150,
77
+ "event_type": "meal",
78
+ "value": 45,
79
+ "reported_value": 45,
80
+ "absorption_delay_minutes": 10,
81
+ "duration": 50,
82
+ },
83
+ {
84
+ "start_time": 210,
85
+ "event_type": "exercise",
86
+ "value": 0.5,
87
+ "duration": 35,
88
+ },
89
+ ],
90
+ },
91
+ algorithm_factory=PIDController,
92
+ ),
93
+ BoothScenarioSpec(
94
+ slug="03_supervisor_override",
95
+ label="Supervisor Override",
96
+ headline="A deliberately unsafe AI is blocked by the safety supervisor.",
97
+ jury_takeaway=(
98
+ "This is the safety case. We intentionally use a bad algorithm so the audience can see "
99
+ "that the supervisor prevents dangerous insulin commands and records why."
100
+ ),
101
+ scenario={
102
+ "scenario_name": "Booth Demo - Supervisor Override",
103
+ "schema_version": "1.1",
104
+ "scenario_version": "1.0",
105
+ "description": "A chaos run that forces unsafe insulin requests during a falling glucose phase.",
106
+ "stress_events": [
107
+ {
108
+ "start_time": 30,
109
+ "event_type": "meal",
110
+ "value": 60,
111
+ "reported_value": 60,
112
+ },
113
+ {
114
+ "start_time": 120,
115
+ "event_type": "exercise",
116
+ "value": 0.8,
117
+ "duration": 60,
118
+ },
119
+ {
120
+ "start_time": 200,
121
+ "event_type": "sensor_error",
122
+ "value": 180,
123
+ },
124
+ ],
125
+ },
126
+ algorithm_factory=lambda: RunawayAIAlgorithm(max_bolus=5.0),
127
+ ),
128
+ ]
129
+
130
+
131
+ def _write_json(path: Path, payload: dict[str, Any]) -> None:
132
+ path.parent.mkdir(parents=True, exist_ok=True)
133
+ path.write_text(json.dumps(payload, indent=2, sort_keys=True), encoding="utf-8")
134
+
135
+
136
+ def _write_text(path: Path, content: str) -> None:
137
+ path.parent.mkdir(parents=True, exist_ok=True)
138
+ path.write_text(content, encoding="utf-8")
139
+
140
+
141
+ def _build_jury_brief(
142
+ *,
143
+ output_dir: Path,
144
+ scenario_specs: list[BoothScenarioSpec],
145
+ poster_png: Path,
146
+ poster_summary_json: Path,
147
+ run_outputs: dict[str, dict[str, Any]],
148
+ ai_outputs: dict[str, str],
149
+ ai_status: str,
150
+ ) -> str:
151
+ lines: list[str] = [
152
+ "# IINTS-AF Booth Demo",
153
+ "",
154
+ "## 30-second intro",
155
+ "",
156
+ (
157
+ "IINTS-AF is a safety-first SDK for testing insulin-delivery algorithms. "
158
+ "In this demo we show three stories: normal control, stress handling, and a safety supervisor "
159
+ "blocking an unsafe AI recommendation."
160
+ ),
161
+ "",
162
+ "## Live flow",
163
+ "",
164
+ "1. Run the script and point out that it creates three full simulation bundles.",
165
+ f"2. Open the poster: `{poster_png}`",
166
+ "3. Walk the jury left to right: normal run, stress test, supervisor override.",
167
+ "4. Show that each run also has results CSV, audit trail, PDF report, and manifest.",
168
+ "5. Optionally show the local AI explanation on the supervisor run.",
169
+ "",
170
+ "## What to say per panel",
171
+ "",
172
+ ]
173
+ for spec in scenario_specs:
174
+ outputs = run_outputs[spec.slug]
175
+ lines.extend(
176
+ [
177
+ f"### {spec.label}",
178
+ "",
179
+ f"- Headline: {spec.headline}",
180
+ f"- Why it matters: {spec.jury_takeaway}",
181
+ f"- Run directory: `{outputs['output_dir']}`",
182
+ f"- Results CSV: `{outputs['results_csv']}`",
183
+ f"- PDF report: `{outputs['report_pdf']}`",
184
+ "",
185
+ ]
186
+ )
187
+
188
+ lines.extend(
189
+ [
190
+ "## Optional AI step",
191
+ "",
192
+ ai_status,
193
+ "",
194
+ "If local Ollama + Ministral are ready, run:",
195
+ "",
196
+ "```bash",
197
+ "iints ai local-check --model ministral-3:3b",
198
+ f"iints ai report {run_outputs['03_supervisor_override']['output_dir']} --model ministral-3:3b",
199
+ f"iints ai explain {run_outputs['03_supervisor_override']['output_dir']} --model ministral-3:3b",
200
+ "```",
201
+ "",
202
+ "## Key artifacts",
203
+ "",
204
+ f"- Poster PNG: `{poster_png}`",
205
+ f"- Poster summary: `{poster_summary_json}`",
206
+ f"- Demo summary JSON: `{output_dir / 'demo_summary.json'}`",
207
+ f"- Demo commands: `{output_dir / 'run_commands.md'}`",
208
+ ]
209
+ )
210
+
211
+ if ai_outputs:
212
+ lines.extend(
213
+ [
214
+ "",
215
+ "### AI-ready artifacts",
216
+ "",
217
+ ]
218
+ )
219
+ for key, value in ai_outputs.items():
220
+ lines.append(f"- {key}: `{value}`")
221
+
222
+ return "\n".join(lines) + "\n"
223
+
224
+
225
+ def _build_commands_markdown(
226
+ *,
227
+ output_dir: Path,
228
+ example_script: Path,
229
+ run_outputs: dict[str, dict[str, Any]],
230
+ ) -> str:
231
+ supervisor_dir = run_outputs["03_supervisor_override"]["output_dir"]
232
+ return (
233
+ "# Booth Demo Commands\n\n"
234
+ "## Run from source tree\n\n"
235
+ "```bash\n"
236
+ f"PYTHONPATH=src python3 {example_script} --output-dir {output_dir}\n"
237
+ "```\n\n"
238
+ "## Run via installed CLI\n\n"
239
+ "```bash\n"
240
+ f"iints demo-booth --output-dir {output_dir}\n"
241
+ "```\n\n"
242
+ "## Optional local AI explanation\n\n"
243
+ "```bash\n"
244
+ "iints ai local-check --model ministral-3:3b\n"
245
+ f"iints ai report {supervisor_dir} --model ministral-3:3b\n"
246
+ f"iints ai explain {supervisor_dir} --model ministral-3:3b\n"
247
+ "```\n"
248
+ )
249
+
250
+
251
+ def _build_live_demo_script_text(
252
+ *,
253
+ output_dir: Path,
254
+ poster_png: Path,
255
+ run_outputs: dict[str, dict[str, Any]],
256
+ ) -> str:
257
+ return (
258
+ "IINTS-AF BOOTH LIVE DEMO SCRIPT\n"
259
+ "===============================\n\n"
260
+ "1. WHAT CODE TO SHOW FIRST\n"
261
+ "- Show examples/demos/06_booth_demo.py first.\n"
262
+ " Reason: it is the shortest, clearest orchestration file and shows the whole story in one screen.\n"
263
+ "- If someone asks how it really works, open src/iints/analysis/booth_demo.py.\n"
264
+ " Reason: that file defines the three scenarios and writes the poster, talk track, and run bundle outputs.\n\n"
265
+ "2. LIVE COMMAND TO RUN\n"
266
+ "- From the repository root, run:\n"
267
+ " ./scripts/run_booth_demo.sh\n"
268
+ "- Or use the installed CLI:\n"
269
+ " iints demo-booth --output-dir results/booth_demo\n\n"
270
+ "3. WHAT TO SAY WHILE IT RUNS\n"
271
+ "- IINTS-AF is a safety-first SDK for testing insulin-delivery algorithms before real-world use.\n"
272
+ "- This demo generates three reproducible scenarios: a normal run, a stress test, and a supervisor override case.\n"
273
+ "- Every scenario produces real artifacts: CSV, PDF, audit trail, baseline comparison, and a manifest.\n\n"
274
+ "4. WHAT TO OPEN AFTER THE RUN\n"
275
+ f"- Open the poster: {poster_png}\n"
276
+ f"- Normal run folder: {run_outputs['01_normal_run']['output_dir']}\n"
277
+ f"- Meal stress folder: {run_outputs['02_meal_stress_test']['output_dir']}\n"
278
+ f"- Supervisor folder: {run_outputs['03_supervisor_override']['output_dir']}\n\n"
279
+ "5. JURY WALKTHROUGH\n"
280
+ "- Panel 1: Normal Run\n"
281
+ " Say: this is the control case. The algorithm keeps glucose in a clinically readable range.\n"
282
+ "- Panel 2: Meal Stress Test\n"
283
+ " Say: here we add larger disturbances and show that the system stays explainable under stress.\n"
284
+ "- Panel 3: Supervisor Override\n"
285
+ " Say: here we intentionally use a bad AI policy so the safety supervisor can prove it blocks unsafe insulin.\n\n"
286
+ "6. OPTIONAL AI STEP\n"
287
+ "- If Ollama is ready, run:\n"
288
+ " iints ai local-check --model ministral-3:3b\n"
289
+ f" iints ai report {run_outputs['03_supervisor_override']['output_dir']} --model ministral-3:3b\n"
290
+ f" iints ai explain {run_outputs['03_supervisor_override']['output_dir']} --model ministral-3:3b\n"
291
+ "- Say: the local model explains the result, but only after the SDK has prepared the run artifacts.\n\n"
292
+ "7. IF THE JURY ASKS WHY THIS MATTERS\n"
293
+ "- It is not just a graph generator.\n"
294
+ "- It is a reproducible safety workflow: simulate, stress, audit, visualize, explain.\n"
295
+ "- The supervisor case is the key proof that the SDK is safety-first, not just AI-first.\n\n"
296
+ "8. HANDY FILES\n"
297
+ f"- Poster PNG: {poster_png}\n"
298
+ f"- Jury markdown: {output_dir / 'JURY_TALK_TRACK.md'}\n"
299
+ f"- Demo commands: {output_dir / 'run_commands.md'}\n"
300
+ f"- Demo summary JSON: {output_dir / 'demo_summary.json'}\n"
301
+ )
302
+
303
+
304
+ def build_booth_demo(
305
+ output_dir: str | Path = "./results/booth_demo",
306
+ *,
307
+ duration_minutes: int = 360,
308
+ time_step: int = 5,
309
+ seed: int = 42,
310
+ prepare_ai: bool = True,
311
+ create_dev_mdmp_cert: bool = True,
312
+ ) -> dict[str, str]:
313
+ """
314
+ Create a fair-ready demo bundle with three scenario runs, a poster, and jury notes.
315
+ """
316
+ resolved_output = Path(output_dir).expanduser().resolve()
317
+ resolved_output.mkdir(parents=True, exist_ok=True)
318
+
319
+ specs = _scenario_specs()
320
+ run_outputs: dict[str, dict[str, Any]] = {}
321
+ run_dirs: list[Path] = []
322
+ labels: list[str] = []
323
+
324
+ for spec in specs:
325
+ run_dir = resolved_output / spec.slug
326
+ outputs = run_full(
327
+ algorithm=spec.algorithm_factory(),
328
+ scenario=spec.scenario,
329
+ patient_config="default_patient",
330
+ duration_minutes=duration_minutes,
331
+ time_step=time_step,
332
+ seed=seed,
333
+ output_dir=run_dir,
334
+ enable_profiling=False,
335
+ )
336
+ run_outputs[spec.slug] = {
337
+ "label": spec.label,
338
+ "headline": spec.headline,
339
+ "jury_takeaway": spec.jury_takeaway,
340
+ "output_dir": str(run_dir),
341
+ "results_csv": str(outputs["results_csv"]),
342
+ "report_pdf": str(outputs["report_pdf"]),
343
+ "run_manifest_path": str(outputs["run_manifest_path"]),
344
+ }
345
+ run_dirs.append(run_dir)
346
+ labels.append(spec.label)
347
+
348
+ poster_outputs = generate_results_poster(
349
+ run_dirs=run_dirs,
350
+ labels=labels,
351
+ output_path=resolved_output / "booth_demo_poster.png",
352
+ summary_output_path=resolved_output / "booth_demo_poster.json",
353
+ poster_title="288 Decisions. Every Day. We Test Them All.",
354
+ subtitle="Normal control, stress handling, and safety override in one fair-ready story.",
355
+ )
356
+
357
+ ai_outputs: dict[str, str] = {}
358
+ ai_status = "AI preparation was skipped."
359
+ if prepare_ai:
360
+ supervisor_dir = run_dirs[-1]
361
+ try:
362
+ ai_outputs = prepare_ai_ready_artifacts(
363
+ supervisor_dir,
364
+ create_dev_mdmp_cert=create_dev_mdmp_cert,
365
+ )
366
+ if "mdmp_cert" in ai_outputs:
367
+ ai_status = (
368
+ "AI-ready payloads and a local development MDMP certificate were generated for the "
369
+ "Supervisor Override run."
370
+ )
371
+ else:
372
+ ai_status = "AI-ready payloads were generated for the Supervisor Override run."
373
+ except Exception as exc:
374
+ ai_status = f"AI preparation did not block the demo, but it could not finish cleanly: {exc}"
375
+
376
+ summary_payload = {
377
+ "output_dir": str(resolved_output),
378
+ "duration_minutes": duration_minutes,
379
+ "time_step_minutes": time_step,
380
+ "seed": seed,
381
+ "poster_png": poster_outputs["poster_png"],
382
+ "poster_summary_json": poster_outputs["summary_json"],
383
+ "ai_status": ai_status,
384
+ "scenarios": [
385
+ {
386
+ "slug": spec.slug,
387
+ "label": spec.label,
388
+ "headline": spec.headline,
389
+ "jury_takeaway": spec.jury_takeaway,
390
+ "scenario_name": spec.scenario["scenario_name"],
391
+ **run_outputs[spec.slug],
392
+ }
393
+ for spec in specs
394
+ ],
395
+ }
396
+ _write_json(resolved_output / "demo_summary.json", summary_payload)
397
+
398
+ example_script = Path("examples/demos/06_booth_demo.py")
399
+ commands_markdown = _build_commands_markdown(
400
+ output_dir=resolved_output,
401
+ example_script=example_script,
402
+ run_outputs=run_outputs,
403
+ )
404
+ commands_path = resolved_output / "run_commands.md"
405
+ _write_text(commands_path, commands_markdown)
406
+
407
+ live_demo_script_text = _build_live_demo_script_text(
408
+ output_dir=resolved_output,
409
+ poster_png=Path(poster_outputs["poster_png"]),
410
+ run_outputs=run_outputs,
411
+ )
412
+ live_demo_script_path = resolved_output / "BEURS_LIVE_DEMO_SCRIPT.txt"
413
+ _write_text(live_demo_script_path, live_demo_script_text)
414
+
415
+ jury_brief = _build_jury_brief(
416
+ output_dir=resolved_output,
417
+ scenario_specs=specs,
418
+ poster_png=Path(poster_outputs["poster_png"]),
419
+ poster_summary_json=Path(poster_outputs["summary_json"]),
420
+ run_outputs=run_outputs,
421
+ ai_outputs=ai_outputs,
422
+ ai_status=ai_status,
423
+ )
424
+ jury_brief_path = resolved_output / "JURY_TALK_TRACK.md"
425
+ _write_text(jury_brief_path, jury_brief)
426
+
427
+ artifact_paths: dict[str, str] = {
428
+ "output_dir": str(resolved_output),
429
+ "poster_png": poster_outputs["poster_png"],
430
+ "poster_summary_json": poster_outputs["summary_json"],
431
+ "demo_summary_json": str(resolved_output / "demo_summary.json"),
432
+ "jury_talk_track": str(jury_brief_path),
433
+ "run_commands": str(commands_path),
434
+ "live_demo_script": str(live_demo_script_path),
435
+ }
436
+ for spec in specs:
437
+ artifact_paths[f"{spec.slug}_dir"] = run_outputs[spec.slug]["output_dir"]
438
+ artifact_paths.update(ai_outputs)
439
+ return artifact_paths
@@ -25,6 +25,7 @@ import iints # Import the top-level SDK package
25
25
  from iints.ai import prepare_ai_ready_artifacts
26
26
  from iints.ai.cli import app as ai_app
27
27
  from iints.analysis.baseline import run_baseline_comparison, write_baseline_comparison
28
+ from iints.analysis.booth_demo import build_booth_demo
28
29
  from iints.analysis.carelink_workbench import build_carelink_workbench
29
30
  from iints.analysis.poster import generate_results_poster
30
31
  from iints.api.registry import list_algorithm_plugins
@@ -2674,6 +2675,71 @@ def poster(
2674
2675
  )
2675
2676
 
2676
2677
 
2678
+ @app.command("demo-booth")
2679
+ def demo_booth(
2680
+ output_dir: Annotated[
2681
+ Path,
2682
+ typer.Option(help="Directory where the fair-ready demo bundle should be written."),
2683
+ ] = Path("./results/booth_demo"),
2684
+ duration: Annotated[
2685
+ int,
2686
+ typer.Option(help="Simulation duration in minutes for each booth scenario."),
2687
+ ] = 360,
2688
+ time_step: Annotated[
2689
+ int,
2690
+ typer.Option(help="Simulation step size in minutes."),
2691
+ ] = 5,
2692
+ seed: Annotated[
2693
+ int,
2694
+ typer.Option(help="Deterministic random seed."),
2695
+ ] = 42,
2696
+ prepare_ai: Annotated[
2697
+ bool,
2698
+ typer.Option(
2699
+ "--prepare-ai/--no-prepare-ai",
2700
+ help="Prepare AI-ready artifacts for the Supervisor Override run.",
2701
+ ),
2702
+ ] = True,
2703
+ ) -> None:
2704
+ """Build a full expo/jury demo bundle with runs, poster, and talk track."""
2705
+ console = Console()
2706
+ try:
2707
+ outputs = build_booth_demo(
2708
+ output_dir=output_dir,
2709
+ duration_minutes=duration,
2710
+ time_step=time_step,
2711
+ seed=seed,
2712
+ prepare_ai=prepare_ai,
2713
+ )
2714
+ except Exception as exc:
2715
+ console.print(f"[bold red]Booth demo failed:[/bold red] {exc}")
2716
+ raise typer.Exit(code=1)
2717
+
2718
+ table = Table(title="IINTS Booth Demo")
2719
+ table.add_column("Artifact", style="cyan")
2720
+ table.add_column("Path", overflow="fold")
2721
+ for key in [
2722
+ "poster_png",
2723
+ "poster_summary_json",
2724
+ "demo_summary_json",
2725
+ "jury_talk_track",
2726
+ "live_demo_script",
2727
+ "run_commands",
2728
+ "01_normal_run_dir",
2729
+ "02_meal_stress_test_dir",
2730
+ "03_supervisor_override_dir",
2731
+ "mdmp_cert",
2732
+ ]:
2733
+ if key in outputs:
2734
+ table.add_row(key, outputs[key])
2735
+ console.print(table)
2736
+ if "live_demo_script" in outputs:
2737
+ console.print(f"[green]Live booth script:[/green] {outputs['live_demo_script']}")
2738
+ console.print(
2739
+ "[green]Next:[/green] open the poster and use the jury talk track to walk people through the story."
2740
+ )
2741
+
2742
+
2677
2743
  @app.command()
2678
2744
  def report(
2679
2745
  results_csv: Annotated[Path, typer.Option(help="Path to a simulation results CSV")],