ab-analysis-kit 0.8.0__tar.gz → 0.9.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.
- {ab_analysis_kit-0.8.0/ab_analysis_kit.egg-info → ab_analysis_kit-0.9.0}/PKG-INFO +17 -5
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/README.md +15 -3
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0/ab_analysis_kit.egg-info}/PKG-INFO +17 -5
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/ab_analysis_kit.egg-info/requires.txt +1 -1
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/__init__.py +1 -1
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/cli.md +21 -4
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/experiments.md +28 -6
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/explore.md +4 -2
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/methods.md +10 -5
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/overview.md +16 -3
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/plan.md +8 -2
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/validate.md +14 -4
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-new-experiment/SKILL.md +12 -4
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md +4 -2
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-validate/SKILL.md +2 -1
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/init.py +1 -1
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/plan.py +158 -19
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/run.py +42 -2
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/test_report.py +2 -3
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/experiment_config.py +110 -9
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/validator.py +23 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_experiments.py +1 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_notify_states.py +7 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/tables.py +24 -6
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/base.py +53 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/cooldown.py +67 -7
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/dispatch.py +55 -3
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/email.py +2 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/googlechat.py +1 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/teams.py +1 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/telegram.py +2 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/webhook.py +2 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/pipeline/__init__.py +2 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/pipeline/readout.py +422 -23
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/planning/sizing.py +20 -0
- ab_analysis_kit-0.9.0/abkit/reporting/assets/report.js +197 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/reporting/builder.py +96 -3
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/srm.py +64 -1
- ab_analysis_kit-0.9.0/abkit/tuning/assets/dashboard.js +204 -0
- ab_analysis_kit-0.9.0/abkit/tuning/assets/explore.js +180 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/overview.py +103 -14
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/payload.py +6 -1
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/session.py +6 -3
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/load.py +38 -5
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/runner.py +84 -15
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/pyproject.toml +1 -1
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/requirements.txt +1 -1
- ab_analysis_kit-0.8.0/abkit/reporting/assets/report.js +0 -151
- ab_analysis_kit-0.8.0/abkit/tuning/assets/dashboard.js +0 -197
- ab_analysis_kit-0.8.0/abkit/tuning/assets/explore.js +0 -177
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/LICENSE +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/MANIFEST.in +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/ab_analysis_kit.egg-info/SOURCES.txt +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/ab_analysis_kit.egg-info/dependency_links.txt +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/ab_analysis_kit.egg-info/entry_points.txt +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/ab_analysis_kit.egg-info/top_level.txt +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/_output.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/CLAUDE.section.md +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/metrics.md +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/project.md +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-explore/SKILL.md +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-feedback/SKILL.md +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-new-metric/SKILL.md +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-setup-project/SKILL.md +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/_context.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/clean.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/dashboard.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/explore.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/init_claude.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/unlock.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/validate.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/commands/verify_incremental.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/main.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/compute/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/compute/incremental_backend.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/compute/recompute_backend.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/compute/reconcile.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/discovery.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/method_config.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/metric_config.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/profile.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/project_config.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/config/signals.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/core/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/core/exposure_counting.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/core/interval.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/core/models.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/core/period_planner.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/_sql_manager.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/clickhouse_manager.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_aa_runs.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_base.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_exposures.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_maintenance.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_results.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_schema.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_tasks.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/_unit_state.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/internal_tables/manager.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/manager.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/mysql_manager.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/database/postgres_manager.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/exposure_copy.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/exposure_loader.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/exposure_source.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/metric_loader.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/query_template.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/state_loader.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/loaders/templates/abkit_assignment.jinja +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/branding.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/discord.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/factory.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/mattermost.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/mock.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/ntfy.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/notify/slack.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/pipeline/_types.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/pipeline/analyze.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/pipeline/driver.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/pipeline/enrich.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/pipeline/state.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/planning/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/reporting/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/reporting/calibration.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/reporting/html_report.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/accumulate.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/base.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/applier.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/bootstrap.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/ci.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/engine.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/paired_bootstrap.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/paired_post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/poisson_bootstrap.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/bootstrap/post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/correction.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/effects.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/exceptions.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/factory.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/parametric/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/parametric/cuped_ttest.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/parametric/paired_cuped_ttest.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/parametric/paired_ttest.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/parametric/ratio_delta.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/parametric/ttest.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/parametric/ztest.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/power.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/proportion_score.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/registry.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/relative_interval.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/result.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/rng.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/samples.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/sequential/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/sequential/apply.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/sequential/confidence_sequence.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/stats/sequential/mixture.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/config_files.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/config_writer.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/dashboard_server.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/html.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/jobs.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/recompute.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/tuning/server.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/utils/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/utils/datetime_utils.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/utils/env_interpolation.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/utils/json_utils.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/utils/warn_scope.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/__init__.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/_types.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/family.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/inject.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/panel.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/persistence.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/resample.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/result.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/run_id.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/scoring.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/validate/vector_resample.py +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/setup.cfg +0 -0
- {ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -25,7 +25,7 @@ Description-Content-Type: text/markdown
|
|
|
25
25
|
License-File: LICENSE
|
|
26
26
|
Requires-Dist: numpy>=1.24.0
|
|
27
27
|
Requires-Dist: scipy>=1.10.0
|
|
28
|
-
Requires-Dist: statsmodels
|
|
28
|
+
Requires-Dist: statsmodels<0.15,>=0.14.0
|
|
29
29
|
Requires-Dist: pydantic>=2.0.0
|
|
30
30
|
Requires-Dist: pyyaml>=6.0
|
|
31
31
|
Requires-Dist: click>=8.0
|
|
@@ -76,8 +76,19 @@ 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.
|
|
80
|
-
> (milestones **M1–
|
|
79
|
+
> **Status: `0.9.0` (Alpha) — the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M14** shipped — M14 is the **multi-arm decision layer**: an
|
|
81
|
+
> experiment declares its baseline (`assignment.control`), every declared pair
|
|
82
|
+
> gets a verdict labelled as a ship decision (vs control) or as evidence
|
|
83
|
+
> (treatment vs treatment), and each main metric gets a rollup naming the leader
|
|
84
|
+
> — the arm that beat the control and every other treatment — or saying why
|
|
85
|
+
> none can be named. The report, the dashboard, `abk explore`, notifications and
|
|
86
|
+
> the `abk run` line all read that one layer; `abk validate` calibrates the
|
|
87
|
+
> contrast it actually runs, `abk plan` sizes every declared contrast, and a
|
|
88
|
+
> failed SRM gate names the culprit arm. No `_ab_results` number, alpha or
|
|
89
|
+
> verdict `0.8.0` issued moved (measured against a real `v0.8.0` checkout), and
|
|
90
|
+
> a two-arm experiment renders exactly what it rendered before.
|
|
91
|
+
> M13 is the **versioned statistics**
|
|
81
92
|
> milestone: five opt-in options that each buy power or fix an interval, with
|
|
82
93
|
> **no default moved** — a project that changes nothing reproduces `0.7.0` row
|
|
83
94
|
> for row. `correction: holm` is uniformly more powerful than one-step
|
|
@@ -131,7 +142,8 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
131
142
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
132
143
|
```
|
|
133
144
|
|
|
134
|
-
(`pip install ab-analysis-kit` gets `0.
|
|
145
|
+
(`pip install ab-analysis-kit` gets `0.9.0` — the multi-arm decision layer
|
|
146
|
+
(declared control, treatment-pair verdicts, per-metric leader), the opt-in M13 statistics (Holm,
|
|
135
147
|
the declared contrast set, the score and Fieller intervals, the A/A sign
|
|
136
148
|
column), opt-in notifications across nine channels, `abk dashboard` with its
|
|
137
149
|
YAML editor, `abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history`
|
|
@@ -11,8 +11,19 @@ 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.
|
|
15
|
-
> (milestones **M1–
|
|
14
|
+
> **Status: `0.9.0` (Alpha) — the latest on PyPI**
|
|
15
|
+
> (milestones **M1–M14** shipped — M14 is the **multi-arm decision layer**: an
|
|
16
|
+
> experiment declares its baseline (`assignment.control`), every declared pair
|
|
17
|
+
> gets a verdict labelled as a ship decision (vs control) or as evidence
|
|
18
|
+
> (treatment vs treatment), and each main metric gets a rollup naming the leader
|
|
19
|
+
> — the arm that beat the control and every other treatment — or saying why
|
|
20
|
+
> none can be named. The report, the dashboard, `abk explore`, notifications and
|
|
21
|
+
> the `abk run` line all read that one layer; `abk validate` calibrates the
|
|
22
|
+
> contrast it actually runs, `abk plan` sizes every declared contrast, and a
|
|
23
|
+
> failed SRM gate names the culprit arm. No `_ab_results` number, alpha or
|
|
24
|
+
> verdict `0.8.0` issued moved (measured against a real `v0.8.0` checkout), and
|
|
25
|
+
> a two-arm experiment renders exactly what it rendered before.
|
|
26
|
+
> M13 is the **versioned statistics**
|
|
16
27
|
> milestone: five opt-in options that each buy power or fix an interval, with
|
|
17
28
|
> **no default moved** — a project that changes nothing reproduces `0.7.0` row
|
|
18
29
|
> for row. `correction: holm` is uniformly more powerful than one-step
|
|
@@ -66,7 +77,8 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
66
77
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
67
78
|
```
|
|
68
79
|
|
|
69
|
-
(`pip install ab-analysis-kit` gets `0.
|
|
80
|
+
(`pip install ab-analysis-kit` gets `0.9.0` — the multi-arm decision layer
|
|
81
|
+
(declared control, treatment-pair verdicts, per-metric leader), the opt-in M13 statistics (Holm,
|
|
70
82
|
the declared contrast set, the score and Fieller intervals, the A/A sign
|
|
71
83
|
column), opt-in notifications across nine channels, `abk dashboard` with its
|
|
72
84
|
YAML editor, `abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -25,7 +25,7 @@ Description-Content-Type: text/markdown
|
|
|
25
25
|
License-File: LICENSE
|
|
26
26
|
Requires-Dist: numpy>=1.24.0
|
|
27
27
|
Requires-Dist: scipy>=1.10.0
|
|
28
|
-
Requires-Dist: statsmodels
|
|
28
|
+
Requires-Dist: statsmodels<0.15,>=0.14.0
|
|
29
29
|
Requires-Dist: pydantic>=2.0.0
|
|
30
30
|
Requires-Dist: pyyaml>=6.0
|
|
31
31
|
Requires-Dist: click>=8.0
|
|
@@ -76,8 +76,19 @@ 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.
|
|
80
|
-
> (milestones **M1–
|
|
79
|
+
> **Status: `0.9.0` (Alpha) — the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M14** shipped — M14 is the **multi-arm decision layer**: an
|
|
81
|
+
> experiment declares its baseline (`assignment.control`), every declared pair
|
|
82
|
+
> gets a verdict labelled as a ship decision (vs control) or as evidence
|
|
83
|
+
> (treatment vs treatment), and each main metric gets a rollup naming the leader
|
|
84
|
+
> — the arm that beat the control and every other treatment — or saying why
|
|
85
|
+
> none can be named. The report, the dashboard, `abk explore`, notifications and
|
|
86
|
+
> the `abk run` line all read that one layer; `abk validate` calibrates the
|
|
87
|
+
> contrast it actually runs, `abk plan` sizes every declared contrast, and a
|
|
88
|
+
> failed SRM gate names the culprit arm. No `_ab_results` number, alpha or
|
|
89
|
+
> verdict `0.8.0` issued moved (measured against a real `v0.8.0` checkout), and
|
|
90
|
+
> a two-arm experiment renders exactly what it rendered before.
|
|
91
|
+
> M13 is the **versioned statistics**
|
|
81
92
|
> milestone: five opt-in options that each buy power or fix an interval, with
|
|
82
93
|
> **no default moved** — a project that changes nothing reproduces `0.7.0` row
|
|
83
94
|
> for row. `correction: holm` is uniformly more powerful than one-step
|
|
@@ -131,7 +142,8 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
131
142
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
132
143
|
```
|
|
133
144
|
|
|
134
|
-
(`pip install ab-analysis-kit` gets `0.
|
|
145
|
+
(`pip install ab-analysis-kit` gets `0.9.0` — the multi-arm decision layer
|
|
146
|
+
(declared control, treatment-pair verdicts, per-metric leader), the opt-in M13 statistics (Holm,
|
|
135
147
|
the declared contrast set, the score and Fieller intervals, the A/A sign
|
|
136
148
|
column), opt-in notifications across nine channels, `abk dashboard` with its
|
|
137
149
|
YAML editor, `abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history`
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
-
__version__ = "0.
|
|
13
|
+
__version__ = "0.9.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.
|
|
@@ -135,7 +135,13 @@ on with nothing declared additive, and how many looks fell back to recompute.
|
|
|
135
135
|
- `--report [PATH]` — after the run, emit a self-contained HTML readout per
|
|
136
136
|
experiment (best-effort — never fails the run). Tri-state: bare `--report` →
|
|
137
137
|
`reports/<exp>.html`; a directory → `<dir>/<exp>.html`; a `.html` path → that
|
|
138
|
-
file. Reads persisted rows, so even a load-only run can produce one.
|
|
138
|
+
file. Reads persisted rows, so even a load-only run can produce one. At 3+ arms
|
|
139
|
+
the page carries the decision layer: a cross-arm overview per main metric
|
|
140
|
+
(leader · separation · an arm table), a card per declared pair with the
|
|
141
|
+
arm-vs-arm ones labelled *not a ship decision*, and a pair selector. The
|
|
142
|
+
one-line terminal summary beside it names the LEADER per main metric at 3+
|
|
143
|
+
arms (`leader — revenue: b, orders: b`, plus `(metrics disagree)` when they
|
|
144
|
+
split) rather than listing verdict words; two-arm output is unchanged.
|
|
139
145
|
- `--cost-report` — print per-stage warehouse cost (wall-time, queries, rows returned,
|
|
140
146
|
rows scanned where the backend reports them), plus `of which day-additive:` — the
|
|
141
147
|
same measured cost attributed to the state-eligible comparisons only, followed by
|
|
@@ -158,7 +164,11 @@ on with nothing declared additive, and how many looks fell back to recompute.
|
|
|
158
164
|
remembers what each comparison last said, and an unchanged verdict is not
|
|
159
165
|
re-sent — so a scheduled run every hour is not a message every hour. A newly
|
|
160
166
|
broken SRM gate counts as a change even when the verdict word is identical
|
|
161
|
-
(a pre-horizon pair says INCONCLUSIVE either way)
|
|
167
|
+
(a pre-horizon pair says INCONCLUSIVE either way) — and so does a moved
|
|
168
|
+
LEADER or separation state at 3+ arms, since the ship decision can change with
|
|
169
|
+
every verdict word unchanged. A 3+ arm message also carries a
|
|
170
|
+
`Leader on <metric>: <arm> — …` line, suppressed under a failed SRM gate and
|
|
171
|
+
at two arms. A message no channel
|
|
162
172
|
accepted is not recorded, so the next run retries it. A completed run also
|
|
163
173
|
sends a **`stale`** notice when a metric's series was more than 3 cadence steps
|
|
164
174
|
behind the looks ALREADY DUE when the run planned it. Read it as "the schedule
|
|
@@ -203,7 +213,11 @@ abk dashboard [--select <sel>]... [--exclude <sel>]... [--window 24h|7d|30d|90d|
|
|
|
203
213
|
and help. `dashboard` stays canonical: `dashboard`/`explore` say WHICH surface
|
|
204
214
|
you want, where `ui` does not.
|
|
205
215
|
|
|
206
|
-
The project-level cockpit (0.6.0)
|
|
216
|
+
The project-level cockpit (0.6.0). At 3+ arms the row's headline is the first
|
|
217
|
+
declared main metric's ROLLUP LEADER (falling back to the first declared
|
|
218
|
+
treatment when no arm beat control), with a `→ arm` chip, a `leaders split` chip
|
|
219
|
+
when two main metrics name different arms, an `N lost` chip, and `arm vs arm`
|
|
220
|
+
tags on treatment pairs in the expand list. One row per selected experiment — headline
|
|
207
221
|
verdict, effect, p-value, last look and a sparkline — served on localhost with a
|
|
208
222
|
per-start token that authorizes EVERY request, `GET` included. The page boots on
|
|
209
223
|
metadata only and fills each row on demand (3 requests in flight), so a
|
|
@@ -426,7 +440,10 @@ abk unlock --select example_signup_test
|
|
|
426
440
|
- **"Failed to acquire lock"** — a crashed run left a lock; `abk unlock --select <exp>`.
|
|
427
441
|
- **`SRM FAILED` (red)** — the observed arm split ≠ the expected split; the
|
|
428
442
|
randomization or the cohort query is broken. Fix the assignment before trusting
|
|
429
|
-
any effect.
|
|
443
|
+
any effect. At 3+ arms the line also names WHICH arm contributes most to the
|
|
444
|
+
mismatch and whether it has too few or too many units — chi-square gate only,
|
|
445
|
+
since the sub-day anytime-valid gate's flag is a running max over earlier looks
|
|
446
|
+
and the current counts may have rebalanced.
|
|
430
447
|
- **No verdict before the horizon** — expected: fixed-horizon CIs are not
|
|
431
448
|
peeking-valid, so the readout withholds WIN/LOSE early. Enable
|
|
432
449
|
`sequential: {enabled: true}` on a sequential-eligible method for always-valid CIs.
|
{ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/rules/experiments.md
RENAMED
|
@@ -34,7 +34,9 @@ timezone: UTC # interprets bare-date edges, the `midnight` an
|
|
|
34
34
|
assignment: # READ-ONLY exposure source — abkit never randomizes
|
|
35
35
|
query_file: sql/assignment.sql # or inline `query:` (exactly one, never both)
|
|
36
36
|
added_filters: "" # optional extra SQL fragment (must start with AND)
|
|
37
|
-
variants: [control, treatment] # FIRST is control (name_1)
|
|
37
|
+
variants: [control, treatment] # the FIRST is control (name_1) unless `control:` says otherwise
|
|
38
|
+
# control: control # OPTIONAL: which arm is the baseline (default: variants[0]);
|
|
39
|
+
# must be one of `variants`
|
|
38
40
|
expected_split: {control: 0.5, treatment: 0.5} # must cover every variant, sum to 1.0; drives SRM
|
|
39
41
|
# cohort_copy: # opt-in (default OFF): persist an incremental,
|
|
40
42
|
# enabled: true # append-only _ab_exposures copy instead of
|
|
@@ -46,9 +48,13 @@ alpha: 0.05 # experiment-level significance (unset -> proje
|
|
|
46
48
|
correction: bonferroni # none | bonferroni | benjamini_hochberg | holm (unset -> project default)
|
|
47
49
|
# contrasts: vs_control # all_pairs (default) | vs_control — the family this experiment
|
|
48
50
|
# CLAIMS: vs_control compares only the g-1 treatments against the
|
|
49
|
-
#
|
|
51
|
+
# CONTROL arm (assignment.control, default the first declared
|
|
52
|
+
# variant), divides alpha by g-1 instead of C(g,2)
|
|
50
53
|
# (≈ +10 points of power at 4 arms), and does NOT compute the
|
|
51
|
-
# treatment-vs-treatment pairs at all
|
|
54
|
+
# treatment-vs-treatment pairs at all — so the report's cross-arm
|
|
55
|
+
# overview — and explore's Review line, the dashboard row and the
|
|
56
|
+
# notification decision line — reads `separation: untested`, and
|
|
57
|
+
# under all_pairs those pairs ARE verdicted, as evidence
|
|
52
58
|
sequential: {enabled: false, scheme: always_valid} # opt-in peeking-safe CIs (default OFF)
|
|
53
59
|
# incremental_reads: true # override project.compute.incremental_reads here (unset -> project
|
|
54
60
|
# default): eligible closed-form comparisons read `_ab_unit_state`
|
|
@@ -83,9 +89,25 @@ comparisons: # required — each binds one library metric to
|
|
|
83
89
|
|
|
84
90
|
## Variants, split & SRM
|
|
85
91
|
|
|
86
|
-
- `assignment.variants` lists the arm names; **the first is control
|
|
87
|
-
|
|
88
|
-
and within the storage key budget.
|
|
92
|
+
- `assignment.variants` lists the arm names; **the first is the control
|
|
93
|
+
(`name_1`)** unless `assignment.control` names another. Names must be unique,
|
|
94
|
+
non-empty, and within the storage key budget.
|
|
95
|
+
- `assignment.control` (optional) declares the baseline arm — the one every
|
|
96
|
+
`effect` is measured against and the one the SRM rollup keys its series on.
|
|
97
|
+
Unset, it is the first declared variant, exactly as through `0.8.0`; there is
|
|
98
|
+
no project-level default. Declaring the first variant changes nothing.
|
|
99
|
+
Declaring a **different** arm on an experiment that already has rows
|
|
100
|
+
re-orients every pair containing it to `(control, other)`, so: those pairs'
|
|
101
|
+
persisted rows leave the declared contrast set and are dropped loudly; the
|
|
102
|
+
effect is re-based against the other arm — the negation of the old number on
|
|
103
|
+
the absolute scale, but **NOT** on the relative scale, where the denominator
|
|
104
|
+
swaps arms too (`(m2-m1)/m1` becomes `(m1-m2)/m2`); the next plain `abk run`
|
|
105
|
+
recomputes the whole series (no `--full-refresh` needed, since no look
|
|
106
|
+
carries the re-oriented pair); and the old orientation's rows are never
|
|
107
|
+
deleted, so raw SQL over `_ab_results` sees both (join
|
|
108
|
+
`_ab_experiments.control`). **Prefer reordering `variants` to declaring a
|
|
109
|
+
non-first control on a running experiment.** `abk run --steps validate` warns
|
|
110
|
+
about all of it.
|
|
89
111
|
- `expected_split` is the *assigned* share per arm (fractions in `(0,1)` that sum
|
|
90
112
|
to `1.0`, one entry per variant). It is the input to the **SRM gate**: a
|
|
91
113
|
chi-square test (anytime-valid multinomial below `1d` cadence) comparing observed
|
|
@@ -51,8 +51,10 @@ name a configured **comparison** of that experiment (default: the main metric).
|
|
|
51
51
|
**not** here — the stats core has no such params (two-sided p-values, no winsor).
|
|
52
52
|
- **Modes** — Tune (knobs lead) / Auto (run `validate` server-side, re-seed the
|
|
53
53
|
knobs, green the chip in place) / Review (mark guardrail vs primary, confirm the
|
|
54
|
-
decision
|
|
55
|
-
|
|
54
|
+
decision; at 3+ arms it also shows a per-metric rollup line naming the leader
|
|
55
|
+
and `arm vs arm` tags on treatment pairs — **both are as of page build, not
|
|
56
|
+
live under a knob turn**). *(Segment / heterogeneous-effects mode is a
|
|
57
|
+
deferred placeholder — not available in 0.1.0.)*
|
|
56
58
|
|
|
57
59
|
## Live recompute — one source of math truth
|
|
58
60
|
|
|
@@ -157,8 +157,9 @@ params**. It is the key of a result *series* in `_ab_results`.
|
|
|
157
157
|
guardrail `_ab_aa_runs` rows to read `alpha_mismatch` until `abk validate`
|
|
158
158
|
re-runs them.
|
|
159
159
|
- **`contrasts: vs_control`** (experiment level; default `all_pairs` = the old
|
|
160
|
-
behaviour) declares that the family is the `g-1` contrasts against the
|
|
161
|
-
|
|
160
|
+
behaviour) declares that the family is the `g-1` contrasts against the CONTROL
|
|
161
|
+
arm (`assignment.control`, default the first declared variant), not all
|
|
162
|
+
`C(g,2)` pairs. The divisor drops accordingly, so
|
|
162
163
|
every tier's alpha is multiplied by `g/2` (≈ +10 points of power at four
|
|
163
164
|
arms). It is one declaration with two halves: the treatment-vs-treatment pairs
|
|
164
165
|
are also **not computed** — no result rows, no verdicts, no BH family members
|
|
@@ -166,9 +167,13 @@ params**. It is the key of a result *series* in `_ab_results`.
|
|
|
166
167
|
FWER claim the loosening was bought with. Inert at two arms. Like
|
|
167
168
|
`guardrail_correction`, it moves persisted alphas, so `abk run --full-refresh`
|
|
168
169
|
re-homogenises a series and A/A rows read `alpha_mismatch` until re-run;
|
|
169
|
-
rows for pairs the
|
|
170
|
-
surface
|
|
171
|
-
`
|
|
170
|
+
rows for pairs the declared family no longer claims are ignored loudly by every
|
|
171
|
+
read surface — three causes now: a renamed arm, this narrowing, and a declared
|
|
172
|
+
`assignment.control` re-orienting a pair. (`abk run --full-refresh --from
|
|
173
|
+
<start> --to <past the horizon>` removes them; `--to` is EXCLUSIVE on `end_ts`
|
|
174
|
+
and the horizon cutoff's `end_ts` IS `horizon_ts`, so naming the horizon leaves
|
|
175
|
+
the last look behind. `abk clean` prunes by `method_config_id` and never
|
|
176
|
+
touched them.) Widening the
|
|
172
177
|
family back (or adding an arm) is the direction abkit heals for you: a look
|
|
173
178
|
missing a declared pair is re-planned automatically.
|
|
174
179
|
- Execution-only params (`max_block_bytes`) never enter the hash.
|
|
@@ -70,10 +70,10 @@ profile's `internal_database` / `internal_schema`, separate from the
|
|
|
70
70
|
|---|---|
|
|
71
71
|
| `_ab_results` | **The BI contract.** One row per `(experiment, metric, variant-pair, method_config_id, end_ts)` cumulative cutoff: effect, CI, p-value, per-arm stats, SRM flag, `insufficient_data`, `ci_kind`, `is_horizon`. Point BI here. |
|
|
72
72
|
| `_ab_exposures` | **Optional** — the persisted assignment cohort copy (unit → variant → exposure_ts), created/written only when `assignment.cohort_copy.enabled: true` (an append-only incremental copy; a routine run never deletes — `--resync-cohort` is the one exception). On the default no-copy path the table does not exist: metric queries and the SRM counts read the live assignment source instead. |
|
|
73
|
-
| `_ab_experiments` | Informational experiment catalog (descriptions, variants, split, alpha, cadence, tags) for BI joins; the pipeline never reads it back for decisions. |
|
|
73
|
+
| `_ab_experiments` | Informational experiment catalog (descriptions, variants, the control arm, 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_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. |
|
|
76
|
+
| `_ab_notify_states` | What `--notify` last ANNOUNCED per comparison (verdict + SRM flag + rollup identity + 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
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. |
|
|
78
78
|
|
|
79
79
|
## Glossary
|
|
@@ -90,8 +90,21 @@ profile's `internal_database` / `internal_schema`, separate from the
|
|
|
90
90
|
legitimately differ from the interval shown beside it, and says so in a
|
|
91
91
|
caveat. Also **blocked** (SRM) and
|
|
92
92
|
**insufficient data**. The main metric drives it; guardrails check regression.
|
|
93
|
+
- **role** — what a verdict is ABOUT. `vs_control` is a **ship decision**;
|
|
94
|
+
`treatment_pair` is EVIDENCE about two treatments, so a `WIN` on `(B, C)` means
|
|
95
|
+
"C came out ahead of B" and says nothing about either against the baseline —
|
|
96
|
+
never read it as "ship C". Those pairs exist only under `contrasts: all_pairs`.
|
|
97
|
+
- **rollup** — the per-main-metric arm summary the readout composes at read time
|
|
98
|
+
(never stored): **leader** (the best-effect arm AMONG THOSE THAT BEAT THE
|
|
99
|
+
CONTROL — arms that lost are never ranked), **separation** (`separated` /
|
|
100
|
+
`co_leaders` / `untested` / `no_leader`, where `no_leader` also covers "the SRM
|
|
101
|
+
gate failed" and "nothing could be judged yet" — read the rationale for which),
|
|
102
|
+
plus **leaders_agree** when two main metrics name different arms. abkit reports
|
|
103
|
+
the disagreement and does not break the tie: no metric priority is declared.
|
|
93
104
|
- **SRM (sample-ratio-mismatch)** — a χ² gate (anytime-valid multinomial below 1d
|
|
94
|
-
cadence): observed arm split ≠ expected split ⇒ randomization/cohort is broken.
|
|
105
|
+
cadence): observed arm split ≠ expected split ⇒ randomization/cohort is broken. At 3+ arms
|
|
106
|
+
the CLI line, the report chip and the explore chip also name WHICH arm the
|
|
107
|
+
mismatch sits in (the `abk dashboard` row does not — it has no cohort counts).
|
|
95
108
|
A **hard, blocking** gate — check it before trusting any effect.
|
|
96
109
|
- **CUPED** — variance reduction using a pre-period covariate; abkit renders the
|
|
97
110
|
SAME metric SQL a second time over a whole-day `covariate_lookback` window (no
|
|
@@ -94,8 +94,14 @@ than crashing the plan.
|
|
|
94
94
|
└─ looks: 14 planned · cadence 1d · horizon 2024-07-15 · ~28 _ab_results rows/full-refresh
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
For a **>2-arm** experiment
|
|
98
|
-
|
|
97
|
+
For a **>2-arm** experiment EVERY declared vs-control contrast is sized at its
|
|
98
|
+
own allocation ratio, each with its own ✓/✗ powered flag; contrasts sharing a
|
|
99
|
+
ratio collapse to one line, and when the BINDING contrast is not the headline the
|
|
100
|
+
plan names it (the runtime line describes the headline only). Only `required_n`
|
|
101
|
+
is per contrast — the achievable MDE is a retrospective bound, identical for all
|
|
102
|
+
of them. Treatment-vs-treatment pairs (`contrasts: all_pairs`) share the alpha
|
|
103
|
+
but are NOT sized: a pre-launch baseline exists for the control arm only, and the
|
|
104
|
+
plan says so. If the look count
|
|
99
105
|
exceeds `warn_looks` without `sequential.enabled`, it warns that peeking inflates
|
|
100
106
|
the false-positive rate (enable sequential or coarsen the cadence).
|
|
101
107
|
|
|
@@ -21,10 +21,14 @@ shuffle is in-memory only; it never touches the real assignment.
|
|
|
21
21
|
|
|
22
22
|
## Mechanism — the placebo split
|
|
23
23
|
|
|
24
|
-
1. **Source = the
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
1. **Source = the CALIBRATED CONTRAST's two arms** (the declared control vs the
|
|
25
|
+
first declared treatment; at two arms, the whole cohort) rendered over the real
|
|
26
|
+
cadence grid (the same `generate_grid` + metric loaders the pipeline uses). No
|
|
27
|
+
separate historical window, no exposure-free loader. The verdict names the pair
|
|
28
|
+
at 3+ arms, because `power` and `achieved_mde` are THAT pair's.
|
|
29
|
+
2. **Pool those two arms' unit arrays and permute the unit→arm labels.** The verdict
|
|
30
|
+
names the pair at 3+ arms (`; calibrated on X vs Y`), because `power` and
|
|
31
|
+
`achieved_mde` are THAT pair's. Permuting
|
|
28
32
|
labels destroys any true treatment effect → an **exact null** by construction (the
|
|
29
33
|
standard permutation-A/A), while still exercising the real grid, cadence, cohort,
|
|
30
34
|
and metric SQL.
|
|
@@ -235,5 +239,11 @@ A/A is the expensive corner**. So:
|
|
|
235
239
|
- **Editing `method_params` orphans the calibration.** The chip keys off
|
|
236
240
|
`method_config_id`; retuning starts a new series and the old `_ab_aa_runs` rows no
|
|
237
241
|
longer match — re-run validate on the new params.
|
|
242
|
+
- **After upgrading to abkit `0.9.0`, re-run validate on 3+-arm experiments.**
|
|
243
|
+
The placebo now draws from the calibrated pair's two arms instead of the pooled
|
|
244
|
+
cohort, so power / achieved-MDE / coverage move (the FPR does not — a null is a
|
|
245
|
+
null at any size). The chip's lookup is `(metric, method_config_id, alpha)` and
|
|
246
|
+
knows nothing about the pair, so a green row written by `0.8.0` keeps lighting
|
|
247
|
+
it on numbers measured for a design abkit no longer runs. Nothing warns you.
|
|
238
248
|
|
|
239
249
|
> Installed by `abk init-claude`. Re-run it after upgrading abkit to refresh this file.
|
|
@@ -50,8 +50,15 @@ Gather from the user:
|
|
|
50
50
|
`assignment.query_file:` (or inline `assignment.query:`). Mirror the scaffold's
|
|
51
51
|
`sql/example_assignment.sql`: select the `unit_key`, `variant`, `exposure_ts`,
|
|
52
52
|
and end the WHERE with `{{ ab_added_filters }}`.
|
|
53
|
-
- `variants:` — the arm names. **The FIRST is the control** (name_1)
|
|
54
|
-
measured against it.
|
|
53
|
+
- `variants:` — the arm names. **The FIRST is the control** (name_1) unless
|
|
54
|
+
`control:` names another arm; effects are measured against it.
|
|
55
|
+
- `control:` — OPTIONAL. Which arm is the baseline; must be one of `variants`.
|
|
56
|
+
Leave it out unless the operator asks: the positional default is right for
|
|
57
|
+
almost every experiment, and **prefer reordering `variants` over declaring a
|
|
58
|
+
non-first control on an experiment that already has rows** — a declaration
|
|
59
|
+
re-orients every pair containing that arm, strands those pairs' persisted
|
|
60
|
+
rows, and re-bases the effect (on the relative scale it does NOT merely flip
|
|
61
|
+
sign, because the denominator swaps arms too).
|
|
55
62
|
- `expected_split:` — the intended share per variant; must name every variant
|
|
56
63
|
and sum to 1.0. **This drives the SRM gate** — set it to the real intended
|
|
57
64
|
allocation, not a guess.
|
|
@@ -155,7 +162,7 @@ interval_anchor: midnight # midnight (default) | start | an explicit timestamp
|
|
|
155
162
|
|
|
156
163
|
assignment:
|
|
157
164
|
query_file: sql/checkout_button_color_assignment.sql
|
|
158
|
-
variants: [control, treatment] # FIRST is control
|
|
165
|
+
variants: [control, treatment] # the FIRST is control unless `control:` says otherwise
|
|
159
166
|
expected_split: {control: 0.5, treatment: 0.5} # drives SRM
|
|
160
167
|
|
|
161
168
|
alpha: 0.05
|
|
@@ -181,7 +188,8 @@ Fix every reported error before declaring done. Re-check:
|
|
|
181
188
|
|
|
182
189
|
- [ ] `name` unique across experiments AND metrics; matches the filename.
|
|
183
190
|
- [ ] `assignment` has one of `query`/`query_file`, ≥2 unique variants, and an
|
|
184
|
-
`expected_split` naming every variant that sums to 1.0
|
|
191
|
+
`expected_split` naming every variant that sums to 1.0; if `control:` is
|
|
192
|
+
set, it is one of `variants`.
|
|
185
193
|
- [ ] Every `comparisons[].metric` references a metric file that exists.
|
|
186
194
|
- [ ] Exactly ≥1 comparison sets `is_main_metric: true`; no main+guardrail clash.
|
|
187
195
|
- [ ] Each method name is registered and its params instantiate (no quarantined
|
{ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md
RENAMED
|
@@ -146,8 +146,10 @@ accepted only on a comparison whose method actually applies a covariate.
|
|
|
146
146
|
the daily series early is peeking — if they want to stop early, enable
|
|
147
147
|
`sequential: {enabled: true}` (opt-in, off by default), and validate calibration
|
|
148
148
|
with the **`abk-validate`** skill before trusting verdicts.
|
|
149
|
-
- **Multi-arm note:** for >2 variants
|
|
150
|
-
(
|
|
149
|
+
- **Multi-arm note:** for >2 variants EVERY declared vs-control contrast is
|
|
150
|
+
sized (each at its own allocation ratio, with its own powered flag) — relay the
|
|
151
|
+
BINDING one, not just the headline, and relay the note that
|
|
152
|
+
treatment-vs-treatment pairs share the alpha but are not sized.
|
|
151
153
|
|
|
152
154
|
`abk plan` is planning-only. Sizing (required-N / MDE / power) is the core; **runtime /
|
|
153
155
|
ASN** ship alongside it. If the user asks "how long", `abk plan` reports **runtime**
|
{ab_analysis_kit-0.8.0 → ab_analysis_kit-0.9.0}/abkit/cli/assets/claude/skills/abk-validate/SKILL.md
RENAMED
|
@@ -16,7 +16,8 @@ description: >-
|
|
|
16
16
|
|
|
17
17
|
`abk validate` answers one question: **is this method actually calibrated on
|
|
18
18
|
*this* data, or does it lie about its α?** It draws **placebo A/A splits** on the
|
|
19
|
-
|
|
19
|
+
calibrated contrast's two arms — the declared control vs the first declared
|
|
20
|
+
treatment; at two arms, the whole cohort — (unit→arm labels permuted → an exact null by
|
|
20
21
|
construction), runs the candidate method(s) over the real cadence grid, and
|
|
21
22
|
reports the empirical **false-positive rate**, **power**, **achieved MDE**, and
|
|
22
23
|
**CI coverage**. A well-calibrated method gives FPR ≈ α; an inflated one is the
|
|
@@ -182,7 +182,7 @@ timezone: UTC
|
|
|
182
182
|
|
|
183
183
|
assignment: # READ-ONLY exposure source — abkit never randomizes
|
|
184
184
|
query_file: sql/example_assignment.sql
|
|
185
|
-
variants: [control, treatment] # FIRST is control (name_1)
|
|
185
|
+
variants: [control, treatment] # FIRST is control (name_1) unless `control:` says otherwise
|
|
186
186
|
expected_split: {control: 0.5, treatment: 0.5} # drives the SRM gate
|
|
187
187
|
# cohort_copy: # opt-in: persist an incremental, append-only
|
|
188
188
|
# enabled: true # _ab_exposures copy instead of re-reading the
|