ab-analysis-kit 0.6.2__tar.gz → 0.6.4__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.6.2/ab_analysis_kit.egg-info → ab_analysis_kit-0.6.4}/PKG-INFO +12 -6
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/README.md +11 -5
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4/ab_analysis_kit.egg-info}/PKG-INFO +12 -6
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/ab_analysis_kit.egg-info/SOURCES.txt +1 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/__init__.py +1 -1
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/cli.md +73 -21
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/explore.md +7 -4
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/metrics.md +2 -1
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/overview.md +1 -1
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/project.md +17 -3
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/dashboard.py +7 -1
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/init.py +11 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/run.py +43 -1
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/main.py +16 -3
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/discovery.py +32 -1
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/project_config.py +7 -2
- ab_analysis_kit-0.6.4/abkit/pipeline/_types.py +179 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/pipeline/driver.py +82 -15
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/pipeline/state.py +6 -3
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/__init__.py +25 -5
- ab_analysis_kit-0.6.4/abkit/tuning/assets/dashboard.js +197 -0
- ab_analysis_kit-0.6.4/abkit/tuning/config_files.py +593 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/config_writer.py +16 -40
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/dashboard_server.py +540 -60
- ab_analysis_kit-0.6.2/abkit/pipeline/_types.py +0 -87
- ab_analysis_kit-0.6.2/abkit/tuning/assets/dashboard.js +0 -171
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/LICENSE +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/MANIFEST.in +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/ab_analysis_kit.egg-info/dependency_links.txt +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/ab_analysis_kit.egg-info/entry_points.txt +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/ab_analysis_kit.egg-info/requires.txt +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/ab_analysis_kit.egg-info/top_level.txt +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/_output.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/CLAUDE.section.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/experiments.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/methods.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/plan.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/rules/validate.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/skills/abk-explore/SKILL.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/skills/abk-feedback/SKILL.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/skills/abk-new-experiment/SKILL.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/skills/abk-new-metric/SKILL.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/skills/abk-plan/SKILL.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/skills/abk-setup-project/SKILL.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/assets/claude/skills/abk-validate/SKILL.md +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/_context.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/clean.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/explore.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/init_claude.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/plan.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/test_report.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/unlock.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/validate.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/cli/commands/verify_incremental.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/compute/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/compute/incremental_backend.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/compute/recompute_backend.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/compute/reconcile.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/experiment_config.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/method_config.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/metric_config.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/profile.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/config/validator.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/core/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/core/exposure_counting.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/core/interval.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/core/models.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/core/period_planner.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/_sql_manager.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/clickhouse_manager.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_aa_runs.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_base.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_experiments.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_exposures.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_maintenance.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_results.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_schema.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_tasks.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/_unit_state.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/internal_tables/manager.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/manager.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/mysql_manager.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/postgres_manager.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/database/tables.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/exposure_copy.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/exposure_loader.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/exposure_source.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/metric_loader.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/query_template.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/state_loader.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/loaders/templates/abkit_assignment.jinja +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/base.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/branding.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/email.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/factory.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/mattermost.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/mock.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/slack.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/telegram.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/notify/webhook.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/pipeline/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/pipeline/analyze.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/pipeline/enrich.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/pipeline/readout.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/planning/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/planning/sizing.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/reporting/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/reporting/assets/report.js +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/reporting/builder.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/reporting/calibration.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/reporting/html_report.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/accumulate.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/base.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/applier.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/bootstrap.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/ci.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/engine.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/paired_bootstrap.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/paired_post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/poisson_bootstrap.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/bootstrap/post_normed_bootstrap.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/correction.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/effects.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/exceptions.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/factory.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/parametric/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/parametric/cuped_ttest.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/parametric/paired_cuped_ttest.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/parametric/paired_ttest.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/parametric/ratio_delta.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/parametric/ttest.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/parametric/ztest.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/power.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/registry.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/result.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/rng.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/samples.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/sequential/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/sequential/apply.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/sequential/confidence_sequence.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/sequential/mixture.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/stats/srm.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/assets/explore.js +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/html.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/jobs.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/overview.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/payload.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/recompute.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/server.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/tuning/session.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/utils/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/utils/datetime_utils.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/utils/env_interpolation.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/utils/json_utils.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/utils/warn_scope.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/__init__.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/_types.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/family.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/inject.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/load.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/panel.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/persistence.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/resample.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/result.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/run_id.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/runner.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/scoring.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/abkit/validate/vector_resample.py +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/pyproject.toml +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/requirements.txt +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/setup.cfg +0 -0
- {ab_analysis_kit-0.6.2 → ab_analysis_kit-0.6.4}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.4
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,7 +76,7 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
76
76
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
77
77
|
actually calibrated.
|
|
78
78
|
|
|
79
|
-
> **Status: `0.6.
|
|
79
|
+
> **Status: `0.6.4` (Alpha) — the latest on PyPI**
|
|
80
80
|
> (milestones **M1–M11** shipped — M11 added **`abk dashboard`**, the
|
|
81
81
|
> project-level cockpit: one row per experiment with its headline verdict,
|
|
82
82
|
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
@@ -88,7 +88,13 @@ actually calibrated.
|
|
|
88
88
|
> correlation its own results row already persists — required-N is `(1 − ρ²)×` the
|
|
89
89
|
> old raw-variance bound (`0.6.1`) — and `--from-history <N d>` gives an experiment
|
|
90
90
|
> that has **never run** a baseline from the days before its start, instead of
|
|
91
|
-
> `SKIPPED: no baseline` (`0.6.2`)
|
|
91
|
+
> `SKIPPED: no baseline` (`0.6.2`). A second `0.6.x` interstitial then gave the
|
|
92
|
+
> dashboard **CRUD YAML editing** — edit, create, delete an experiment from the
|
|
93
|
+
> cockpit, validated at both levels and archived byte-verbatim before every write
|
|
94
|
+
> — added `abk ui` as its alias, and made M9's additive read path **discoverable**:
|
|
95
|
+
> `abk run` no longer stays quiet about an undecided `compute.incremental_reads`,
|
|
96
|
+
> `--cost-report` prints the counterfactual, and `abk init` scaffolds it on
|
|
97
|
+
> (`0.6.4`)). The statistical core, the
|
|
92
98
|
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
93
99
|
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
94
100
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
@@ -101,9 +107,9 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
101
107
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
102
108
|
```
|
|
103
109
|
|
|
104
|
-
(`pip install ab-analysis-kit` gets `0.6.
|
|
105
|
-
`abk plan` sizing
|
|
106
|
-
|
|
110
|
+
(`pip install ab-analysis-kit` gets `0.6.4` — `abk dashboard` with its YAML editor,
|
|
111
|
+
`abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history` and the
|
|
112
|
+
discoverable additive read path all included.)
|
|
107
113
|
|
|
108
114
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
109
115
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -11,7 +11,7 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
11
11
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
12
12
|
actually calibrated.
|
|
13
13
|
|
|
14
|
-
> **Status: `0.6.
|
|
14
|
+
> **Status: `0.6.4` (Alpha) — the latest on PyPI**
|
|
15
15
|
> (milestones **M1–M11** shipped — M11 added **`abk dashboard`**, the
|
|
16
16
|
> project-level cockpit: one row per experiment with its headline verdict,
|
|
17
17
|
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
@@ -23,7 +23,13 @@ actually calibrated.
|
|
|
23
23
|
> correlation its own results row already persists — required-N is `(1 − ρ²)×` the
|
|
24
24
|
> old raw-variance bound (`0.6.1`) — and `--from-history <N d>` gives an experiment
|
|
25
25
|
> that has **never run** a baseline from the days before its start, instead of
|
|
26
|
-
> `SKIPPED: no baseline` (`0.6.2`)
|
|
26
|
+
> `SKIPPED: no baseline` (`0.6.2`). A second `0.6.x` interstitial then gave the
|
|
27
|
+
> dashboard **CRUD YAML editing** — edit, create, delete an experiment from the
|
|
28
|
+
> cockpit, validated at both levels and archived byte-verbatim before every write
|
|
29
|
+
> — added `abk ui` as its alias, and made M9's additive read path **discoverable**:
|
|
30
|
+
> `abk run` no longer stays quiet about an undecided `compute.incremental_reads`,
|
|
31
|
+
> `--cost-report` prints the counterfactual, and `abk init` scaffolds it on
|
|
32
|
+
> (`0.6.4`)). The statistical core, the
|
|
27
33
|
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
28
34
|
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
29
35
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
@@ -36,9 +42,9 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
36
42
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
37
43
|
```
|
|
38
44
|
|
|
39
|
-
(`pip install ab-analysis-kit` gets `0.6.
|
|
40
|
-
`abk plan` sizing
|
|
41
|
-
|
|
45
|
+
(`pip install ab-analysis-kit` gets `0.6.4` — `abk dashboard` with its YAML editor,
|
|
46
|
+
`abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history` and the
|
|
47
|
+
discoverable additive read path all included.)
|
|
42
48
|
|
|
43
49
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
44
50
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ab-analysis-kit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.4
|
|
4
4
|
Summary: A/B experiment analysis as declarative YAML + SQL
|
|
5
5
|
Author: ab-analysis-kit authors
|
|
6
6
|
License: MIT
|
|
@@ -76,7 +76,7 @@ stabilization chart), writes them to a clean warehouse table any BI can read, an
|
|
|
76
76
|
gives you a local cockpit to tune the analysis and a harness to prove your method is
|
|
77
77
|
actually calibrated.
|
|
78
78
|
|
|
79
|
-
> **Status: `0.6.
|
|
79
|
+
> **Status: `0.6.4` (Alpha) — the latest on PyPI**
|
|
80
80
|
> (milestones **M1–M11** shipped — M11 added **`abk dashboard`**, the
|
|
81
81
|
> project-level cockpit: one row per experiment with its headline verdict,
|
|
82
82
|
> effect + CI, p/α and a sparkline of the cumulative series, plus buttons that
|
|
@@ -88,7 +88,13 @@ actually calibrated.
|
|
|
88
88
|
> correlation its own results row already persists — required-N is `(1 − ρ²)×` the
|
|
89
89
|
> old raw-variance bound (`0.6.1`) — and `--from-history <N d>` gives an experiment
|
|
90
90
|
> that has **never run** a baseline from the days before its start, instead of
|
|
91
|
-
> `SKIPPED: no baseline` (`0.6.2`)
|
|
91
|
+
> `SKIPPED: no baseline` (`0.6.2`). A second `0.6.x` interstitial then gave the
|
|
92
|
+
> dashboard **CRUD YAML editing** — edit, create, delete an experiment from the
|
|
93
|
+
> cockpit, validated at both levels and archived byte-verbatim before every write
|
|
94
|
+
> — added `abk ui` as its alias, and made M9's additive read path **discoverable**:
|
|
95
|
+
> `abk run` no longer stays quiet about an undecided `compute.incremental_reads`,
|
|
96
|
+
> `--cost-report` prints the counterfactual, and `abk init` scaffolds it on
|
|
97
|
+
> (`0.6.4`)). The statistical core, the
|
|
92
98
|
> declarative config / DB / pipeline layer, the explore cockpit +
|
|
93
99
|
> self-contained reports, `abk validate` (numpy-vectorized — minutes → sub-seconds),
|
|
94
100
|
> opt-in sequential analysis + `abk plan`, and the DX layer (`abk init-claude`, docs site,
|
|
@@ -101,9 +107,9 @@ pip install ab-analysis-kit # Python 3.10+; add a DB extra for real dat
|
|
|
101
107
|
pip install "ab-analysis-kit[clickhouse]" # or [postgres] / [mysql] / [all-db]
|
|
102
108
|
```
|
|
103
109
|
|
|
104
|
-
(`pip install ab-analysis-kit` gets `0.6.
|
|
105
|
-
`abk plan` sizing
|
|
106
|
-
|
|
110
|
+
(`pip install ab-analysis-kit` gets `0.6.4` — `abk dashboard` with its YAML editor,
|
|
111
|
+
`abk ui`, CUPED-aware `abk plan` sizing, `abk plan --from-history` and the
|
|
112
|
+
discoverable additive read path all included.)
|
|
107
113
|
|
|
108
114
|
`abk --version` and `abk --help` work with no database driver; you can even lint a
|
|
109
115
|
config (`abk run --steps validate`) with no database at all. See the
|
|
@@ -145,6 +145,7 @@ abkit/stats/sequential/apply.py
|
|
|
145
145
|
abkit/stats/sequential/confidence_sequence.py
|
|
146
146
|
abkit/stats/sequential/mixture.py
|
|
147
147
|
abkit/tuning/__init__.py
|
|
148
|
+
abkit/tuning/config_files.py
|
|
148
149
|
abkit/tuning/config_writer.py
|
|
149
150
|
abkit/tuning/dashboard_server.py
|
|
150
151
|
abkit/tuning/html.py
|
|
@@ -10,7 +10,7 @@ from __future__ import annotations
|
|
|
10
10
|
|
|
11
11
|
from typing import Any
|
|
12
12
|
|
|
13
|
-
__version__ = "0.6.
|
|
13
|
+
__version__ = "0.6.4"
|
|
14
14
|
|
|
15
15
|
#: Symbols re-exported lazily from ``abkit.stats`` (PEP 562) so importing
|
|
16
16
|
#: ``abkit`` for ``__version__`` (the CLI path) stays numpy-free and fast.
|
|
@@ -13,7 +13,8 @@ task = one `abk` invocation), so a broken run fails the job instead of exiting 0
|
|
|
13
13
|
| `abk init-claude` | (Re)install this AI context: managed `CLAUDE.md` block + `.claude/rules/ab-analysis-kit/` + `.claude/skills/` |
|
|
14
14
|
| `abk run --select <exp>` | Run the load → compute → readout pipeline for an experiment |
|
|
15
15
|
| `abk explore --select <exp>` | Serve the interactive cockpit — tune the method live, write it back (see `explore.md`) |
|
|
16
|
-
| `abk dashboard` | Serve the project-level cockpit: one row per experiment, buttons that spawn `abk` commands |
|
|
16
|
+
| `abk dashboard` | Serve the project-level cockpit: one row per experiment, buttons that spawn `abk` commands, and YAML create/edit/delete |
|
|
17
|
+
| `abk ui` | Alias for `abk dashboard` — the same command object, so the options can never drift |
|
|
17
18
|
| `abk validate --select <exp>` | The A/A false-positive + power matrix — is a method calibrated on this data? (see `validate.md`) |
|
|
18
19
|
| `abk plan --select <exp>` | Read-only pre-launch sizing: required-N / achievable-MDE / power (see `plan.md`) |
|
|
19
20
|
| `abk unlock --select <exp>` | Clear a stuck pipeline / validate lock |
|
|
@@ -31,8 +32,8 @@ experiment references reusable metrics:
|
|
|
31
32
|
bare **name** (`example_signup_test` — do NOT add `.yml`), **path / glob**
|
|
32
33
|
(`"experiments/checkout/*.yml"`, `"signup_*"`), **tag** (`tag:actual`), and
|
|
33
34
|
`"*"` for all. Repeatable. `run`/`validate`/`plan`/`unlock`/`clean`/`dashboard`
|
|
34
|
-
default to **all experiments** when `--select` is omitted; `explore`
|
|
35
|
-
exactly one.
|
|
35
|
+
(= `ui`) default to **all experiments** when `--select` is omitted; `explore`
|
|
36
|
+
requires exactly one.
|
|
36
37
|
- **`--metric <name>` selects a LIBRARY metric** within the chosen experiment(s)
|
|
37
38
|
— a single metric name, never a glob. It narrows a command to that metric's
|
|
38
39
|
comparison(s) (`run`, `explore`, `validate`, `plan`, `verify-incremental`).
|
|
@@ -42,7 +43,7 @@ experiment references reusable metrics:
|
|
|
42
43
|
|
|
43
44
|
Experiment AND metric names share ONE global namespace and are the DB key —
|
|
44
45
|
selection/uniqueness errors name the namespace and the colliding file. `--exclude`
|
|
45
|
-
(on `run` and `dashboard`) removes matches
|
|
46
|
+
(on `run` and `dashboard`/`ui`) removes matches
|
|
46
47
|
(`--select "*" --exclude "experiments/staging/*"`).
|
|
47
48
|
|
|
48
49
|
## `abk init`
|
|
@@ -89,6 +90,15 @@ It is incremental by
|
|
|
89
90
|
an anti-join — only cutoffs past the `data_lag` watermark and not already computed
|
|
90
91
|
are (re)computed, so re-running is idempotent.
|
|
91
92
|
|
|
93
|
+
**The run says so when the fast path is being left on the table.** A comparison
|
|
94
|
+
on the additive contract (`state_additive: true` on the metric, plus a
|
|
95
|
+
closed-form unstratified comparison with no explicit covariate) while
|
|
96
|
+
`compute.incremental_reads` is unwritten means every run pays the STATE write
|
|
97
|
+
and then re-scans the full window anyway;
|
|
98
|
+
at six looks or more `abk run` warns and names both ways out (`true` to take it,
|
|
99
|
+
`false` to record the refusal). It also discloses the two mirror cases: the flag
|
|
100
|
+
on with nothing declared additive, and how many looks fell back to recompute.
|
|
101
|
+
|
|
92
102
|
- `--metric <m>` (0.6.0) — recompute only that metric's comparison(s); the same
|
|
93
103
|
metric axis `explore`/`validate`/`plan`/`verify-incremental` take. Other
|
|
94
104
|
metrics' **results** are left exactly as they are, and the **alphas do not
|
|
@@ -127,7 +137,10 @@ are (re)computed, so re-running is idempotent.
|
|
|
127
137
|
`reports/<exp>.html`; a directory → `<dir>/<exp>.html`; a `.html` path → that
|
|
128
138
|
file. Reads persisted rows, so even a load-only run can produce one.
|
|
129
139
|
- `--cost-report` — print per-stage warehouse cost (wall-time, queries, rows returned,
|
|
130
|
-
rows scanned where the backend reports them)
|
|
140
|
+
rows scanned where the backend reports them), plus `of which day-additive:` — the
|
|
141
|
+
same measured cost attributed to the state-eligible comparisons only, followed by
|
|
142
|
+
what the other read path would have done with it. That slice is PART OF the
|
|
143
|
+
`compute` total, never a sibling; do not add them. The evidence for turning
|
|
131
144
|
`compute.incremental_reads` on; unrelated to `--profile` (the DB connection).
|
|
132
145
|
- `--force` — take over a held lock (prefer `abk unlock`; risky with concurrent runs).
|
|
133
146
|
- `--profile` — override `profiles.yml`'s `default_profile` (e.g. run against staging).
|
|
@@ -155,41 +168,80 @@ without launching a browser. Takes no pipeline lock (it only edits a config file
|
|
|
155
168
|
re-run `abk run` afterward to recompute under the new config. Full reference:
|
|
156
169
|
`explore.md`.
|
|
157
170
|
|
|
158
|
-
## `abk dashboard`
|
|
171
|
+
## `abk dashboard` (alias: `abk ui`)
|
|
159
172
|
|
|
160
173
|
```bash
|
|
161
174
|
abk dashboard [--select <sel>]... [--exclude <sel>]... [--window 24h|7d|30d|90d|all] \
|
|
162
175
|
[--no-open] [--profile NAME]
|
|
163
176
|
```
|
|
164
177
|
|
|
178
|
+
`abk ui` is the same command registered under a second name — identical options
|
|
179
|
+
and help. `dashboard` stays canonical: `dashboard`/`explore` say WHICH surface
|
|
180
|
+
you want, where `ui` does not.
|
|
181
|
+
|
|
165
182
|
The project-level cockpit (0.6.0): one row per selected experiment — headline
|
|
166
183
|
verdict, effect, p-value, last look and a sparkline — served on localhost with a
|
|
167
184
|
per-start token that authorizes EVERY request, `GET` included. The page boots on
|
|
168
185
|
metadata only and fills each row on demand (3 requests in flight), so a
|
|
169
186
|
hundred-experiment project renders instantly.
|
|
170
187
|
|
|
171
|
-
**A launcher, not a worker
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
188
|
+
**A launcher, not a worker: it computes no statistic and takes no pipeline
|
|
189
|
+
lock.** Verdicts come from the same `readout.evaluate()` decision `abk run
|
|
190
|
+
--report` bakes, and the Run / Explore / Unlock / Clean buttons each spawn a real
|
|
191
|
+
`abk` subprocess (inheriting `--profile`), streaming its log into a job drawer.
|
|
192
|
+
`run`/`unlock`/`clean` are one-at-a-time project-wide (a second request is
|
|
193
|
+
refused — they contend for the pipeline lock); `explore` is exempt and deduped
|
|
194
|
+
per experiment. Ctrl-C stops the server and terminates every job it spawned.
|
|
195
|
+
Editing a YAML (below) does not break this: a config is your own declaration, not
|
|
196
|
+
a computed result — no number on the page comes from it and it cannot block a
|
|
197
|
+
pipeline.
|
|
179
198
|
|
|
180
199
|
- `--window` (default `30d`) bounds the **sparkline only** — every verdict,
|
|
181
200
|
effect and p-value is the FULL cumulative series' (dropping the oldest look
|
|
182
201
|
would truncate a stabilization history, not shorten the experiment). Switchable
|
|
183
202
|
on the page.
|
|
184
203
|
- `--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
204
|
- A project that has never run serves fine — every row reads `no data — press
|
|
187
205
|
Run`, and nothing here creates internal schema.
|
|
188
|
-
- **
|
|
189
|
-
|
|
190
|
-
|
|
206
|
+
- **Editing YAML.** A row's `Edit YAML` opens the file in a textarea with
|
|
207
|
+
**Save**, **Revert** and **Delete…**; the header gains **New experiment** (the
|
|
208
|
+
file name comes from the config's own `name:`; an optional subfolder of
|
|
209
|
+
`paths.experiments`) and **Reload configs**. A save is **validate → archive →
|
|
210
|
+
write**: BOTH validation levels (pydantic `ExperimentConfig` *and* the §8
|
|
211
|
+
level-2 matrix that `abk run --steps validate` runs), then the previous file
|
|
212
|
+
archived byte-verbatim under `.history/<name>/` **beside the file** (so a
|
|
213
|
+
nested `experiments/growth/x.yml` archives to `experiments/growth/.history/x/`
|
|
214
|
+
— the same tree explore's Apply writes), then an atomic replace. **Your text round-trips
|
|
215
|
+
verbatim** — comments and layout survive, normalized only to end with a
|
|
216
|
+
newline. That is why this is not built on explore's Apply, which re-emits a
|
|
217
|
+
parsed document and loses comments.
|
|
218
|
+
- **A save/delete is refused (400, with the detail) when:** the **digest is
|
|
219
|
+
stale** — the file changed on disk since the editor read it (a second tab, or
|
|
220
|
+
an `abk explore` Apply this very dashboard spawned) — reopen it; a **job is
|
|
221
|
+
running** on that experiment (a job you started from a terminal is invisible to
|
|
222
|
+
this check, but the digest catches the explore half of it after the fact);
|
|
223
|
+
**level 2 reports findings**, which a **Save anyway** button re-sends with
|
|
224
|
+
`force`, downgrading them to loud warnings so the editor is usable on a project
|
|
225
|
+
that does not lint yet — **level 1 is never forceable**; the **name duplicates**
|
|
226
|
+
another config anywhere in the project (experiments and metrics share ONE
|
|
227
|
+
namespace); the file is **larger than 512 kB**, in which case it is shown
|
|
228
|
+
truncated and not editable at all (writing the prefix back would drop the tail).
|
|
229
|
+
- **Renaming** (editing `name:`) is allowed and keeps the file path — persisted
|
|
230
|
+
rows keep the OLD name until `abk clean --orphaned-experiments` prunes them.
|
|
231
|
+
**Delete removes the YAML only**: `_ab_results` / `_ab_unit_state` rows survive
|
|
232
|
+
until that same `abk clean`, and the archived copy
|
|
233
|
+
(`<name>-<stamp>-deleted.yml`) makes the delete reversible by hand.
|
|
234
|
+
- **Configs are re-read after every successful edit** and on demand via **Reload
|
|
235
|
+
configs** (the manual form): the `--select`/`--exclude` selection is re-resolved
|
|
236
|
+
and the row list refreshed, so an edit needs no restart. `Refresh` re-reads the
|
|
237
|
+
WAREHOUSE for rows; `Reload configs` re-reads the YAML on DISK — different
|
|
238
|
+
buttons on purpose. A create that lands outside this cockpit's selection is
|
|
239
|
+
reported, never silently missing; a reload that fails (a broken sibling YAML, a
|
|
240
|
+
name collision) keeps the previous selection and warns — the write already
|
|
241
|
+
landed.
|
|
191
242
|
- **The URL is a credential** — whoever has it can spawn `abk run`/`abk clean`
|
|
192
|
-
in your project
|
|
243
|
+
in your project and create, edit or delete an experiment YAML. Localhost-bound;
|
|
244
|
+
do not share it or forward the port.
|
|
193
245
|
|
|
194
246
|
An empty selection warns and exits 0 without serving; an unknown `--window` is a
|
|
195
247
|
non-zero startup error, raised before the port is bound. Full reference:
|
|
@@ -335,8 +387,8 @@ abk plan --select example_signup_test --mde 0.05
|
|
|
335
387
|
abk validate --select example_signup_test
|
|
336
388
|
abk explore --select example_signup_test
|
|
337
389
|
|
|
338
|
-
# Watch the whole portfolio
|
|
339
|
-
abk dashboard --select tag:actual
|
|
390
|
+
# Watch the whole portfolio, drive it and edit its YAML from one page
|
|
391
|
+
abk dashboard --select tag:actual # `abk ui` is the same command
|
|
340
392
|
|
|
341
393
|
# Scheduled recompute of every experiment whose `tags:` list contains "actual" (cron / Prefect)
|
|
342
394
|
abk run --select tag:actual
|
|
@@ -93,10 +93,10 @@ of a cutoff discards them, and any knob that feeds the draw itself
|
|
|
93
93
|
rows in place, and flips the live chip to `calibrated` without an explore
|
|
94
94
|
restart. To make it stick for the whole team, run `abk validate` for real.
|
|
95
95
|
|
|
96
|
-
## Apply —
|
|
96
|
+
## Apply — this cockpit's write-back
|
|
97
97
|
|
|
98
|
-
Apply is **explicit** (nothing is written while you tune) and is
|
|
99
|
-
seam. Order is **validate → archive → re-emit**:
|
|
98
|
+
Apply is **explicit** (nothing is written while you tune) and is this cockpit's
|
|
99
|
+
only mutation seam. Order is **validate → archive → re-emit**:
|
|
100
100
|
|
|
101
101
|
1. The edited config is validated as a whole (`ExperimentConfig`) before anything
|
|
102
102
|
is written.
|
|
@@ -108,7 +108,10 @@ seam. Order is **validate → archive → re-emit**:
|
|
|
108
108
|
re-emitted header names what was updated vs preserved.
|
|
109
109
|
|
|
110
110
|
Caveat: re-emit uses `safe_dump` today, so **YAML comments are lost** on Apply —
|
|
111
|
-
the verbatim `.history/` archive is the recovery path.
|
|
111
|
+
the verbatim `.history/` archive is the recovery path. `abk dashboard`'s YAML
|
|
112
|
+
editor is the other surface that writes an experiment config, and it does NOT
|
|
113
|
+
re-emit: it round-trips the raw text, so comments survive there. Both write into
|
|
114
|
+
the same `.history/` tree.
|
|
112
115
|
|
|
113
116
|
**Apply does not run the pipeline.** After Apply, run
|
|
114
117
|
`abk run --select <experiment>` to compute the new series under the new params.
|
|
@@ -149,7 +149,8 @@ multi-branch query), but that filter can only take eligibility away, never grant
|
|
|
149
149
|
it. The empirical check is
|
|
150
150
|
[`abk verify-incremental`](../reference/cli.md#abk-verify-incremental), which
|
|
151
151
|
reconciles both read paths across the whole computed series — run it before
|
|
152
|
-
turning `compute.incremental_reads` on
|
|
152
|
+
turning `compute.incremental_reads` on — or, in a project scaffolded by
|
|
153
|
+
`abk init` (where it is already on), after declaring a new metric additive.
|
|
153
154
|
|
|
154
155
|
## `aa_fpr_budget` (optional)
|
|
155
156
|
|
|
@@ -73,7 +73,7 @@ profile's `internal_database` / `internal_schema`, separate from the
|
|
|
73
73
|
| `_ab_experiments` | Informational experiment catalog (descriptions, variants, split, alpha, cadence, tags) for BI joins; the pipeline never reads it back for decisions. |
|
|
74
74
|
| `_ab_aa_runs` | The `abk validate` A/A audit trail (per-cell FPR/power at the effective alpha); lights the explore calibration chip. Never pruned by `abk clean`. |
|
|
75
75
|
| `_ab_tasks` | Pipeline run/lock bookkeeping — the atomic per-experiment lock (`abk unlock` clears a stale one). |
|
|
76
|
-
| `_ab_unit_state` | Per-(unit, day) cumulative moments, written by the `state` pipeline stage for eligible closed-form metrics. Read on the compute path only with `compute.incremental_reads: true`
|
|
76
|
+
| `_ab_unit_state` | Per-(unit, day) cumulative moments, written by the `state` pipeline stage for eligible closed-form metrics. Read on the compute path only with `compute.incremental_reads: true` — opt-in, and what `abk init` scaffolds, though the library default (the key absent) is off; any gap falls back to full recompute. Not a BI table. |
|
|
77
77
|
|
|
78
78
|
## Glossary
|
|
79
79
|
|
|
@@ -41,16 +41,30 @@ timeouts: # per-step, seconds
|
|
|
41
41
|
|
|
42
42
|
compute:
|
|
43
43
|
mode: recompute # v1: full-window recompute (the golden reference). Only value today.
|
|
44
|
-
incremental_reads:
|
|
44
|
+
incremental_reads: true # opt-in (M9): eligible closed-form comparisons read the `state`
|
|
45
45
|
# stage's `_ab_unit_state` day moments instead of re-scanning the
|
|
46
46
|
# fact window; any gap falls back to recompute. An experiment can
|
|
47
47
|
# override it with its own `incremental_reads:`. Changes HOW a
|
|
48
48
|
# number is computed, never the number.
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
**Decide `incremental_reads` explicitly.** The library default (the key ABSENT)
|
|
52
|
+
is `false`, `abk init` writes `true`, and `abk run` warns when a metric declares
|
|
53
|
+
`state_additive: true` — so the `state` step is materializing day moments every
|
|
54
|
+
run — while the flag is unwritten and the series has reached six looks. That
|
|
55
|
+
combination pays for the write and never takes the read, which is strictly worse
|
|
56
|
+
than either choice. Writing the flag either way silences the warning.
|
|
57
|
+
|
|
58
|
+
The flag is not a correctness gate: `abk verify-incremental` reconciles both read
|
|
59
|
+
paths at `rel-1e-9`, and a gap in day state falls back to recompute on its own.
|
|
60
|
+
It guards **one** thing — an event backfilled later than your `data_lag` freezes
|
|
61
|
+
in already-materialized day state, where recompute would pick it up at the next
|
|
62
|
+
look. Set `data_lag` to your real ingestion delay; if your warehouse backfills
|
|
63
|
+
beyond it, keep `false`, which self-heals late data prospectively.
|
|
64
|
+
|
|
51
65
|
Everything except `name` and `default_profile` has a default — a minimal project
|
|
52
|
-
file is just those two lines
|
|
53
|
-
commented
|
|
66
|
+
file is just those two lines. `abk init` writes those plus an explicit
|
|
67
|
+
`compute.incremental_reads` (see above); the rest is commented. `tables:` (the six `_ab_*` names) exists for forward-compat but
|
|
54
68
|
**rejects overrides** today — the names are canonical.
|
|
55
69
|
|
|
56
70
|
### The statistics block
|
|
@@ -11,7 +11,8 @@ dashboard being a **launcher, not a reader**:
|
|
|
11
11
|
|
|
12
12
|
* **No single-experiment restriction.** ``--select``/``--exclude`` resolve the
|
|
13
13
|
whole selection, exactly as ``abk run`` does; the dashboard is the surface that
|
|
14
|
-
exists to show them side by side.
|
|
14
|
+
exists to show them side by side. They are also handed to the server, which
|
|
15
|
+
re-resolves them after every YAML edit (UI-1's reload).
|
|
15
16
|
* **No never-run noop.** ``abk explore`` refuses a project with no persisted rows
|
|
16
17
|
(there is nothing to tune). Here that project is the normal first case: rows
|
|
17
18
|
render "no data — press Run", and the Run button is the answer. So a missing
|
|
@@ -142,6 +143,11 @@ def run_dashboard(
|
|
|
142
143
|
# SRM chip's observed counts. Both degrade in the open without us.
|
|
143
144
|
metrics=context.metrics_by_name,
|
|
144
145
|
manager=manager,
|
|
146
|
+
# UI-1: the editor's reload re-resolves THIS selection, so the
|
|
147
|
+
# selectors have to travel with it — re-deriving them server-side
|
|
148
|
+
# would silently widen an edited page to the whole project.
|
|
149
|
+
selectors=select,
|
|
150
|
+
excludes=exclude,
|
|
145
151
|
open_browser=not no_open,
|
|
146
152
|
echo=click.echo,
|
|
147
153
|
)
|
|
@@ -29,6 +29,17 @@ version: "1.0"
|
|
|
29
29
|
|
|
30
30
|
default_profile: dev
|
|
31
31
|
|
|
32
|
+
compute:
|
|
33
|
+
# `example_arpu` below declares `state_additive: true`, so the `state` step
|
|
34
|
+
# materializes its per-(unit, day) moments on every run. Reading them back is
|
|
35
|
+
# what makes that write pay for itself — the alternative is the strictly
|
|
36
|
+
# worst configuration: paying for the write and re-scanning the full window
|
|
37
|
+
# anyway. `abk verify-incremental` reconciles both paths at rel-1e-9.
|
|
38
|
+
# Set this to false if your warehouse backfills events later than `data_lag`
|
|
39
|
+
# declares: the fast path freezes a late backfill in day state, where the
|
|
40
|
+
# recompute default would pick it up at the next look.
|
|
41
|
+
incremental_reads: true
|
|
42
|
+
|
|
32
43
|
# statistics: # project-wide defaults (experiments override)
|
|
33
44
|
# alpha: 0.05
|
|
34
45
|
# correction: bonferroni
|
|
@@ -39,7 +39,7 @@ from abkit.cli._output import (
|
|
|
39
39
|
from abkit.cli.commands._context import load_project_context
|
|
40
40
|
from abkit.config import select_experiments, validate_level2
|
|
41
41
|
from abkit.config.experiment_config import ExperimentConfig
|
|
42
|
-
from abkit.pipeline import PipelineStep, effective_alphas, run_experiments
|
|
42
|
+
from abkit.pipeline import PipelineStep, RunOutcome, effective_alphas, run_experiments
|
|
43
43
|
from abkit.stats import n_comparisons
|
|
44
44
|
|
|
45
45
|
|
|
@@ -56,6 +56,39 @@ def _parse_date(value: str | None, option: str) -> datetime | None:
|
|
|
56
56
|
)
|
|
57
57
|
|
|
58
58
|
|
|
59
|
+
def _additive_cost_lines(outcome: RunOutcome) -> list[str]:
|
|
60
|
+
"""The PERF-1 counterfactual under ``--cost-report``'s ``compute:`` line.
|
|
61
|
+
|
|
62
|
+
Only the SLICE is a measurement (the same query deltas, attributed to the
|
|
63
|
+
day-additive comparisons alone). The sentence after it deliberately claims
|
|
64
|
+
less than the m9 perf gate does: that gate's "COMPUTE scans no fact rows"
|
|
65
|
+
holds at DAILY cadence, while a sub-day grid still renders the current
|
|
66
|
+
day's tail and every look inside the opening local day reads no day state
|
|
67
|
+
at all. Nothing here estimates a number that was not observed.
|
|
68
|
+
"""
|
|
69
|
+
status = outcome.additive
|
|
70
|
+
slice_cost = outcome.stage_costs.get("compute.additive")
|
|
71
|
+
if slice_cost is None or status.eligible_comparisons == 0:
|
|
72
|
+
return []
|
|
73
|
+
lines = [f" of which day-additive: {slice_cost.describe()}"]
|
|
74
|
+
if status.enabled:
|
|
75
|
+
took = status.looks_computed - status.fallbacks
|
|
76
|
+
lines.append(
|
|
77
|
+
f" → {took} of {status.looks_computed} looks took the additive "
|
|
78
|
+
"path; recompute would re-scan the full window at each of them"
|
|
79
|
+
)
|
|
80
|
+
elif status.configured:
|
|
81
|
+
# the driver already warned WHY it disabled the path for this run
|
|
82
|
+
lines.append(" → the additive path is configured but was disabled for this run")
|
|
83
|
+
else:
|
|
84
|
+
lines.append(
|
|
85
|
+
f" → compute.incremental_reads: true would read day moments for "
|
|
86
|
+
f"those {status.looks_computed} looks instead of re-scanning the "
|
|
87
|
+
"full window"
|
|
88
|
+
)
|
|
89
|
+
return lines
|
|
90
|
+
|
|
91
|
+
|
|
59
92
|
def _resolve_report_path(report_path: str, project_root: Path, experiment: str) -> Path:
|
|
60
93
|
"""The donor's path convention: "" → reports/<experiment>.html under the
|
|
61
94
|
project root; a ``.html`` value → that exact file; anything else → a
|
|
@@ -347,8 +380,17 @@ def run_run(
|
|
|
347
380
|
cost = outcome.stage_costs.get(stage)
|
|
348
381
|
if cost is not None:
|
|
349
382
|
children.append(f" {stage}: {cost.describe()}")
|
|
383
|
+
if stage == "compute":
|
|
384
|
+
children.extend(_additive_cost_lines(outcome))
|
|
350
385
|
srm_warnings = [w for w in outcome.warnings if "SRM" in w]
|
|
351
386
|
other_warnings = [w for w in outcome.warnings if "SRM" not in w]
|
|
387
|
+
# PERF-1: the m9 fast path shipped silent — nothing here ever
|
|
388
|
+
# said it existed. It rides the warning channel because that is
|
|
389
|
+
# the one that reaches the terminal (the M7 `decision_log`
|
|
390
|
+
# lesson: a list nothing echoes is a list nobody reads).
|
|
391
|
+
hint = outcome.additive.hint()
|
|
392
|
+
if hint is not None:
|
|
393
|
+
other_warnings.append(hint)
|
|
352
394
|
echo_tree(outcome.experiment, children, warnings=other_warnings)
|
|
353
395
|
for warning in srm_warnings:
|
|
354
396
|
echo_srm(warning)
|
|
@@ -8,7 +8,7 @@ from the detectkit donor's swallow-and-return-0 behaviour).
|
|
|
8
8
|
|
|
9
9
|
Surface: ``init``, ``run``, ``unlock``, ``clean`` (M2) + ``explore`` (M3) +
|
|
10
10
|
``validate`` (M4) + ``plan`` (M5) + ``init-claude`` / ``test-report`` (M6) +
|
|
11
|
-
``verify-incremental`` (M9) + ``dashboard`` (M11).
|
|
11
|
+
``verify-incremental`` (M9) + ``dashboard`` (M11, aliased ``ui`` since UI-2).
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
14
|
from __future__ import annotations
|
|
@@ -238,14 +238,27 @@ def dashboard(
|
|
|
238
238
|
One row per experiment — verdict, effect and a sparkline, each fetched on
|
|
239
239
|
demand from the persisted results. The buttons spawn real `abk` commands
|
|
240
240
|
(run / explore / unlock / clean) as subprocesses and stream their logs, so
|
|
241
|
-
the dashboard itself never computes
|
|
242
|
-
|
|
241
|
+
the dashboard itself never computes and never takes the pipeline lock. It
|
|
242
|
+
does edit experiment YAML (validated, with a .history archive) from the
|
|
243
|
+
page. Serves until Ctrl-C.
|
|
244
|
+
|
|
245
|
+
Also available as `abk ui`.
|
|
243
246
|
"""
|
|
244
247
|
from abkit.cli.commands.dashboard import run_dashboard
|
|
245
248
|
|
|
246
249
|
run_dashboard(select, exclude, profile, window, no_open)
|
|
247
250
|
|
|
248
251
|
|
|
252
|
+
# UI-2: `abk ui` is the same command under the donor's name. dtk's
|
|
253
|
+
# project-level cockpit is `dtk ui` (`dtk tune` is the per-metric sibling abkit
|
|
254
|
+
# ships as `abk explore`), and abkit renamed both — `dashboard`/`explore` say
|
|
255
|
+
# WHICH surface you want where `ui` does not, so the canonical name stays and
|
|
256
|
+
# this is muscle memory for anyone running both tools. Registered by aliasing
|
|
257
|
+
# the SAME callback object rather than by re-decorating a wrapper, so the two
|
|
258
|
+
# names can never drift in options or help text; only `name` differs.
|
|
259
|
+
cli.add_command(dashboard, name="ui")
|
|
260
|
+
|
|
261
|
+
|
|
249
262
|
@cli.command()
|
|
250
263
|
@click.option(
|
|
251
264
|
"--select",
|
|
@@ -127,18 +127,49 @@ def select_configs(
|
|
|
127
127
|
return validate_config_uniqueness(sorted(set(paths)), config_cls, namespace), warnings
|
|
128
128
|
|
|
129
129
|
|
|
130
|
+
def resolve_experiments_dir(project_root: Path) -> str:
|
|
131
|
+
"""``project.paths.experiments`` for *project_root*, or the default.
|
|
132
|
+
|
|
133
|
+
Resolved HERE rather than passed in by each caller: ten commands call
|
|
134
|
+
:func:`select_experiments`, all of them with the default, which is exactly
|
|
135
|
+
how a configurable directory ends up reaching none of its call sites (the
|
|
136
|
+
m10 ``interval_anchor`` lesson). A project whose ``paths.experiments`` is
|
|
137
|
+
renamed used to resolve NO selector at all — every command answered
|
|
138
|
+
"Nothing selected." — while ``abk dashboard``'s own derivation honored the
|
|
139
|
+
setting, so the two disagreed about which files exist.
|
|
140
|
+
|
|
141
|
+
Deliberately tolerant: discovery runs before (and independently of) the
|
|
142
|
+
CLI's config load, so an unreadable/absent ``abkit_project.yml`` falls back
|
|
143
|
+
to the default instead of turning selection into a parse error — the
|
|
144
|
+
caller that needs a validated project reports that failure itself.
|
|
145
|
+
"""
|
|
146
|
+
from abkit.config.project_config import ProjectConfig
|
|
147
|
+
|
|
148
|
+
try:
|
|
149
|
+
project = ProjectConfig.from_yaml_file(project_root / "abkit_project.yml")
|
|
150
|
+
except Exception:
|
|
151
|
+
return "experiments"
|
|
152
|
+
return project.paths.experiments
|
|
153
|
+
|
|
154
|
+
|
|
130
155
|
def select_experiments(
|
|
131
156
|
project_root: Path,
|
|
132
157
|
select: tuple[str, ...],
|
|
133
158
|
exclude: tuple[str, ...] = (),
|
|
134
|
-
experiments_dir: str =
|
|
159
|
+
experiments_dir: str | None = None,
|
|
135
160
|
) -> tuple[list[tuple[Path, ExperimentConfig]], list[str]]:
|
|
136
161
|
"""Resolve ``--select``/``--exclude`` to a unique experiment list.
|
|
137
162
|
|
|
138
163
|
No selectors means ``*``. Every selection error names the namespace: an
|
|
139
164
|
unmatched selector reminds that ``--select`` resolves experiments and
|
|
140
165
|
metrics need ``--metric``.
|
|
166
|
+
|
|
167
|
+
``experiments_dir`` defaults to the project's own ``paths.experiments``
|
|
168
|
+
(see :func:`resolve_experiments_dir`); pass it explicitly only to search a
|
|
169
|
+
directory the project config does not name.
|
|
141
170
|
"""
|
|
171
|
+
if experiments_dir is None:
|
|
172
|
+
experiments_dir = resolve_experiments_dir(project_root)
|
|
142
173
|
selectors = select or ("*",)
|
|
143
174
|
chosen: dict[str, tuple[Path, ExperimentConfig]] = {}
|
|
144
175
|
warnings: list[str] = []
|
|
@@ -158,8 +158,13 @@ class ProjectComputeConfig(BaseModel):
|
|
|
158
158
|
"re-materializes and recomputes a backfilled window. Distinct from "
|
|
159
159
|
"`mode` (the reserved v2 backend selector): this flag changes HOW a "
|
|
160
160
|
"number is computed, never the number. Experiments override via "
|
|
161
|
-
"their own `incremental_reads`. Default false
|
|
162
|
-
"verify-incremental
|
|
161
|
+
"their own `incremental_reads`. Default false — not because the path "
|
|
162
|
+
"is unproven (`abk verify-incremental` reconciles it at rel-1e-9 and "
|
|
163
|
+
"any state gap falls back to recompute on its own), but because the "
|
|
164
|
+
"one thing it cannot defend against is a backfill later than your "
|
|
165
|
+
"data_lag, which is a property of YOUR ingestion SLA. `abk run` says "
|
|
166
|
+
"so when the flag is unset and the fast path would pay off; writing "
|
|
167
|
+
"it explicitly either way records the decision and silences that.",
|
|
163
168
|
)
|
|
164
169
|
|
|
165
170
|
|