Add guided faucet activation experiment#677
Draft
juandolealt wants to merge 2 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
controlorguided_handoffmultivariate assignments and locks the first valid assignment.unassignedso they can be excluded from A/B analysis.Why the hardening was needed
The initial draft could classify fast users as control before PostHog returned an assignment, and a later flag refresh could change the claim variant after the exposure event. PostHog can also invoke an already-loaded feature-flag callback without the optional context argument. Finally, the 24-hour journey expiry could not support the planned seven-day repeat-payment metric. The latest commit closes those measurement gaps without changing the normal faucet experience for unresolved users.
Stack and release status
This PR is stacked on #676 and targets
agent/docs-growth-funnel-analytics.This is not production-ready. Do not merge until #676 lands, the experiment setup is reviewed, and explicit production release permission is given. This PR does not create or enable the PostHog feature flag.
The launch configuration must use the exact multivariate keys
controlandguided_handoff. Boolean or missing values remainunassigned.Measurement boundary
The experiment covers the interactive address-form and connected-wallet faucet flows plus the interactive send-payment guide. Direct cURL and RPC claims remain excluded because their current API response confirms submission, not receipt success.
Emitted events:
faucet_viewedfaucet_claim_startedfaucet_claim_succeededfaucet_claim_failedquickstart_startedtestnet_payment_succeededtestnet_payment_failedFor A/B analysis, include only the first successful claim per anonymous browser where
experiment_variantiscontrolorguided_handoffandjourney_persistedis true. Excludeunassignedjourneys. First payment remains the first successful payment event within 24 hours. The seven-day retention supports the separate repeat-payment metric. Testnet developer activation remains separate from mainnet business activation.Validation
pnpm checkpnpm check:typesCI=true pnpm test(174 tests)CI=true pnpm buildCI=true VITE_E2E=true VITE_USE_HTTP=true pnpm buildCI=true VITE_E2E=true VITE_USE_HTTP=true pnpm exec playwright test e2e/faucet.test.ts --project=chromium(2 tests)git diff --check