Skip to content

Assign setup guide experiment variants on the server - #7170

Merged
brsbl merged 2 commits into
mainfrom
setup-guide-v3/1-assignment
Nov 6, 2026
Merged

brsbl merged 2 commits into
mainfrom
setup-guide-v3/1-assignment

Conversation

@brsbl

@brsbl brsbl commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The setup guide redesign needs an A/B experiment, and nothing assigns an install to a guide variant yet. This layer adds server-side assignment only; the app starts reading it in the guide layer.

What changed

  • New installs get a guide variant, control or new, from the setup-guide-redesign PostHog flag.
  • The flag request has a 3-second timeout.
  • The variant falls back to control when telemetry is off, the flag is missing, or the request fails.
  • The assignment is saved in the data directory and reused on later runs.
  • New app-to-server route GET /api/v1/system/setup-guide returns { variant }. It is not an SDK or CLI surface.
  • New env var BB_SETUP_GUIDE_VARIANT=control|new forces the variant for QA.
  • New onboarding_exposed event saves the assignment and sends $feature_flag_called when the flag decided it.
  • The server adds setup_guide_variant to every setup-guide event.
  • docs/configuration.md documents the route behavior, env var and exposure event.
  • No host-daemon protocol or plugin SDK change.

How you verified

  • Remote CI passed on this head. Run
  • Tests cover each fallback, the saved-file shapes, exposure, event annotation and the route.

🤖 Generated with Claude Code

BB-Thread-ID: thr_hbwn9dvks2

AGENT GENERATED

The server evaluates the setup-guide-redesign flag once per run, saves the
assignment in the data directory, serves the variant at
GET /api/v1/system/setup-guide, records the exposure the app reports, and
tags setup guide events with the variant. BB_SETUP_GUIDE_VARIANT forces a
variant for QA.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T06:55:27.334825Z feeeb8d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@brsbl
brsbl added this pull request to stack #7177 November 6, 2026 06:53
The flags response's errorsWhileComputingFlags field was parsed but never
read. The route test for the telemetry-off default and the repeat-request
check repeat the experiment's unit tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl
brsbl merged commit 2f131ec into main Nov 6, 2026
52 checks passed
@brsbl
brsbl deleted the setup-guide-v3/1-assignment branch November 6, 2026 08:45
brsbl added a commit that referenced this pull request Nov 6, 2026
The setup guide stack this branch sat on merged into main as #7170-#7176,
so this keeps main's version of every stack file and reapplies only the
featured-plugins experiment on top.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant