mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-10-02 04:43:58 +00:00
Add OpenABTest draft experiment and accounting contracts (#180)
This commit is contained in:
parent
123ba2e39a
commit
d8b3126782
25 changed files with 1410 additions and 12 deletions
69
packages/schemas/fixtures/openabtest/chovy-manifest.json
Normal file
69
packages/schemas/fixtures/openabtest/chovy-manifest.json
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"openabtest": "0.1-draft",
|
||||
"id": "chovy-signup-discount-v1",
|
||||
"revision": 1,
|
||||
"name": "Chovy referred purchase discount",
|
||||
"state": "draft",
|
||||
"cohort": {
|
||||
"id": "eligible-referred-customers",
|
||||
"eligibilityRule": "Server-verified eligible referral; exclude self-referrals and invalid attribution. Every referred purchase qualifies.",
|
||||
"purchaseScope": "all-referred-purchases"
|
||||
},
|
||||
"assignment": {
|
||||
"unit": "user",
|
||||
"authority": "server",
|
||||
"keyVersion": "1",
|
||||
"algorithm": "hmac-sha256-persisted-v1",
|
||||
"persistence": "sticky"
|
||||
},
|
||||
"variants": [
|
||||
{
|
||||
"id": "signup-5",
|
||||
"weight": 1,
|
||||
"parameters": {
|
||||
"discountBps": 500
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "signup-10",
|
||||
"weight": 1,
|
||||
"parameters": {
|
||||
"discountBps": 1000
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "signup-20",
|
||||
"weight": 1,
|
||||
"parameters": {
|
||||
"discountBps": 2000
|
||||
}
|
||||
}
|
||||
],
|
||||
"window": {
|
||||
"startsAt": "2026-09-14T00:00:00Z",
|
||||
"endsAt": "2026-10-14T00:00:00Z"
|
||||
},
|
||||
"metrics": {
|
||||
"primary": "retained-profit-per-eligible-visitor",
|
||||
"denominator": "unique-eligible-participants",
|
||||
"conversion": "unique-participants-with-confirmed-purchase",
|
||||
"profit": "reconciled-net-retained-profit",
|
||||
"minimumEligiblePerVariant": 100,
|
||||
"minimumObservationSeconds": 604800,
|
||||
"winnerPolicy": "manual-review"
|
||||
},
|
||||
"guardrails": {
|
||||
"preserveAcceptedOffers": true,
|
||||
"preserveAccruedCommissions": true,
|
||||
"requireReconciledCostsForPayout": true,
|
||||
"onBreach": "pause-new-assignments"
|
||||
},
|
||||
"economics": {
|
||||
"currency": "USD",
|
||||
"minorUnitExponent": 2,
|
||||
"unit": "agent-hour",
|
||||
"listUnitPriceMinor": 40000,
|
||||
"modeledUnitCostMinor": 10000,
|
||||
"minimumRetainedUnitProfitMinor": 5000
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue