ab-analysis-kit 0.4.0__tar.gz → 0.6.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.4.0/ab_analysis_kit.egg-info → ab_analysis_kit-0.6.0}/PKG-INFO +20 -12
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/README.md +19 -11
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0/ab_analysis_kit.egg-info}/PKG-INFO +20 -12
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/SOURCES.txt +6 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/__init__.py +1 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/CLAUDE.section.md +1 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/cli.md +72 -6
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/experiments.md +35 -9
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/explore.md +10 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/metrics.md +4 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/overview.md +7 -3
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-new-experiment/SKILL.md +14 -6
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-new-metric/SKILL.md +4 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md +1 -1
- ab_analysis_kit-0.6.0/abkit/cli/commands/dashboard.py +158 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/explore.py +1 -8
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/init.py +28 -5
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/plan.py +18 -9
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/run.py +103 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/unlock.py +7 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/validate.py +1 -7
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/main.py +41 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/compute/incremental_backend.py +17 -14
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/compute/recompute_backend.py +16 -9
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/compute/reconcile.py +3 -9
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/experiment_config.py +296 -16
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/validator.py +33 -10
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/core/__init__.py +8 -0
- ab_analysis_kit-0.6.0/abkit/core/period_planner.py +407 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_experiments.py +3 -2
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_unit_state.py +1 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/manager.py +24 -7
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/tables.py +16 -7
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/exposure_copy.py +13 -2
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/analyze.py +6 -3
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/driver.py +69 -9
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/enrich.py +4 -13
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/state.py +98 -13
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/reporting/builder.py +1 -7
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/base.py +35 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/__init__.py +2 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/bootstrap.py +72 -3
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/paired_bootstrap.py +4 -5
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/paired_post_normed_bootstrap.py +3 -4
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/poisson_bootstrap.py +11 -8
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/post_normed_bootstrap.py +6 -4
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/rng.py +2 -2
- ab_analysis_kit-0.6.0/abkit/tuning/__init__.py +106 -0
- ab_analysis_kit-0.6.0/abkit/tuning/assets/dashboard.js +171 -0
- ab_analysis_kit-0.6.0/abkit/tuning/dashboard_server.py +1353 -0
- ab_analysis_kit-0.6.0/abkit/tuning/html.py +181 -0
- ab_analysis_kit-0.6.0/abkit/tuning/jobs.py +590 -0
- ab_analysis_kit-0.6.0/abkit/tuning/overview.py +716 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/tuning/payload.py +1 -1
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/tuning/recompute.py +251 -23
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/tuning/server.py +121 -29
- ab_analysis_kit-0.6.0/abkit/tuning/session.py +572 -0
- ab_analysis_kit-0.6.0/abkit/utils/warn_scope.py +344 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/scoring.py +5 -3
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/pyproject.toml +3 -1
- ab_analysis_kit-0.4.0/abkit/core/period_planner.py +0 -206
- ab_analysis_kit-0.4.0/abkit/tuning/__init__.py +0 -59
- ab_analysis_kit-0.4.0/abkit/tuning/html.py +0 -93
- ab_analysis_kit-0.4.0/abkit/tuning/session.py +0 -233
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/LICENSE +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/MANIFEST.in +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/dependency_links.txt +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/entry_points.txt +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/requires.txt +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/ab_analysis_kit.egg-info/top_level.txt +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/_output.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/methods.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/plan.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/project.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/validate.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-explore/SKILL.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-feedback/SKILL.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-setup-project/SKILL.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-validate/SKILL.md +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/_context.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/clean.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/init_claude.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/test_report.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/commands/verify_incremental.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/compute/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/discovery.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/method_config.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/metric_config.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/profile.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/config/project_config.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/core/exposure_counting.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/core/interval.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/core/models.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/_sql_manager.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/clickhouse_manager.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_aa_runs.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_base.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_exposures.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_maintenance.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_results.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_schema.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/_tasks.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/internal_tables/manager.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/mysql_manager.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/database/postgres_manager.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/exposure_loader.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/exposure_source.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/metric_loader.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/query_template.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/state_loader.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/loaders/templates/abkit_assignment.jinja +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/base.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/branding.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/email.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/factory.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/mattermost.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/mock.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/slack.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/telegram.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/notify/webhook.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/_types.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/pipeline/readout.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/planning/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/planning/sizing.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/reporting/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/reporting/assets/report.js +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/reporting/calibration.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/reporting/html_report.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/accumulate.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/applier.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/ci.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/bootstrap/engine.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/correction.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/effects.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/exceptions.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/factory.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/cuped_ttest.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/paired_cuped_ttest.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/paired_ttest.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/ratio_delta.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/ttest.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/parametric/ztest.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/power.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/registry.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/result.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/samples.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/apply.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/confidence_sequence.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/sequential/mixture.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/stats/srm.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/tuning/assets/explore.js +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/tuning/config_writer.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/utils/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/utils/datetime_utils.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/utils/env_interpolation.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/utils/json_utils.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/__init__.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/_types.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/family.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/inject.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/load.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/panel.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/persistence.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/resample.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/result.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/run_id.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/runner.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/validate/vector_resample.py +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/requirements.txt +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/setup.cfg +0 -0
- {ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.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.6.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,14 +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.
|
|
80
|
-
> (milestones **M1–
|
|
81
|
-
>
|
|
82
|
-
>
|
|
83
|
-
>
|
|
84
|
-
>
|
|
85
|
-
>
|
|
86
|
-
>
|
|
79
|
+
> **Status: `0.6.0` (Alpha) — release-ready; `0.5.0` is the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M11** shipped — M11 adds **`abk dashboard`**, the
|
|
81
|
+
> project-level cockpit: one row per experiment with its headline verdict,
|
|
82
|
+
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
83
|
+
> spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
|
|
84
|
+
> Unlock, Clean, Explore, Open report) and stream their logs. It is a
|
|
85
|
+
> **launcher**: it computes no statistic and never takes the pipeline lock, so
|
|
86
|
+
> every verdict on the page is the readout's own). The statistical core, the
|
|
87
|
+
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
88
|
+
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
87
89
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
88
90
|
> Prefect scaffolding) are all shipped. Docs: [abkit.pipelab.dev](https://abkit.pipelab.dev).
|
|
89
91
|
|
|
@@ -94,9 +96,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
94
96
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
(`0.
|
|
98
|
-
ab-analysis-kit` gets `0.
|
|
99
|
-
`
|
|
99
|
+
(`0.6.0`'s `abk dashboard` lands with its tag; until then
|
|
100
|
+
`pip install ab-analysis-kit` gets `0.5.0`, which has the M10 window fields
|
|
101
|
+
(`start_ts`/`horizon_ts`) but no dashboard — for the M11 behavior install from
|
|
102
|
+
source: `pip install -e ".[dev]"`.)
|
|
100
103
|
|
|
101
104
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
102
105
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -112,6 +115,11 @@ config (`abk run --steps validate`) with no database at all. See the
|
|
|
112
115
|
correction. Ported from a battle-tested legacy engine and improved deliberately.
|
|
113
116
|
- **The cumulative stabilization chart** — effect + CI per day from experiment
|
|
114
117
|
start, so you see the estimate converge and call a winner only once it stabilizes.
|
|
118
|
+
- **`abk dashboard`** — the project-level cockpit: every experiment as one row
|
|
119
|
+
(verdict, effect + CI, p/α, sparkline), with Run / Unlock / Clean / Explore /
|
|
120
|
+
Open-report buttons that spawn real `abk` subprocesses and stream their logs.
|
|
121
|
+
It never computes a statistic itself, so what you read is the readout's own
|
|
122
|
+
verdict.
|
|
115
123
|
- **`abk explore`** — a local, chart-first cockpit to turn method knobs (CUPED,
|
|
116
124
|
stratification, alpha…) and watch the result recompute live, with A/A calibration
|
|
117
125
|
always in view. *The priority interface.*
|
|
@@ -11,14 +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.
|
|
15
|
-
> (milestones **M1–
|
|
16
|
-
>
|
|
17
|
-
>
|
|
18
|
-
>
|
|
19
|
-
>
|
|
20
|
-
>
|
|
21
|
-
>
|
|
14
|
+
> **Status: `0.6.0` (Alpha) — release-ready; `0.5.0` is the latest on PyPI**
|
|
15
|
+
> (milestones **M1–M11** shipped — M11 adds **`abk dashboard`**, the
|
|
16
|
+
> project-level cockpit: one row per experiment with its headline verdict,
|
|
17
|
+
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
18
|
+
> spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
|
|
19
|
+
> Unlock, Clean, Explore, Open report) and stream their logs. It is a
|
|
20
|
+
> **launcher**: it computes no statistic and never takes the pipeline lock, so
|
|
21
|
+
> every verdict on the page is the readout's own). The statistical core, the
|
|
22
|
+
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
23
|
+
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
22
24
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
23
25
|
> Prefect scaffolding) are all shipped. Docs: [abkit.pipelab.dev](https://abkit.pipelab.dev).
|
|
24
26
|
|
|
@@ -29,9 +31,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
29
31
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
30
32
|
```
|
|
31
33
|
|
|
32
|
-
(`0.
|
|
33
|
-
ab-analysis-kit` gets `0.
|
|
34
|
-
`
|
|
34
|
+
(`0.6.0`'s `abk dashboard` lands with its tag; until then
|
|
35
|
+
`pip install ab-analysis-kit` gets `0.5.0`, which has the M10 window fields
|
|
36
|
+
(`start_ts`/`horizon_ts`) but no dashboard — for the M11 behavior install from
|
|
37
|
+
source: `pip install -e ".[dev]"`.)
|
|
35
38
|
|
|
36
39
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
37
40
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -47,6 +50,11 @@ config (`abk run --steps validate`) with no database at all. See the
|
|
|
47
50
|
correction. Ported from a battle-tested legacy engine and improved deliberately.
|
|
48
51
|
- **The cumulative stabilization chart** — effect + CI per day from experiment
|
|
49
52
|
start, so you see the estimate converge and call a winner only once it stabilizes.
|
|
53
|
+
- **`abk dashboard`** — the project-level cockpit: every experiment as one row
|
|
54
|
+
(verdict, effect + CI, p/α, sparkline), with Run / Unlock / Clean / Explore /
|
|
55
|
+
Open-report buttons that spawn real `abk` subprocesses and stream their logs.
|
|
56
|
+
It never computes a statistic itself, so what you read is the readout's own
|
|
57
|
+
verdict.
|
|
50
58
|
- **`abk explore`** — a local, chart-first cockpit to turn method knobs (CUPED,
|
|
51
59
|
stratification, alpha…) and watch the result recompute live, with A/A calibration
|
|
52
60
|
always in view. *The priority interface.*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,14 +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.
|
|
80
|
-
> (milestones **M1–
|
|
81
|
-
>
|
|
82
|
-
>
|
|
83
|
-
>
|
|
84
|
-
>
|
|
85
|
-
>
|
|
86
|
-
>
|
|
79
|
+
> **Status: `0.6.0` (Alpha) — release-ready; `0.5.0` is the latest on PyPI**
|
|
80
|
+
> (milestones **M1–M11** shipped — M11 adds **`abk dashboard`**, the
|
|
81
|
+
> project-level cockpit: one row per experiment with its headline verdict,
|
|
82
|
+
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
83
|
+
> spawn real `abk` subprocesses (Run — for the whole experiment or one metric —
|
|
84
|
+
> Unlock, Clean, Explore, Open report) and stream their logs. It is a
|
|
85
|
+
> **launcher**: it computes no statistic and never takes the pipeline lock, so
|
|
86
|
+
> every verdict on the page is the readout's own). The statistical core, the
|
|
87
|
+
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
88
|
+
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
87
89
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
88
90
|
> Prefect scaffolding) are all shipped. Docs: [abkit.pipelab.dev](https://abkit.pipelab.dev).
|
|
89
91
|
|
|
@@ -94,9 +96,10 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
94
96
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
95
97
|
```
|
|
96
98
|
|
|
97
|
-
(`0.
|
|
98
|
-
ab-analysis-kit` gets `0.
|
|
99
|
-
`
|
|
99
|
+
(`0.6.0`'s `abk dashboard` lands with its tag; until then
|
|
100
|
+
`pip install ab-analysis-kit` gets `0.5.0`, which has the M10 window fields
|
|
101
|
+
(`start_ts`/`horizon_ts`) but no dashboard — for the M11 behavior install from
|
|
102
|
+
source: `pip install -e ".[dev]"`.)
|
|
100
103
|
|
|
101
104
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
102
105
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -112,6 +115,11 @@ config (`abk run --steps validate`) with no database at all. See the
|
|
|
112
115
|
correction. Ported from a battle-tested legacy engine and improved deliberately.
|
|
113
116
|
- **The cumulative stabilization chart** — effect + CI per day from experiment
|
|
114
117
|
start, so you see the estimate converge and call a winner only once it stabilizes.
|
|
118
|
+
- **`abk dashboard`** — the project-level cockpit: every experiment as one row
|
|
119
|
+
(verdict, effect + CI, p/α, sparkline), with Run / Unlock / Clean / Explore /
|
|
120
|
+
Open-report buttons that spawn real `abk` subprocesses and stream their logs.
|
|
121
|
+
It never computes a statistic itself, so what you read is the readout's own
|
|
122
|
+
verdict.
|
|
115
123
|
- **`abk explore`** — a local, chart-first cockpit to turn method knobs (CUPED,
|
|
116
124
|
stratification, alpha…) and watch the result recompute live, with A/A calibration
|
|
117
125
|
always in view. *The priority interface.*
|
|
@@ -34,6 +34,7 @@ abkit/cli/assets/claude/skills/abk-validate/SKILL.md
|
|
|
34
34
|
abkit/cli/commands/__init__.py
|
|
35
35
|
abkit/cli/commands/_context.py
|
|
36
36
|
abkit/cli/commands/clean.py
|
|
37
|
+
abkit/cli/commands/dashboard.py
|
|
37
38
|
abkit/cli/commands/explore.py
|
|
38
39
|
abkit/cli/commands/init.py
|
|
39
40
|
abkit/cli/commands/init_claude.py
|
|
@@ -145,16 +146,21 @@ abkit/stats/sequential/confidence_sequence.py
|
|
|
145
146
|
abkit/stats/sequential/mixture.py
|
|
146
147
|
abkit/tuning/__init__.py
|
|
147
148
|
abkit/tuning/config_writer.py
|
|
149
|
+
abkit/tuning/dashboard_server.py
|
|
148
150
|
abkit/tuning/html.py
|
|
151
|
+
abkit/tuning/jobs.py
|
|
152
|
+
abkit/tuning/overview.py
|
|
149
153
|
abkit/tuning/payload.py
|
|
150
154
|
abkit/tuning/recompute.py
|
|
151
155
|
abkit/tuning/server.py
|
|
152
156
|
abkit/tuning/session.py
|
|
157
|
+
abkit/tuning/assets/dashboard.js
|
|
153
158
|
abkit/tuning/assets/explore.js
|
|
154
159
|
abkit/utils/__init__.py
|
|
155
160
|
abkit/utils/datetime_utils.py
|
|
156
161
|
abkit/utils/env_interpolation.py
|
|
157
162
|
abkit/utils/json_utils.py
|
|
163
|
+
abkit/utils/warn_scope.py
|
|
158
164
|
abkit/validate/__init__.py
|
|
159
165
|
abkit/validate/_types.py
|
|
160
166
|
abkit/validate/family.py
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
-
__version__ = "0.
|
|
13
|
+
__version__ = "0.6.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.
|
|
@@ -34,7 +34,7 @@ files are installed by `abk init-claude` and track the installed abkit version
|
|
|
34
34
|
| If the task is about… | Read |
|
|
35
35
|
|---|---|
|
|
36
36
|
| What abkit is, the `load → compute → readout` pipeline, the `_ab_*` tables, glossary | `.claude/rules/ab-analysis-kit/overview.md` |
|
|
37
|
-
| `abk` commands, `--select`/`--metric`/`--method` selectors, `--from`/`--to`, `--full-refresh`, locks, `abk clean`, `abk test-report` | `.claude/rules/ab-analysis-kit/cli.md` |
|
|
37
|
+
| `abk` commands, `--select`/`--metric`/`--method` selectors, `--from`/`--to`, `--full-refresh`, locks, `abk clean`, `abk test-report`, the project dashboard (`abk dashboard`) | `.claude/rules/ab-analysis-kit/cli.md` |
|
|
38
38
|
| `abkit_project.yml`, `profiles.yml`, DB connections, statistical defaults, two-tier alpha, `notification_channels` | `.claude/rules/ab-analysis-kit/project.md` |
|
|
39
39
|
| An experiment YAML: variants, comparisons, cadence/horizon, SRM, the sequential toggle | `.claude/rules/ab-analysis-kit/experiments.md` |
|
|
40
40
|
| A reusable metric YAML: `type` (sample/fraction/ratio), column roles, one-row-per-unit SQL, CUPED covariate | `.claude/rules/ab-analysis-kit/metrics.md` |
|
|
@@ -13,6 +13,7 @@ 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
17
|
| `abk validate --select <exp>` | The A/A false-positive + power matrix — is a method calibrated on this data? (see `validate.md`) |
|
|
17
18
|
| `abk plan --select <exp>` | Read-only pre-launch sizing: required-N / achievable-MDE / power (see `plan.md`) |
|
|
18
19
|
| `abk unlock --select <exp>` | Clear a stuck pipeline / validate lock |
|
|
@@ -29,18 +30,20 @@ experiment references reusable metrics:
|
|
|
29
30
|
- **`--select` / `-s` selects an EXPERIMENT** (`experiments/<name>.yml`). Forms:
|
|
30
31
|
bare **name** (`example_signup_test` — do NOT add `.yml`), **path / glob**
|
|
31
32
|
(`"experiments/checkout/*.yml"`, `"signup_*"`), **tag** (`tag:actual`), and
|
|
32
|
-
`"*"` for all. Repeatable. `run`/`validate`/`plan`/`unlock`/`clean`
|
|
33
|
-
**all experiments** when `--select` is omitted; `explore` requires
|
|
33
|
+
`"*"` for all. Repeatable. `run`/`validate`/`plan`/`unlock`/`clean`/`dashboard`
|
|
34
|
+
default to **all experiments** when `--select` is omitted; `explore` requires
|
|
35
|
+
exactly one.
|
|
34
36
|
- **`--metric <name>` selects a LIBRARY metric** within the chosen experiment(s)
|
|
35
|
-
— a single metric name, never a glob. It narrows
|
|
36
|
-
comparison (`explore`, `validate`, `plan`).
|
|
37
|
+
— a single metric name, never a glob. It narrows a command to that metric's
|
|
38
|
+
comparison(s) (`run`, `explore`, `validate`, `plan`, `verify-incremental`).
|
|
37
39
|
- **`--method <name>` (validate only) is the method-grid axis** — an extra
|
|
38
40
|
registered method to score *beyond* the declared comparison. It is NOT a
|
|
39
41
|
selector; do not confuse it with `--select`.
|
|
40
42
|
|
|
41
43
|
Experiment AND metric names share ONE global namespace and are the DB key —
|
|
42
44
|
selection/uniqueness errors name the namespace and the colliding file. `--exclude`
|
|
43
|
-
(on `run`) removes matches
|
|
45
|
+
(on `run` and `dashboard`) removes matches
|
|
46
|
+
(`--select "*" --exclude "experiments/staging/*"`).
|
|
44
47
|
|
|
45
48
|
## `abk init`
|
|
46
49
|
|
|
@@ -70,7 +73,8 @@ to refresh this context.
|
|
|
70
73
|
## `abk run`
|
|
71
74
|
|
|
72
75
|
```bash
|
|
73
|
-
abk run [--select <exp>] [--exclude <sel>] [--
|
|
76
|
+
abk run [--select <exp>] [--exclude <sel>] [--metric <m>] \
|
|
77
|
+
[--steps validate,plan,load,state,compute] \
|
|
74
78
|
[--from TS] [--to TS] [--full-refresh] [--resync-cohort] [--workers N] \
|
|
75
79
|
[--report [PATH]] [--force] [--profile NAME]
|
|
76
80
|
```
|
|
@@ -85,6 +89,22 @@ It is incremental by
|
|
|
85
89
|
an anti-join — only cutoffs past the `data_lag` watermark and not already computed
|
|
86
90
|
are (re)computed, so re-running is idempotent.
|
|
87
91
|
|
|
92
|
+
- `--metric <m>` (0.6.0) — recompute only that metric's comparison(s); the same
|
|
93
|
+
metric axis `explore`/`validate`/`plan`/`verify-incremental` take. Other
|
|
94
|
+
metrics' **results** are left exactly as they are, and the **alphas do not
|
|
95
|
+
move** (the two-tier scheme comes from the config, not from what one run
|
|
96
|
+
computes). `--full-refresh --metric <m>` is the "reprocess just this metric"
|
|
97
|
+
path. Day state is the one thing a narrowed run may still touch elsewhere,
|
|
98
|
+
because a stale-but-contiguous day is invisible to the reader's gap check: a
|
|
99
|
+
scoped `--full-refresh` TRUNCATES the other eligible metrics' day state from
|
|
100
|
+
the first day the window touches through the end of that series (not
|
|
101
|
+
re-rendered — reads fall back to recompute until a run that includes them
|
|
102
|
+
re-derives it), and in copy mode `--resync-cohort` rebuilds the whole cohort so
|
|
103
|
+
day state is re-materialized for every eligible metric. Both follow the `state`
|
|
104
|
+
step (omit it from `--steps` and no day state is touched), both are decided PER
|
|
105
|
+
EXPERIMENT, and the run prints which applies. Only compute ever narrows them. The cohort load and the SRM gate stay
|
|
106
|
+
experiment-level. An experiment without that comparison is skipped with a
|
|
107
|
+
printed line; a metric matching nowhere is an error.
|
|
88
108
|
- `--steps` (default `validate,plan,load,state,compute`) — comma-separated steps.
|
|
89
109
|
**`--steps validate` alone is the config lint** (no DB, no lock): it parses the
|
|
90
110
|
YAML, lints every metric SQL for the one-row-per-unit contract and the cohort
|
|
@@ -135,6 +155,46 @@ without launching a browser. Takes no pipeline lock (it only edits a config file
|
|
|
135
155
|
re-run `abk run` afterward to recompute under the new config. Full reference:
|
|
136
156
|
`explore.md`.
|
|
137
157
|
|
|
158
|
+
## `abk dashboard`
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
abk dashboard [--select <sel>]... [--exclude <sel>]... [--window 24h|7d|30d|90d|all] \
|
|
162
|
+
[--no-open] [--profile NAME]
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
The project-level cockpit (0.6.0): one row per selected experiment — headline
|
|
166
|
+
verdict, effect, p-value, last look and a sparkline — served on localhost with a
|
|
167
|
+
per-start token that authorizes EVERY request, `GET` included. The page boots on
|
|
168
|
+
metadata only and fills each row on demand (3 requests in flight), so a
|
|
169
|
+
hundred-experiment project renders instantly.
|
|
170
|
+
|
|
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.
|
|
179
|
+
|
|
180
|
+
- `--window` (default `30d`) bounds the **sparkline only** — every verdict,
|
|
181
|
+
effect and p-value is the FULL cumulative series' (dropping the oldest look
|
|
182
|
+
would truncate a stabilization history, not shorten the experiment). Switchable
|
|
183
|
+
on the page.
|
|
184
|
+
- `--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
|
+
- A project that has never run serves fine — every row reads `no data — press
|
|
187
|
+
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.
|
|
191
|
+
- **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.
|
|
193
|
+
|
|
194
|
+
An empty selection warns and exits 0 without serving; an unknown `--window` is a
|
|
195
|
+
non-zero startup error, raised before the port is bound. Full reference:
|
|
196
|
+
https://abkit.pipelab.dev/guides/dashboard/.
|
|
197
|
+
|
|
138
198
|
## `abk validate`
|
|
139
199
|
|
|
140
200
|
```bash
|
|
@@ -264,6 +324,9 @@ abk run --select example_signup_test --report
|
|
|
264
324
|
|
|
265
325
|
# Reprocess after changing a metric query or a method param
|
|
266
326
|
abk run --select example_signup_test --full-refresh --from 2024-07-01 --to 2024-07-15
|
|
327
|
+
# ...or only the metric that changed (the other series keep their rows)
|
|
328
|
+
abk run --select example_signup_test --metric example_arpu \
|
|
329
|
+
--full-refresh --from 2024-07-01 --to 2024-07-15
|
|
267
330
|
abk clean --select example_signup_test # dry-run: preview orphaned rows
|
|
268
331
|
abk clean --select example_signup_test --execute # then prune them
|
|
269
332
|
|
|
@@ -272,6 +335,9 @@ abk plan --select example_signup_test --mde 0.05
|
|
|
272
335
|
abk validate --select example_signup_test
|
|
273
336
|
abk explore --select example_signup_test
|
|
274
337
|
|
|
338
|
+
# Watch the whole portfolio (and drive it) from one page
|
|
339
|
+
abk dashboard --select tag:actual
|
|
340
|
+
|
|
275
341
|
# Scheduled recompute of every experiment whose `tags:` list contains "actual" (cron / Prefect)
|
|
276
342
|
abk run --select tag:actual
|
|
277
343
|
|
{ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/rules/experiments.md
RENAMED
|
@@ -18,13 +18,18 @@ status: running # design | running | concluded | archived (defa
|
|
|
18
18
|
is_actual: true # catalog flag only (persisted to _ab_experiments); NOT read for selection (default true)
|
|
19
19
|
tags: [growth, onboarding] # optional — selectable via `--select tag:<t>` (e.g. tag:actual matches this list)
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
start_ts: 2024-07-01 # required — PINNED left edge of every cumulative window
|
|
22
|
+
# (bare date = local midnight; a timestamp is exact)
|
|
23
|
+
horizon_ts: 2024-07-15 # required — planner horizon, the EXCLUSIVE right edge
|
|
24
|
+
# (this covers July 1..14); also drives the power plan
|
|
23
25
|
unit_key: user_id # required — randomization + default analysis unit
|
|
24
26
|
|
|
25
27
|
cadence: 1d # cumulative cutoff step (default "1d"); see "Cadence" below
|
|
28
|
+
interval_anchor: midnight # WHERE the cutoffs land: midnight (default) | start |
|
|
29
|
+
# an explicit timestamp; see "Cadence" below
|
|
26
30
|
data_lag: 0 # completeness watermark; REQUIRED when cadence < 1d
|
|
27
|
-
timezone: UTC # interprets date
|
|
31
|
+
timezone: UTC # interprets bare-date edges, the `midnight` anchor and the
|
|
32
|
+
# day lattice; storage is UTC (default UTC)
|
|
28
33
|
|
|
29
34
|
assignment: # READ-ONLY exposure source — abkit never randomizes
|
|
30
35
|
query_file: sql/assignment.sql # or inline `query:` (exactly one, never both)
|
|
@@ -92,11 +97,16 @@ comparisons: # required — each binds one library metric to
|
|
|
92
97
|
|
|
93
98
|
## Cumulative window, cadence & data_lag
|
|
94
99
|
|
|
95
|
-
- The analysis window is **pinned-start / moving-end**: `
|
|
100
|
+
- The analysis window is **pinned-start / moving-end**: `start_ts` never moves;
|
|
96
101
|
each cutoff advances the end through the horizon, producing the stabilization
|
|
97
|
-
series (one point per cutoff, effect + CI over `[
|
|
98
|
-
-
|
|
99
|
-
|
|
102
|
+
series (one point per cutoff, effect + CI over `[start_ts .. cutoff]`).
|
|
103
|
+
- Both edges are **timestamps**. A bare date is shorthand for local midnight of
|
|
104
|
+
that day in `timezone`, so `start_ts: 2024-07-01` reads exactly as before; a
|
|
105
|
+
full timestamp (`2024-07-01 14:30:00`) is that exact instant, with no snap.
|
|
106
|
+
- `horizon_ts` is the **horizon** and it is EXCLUSIVE — the window is
|
|
107
|
+
`[start_ts, horizon_ts)`. An experiment running July 1..14 inclusive has
|
|
108
|
+
`horizon_ts: 2024-07-15`. It drives the power plan and the sequential
|
|
109
|
+
pre-horizon rule below.
|
|
100
110
|
- `cadence` is the cutoff step. Either a **duration scalar** (`"1h"`, `"30m"`,
|
|
101
111
|
`"1d"`, or integer seconds) or a **coarsening schedule** — a dense-early list
|
|
102
112
|
that must be strictly coarsening with strictly increasing `until` bounds (only
|
|
@@ -108,6 +118,22 @@ comparisons: # required — each binds one library metric to
|
|
|
108
118
|
- {every: 1d} # daily thereafter
|
|
109
119
|
```
|
|
110
120
|
|
|
121
|
+
- `interval_anchor` decides **where** the cutoff lattice sits (`cadence` decides
|
|
122
|
+
how far apart the points are). Cutoffs are `anchor + k*cadence`, kept strictly
|
|
123
|
+
after `start_ts`. Three forms:
|
|
124
|
+
|
|
125
|
+
| value | meaning |
|
|
126
|
+
|---|---|
|
|
127
|
+
| `midnight` (default when absent) | local midnight of the day the window opens — whole calendar days, what BI dashboards read |
|
|
128
|
+
| `start` | count from the start instant: a 14:00 start ⇒ 14:00 cutoffs |
|
|
129
|
+
| an explicit timestamp | align to an external cycle (e.g. 3-day windows at 00:00 MSK on a UTC warehouse) |
|
|
130
|
+
|
|
131
|
+
The anchor MAY precede `start_ts` — the forward snap is what makes that
|
|
132
|
+
well-defined, and the first window is then legitimately partial. Note
|
|
133
|
+
`midnight` anchors to the experiment's OWN opening day, not to a global
|
|
134
|
+
cycle: two experiments starting a day apart get interleaved 3-day lattices.
|
|
135
|
+
Use the explicit form when the cycle must be shared. Day-or-coarser steps hold
|
|
136
|
+
the anchor's local wall-clock time across DST; sub-day steps are absolute.
|
|
111
137
|
- `data_lag` is the completeness watermark: a cutoff is analyzed only once
|
|
112
138
|
`end_ts <= now() - data_lag`. **Required when cadence < 1d** (declare your
|
|
113
139
|
ingestion SLA). At daily cadence the default `0` reproduces the legacy
|
|
@@ -166,8 +192,8 @@ series early and stopping ("peeking") inflates the false-positive rate. Therefor
|
|
|
166
192
|
|
|
167
193
|
```yaml
|
|
168
194
|
name: pricing_test
|
|
169
|
-
|
|
170
|
-
|
|
195
|
+
start_ts: 2024-07-01
|
|
196
|
+
horizon_ts: 2024-07-15
|
|
171
197
|
unit_key: user_id
|
|
172
198
|
assignment:
|
|
173
199
|
query_file: sql/assignment.sql
|
|
@@ -71,6 +71,13 @@ The one session-load pass at startup (lock-free, read-only) fills a **bounded**
|
|
|
71
71
|
Tier-S cache. Over budget ⇒ honest suffstats-only degradation (a smaller live
|
|
72
72
|
surface), never a silently partial cache.
|
|
73
73
|
|
|
74
|
+
Since 0.5.0 an **alpha drag over a bootstrap series redraws nothing**: the
|
|
75
|
+
replicates are alpha-free, so they are drawn once per (metric, arm pair,
|
|
76
|
+
cutoff, method, resolved params) and the percentile CI is re-derived per alpha.
|
|
77
|
+
Same replicates ⇒ same numbers (a cache, not an approximation); a `Reload`
|
|
78
|
+
of a cutoff discards them, and any knob that feeds the draw itself
|
|
79
|
+
(`n_samples`, `stat`, `stratify`, …) is a new draw.
|
|
80
|
+
|
|
74
81
|
## Calibration is always visible; Apply is gated
|
|
75
82
|
|
|
76
83
|
- The **A/A real-α chip** lives in the cockpit, never a separate screen. It keys
|
|
@@ -139,5 +146,8 @@ serve normally to tune.
|
|
|
139
146
|
identity-param change, or BI shows duplicate stabilization lines.
|
|
140
147
|
- **SRM still gates.** A tuned significant effect on an SRM-failed experiment is
|
|
141
148
|
not trustworthy — the flag rides on the windshield; fix the assignment first.
|
|
149
|
+
- **One experiment at a time.** For the project-wide view — one row per
|
|
150
|
+
experiment, with a button that launches this cockpit — use `abk dashboard`
|
|
151
|
+
(`cli.md`). It tunes nothing itself.
|
|
142
152
|
|
|
143
153
|
> Installed by `abk init-claude`; tracks the installed abkit version.
|
|
@@ -161,7 +161,10 @@ validate` colours **this** metric's FPR against, overriding the project-wide
|
|
|
161
161
|
|
|
162
162
|
- **Changing the SQL** changes what is loaded but not stored history; recompute
|
|
163
163
|
the window with `abk run --select <exp> --full-refresh --from <start> --to <end>`
|
|
164
|
-
(`--full-refresh` requires both bounds).
|
|
164
|
+
(`--full-refresh` requires both bounds). Add `--metric <this metric>` (0.6.0) to
|
|
165
|
+
reprocess only this series: the experiment's other metrics keep their results
|
|
166
|
+
(their day state is truncated from the first day the window touches onward,
|
|
167
|
+
so a later run re-derives it from the current facts).
|
|
165
168
|
- Metric results are keyed by the method identity (`method_config_id`), which
|
|
166
169
|
lives on the **experiment's comparison**, not here — see `methods.md`. Editing
|
|
167
170
|
an identity param orphans the prior result series (`abk clean` prunes).
|
|
@@ -38,7 +38,8 @@ Every `abk run` executes three stages per experiment:
|
|
|
38
38
|
skipped (anti-join on `end_ts`, honoring `data_lag`).
|
|
39
39
|
3. **readout** — recomputes the WIN / LOSE / FLAT / INCONCLUSIVE verdict at
|
|
40
40
|
render time from `_ab_results` (never persisted), applies two-tier alpha and
|
|
41
|
-
the SRM/horizon gates. Emitted by `abk run --report`, `abk explore
|
|
41
|
+
the SRM/horizon gates. Emitted by `abk run --report`, `abk explore`, and
|
|
42
|
+
`abk dashboard` (one row per experiment, plus the same report on demand).
|
|
42
43
|
|
|
43
44
|
Run a subset of stages with `--steps` (e.g. `abk run --steps validate` is the
|
|
44
45
|
**config lint** — do not confuse it with `abk validate`, the A/A matrix).
|
|
@@ -92,8 +93,11 @@ profile's `internal_database` / `internal_schema`, separate from the
|
|
|
92
93
|
extra SQL). Sized on raw variance.
|
|
93
94
|
- **cadence** — the spacing of cumulative cutoffs (`1d`, or a coarsening schedule
|
|
94
95
|
`[{every: 1h, until: 48h}, {every: 1d}]`). Window start is PINNED; end moves.
|
|
95
|
-
- **
|
|
96
|
-
|
|
96
|
+
- **interval_anchor** — WHERE that lattice sits: `midnight` (default — local
|
|
97
|
+
midnight of the opening day) | `start` | an explicit timestamp. Cutoffs are
|
|
98
|
+
`anchor + k*cadence`, kept after `start_ts`.
|
|
99
|
+
- **horizon** — the planned end (`horizon_ts`, EXCLUSIVE); fixed-horizon CIs are
|
|
100
|
+
only valid here. `is_horizon` marks the row where a WIN/LOSE/FLAT may be called.
|
|
97
101
|
- **data_lag** — the watermark: a cutoff is pending only once late data has
|
|
98
102
|
landed (`end_ts ≤ now − data_lag`). Required when cadence < 1d.
|
|
99
103
|
- **method_config_id** — hash of the method + its non-default **identity** params
|
|
@@ -104,13 +104,19 @@ and `abk clean` prune the strays. `seed` and `alpha` are identity-EXCLUDED.
|
|
|
104
104
|
|
|
105
105
|
## Step 6 — Window, cadence, data_lag, alpha
|
|
106
106
|
|
|
107
|
-
- `
|
|
108
|
-
planned **horizon** the power plan targets).
|
|
109
|
-
|
|
107
|
+
- `start_ts` (PINNED left edge of every cumulative window) and `horizon_ts` (the
|
|
108
|
+
planned **horizon** the power plan targets). Both take a bare date — local
|
|
109
|
+
midnight of that day in `timezone` — or a full timestamp, which is the exact
|
|
110
|
+
instant. `horizon_ts` is **EXCLUSIVE**: an experiment running Aug 1..21
|
|
111
|
+
inclusive has `horizon_ts: 2024-08-22`. Use `unit_key` for the analysis unit.
|
|
110
112
|
- `cadence:` — the cutoff step (`1d` default; or a dense-early schedule like
|
|
111
113
|
`[{every: 1h, until: 48h}, {every: 1d}]`). **Cadence below `1d` REQUIRES
|
|
112
114
|
`data_lag:`** (declare the ingestion SLA; use `data_lag: 0` only if data is
|
|
113
115
|
truly complete in real time).
|
|
116
|
+
- `interval_anchor:` — WHERE the cutoffs land: `midnight` (default when omitted —
|
|
117
|
+
local midnight of the opening day) | `start` (count from `start_ts`) | an
|
|
118
|
+
explicit timestamp to align to an external cycle (it may precede `start_ts`,
|
|
119
|
+
making the first window partial). Cutoffs are `anchor + k*cadence`.
|
|
114
120
|
- `alpha:` / `correction:` — omit to inherit project defaults; `correction:
|
|
115
121
|
bonferroni` gives the two-tier split, read-time BH is applied across a family.
|
|
116
122
|
|
|
@@ -140,10 +146,11 @@ result:
|
|
|
140
146
|
name: checkout_button_color
|
|
141
147
|
description: "Green vs blue primary CTA on checkout"
|
|
142
148
|
status: running
|
|
143
|
-
|
|
144
|
-
|
|
149
|
+
start_ts: 2024-08-01 # PINNED window start (bare date = local midnight)
|
|
150
|
+
horizon_ts: 2024-08-22 # horizon — EXCLUSIVE, so this covers Aug 1..21
|
|
145
151
|
unit_key: user_id
|
|
146
152
|
cadence: 1d
|
|
153
|
+
interval_anchor: midnight # midnight (default) | start | an explicit timestamp
|
|
147
154
|
|
|
148
155
|
assignment:
|
|
149
156
|
query_file: sql/checkout_button_color_assignment.sql
|
|
@@ -178,7 +185,8 @@ Fix every reported error before declaring done. Re-check:
|
|
|
178
185
|
- [ ] Exactly ≥1 comparison sets `is_main_metric: true`; no main+guardrail clash.
|
|
179
186
|
- [ ] Each method name is registered and its params instantiate (no quarantined
|
|
180
187
|
branch, no unknown param).
|
|
181
|
-
- [ ] `
|
|
188
|
+
- [ ] `horizon_ts > start_ts` (the horizon is exclusive); sub-day cadence has
|
|
189
|
+
`data_lag`.
|
|
182
190
|
|
|
183
191
|
## Step 9 — Run it, and what's next
|
|
184
192
|
|
|
@@ -192,7 +192,10 @@ abk run --select <experiment> --steps load
|
|
|
192
192
|
Editing a metric's SQL later changes what is loaded but not stored history —
|
|
193
193
|
recompute the affected cutoffs with `abk run --select <experiment>
|
|
194
194
|
--full-refresh --from <start> --to <end>` (`--full-refresh` requires both
|
|
195
|
-
`--from` and an exclusive `--to`).
|
|
195
|
+
`--from` and an exclusive `--to`). Since 0.6.0, add `--metric <this metric>` to
|
|
196
|
+
reprocess only this series: the experiment's other metrics keep their rows (their
|
|
197
|
+
day state is truncated from the first day the window touches onward, so a later
|
|
198
|
+
run re-derives it), and the two-tier alphas are unchanged either way.
|
|
196
199
|
|
|
197
200
|
## Step 7 — Report and hand off
|
|
198
201
|
|
{ab_analysis_kit-0.4.0 → ab_analysis_kit-0.6.0}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md
RENAMED
|
@@ -133,7 +133,7 @@ this; tell the user the true requirement is lower.
|
|
|
133
133
|
|
|
134
134
|
## Step 5 — Act on the result
|
|
135
135
|
|
|
136
|
-
- **Underpowered at the horizon?** Extend `
|
|
136
|
+
- **Underpowered at the horizon?** Extend `horizon_ts`, raise traffic/allocation, pick a
|
|
137
137
|
lower-variance or CUPED method, or accept a larger detectable MDE. Re-plan.
|
|
138
138
|
- **Comfortably powered?** The design is sound to launch. Remind the user that reading
|
|
139
139
|
the daily series early is peeking — if they want to stop early, enable
|