Skip to content

fix(onboarding): Gate experiment exposure to recently created orgs#117017

Open
jaydgoss wants to merge 1 commit into
masterfrom
jaygoss/gate-onboarding-scm-exposure-org-age
Open

fix(onboarding): Gate experiment exposure to recently created orgs#117017
jaydgoss wants to merge 1 commit into
masterfrom
jaygoss/gate-onboarding-scm-exposure-org-age

Conversation

@jaydgoss
Copy link
Copy Markdown
Member

@jaydgoss jaydgoss commented Jun 5, 2026

TL;DR

Existing orgs were firing onboarding experiment exposure after landing on /onboarding via stale links. Exposure now only fires for orgs created within the last 7 days, so the experiment population reflects genuine new-org onboarding.

onboarding-scm-experiment and onboarding-scm-project-details-experiment reported exposure on every onboarding mount. Existing orgs reach /onboarding via stale or legacy-format bookmarks (confirmed in api-access and load balancer logs; an auth bug and the onboarding continuation email were ruled out), which contaminated the experiment. Gating on organization.dateCreated is fully synchronous and cleanly excludes the contaminating orgs, which are years old. reportExposure does not change the returned inExperiment assignment, so onboarding step selection is unchanged.

NEW_ORG_ONBOARDING_WINDOW_MS (7 days) is tunable, and exposure volume is worth confirming after deploy. A project-count alternative was also prototyped.

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 5, 2026
Existing orgs can land on /onboarding via stale links and login replay, which fired onboarding-scm-experiment exposure on any onboarding mount and contaminated the experiment population. Only report exposure when the org was created within the onboarding window (NEW_ORG_ONBOARDING_WINDOW_MS), since genuine new-org onboarding happens shortly after creation while the contaminating orgs are far older. The returned experiment assignment is unaffected, so onboarding step selection still works for everyone.
@jaydgoss jaydgoss force-pushed the jaygoss/gate-onboarding-scm-exposure-org-age branch from afb7130 to 3f5bd7c Compare June 5, 2026 20:24
@jaydgoss jaydgoss marked this pull request as ready for review June 5, 2026 20:25
@jaydgoss jaydgoss requested a review from a team as a code owner June 5, 2026 20:25
@jaydgoss jaydgoss requested a review from a team June 5, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant