OpenABTest 0.2-draft: goal conversions (#239)

* OpenABTest 0.2-draft: goal conversions

0.1 conversions are purchases with a price, so button, onboarding and
landing-page experiments had nothing conformant to report. 0.2 adds a goal
conversion: metrics.conversion "unique-participants-with-goal" with
metrics.goal, metrics.profit "none", and conversion events carrying exactly
one of price or goal (optional observed value). Backward compatible: every
0.1 document stays valid; goal forms require "0.2-draft". The reference
implementation is w3bs.org/ab-testing.

@logicsrc/schemas and @logicsrc/validators 0.5.0, @logicsrc/sdk 0.4.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* contract: accept any 0.x draft status (OpenABTest is 0.2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-10-17 04:58:40 -07:00 • committed by GitHub
parent 0d0a2583b1
commit ef35139f04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 257 additions and 33 deletions

View file

@ -280,11 +280,11 @@
},
"packages/schemas": {
"name": "@logicsrc/schemas",
"version": "0.4.0",
"version": "0.5.0",
},
"packages/sdk": {
"name": "@logicsrc/sdk",
"version": "0.3.0",
"version": "0.4.0",
"devDependencies": {
"vitest": "^4.0.8",
},
@ -303,7 +303,7 @@
},
"packages/validators": {
"name": "@logicsrc/validators",
"version": "0.4.0",
"version": "0.5.0",
"bin": {
"logicsrc-validate": "dist/cli.js",
},