ab-analysis-kit 0.6.3__tar.gz → 0.7.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 (189) hide show
  1. {ab_analysis_kit-0.6.3/ab_analysis_kit.egg-info → ab_analysis_kit-0.7.0}/PKG-INFO +22 -8
  2. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/README.md +21 -7
  3. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0/ab_analysis_kit.egg-info}/PKG-INFO +22 -8
  4. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/ab_analysis_kit.egg-info/SOURCES.txt +9 -0
  5. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/__init__.py +1 -1
  6. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/cli.md +97 -21
  7. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/experiments.md +8 -0
  8. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/explore.md +7 -4
  9. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/metrics.md +2 -1
  10. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/overview.md +2 -1
  11. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/project.md +62 -10
  12. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/dashboard.py +7 -1
  13. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/init.py +11 -0
  14. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/run.py +173 -14
  15. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/validate.py +48 -1
  16. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/main.py +38 -3
  17. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/experiment_config.py +40 -1
  18. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/profile.py +21 -5
  19. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/project_config.py +7 -2
  20. ab_analysis_kit-0.7.0/abkit/config/signals.py +20 -0
  21. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/core/period_planner.py +21 -3
  22. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_maintenance.py +7 -1
  23. ab_analysis_kit-0.7.0/abkit/database/internal_tables/_notify_states.py +145 -0
  24. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/manager.py +2 -0
  25. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/tables.py +45 -0
  26. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/__init__.py +16 -4
  27. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/base.py +126 -5
  28. ab_analysis_kit-0.7.0/abkit/notify/cooldown.py +124 -0
  29. ab_analysis_kit-0.7.0/abkit/notify/discord.py +137 -0
  30. ab_analysis_kit-0.7.0/abkit/notify/dispatch.py +711 -0
  31. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/email.py +44 -18
  32. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/factory.py +20 -0
  33. ab_analysis_kit-0.7.0/abkit/notify/googlechat.py +146 -0
  34. ab_analysis_kit-0.7.0/abkit/notify/ntfy.py +167 -0
  35. ab_analysis_kit-0.7.0/abkit/notify/teams.py +180 -0
  36. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/telegram.py +26 -15
  37. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/webhook.py +18 -12
  38. ab_analysis_kit-0.7.0/abkit/pipeline/_types.py +206 -0
  39. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/pipeline/driver.py +96 -19
  40. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/pipeline/state.py +6 -3
  41. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/__init__.py +25 -5
  42. ab_analysis_kit-0.7.0/abkit/tuning/assets/dashboard.js +197 -0
  43. ab_analysis_kit-0.7.0/abkit/tuning/config_files.py +593 -0
  44. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/config_writer.py +16 -40
  45. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/dashboard_server.py +536 -57
  46. ab_analysis_kit-0.6.3/abkit/pipeline/_types.py +0 -87
  47. ab_analysis_kit-0.6.3/abkit/tuning/assets/dashboard.js +0 -171
  48. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/LICENSE +0 -0
  49. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/MANIFEST.in +0 -0
  50. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/ab_analysis_kit.egg-info/dependency_links.txt +0 -0
  51. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/ab_analysis_kit.egg-info/entry_points.txt +0 -0
  52. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/ab_analysis_kit.egg-info/requires.txt +0 -0
  53. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/ab_analysis_kit.egg-info/top_level.txt +0 -0
  54. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/__init__.py +0 -0
  55. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/_output.py +0 -0
  56. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/CLAUDE.section.md +0 -0
  57. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/methods.md +0 -0
  58. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/plan.md +0 -0
  59. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/rules/validate.md +0 -0
  60. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/skills/abk-explore/SKILL.md +0 -0
  61. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/skills/abk-feedback/SKILL.md +0 -0
  62. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/skills/abk-new-experiment/SKILL.md +0 -0
  63. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/skills/abk-new-metric/SKILL.md +0 -0
  64. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md +0 -0
  65. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/skills/abk-setup-project/SKILL.md +0 -0
  66. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/assets/claude/skills/abk-validate/SKILL.md +0 -0
  67. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/__init__.py +0 -0
  68. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/_context.py +0 -0
  69. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/clean.py +0 -0
  70. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/explore.py +0 -0
  71. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/init_claude.py +0 -0
  72. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/plan.py +0 -0
  73. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/test_report.py +0 -0
  74. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/unlock.py +0 -0
  75. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/cli/commands/verify_incremental.py +0 -0
  76. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/compute/__init__.py +0 -0
  77. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/compute/incremental_backend.py +0 -0
  78. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/compute/recompute_backend.py +0 -0
  79. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/compute/reconcile.py +0 -0
  80. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/__init__.py +0 -0
  81. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/discovery.py +0 -0
  82. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/method_config.py +0 -0
  83. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/metric_config.py +0 -0
  84. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/config/validator.py +0 -0
  85. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/core/__init__.py +0 -0
  86. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/core/exposure_counting.py +0 -0
  87. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/core/interval.py +0 -0
  88. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/core/models.py +0 -0
  89. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/__init__.py +0 -0
  90. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/_sql_manager.py +0 -0
  91. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/clickhouse_manager.py +0 -0
  92. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/__init__.py +0 -0
  93. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_aa_runs.py +0 -0
  94. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_base.py +0 -0
  95. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_experiments.py +0 -0
  96. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_exposures.py +0 -0
  97. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_results.py +0 -0
  98. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_schema.py +0 -0
  99. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_tasks.py +0 -0
  100. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/internal_tables/_unit_state.py +0 -0
  101. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/manager.py +0 -0
  102. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/mysql_manager.py +0 -0
  103. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/database/postgres_manager.py +0 -0
  104. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/__init__.py +0 -0
  105. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/exposure_copy.py +0 -0
  106. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/exposure_loader.py +0 -0
  107. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/exposure_source.py +0 -0
  108. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/metric_loader.py +0 -0
  109. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/query_template.py +0 -0
  110. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/state_loader.py +0 -0
  111. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/loaders/templates/abkit_assignment.jinja +0 -0
  112. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/branding.py +0 -0
  113. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/mattermost.py +0 -0
  114. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/mock.py +0 -0
  115. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/notify/slack.py +0 -0
  116. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/pipeline/__init__.py +0 -0
  117. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/pipeline/analyze.py +0 -0
  118. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/pipeline/enrich.py +0 -0
  119. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/pipeline/readout.py +0 -0
  120. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/planning/__init__.py +0 -0
  121. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/planning/sizing.py +0 -0
  122. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/reporting/__init__.py +0 -0
  123. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/reporting/assets/report.js +0 -0
  124. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/reporting/builder.py +0 -0
  125. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/reporting/calibration.py +0 -0
  126. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/reporting/html_report.py +0 -0
  127. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/__init__.py +0 -0
  128. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/accumulate.py +0 -0
  129. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/base.py +0 -0
  130. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/__init__.py +0 -0
  131. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/applier.py +0 -0
  132. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/bootstrap.py +0 -0
  133. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/ci.py +0 -0
  134. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/engine.py +0 -0
  135. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/paired_bootstrap.py +0 -0
  136. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/paired_post_normed_bootstrap.py +0 -0
  137. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/poisson_bootstrap.py +0 -0
  138. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/bootstrap/post_normed_bootstrap.py +0 -0
  139. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/correction.py +0 -0
  140. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/effects.py +0 -0
  141. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/exceptions.py +0 -0
  142. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/factory.py +0 -0
  143. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/parametric/__init__.py +0 -0
  144. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/parametric/cuped_ttest.py +0 -0
  145. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/parametric/paired_cuped_ttest.py +0 -0
  146. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/parametric/paired_ttest.py +0 -0
  147. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/parametric/ratio_delta.py +0 -0
  148. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/parametric/ttest.py +0 -0
  149. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/parametric/ztest.py +0 -0
  150. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/power.py +0 -0
  151. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/registry.py +0 -0
  152. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/result.py +0 -0
  153. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/rng.py +0 -0
  154. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/samples.py +0 -0
  155. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/sequential/__init__.py +0 -0
  156. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/sequential/apply.py +0 -0
  157. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/sequential/confidence_sequence.py +0 -0
  158. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/sequential/mixture.py +0 -0
  159. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/stats/srm.py +0 -0
  160. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/assets/explore.js +0 -0
  161. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/html.py +0 -0
  162. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/jobs.py +0 -0
  163. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/overview.py +0 -0
  164. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/payload.py +0 -0
  165. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/recompute.py +0 -0
  166. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/server.py +0 -0
  167. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/tuning/session.py +0 -0
  168. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/utils/__init__.py +0 -0
  169. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/utils/datetime_utils.py +0 -0
  170. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/utils/env_interpolation.py +0 -0
  171. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/utils/json_utils.py +0 -0
  172. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/utils/warn_scope.py +0 -0
  173. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/__init__.py +0 -0
  174. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/_types.py +0 -0
  175. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/family.py +0 -0
  176. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/inject.py +0 -0
  177. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/load.py +0 -0
  178. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/panel.py +0 -0
  179. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/persistence.py +0 -0
  180. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/resample.py +0 -0
  181. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/result.py +0 -0
  182. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/run_id.py +0 -0
  183. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/runner.py +0 -0
  184. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/scoring.py +0 -0
  185. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/abkit/validate/vector_resample.py +0 -0
  186. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/pyproject.toml +0 -0
  187. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/requirements.txt +0 -0
  188. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/setup.cfg +0 -0
  189. {ab_analysis_kit-0.6.3 → ab_analysis_kit-0.7.0}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ab-analysis-kit
3
- Version: 0.6.3
3
+ Version: 0.7.0
4
4
  Summary: A/B experiment analysis as declarative YAML + SQL
5
5
  Author: ab-analysis-kit authors
6
6
  License: MIT
@@ -76,8 +76,16 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
76
76
  gives you a local cockpit to tune the analysis and a harness to prove your method is
77
77
  actually calibrated.
78
78
 
79
- > **Status: `0.6.3` (Alpha) — release-ready; `0.6.2` is the latest on PyPI**
80
- > (milestones **M1–M11** shipped — M11 added **`abk dashboard`**, the
79
+ > **Status: `0.7.0` (Alpha) — the latest on PyPI**
80
+ > (milestones **M1–M12** shipped — M12 wired **notifications**: `abk run
81
+ > --notify` and `abk validate --notify` push what a run just decided to nine
82
+ > channel types (Slack, Telegram, email, webhook, Mattermost, Discord, Teams,
83
+ > Google Chat, ntfy), as six routable signals — the readout verdict, a verdict
84
+ > flip, a failed sample-ratio gate, a pipeline error, a slipped schedule, and an
85
+ > A/A cell that broke its false-positive budget. Nothing is recomputed for a
86
+ > message, so it cannot disagree with the report; a repeat run over unchanged
87
+ > data is silent; and no channel failure can change an exit code. M11 added
88
+ > **`abk dashboard`**, the
81
89
  > project-level cockpit: one row per experiment with its headline verdict,
82
90
  > effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
83
91
  > spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
@@ -88,7 +96,13 @@ actually calibrated.
88
96
  > correlation its own results row already persists — required-N is `(1 − ρ²)×` the
89
97
  > old raw-variance bound (`0.6.1`) — and `--from-history <N d>` gives an experiment
90
98
  > that has **never run** a baseline from the days before its start, instead of
91
- > `SKIPPED: no baseline` (`0.6.2`)). The statistical core, the
99
+ > `SKIPPED: no baseline` (`0.6.2`). A second `0.6.x` interstitial then gave the
100
+ > dashboard **CRUD YAML editing** — edit, create, delete an experiment from the
101
+ > cockpit, validated at both levels and archived byte-verbatim before every write
102
+ > — added `abk ui` as its alias, and made M9's additive read path **discoverable**:
103
+ > `abk run` no longer stays quiet about an undecided `compute.incremental_reads`,
104
+ > `--cost-report` prints the counterfactual, and `abk init` scaffolds it on
105
+ > (`0.6.4`)). The statistical core, the
92
106
  > declarative config / DB / pipeline layer, the explore cockpit +
93
107
  > self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
94
108
  > opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
@@ -101,10 +115,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
101
115
  pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
102
116
  ```
103
117
 
104
- (`pip install ab-analysis-kit` gets `0.6.2` — `abk dashboard`, CUPED-aware `abk plan`
105
- sizing and `abk plan --from-history` all included. `0.6.3` is a fix release — a
106
- renamed `paths.experiments` now reaches selection — and lands with its tag; until
107
- then install from source for it: `pip install -e ".[dev]"`.)
118
+ (`pip install ab-analysis-kit` gets `0.7.0` — opt-in notifications across nine
119
+ channels, `abk dashboard` with its YAML editor, `abk ui`, CUPED-aware `abk plan`
120
+ sizing, `abk plan --from-history` and the discoverable additive read path all
121
+ included.)
108
122
 
109
123
  `abk --version` and `abk --help` work with no database driver; you can even lint a
110
124
  config (`abk run --steps validate`) with no database at all. See the
@@ -11,8 +11,16 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
11
11
  gives you a local cockpit to tune the analysis and a harness to prove your method is
12
12
  actually calibrated.
13
13
 
14
- > **Status: `0.6.3` (Alpha) — release-ready; `0.6.2` is the latest on PyPI**
15
- > (milestones **M1–M11** shipped — M11 added **`abk dashboard`**, the
14
+ > **Status: `0.7.0` (Alpha) — the latest on PyPI**
15
+ > (milestones **M1–M12** shipped — M12 wired **notifications**: `abk run
16
+ > --notify` and `abk validate --notify` push what a run just decided to nine
17
+ > channel types (Slack, Telegram, email, webhook, Mattermost, Discord, Teams,
18
+ > Google Chat, ntfy), as six routable signals — the readout verdict, a verdict
19
+ > flip, a failed sample-ratio gate, a pipeline error, a slipped schedule, and an
20
+ > A/A cell that broke its false-positive budget. Nothing is recomputed for a
21
+ > message, so it cannot disagree with the report; a repeat run over unchanged
22
+ > data is silent; and no channel failure can change an exit code. M11 added
23
+ > **`abk dashboard`**, the
16
24
  > project-level cockpit: one row per experiment with its headline verdict,
17
25
  > effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
18
26
  > spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
@@ -23,7 +31,13 @@ actually calibrated.
23
31
  > correlation its own results row already persists — required-N is `(1 − ρ²)×` the
24
32
  > old raw-variance bound (`0.6.1`) — and `--from-history <N d>` gives an experiment
25
33
  > that has **never run** a baseline from the days before its start, instead of
26
- > `SKIPPED: no baseline` (`0.6.2`)). The statistical core, the
34
+ > `SKIPPED: no baseline` (`0.6.2`). A second `0.6.x` interstitial then gave the
35
+ > dashboard **CRUD YAML editing** — edit, create, delete an experiment from the
36
+ > cockpit, validated at both levels and archived byte-verbatim before every write
37
+ > — added `abk ui` as its alias, and made M9's additive read path **discoverable**:
38
+ > `abk run` no longer stays quiet about an undecided `compute.incremental_reads`,
39
+ > `--cost-report` prints the counterfactual, and `abk init` scaffolds it on
40
+ > (`0.6.4`)). The statistical core, the
27
41
  > declarative config / DB / pipeline layer, the explore cockpit +
28
42
  > self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
29
43
  > opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
@@ -36,10 +50,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
36
50
  pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
37
51
  ```
38
52
 
39
- (`pip install ab-analysis-kit` gets `0.6.2` — `abk dashboard`, CUPED-aware `abk plan`
40
- sizing and `abk plan --from-history` all included. `0.6.3` is a fix release — a
41
- renamed `paths.experiments` now reaches selection — and lands with its tag; until
42
- then install from source for it: `pip install -e ".[dev]"`.)
53
+ (`pip install ab-analysis-kit` gets `0.7.0` — opt-in notifications across nine
54
+ channels, `abk dashboard` with its YAML editor, `abk ui`, CUPED-aware `abk plan`
55
+ sizing, `abk plan --from-history` and the discoverable additive read path all
56
+ included.)
43
57
 
44
58
  `abk --version` and `abk --help` work with no database driver; you can even lint a
45
59
  config (`abk run --steps validate`) with no database at all. See the
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ab-analysis-kit
3
- Version: 0.6.3
3
+ Version: 0.7.0
4
4
  Summary: A/B experiment analysis as declarative YAML + SQL
5
5
  Author: ab-analysis-kit authors
6
6
  License: MIT
@@ -76,8 +76,16 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
76
76
  gives you a local cockpit to tune the analysis and a harness to prove your method is
77
77
  actually calibrated.
78
78
 
79
- > **Status: `0.6.3` (Alpha) — release-ready; `0.6.2` is the latest on PyPI**
80
- > (milestones **M1–M11** shipped — M11 added **`abk dashboard`**, the
79
+ > **Status: `0.7.0` (Alpha) — the latest on PyPI**
80
+ > (milestones **M1–M12** shipped — M12 wired **notifications**: `abk run
81
+ > --notify` and `abk validate --notify` push what a run just decided to nine
82
+ > channel types (Slack, Telegram, email, webhook, Mattermost, Discord, Teams,
83
+ > Google Chat, ntfy), as six routable signals — the readout verdict, a verdict
84
+ > flip, a failed sample-ratio gate, a pipeline error, a slipped schedule, and an
85
+ > A/A cell that broke its false-positive budget. Nothing is recomputed for a
86
+ > message, so it cannot disagree with the report; a repeat run over unchanged
87
+ > data is silent; and no channel failure can change an exit code. M11 added
88
+ > **`abk dashboard`**, the
81
89
  > project-level cockpit: one row per experiment with its headline verdict,
82
90
  > effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
83
91
  > spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
@@ -88,7 +96,13 @@ actually calibrated.
88
96
  > correlation its own results row already persists — required-N is `(1 − ρ²)×` the
89
97
  > old raw-variance bound (`0.6.1`) — and `--from-history <N d>` gives an experiment
90
98
  > that has **never run** a baseline from the days before its start, instead of
91
- > `SKIPPED: no baseline` (`0.6.2`)). The statistical core, the
99
+ > `SKIPPED: no baseline` (`0.6.2`). A second `0.6.x` interstitial then gave the
100
+ > dashboard **CRUD YAML editing** — edit, create, delete an experiment from the
101
+ > cockpit, validated at both levels and archived byte-verbatim before every write
102
+ > — added `abk ui` as its alias, and made M9's additive read path **discoverable**:
103
+ > `abk run` no longer stays quiet about an undecided `compute.incremental_reads`,
104
+ > `--cost-report` prints the counterfactual, and `abk init` scaffolds it on
105
+ > (`0.6.4`)). The statistical core, the
92
106
  > declarative config / DB / pipeline layer, the explore cockpit +
93
107
  > self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
94
108
  > opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
@@ -101,10 +115,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
101
115
  pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
102
116
  ```
103
117
 
104
- (`pip install ab-analysis-kit` gets `0.6.2` — `abk dashboard`, CUPED-aware `abk plan`
105
- sizing and `abk plan --from-history` all included. `0.6.3` is a fix release — a
106
- renamed `paths.experiments` now reaches selection — and lands with its tag; until
107
- then install from source for it: `pip install -e ".[dev]"`.)
118
+ (`pip install ab-analysis-kit` gets `0.7.0` — opt-in notifications across nine
119
+ channels, `abk dashboard` with its YAML editor, `abk ui`, CUPED-aware `abk plan`
120
+ sizing, `abk plan --from-history` and the discoverable additive read path all
121
+ included.)
108
122
 
109
123
  `abk --version` and `abk --help` work with no database driver; you can even lint a
110
124
  config (`abk run --steps validate`) with no database at all. See the
@@ -55,6 +55,7 @@ abkit/config/method_config.py
55
55
  abkit/config/metric_config.py
56
56
  abkit/config/profile.py
57
57
  abkit/config/project_config.py
58
+ abkit/config/signals.py
58
59
  abkit/config/validator.py
59
60
  abkit/core/__init__.py
60
61
  abkit/core/exposure_counting.py
@@ -74,6 +75,7 @@ abkit/database/internal_tables/_base.py
74
75
  abkit/database/internal_tables/_experiments.py
75
76
  abkit/database/internal_tables/_exposures.py
76
77
  abkit/database/internal_tables/_maintenance.py
78
+ abkit/database/internal_tables/_notify_states.py
77
79
  abkit/database/internal_tables/_results.py
78
80
  abkit/database/internal_tables/_schema.py
79
81
  abkit/database/internal_tables/_tasks.py
@@ -90,11 +92,17 @@ abkit/loaders/templates/abkit_assignment.jinja
90
92
  abkit/notify/__init__.py
91
93
  abkit/notify/base.py
92
94
  abkit/notify/branding.py
95
+ abkit/notify/cooldown.py
96
+ abkit/notify/discord.py
97
+ abkit/notify/dispatch.py
93
98
  abkit/notify/email.py
94
99
  abkit/notify/factory.py
100
+ abkit/notify/googlechat.py
95
101
  abkit/notify/mattermost.py
96
102
  abkit/notify/mock.py
103
+ abkit/notify/ntfy.py
97
104
  abkit/notify/slack.py
105
+ abkit/notify/teams.py
98
106
  abkit/notify/telegram.py
99
107
  abkit/notify/webhook.py
100
108
  abkit/pipeline/__init__.py
@@ -145,6 +153,7 @@ abkit/stats/sequential/apply.py
145
153
  abkit/stats/sequential/confidence_sequence.py
146
154
  abkit/stats/sequential/mixture.py
147
155
  abkit/tuning/__init__.py
156
+ abkit/tuning/config_files.py
148
157
  abkit/tuning/config_writer.py
149
158
  abkit/tuning/dashboard_server.py
150
159
  abkit/tuning/html.py
@@ -10,7 +10,7 @@ from __future__ import annotations
10
10
 
11
11
  from typing import Any
12
12
 
13
- __version__ = "0.6.3"
13
+ __version__ = "0.7.0"
14
14
 
15
15
  #: Symbols re-exported lazily from ``abkit.stats`` (PEP 562) so importing
16
16
  #: ``abkit`` for ``__version__`` (the CLI path) stays numpy-free and fast.
@@ -13,7 +13,8 @@ task = one `abk` invocation), so a broken run fails the job instead of exiting 0
13
13
  | `abk init-claude` | (Re)install this AI context: managed `CLAUDE.md` block + `.claude/rules/ab-analysis-kit/` + `.claude/skills/` |
14
14
  | `abk run --select <exp>` | Run the load → compute → readout pipeline for an experiment |
15
15
  | `abk explore --select <exp>` | Serve the interactive cockpit — tune the method live, write it back (see `explore.md`) |
16
- | `abk dashboard` | Serve the project-level cockpit: one row per experiment, buttons that spawn `abk` commands |
16
+ | `abk dashboard` | Serve the project-level cockpit: one row per experiment, buttons that spawn `abk` commands, and YAML create/edit/delete |
17
+ | `abk ui` | Alias for `abk dashboard` — the same command object, so the options can never drift |
17
18
  | `abk validate --select <exp>` | The A/A false-positive + power matrix — is a method calibrated on this data? (see `validate.md`) |
18
19
  | `abk plan --select <exp>` | Read-only pre-launch sizing: required-N / achievable-MDE / power (see `plan.md`) |
19
20
  | `abk unlock --select <exp>` | Clear a stuck pipeline / validate lock |
@@ -31,8 +32,8 @@ experiment references reusable metrics:
31
32
  bare **name** (`example_signup_test` — do NOT add `.yml`), **path / glob**
32
33
  (`"experiments/checkout/*.yml"`, `"signup_*"`), **tag** (`tag:actual`), and
33
34
  `"*"` for all. Repeatable. `run`/`validate`/`plan`/`unlock`/`clean`/`dashboard`
34
- default to **all experiments** when `--select` is omitted; `explore` requires
35
- exactly one.
35
+ (= `ui`) default to **all experiments** when `--select` is omitted; `explore`
36
+ requires exactly one.
36
37
  - **`--metric <name>` selects a LIBRARY metric** within the chosen experiment(s)
37
38
  — a single metric name, never a glob. It narrows a command to that metric's
38
39
  comparison(s) (`run`, `explore`, `validate`, `plan`, `verify-incremental`).
@@ -42,7 +43,7 @@ experiment references reusable metrics:
42
43
 
43
44
  Experiment AND metric names share ONE global namespace and are the DB key —
44
45
  selection/uniqueness errors name the namespace and the colliding file. `--exclude`
45
- (on `run` and `dashboard`) removes matches
46
+ (on `run` and `dashboard`/`ui`) removes matches
46
47
  (`--select "*" --exclude "experiments/staging/*"`).
47
48
 
48
49
  ## `abk init`
@@ -89,6 +90,15 @@ It is incremental by
89
90
  an anti-join — only cutoffs past the `data_lag` watermark and not already computed
90
91
  are (re)computed, so re-running is idempotent.
91
92
 
93
+ **The run says so when the fast path is being left on the table.** A comparison
94
+ on the additive contract (`state_additive: true` on the metric, plus a
95
+ closed-form unstratified comparison with no explicit covariate) while
96
+ `compute.incremental_reads` is unwritten means every run pays the STATE write
97
+ and then re-scans the full window anyway;
98
+ at six looks or more `abk run` warns and names both ways out (`true` to take it,
99
+ `false` to record the refusal). It also discloses the two mirror cases: the flag
100
+ on with nothing declared additive, and how many looks fell back to recompute.
101
+
92
102
  - `--metric <m>` (0.6.0) — recompute only that metric's comparison(s); the same
93
103
  metric axis `explore`/`validate`/`plan`/`verify-incremental` take. Other
94
104
  metrics' **results** are left exactly as they are, and the **alphas do not
@@ -127,8 +137,35 @@ are (re)computed, so re-running is idempotent.
127
137
  `reports/<exp>.html`; a directory → `<dir>/<exp>.html`; a `.html` path → that
128
138
  file. Reads persisted rows, so even a load-only run can produce one.
129
139
  - `--cost-report` — print per-stage warehouse cost (wall-time, queries, rows returned,
130
- rows scanned where the backend reports them). The evidence for turning
140
+ rows scanned where the backend reports them), plus `of which day-additive:` — the
141
+ same measured cost attributed to the state-eligible comparisons only, followed by
142
+ what the other read path would have done with it. That slice is PART OF the
143
+ `compute` total, never a sibling; do not add them. The evidence for turning
131
144
  `compute.incremental_reads` on; unrelated to `--profile` (the DB connection).
145
+ - `--notify` / `--no-notify` (default off, 0.7.0) — after the run, push each
146
+ **completed** experiment's readout to the `notification_channels` configured in
147
+ `profiles.yml`. Same decision the report bakes (`readout.evaluate()` over the
148
+ persisted rows — nothing is recomputed for a message), one message per verdict,
149
+ and **best-effort exactly like `--report`**: a channel that is down or
150
+ misconfigured is a yellow line, never a non-zero exit. A **failed** run sends an
151
+ error notice instead (the reason, no statistics block — nothing was measured);
152
+ `locked`/`skipped` runs and an experiment with no persisted rows of its own send
153
+ nothing. A **failed SRM gate adds no second message**: the readout already built
154
+ answers to the `srm` kind too, so an `on: [srm, error]` channel hears about a
155
+ broken split without receiving routine readouts. Route it per experiment with a
156
+ `notify:` block (`channels` / `mentions` / `on`); with no block, a notified run
157
+ goes to every configured channel. **Only a CHANGE is announced**: `_ab_notify_states`
158
+ remembers what each comparison last said, and an unchanged verdict is not
159
+ re-sent — so a scheduled run every hour is not a message every hour. A newly
160
+ broken SRM gate counts as a change even when the verdict word is identical
161
+ (a pre-horizon pair says INCONCLUSIVE either way), and a message no channel
162
+ accepted is not recorded, so the next run retries it. A completed run also
163
+ sends a **`stale`** notice when a metric's series was more than 3 cadence steps
164
+ behind the looks ALREADY DUE when the run planned it. Read it as "the schedule
165
+ slipped" — the same run computes the missing looks, so it is retrospective, and
166
+ an experiment past its horizon with everything computed is never behind. It
167
+ dedups on WHICH metrics were behind (never how far — that number grows every
168
+ run) and re-announces once they clear and fall behind again.
132
169
  - `--force` — take over a held lock (prefer `abk unlock`; risky with concurrent runs).
133
170
  - `--profile` — override `profiles.yml`'s `default_profile` (e.g. run against staging).
134
171
 
@@ -155,41 +192,80 @@ without launching a browser. Takes no pipeline lock (it only edits a config file
155
192
  re-run `abk run` afterward to recompute under the new config. Full reference:
156
193
  `explore.md`.
157
194
 
158
- ## `abk dashboard`
195
+ ## `abk dashboard` (alias: `abk ui`)
159
196
 
160
197
  ```bash
161
198
  abk dashboard [--select <sel>]... [--exclude <sel>]... [--window 24h|7d|30d|90d|all] \
162
199
  [--no-open] [--profile NAME]
163
200
  ```
164
201
 
202
+ `abk ui` is the same command registered under a second name — identical options
203
+ and help. `dashboard` stays canonical: `dashboard`/`explore` say WHICH surface
204
+ you want, where `ui` does not.
205
+
165
206
  The project-level cockpit (0.6.0): one row per selected experiment — headline
166
207
  verdict, effect, p-value, last look and a sparkline — served on localhost with a
167
208
  per-start token that authorizes EVERY request, `GET` included. The page boots on
168
209
  metadata only and fills each row on demand (3 requests in flight), so a
169
210
  hundred-experiment project renders instantly.
170
211
 
171
- **A launcher, not a worker.** It runs no pipeline step, computes no statistic,
172
- takes **no pipeline lock** and writes no config: verdicts come from the same
173
- `readout.evaluate()` decision `abk run --report` bakes, and the Run / Explore /
174
- Unlock / Clean buttons each spawn a real `abk` subprocess (inheriting
175
- `--profile`), streaming its log into a job drawer. `run`/`unlock`/`clean` are
176
- one-at-a-time project-wide (a second request is refused — they contend for the
177
- pipeline lock); `explore` is exempt and deduped per experiment. Ctrl-C stops the
178
- server and terminates every job it spawned.
212
+ **A launcher, not a worker: it computes no statistic and takes no pipeline
213
+ lock.** Verdicts come from the same `readout.evaluate()` decision `abk run
214
+ --report` bakes, and the Run / Explore / Unlock / Clean buttons each spawn a real
215
+ `abk` subprocess (inheriting `--profile`), streaming its log into a job drawer.
216
+ `run`/`unlock`/`clean` are one-at-a-time project-wide (a second request is
217
+ refused — they contend for the pipeline lock); `explore` is exempt and deduped
218
+ per experiment. Ctrl-C stops the server and terminates every job it spawned.
219
+ Editing a YAML (below) does not break this: a config is your own declaration, not
220
+ a computed result — no number on the page comes from it and it cannot block a
221
+ pipeline.
179
222
 
180
223
  - `--window` (default `30d`) bounds the **sparkline only** — every verdict,
181
224
  effect and p-value is the FULL cumulative series' (dropping the oldest look
182
225
  would truncate a stabilization history, not shorten the experiment). Switchable
183
226
  on the page.
184
227
  - `--exclude` removes matches from a broad `--select`, as on `abk run`.
185
- - Configs are read ONCE at boot: restart after editing an experiment YAML.
186
228
  - A project that has never run serves fine — every row reads `no data — press
187
229
  Run`, and nothing here creates internal schema.
188
- - **Read-only YAML.** `Show YAML` prints the file + its path for you to open in
189
- your editor; there is no save endpoint. The config-writing surface is
190
- `abk explore`'s Apply.
230
+ - **Editing YAML.** A row's `Edit YAML` opens the file in a textarea with
231
+ **Save**, **Revert** and **Delete…**; the header gains **New experiment** (the
232
+ file name comes from the config's own `name:`; an optional subfolder of
233
+ `paths.experiments`) and **Reload configs**. A save is **validate → archive →
234
+ write**: BOTH validation levels (pydantic `ExperimentConfig` *and* the §8
235
+ level-2 matrix that `abk run --steps validate` runs), then the previous file
236
+ archived byte-verbatim under `.history/<name>/` **beside the file** (so a
237
+ nested `experiments/growth/x.yml` archives to `experiments/growth/.history/x/`
238
+ — the same tree explore's Apply writes), then an atomic replace. **Your text round-trips
239
+ verbatim** — comments and layout survive, normalized only to end with a
240
+ newline. That is why this is not built on explore's Apply, which re-emits a
241
+ parsed document and loses comments.
242
+ - **A save/delete is refused (400, with the detail) when:** the **digest is
243
+ stale** — the file changed on disk since the editor read it (a second tab, or
244
+ an `abk explore` Apply this very dashboard spawned) — reopen it; a **job is
245
+ running** on that experiment (a job you started from a terminal is invisible to
246
+ this check, but the digest catches the explore half of it after the fact);
247
+ **level 2 reports findings**, which a **Save anyway** button re-sends with
248
+ `force`, downgrading them to loud warnings so the editor is usable on a project
249
+ that does not lint yet — **level 1 is never forceable**; the **name duplicates**
250
+ another config anywhere in the project (experiments and metrics share ONE
251
+ namespace); the file is **larger than 512 kB**, in which case it is shown
252
+ truncated and not editable at all (writing the prefix back would drop the tail).
253
+ - **Renaming** (editing `name:`) is allowed and keeps the file path — persisted
254
+ rows keep the OLD name until `abk clean --orphaned-experiments` prunes them.
255
+ **Delete removes the YAML only**: `_ab_results` / `_ab_unit_state` rows survive
256
+ until that same `abk clean`, and the archived copy
257
+ (`<name>-<stamp>-deleted.yml`) makes the delete reversible by hand.
258
+ - **Configs are re-read after every successful edit** and on demand via **Reload
259
+ configs** (the manual form): the `--select`/`--exclude` selection is re-resolved
260
+ and the row list refreshed, so an edit needs no restart. `Refresh` re-reads the
261
+ WAREHOUSE for rows; `Reload configs` re-reads the YAML on DISK — different
262
+ buttons on purpose. A create that lands outside this cockpit's selection is
263
+ reported, never silently missing; a reload that fails (a broken sibling YAML, a
264
+ name collision) keeps the previous selection and warns — the write already
265
+ landed.
191
266
  - **The URL is a credential** — whoever has it can spawn `abk run`/`abk clean`
192
- in your project. Localhost-bound; do not share it or forward the port.
267
+ in your project and create, edit or delete an experiment YAML. Localhost-bound;
268
+ do not share it or forward the port.
193
269
 
194
270
  An empty selection warns and exits 0 without serving; an unknown `--window` is a
195
271
  non-zero startup error, raised before the port is bound. Full reference:
@@ -335,8 +411,8 @@ abk plan --select example_signup_test --mde 0.05
335
411
  abk validate --select example_signup_test
336
412
  abk explore --select example_signup_test
337
413
 
338
- # Watch the whole portfolio (and drive it) from one page
339
- abk dashboard --select tag:actual
414
+ # Watch the whole portfolio, drive it and edit its YAML from one page
415
+ abk dashboard --select tag:actual # `abk ui` is the same command
340
416
 
341
417
  # Scheduled recompute of every experiment whose `tags:` list contains "actual" (cron / Prefect)
342
418
  abk run --select tag:actual
@@ -54,6 +54,14 @@ readout: # READ-TIME verdict knobs — NEVER enter metho
54
54
  stabilization_days: 7 # trailing elapsed-DAYS window for "persistent significance" (default 7)
55
55
  guardrail_policy: block # block (default): regressed guardrail caps WIN at INCONCLUSIVE; warn: keep WIN + caveat
56
56
 
57
+ # notify: # optional ROUTING for `abk run --notify` (0.7.0). Omitting it does
58
+ # channels: [team_slack] # NOT silence the experiment — a notified run with no block goes to
59
+ # mentions: [growth-team] # every configured channel. `on` = the signal kinds this experiment
60
+ # on: [readout] # sends (default all); it INTERSECTS a channel's own `on:`
61
+ # cooldown_seconds: 86400 # repeat an UNCHANGED stale/calibration_red this often
62
+ # # (default: announce each distinct condition once). Never
63
+ # # applies to a verdict — a flip always sends immediately.
64
+
57
65
  comparisons: # required — each binds one library metric to one method
58
66
  - metric: signup_cr # references metrics/signup_cr.yml by name
59
67
  is_main_metric: true # primary winner criterion (drives the verdict + two-tier Bonferroni)
@@ -93,10 +93,10 @@ of a cutoff discards them, and any knob that feeds the draw itself
93
93
  rows in place, and flips the live chip to `calibrated` without an explore
94
94
  restart. To make it stick for the whole team, run `abk validate` for real.
95
95
 
96
- ## Apply — the only write-back
96
+ ## Apply — this cockpit's write-back
97
97
 
98
- Apply is **explicit** (nothing is written while you tune) and is the sole mutation
99
- seam. Order is **validate → archive → re-emit**:
98
+ Apply is **explicit** (nothing is written while you tune) and is this cockpit's
99
+ only mutation seam. Order is **validate → archive → re-emit**:
100
100
 
101
101
  1. The edited config is validated as a whole (`ExperimentConfig`) before anything
102
102
  is written.
@@ -108,7 +108,10 @@ seam. Order is **validate → archive → re-emit**:
108
108
  re-emitted header names what was updated vs preserved.
109
109
 
110
110
  Caveat: re-emit uses `safe_dump` today, so **YAML comments are lost** on Apply —
111
- the verbatim `.history/` archive is the recovery path.
111
+ the verbatim `.history/` archive is the recovery path. `abk dashboard`'s YAML
112
+ editor is the other surface that writes an experiment config, and it does NOT
113
+ re-emit: it round-trips the raw text, so comments survive there. Both write into
114
+ the same `.history/` tree.
112
115
 
113
116
  **Apply does not run the pipeline.** After Apply, run
114
117
  `abk run --select <experiment>` to compute the new series under the new params.
@@ -149,7 +149,8 @@ multi-branch query), but that filter can only take eligibility away, never grant
149
149
  it. The empirical check is
150
150
  [`abk verify-incremental`](../reference/cli.md#abk-verify-incremental), which
151
151
  reconciles both read paths across the whole computed series — run it before
152
- turning `compute.incremental_reads` on.
152
+ turning `compute.incremental_reads` on — or, in a project scaffolded by
153
+ `abk init` (where it is already on), after declaring a new metric additive.
153
154
 
154
155
  ## `aa_fpr_budget` (optional)
155
156
 
@@ -73,7 +73,8 @@ profile's `internal_database` / `internal_schema`, separate from the
73
73
  | `_ab_experiments` | Informational experiment catalog (descriptions, variants, split, alpha, cadence, tags) for BI joins; the pipeline never reads it back for decisions. |
74
74
  | `_ab_aa_runs` | The `abk validate` A/A audit trail (per-cell FPR/power at the effective alpha); lights the explore calibration chip. Never pruned by `abk clean`. |
75
75
  | `_ab_tasks` | Pipeline run/lock bookkeeping — the atomic per-experiment lock (`abk unlock` clears a stale one). |
76
- | `_ab_unit_state` | Per-(unit, day) cumulative moments, written by the `state` pipeline stage for eligible closed-form metrics. Read on the compute path only with `compute.incremental_reads: true` (opt-in, default off); any gap falls back to full recompute. Not a BI table. |
76
+ | `_ab_notify_states` | What `--notify` last ANNOUNCED per comparison (verdict + SRM flag + when), so an unchanged verdict is not re-sent on every scheduled run — plus one sentinel row per recurring signal (`metric='__stale__'`/`'__calibration_red__'`, empty arm pair) holding that condition's signature. Written only after a channel accepted the message; purged with the experiment by `abk clean --orphaned-experiments`, which resets the dedup. Not a BI table. |
77
+ | `_ab_unit_state` | Per-(unit, day) cumulative moments, written by the `state` pipeline stage for eligible closed-form metrics. Read on the compute path only with `compute.incremental_reads: true` — opt-in, and what `abk init` scaffolds, though the library default (the key absent) is off; any gap falls back to full recompute. Not a BI table. |
77
78
 
78
79
  ## Glossary
79
80
 
@@ -41,16 +41,30 @@ timeouts: # per-step, seconds
41
41
 
42
42
  compute:
43
43
  mode: recompute # v1: full-window recompute (the golden reference). Only value today.
44
- incremental_reads: false # opt-in (M9): eligible closed-form comparisons read the `state`
44
+ incremental_reads: true # opt-in (M9): eligible closed-form comparisons read the `state`
45
45
  # stage's `_ab_unit_state` day moments instead of re-scanning the
46
46
  # fact window; any gap falls back to recompute. An experiment can
47
47
  # override it with its own `incremental_reads:`. Changes HOW a
48
48
  # number is computed, never the number.
49
49
  ```
50
50
 
51
+ **Decide `incremental_reads` explicitly.** The library default (the key ABSENT)
52
+ is `false`, `abk init` writes `true`, and `abk run` warns when a metric declares
53
+ `state_additive: true` — so the `state` step is materializing day moments every
54
+ run — while the flag is unwritten and the series has reached six looks. That
55
+ combination pays for the write and never takes the read, which is strictly worse
56
+ than either choice. Writing the flag either way silences the warning.
57
+
58
+ The flag is not a correctness gate: `abk verify-incremental` reconciles both read
59
+ paths at `rel-1e-9`, and a gap in day state falls back to recompute on its own.
60
+ It guards **one** thing — an event backfilled later than your `data_lag` freezes
61
+ in already-materialized day state, where recompute would pick it up at the next
62
+ look. Set `data_lag` to your real ingestion delay; if your warehouse backfills
63
+ beyond it, keep `false`, which self-heals late data prospectively.
64
+
51
65
  Everything except `name` and `default_profile` has a default — a minimal project
52
- file is just those two lines (that is what `abk init` writes; the rest is
53
- commented). `tables:` (the six `_ab_*` names) exists for forward-compat but
66
+ file is just those two lines. `abk init` writes those plus an explicit
67
+ `compute.incremental_reads` (see above); the rest is commented. `tables:` (the six `_ab_*` names) exists for forward-compat but
54
68
  **rejects overrides** today — the names are canonical.
55
69
 
56
70
  ### The statistics block
@@ -162,13 +176,14 @@ Keep the internal location **separate** from your analytics location so the
162
176
  `_ab_*` tables don't clutter shared schemas. Override per run with
163
177
  `abk run --profile prod`.
164
178
 
165
- ### `notification_channels` (optional — for `abk test-report`)
179
+ ### `notification_channels` (optional — where readouts are sent)
166
180
 
167
181
  A top-level `notification_channels:` block in `profiles.yml`, keyed by channel
168
182
  name, declares where readouts can be sent. Each entry has a `type`
169
- (`slack` \| `mattermost` \| `webhook` \| `telegram` \| `email`) plus that
183
+ (`slack` \| `mattermost` \| `webhook` \| `telegram` \| `email` \| `discord` \|
184
+ `teams` \| `googlechat` \| `ntfy` — nine) plus that
170
185
  transport's fields (put secrets behind `env_var`/`${VAR}` — an unresolved
171
- channel secret **is** rejected):
186
+ channel secret **is** rejected), and an optional `on:` filter:
172
187
 
173
188
  ```yaml
174
189
  notification_channels:
@@ -179,12 +194,49 @@ notification_channels:
179
194
  type: telegram
180
195
  bot_token: "${TELEGRAM_BOT_TOKEN}"
181
196
  chat_id: "-1001234567890"
197
+ on: [srm, error] # urgent only — no routine readouts (0.7.0)
182
198
  ```
183
199
 
184
- `abk test-report <exp> [--channel <name>]... [--profile <p>]` sends a **mock**
185
- WIN readout through them (no lock, no warehouse read, no stats) and prints a
186
- per-channel ✓/✗, exiting non-zero if any channel fails — a connectivity/format
187
- smoke test before wiring channels into an orchestrator.
200
+ Two commands use them:
201
+
202
+ - `abk test-report <exp> [--channel <name>]... [--profile <p>]` sends a **mock**
203
+ WIN readout (no lock, no warehouse read, no stats) and prints a per-channel
204
+ ✓/✗, exiting non-zero if any channel fails — the connectivity/format smoke
205
+ test to run before wiring channels into an orchestrator.
206
+ - `abk validate --notify` (0.7.0) sends a `calibration_red` notice when a cell's
207
+ measured FPR exceeds its budget — best-effort, exactly like its `--report`.
208
+ - `abk run --notify` (0.7.0) sends the **real** readout of each completed
209
+ experiment — the same `readout.evaluate()` decision `--report` bakes. Opt-in
210
+ and best-effort: a failing channel never fails the run. Narrow it per
211
+ experiment with a `notify:` block; with no block, every configured channel
212
+ receives it.
213
+
214
+ `on:` accepts `readout`, `verdict_change`, `srm`, `calibration_red`, `stale`,
215
+ `error` — **all six fire**. A channel's `on:` and an experiment's `notify.on`
216
+ INTERSECT: the experiment narrows what it sends, the channel what it accepts.
217
+
218
+ `srm` and `verdict_change` are NARROW views of the same readout payload, never
219
+ extra messages: `on: [srm]` gets only readouts whose split broke, and
220
+ `on: [verdict_change]` only those whose verdict WORD moved — not the first
221
+ message about a comparison, and not one re-sent because the SRM gate moved while
222
+ the word held.
223
+
224
+ Two of them describe the MACHINERY rather than a result, and both are recurring —
225
+ their condition survives the run that reports it, so they are deduped on WHICH
226
+ things are wrong (never on the drifting numbers) and repeat only when that set
227
+ changes, or after `notify.cooldown_seconds` if the experiment sets one:
228
+
229
+ - **`calibration_red`** comes from `abk validate --notify`, not from `abk run`:
230
+ the cells whose measured A/A false-positive rate exceeded their budget — the
231
+ matrix's "do not use" verdict, delivered.
232
+ - **`stale`** comes from `abk run --notify`: a metric series more than 3 cadence
233
+ steps behind the looks already due at PLAN time. Retrospective by construction
234
+ (that same run computes them), so it reports a slipped SCHEDULE, not a stale
235
+ warehouse.
236
+
237
+ `srm` is not a second message — an SRM-failed readout answers to BOTH kinds, so
238
+ an `on: [srm, error]` channel is the on-call one: it hears about a broken split
239
+ and a failed run, and stays quiet through routine readouts.
188
240
 
189
241
  ## The two-tier alpha (why the effective alpha isn't the alpha you set)
190
242
 
@@ -11,7 +11,8 @@ dashboard being a **launcher, not a reader**:
11
11
 
12
12
  * **No single-experiment restriction.** ``--select``/``--exclude`` resolve the
13
13
  whole selection, exactly as ``abk run`` does; the dashboard is the surface that
14
- exists to show them side by side.
14
+ exists to show them side by side. They are also handed to the server, which
15
+ re-resolves them after every YAML edit (UI-1's reload).
15
16
  * **No never-run noop.** ``abk explore`` refuses a project with no persisted rows
16
17
  (there is nothing to tune). Here that project is the normal first case: rows
17
18
  render "no data — press Run", and the Run button is the answer. So a missing
@@ -142,6 +143,11 @@ def run_dashboard(
142
143
  # SRM chip's observed counts. Both degrade in the open without us.
143
144
  metrics=context.metrics_by_name,
144
145
  manager=manager,
146
+ # UI-1: the editor's reload re-resolves THIS selection, so the
147
+ # selectors have to travel with it — re-deriving them server-side
148
+ # would silently widen an edited page to the whole project.
149
+ selectors=select,
150
+ excludes=exclude,
145
151
  open_browser=not no_open,
146
152
  echo=click.echo,
147
153
  )
@@ -29,6 +29,17 @@ version: "1.0"
29
29
 
30
30
  default_profile: dev
31
31
 
32
+ compute:
33
+ # `example_arpu` below declares `state_additive: true`, so the `state` step
34
+ # materializes its per-(unit, day) moments on every run. Reading them back is
35
+ # what makes that write pay for itself — the alternative is the strictly
36
+ # worst configuration: paying for the write and re-scanning the full window
37
+ # anyway. `abk verify-incremental` reconciles both paths at rel-1e-9.
38
+ # Set this to false if your warehouse backfills events later than `data_lag`
39
+ # declares: the fast path freezes a late backfill in day state, where the
40
+ # recompute default would pick it up at the next look.
41
+ incremental_reads: true
42
+
32
43
  # statistics: # project-wide defaults (experiments override)
33
44
  # alpha: 0.05
34
45
  # correction: bonferroni