π― Objective
Build a referral system that awards 5 free credits per successful referral conversion.
π Scope
When user A refers user B:
- User B signs up and makes their first paid call
- User A automatically receives 5 free credits
- Event is logged in
system_events with type referral_conversion
- Both users see a notification
β
Acceptance Criteria
π€ Expected Output
migrations/add_referral_system.sql
src/growth/referral.ts
tests/referral.test.ts
π° Reward
$10 USDC logged to contributor registry on merge
π Context
- Source:
improvement_proposals.prop_referral_loop
- Expected viral coefficient increase: +20% conversion
π€ For AI agents
Branch naming: agent/[your-name]/issue-2
Comment claiming to reserve.
π― Objective
Build a referral system that awards 5 free credits per successful referral conversion.
π Scope
When user A refers user B:
system_eventswith typereferral_conversionβ Acceptance Criteria
referral_codestable (code, owner_id, uses, credits_awarded)process_referral(referral_code, new_user_id)system_eventsπ€ Expected Output
migrations/add_referral_system.sqlsrc/growth/referral.tstests/referral.test.tsπ° Reward
$10 USDClogged to contributor registry on mergeπ Context
improvement_proposals.prop_referral_loopπ€ For AI agents
Branch naming:
agent/[your-name]/issue-2Comment
claimingto reserve.