logicsrc/packages/schemas/fixtures/openabtest/goal-manifest.json
Anthony Ettinger ef35139f04
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>
2026-10-17 04:58:40 -07:00

55 lines
1.3 KiB
JSON

{
"openabtest": "0.2-draft",
"id": "signup-cta-v1",
"revision": 1,
"name": "Sign-up button copy",
"state": "draft",
"cohort": {
"id": "landing-visitors",
"eligibilityRule": "Signed-out visitors who load the landing page; staff and bots excluded.",
"purchaseScope": "custom"
},
"assignment": {
"unit": "device",
"authority": "server",
"keyVersion": "1",
"algorithm": "hmac-sha256-persisted-v1",
"persistence": "sticky"
},
"variants": [
{
"id": "control",
"weight": 1,
"parameters": {
"cta": "Sign up"
}
},
{
"id": "free",
"weight": 1,
"parameters": {
"cta": "Start free"
}
}
],
"window": {
"startsAt": "2026-09-14T00:00:00Z",
"endsAt": "2026-10-14T00:00:00Z"
},
"metrics": {
"primary": "conversion-rate",
"denominator": "unique-eligible-participants",
"conversion": "unique-participants-with-goal",
"profit": "none",
"minimumEligiblePerVariant": 100,
"minimumObservationSeconds": 604800,
"winnerPolicy": "manual-review",
"goal": "signup-completed"
},
"guardrails": {
"preserveAcceptedOffers": true,
"preserveAccruedCommissions": true,
"requireReconciledCostsForPayout": true,
"onBreach": "pause-new-assignments"
}
}