configuring-experiment-rollout
ما الذي تفعله
تضبط هذه المهارة توزيع النسخ، مثل 50/50، ونسبة المستخدمين الذين يدخلون التجربة. وهي مناسبة لمن يريد أن تكون حركة اختباره مضبوطة وعادلة.
متى تستخدمها
- ✓عندما تريد اختيار التوزيع بين النسخة الضابطة والنسخة التجريبية.
- ✓عندما يطلب أحد نسبة طرح، وتحتاج إلى معرفة ما تعنيه.
- ✓عندما تفكر في توزيع غير متساوٍ، مثل 80/20، وتريد تجنب الانحياز.
رابط المهارة
https://github.com/PostHog/posthog/blob/master/products/experiments/skills/configuring-experiment-rollout/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“اضبط تجربتي بتوزيع 50/50، واطرحها على 25 بالمئة من المستخدمين.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
توصي المهارة بتوزيع متساوٍ افتراضياً، وتعدّل نسبة الطرح الإجمالية للتحكم في حجم الحركة المعروضة. وتحذر أيضاً من الانحياز الذي قد تسببه التوزيعات غير المتساوية.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Configuring experiment rollout
This skill answers: Who sees what variant?
Recommended approach: equal split + adjust rollout percentage
In most cases, experiments work best with an equal split. If you want to limit exposure to the test variant, adjust the rollout percentage instead.
Why equal splits are better:
- Equal splits maximize statistical power — each variant has the same sample size
- Equal splits balance traffic and thus reach significance faster
- Increasing user exposure throughout the experiment through increasing rollout is clean (changing split mid-experiment can cause users to switch variants, which is bad for user experience and data quality)
Always default to an equal split unless the user explicitly requests otherwise.
When an uneven split is required
Uneven splits combined with the default "Exclude from analysis" handling can introduce bias. If the experiment observes multi-variant users (users exposed to more than one variant) then those are dropped asymmetrically — the smaller variant loses a larger fraction of its assignments. If those users behave differently from the rest, the smaller variant's metrics will be skewed.
The right mitigation depends on experiment state:
- Pre-launch, or live but with few exposures so far — use an equal split and reduce the overall rollout. Achieves the same test-variant exposure without the bias and preserves statistical power. See the disambiguation question below.
- Live experiment with significant exposures — switch multivariate handling to "First seen
variant". Changing the split mid-run reassigns users across variants (anti-pattern; see
"Changing rollout on a running experiment" below). Switching handling instead keeps everyone in
their original variant and avoids the asymmetric exclusion. See
configuring-experiment-analyticsfor how to set this. Note that "first seen" handling can introduce other biases, but it's preferable to mid-run reassignment.
The two rollout controls
There are two separate controls that determine who sees what.
Both live on the linked feature flag, sent through the feature_flag object in the flag's own shape (not the deprecated parameters keys).
1. Variant split (feature_flag.filters.multivariate.variants)
How users inside the experiment are distributed across variants.
- Array of
{key, name, rollout_percentage}, where therollout_percentagevalues must sum to 100 - Minimum 2 variants, maximum 20
- No specific variant key is required — the analysis baseline defaults to the variant keyed
"control"when present, else the first variant - Default: control 50% / test 50%
If the user says "A/B/C test" without naming keys, key the baseline "control" (the convention) and create additional variants for the others; if they ask for specific keys, use them as-is with the baseline first.
2. Overall rollout (feature_flag.filters.groups[0].rollout_percentage)
What percentage of all users enter the experiment at all, sent as a single rollout group: groups: [{ "properties": [], "rollout_percentage": N }].
Default: 100%.
Users not included are excluded entirely: they don't see any variant and are not part of the analysis.
Where these are sent
Both controls live inside feature_flag.filters:
{
"feature_flag": {
"filters": {
"multivariate": {
"variants": [
{ "key": "control", "name": "Control", "rollout_percentage": 50 },
{ "key": "test", "name": "Test", "rollout_percentage": 50 }
]
},
"groups": [{ "properties": [], "rollout_percentage": 100 }]
}
}
}
filters may also carry aggregation_group_type_index (to run the experiment on a group type rather than individual users) and payloads (JSON-encoded strings keyed by variant key).
On a running experiment, any flag-config change must also send update_feature_flag_params: true, otherwise the API rejects the update before it reaches the flag (see "Changing rollout on a running experiment").
How they interact
These two controls multiply:
| Overall rollout | Variant split | % seeing test | % in analysis |
|---|---|---|---|
| 100% | 50/50 | 50% | 100% |
| 100% | 75/25 control/test | 25% | 100% |
| 50% | 50/50 | 25% | 50% |
| 25% |
الأسئلة الشائعة
لماذا أستخدم توزيعاً متساوياً؟
التوزيع المتساوي يعطي كل نسخة حجم عينة متساوياً، مما يساعد التجربة على الوصول إلى الدلالة الإحصائية أسرع.
هل أستطيع تغيير التوزيع أثناء التجربة؟
من الأفضل ألا تفعل. قد ينتقل المستخدمون بين النسخ، مما يضر بتجربتهم وبجودة البيانات.
لماذا التوزيع غير المتساوي خطير؟
المستخدمون الذين يرون عدة نسخ يُستبعدون بشكل غير متساوٍ، وقد يُحرّف ذلك نتائج النسخة الأصغر.
التفاصيل
الوصف الأصلي من المؤلف
Configures the rollout shape of a PostHog experiment — the variant split (50/50, 80/20, A/B/C ratios), the overall rollout percentage that gates how many users enter the experiment, and the disambiguation when a percentage like "roll out to 25%" could mean either. Use when the user mentions a rollout percentage, variant split, or traffic distribution; gives a ratio like 60/40, 70/30, or 80/20; asks "who sees the test variant?"; wants to increase, decrease, or change the rollout or split on a draft or running experiment; weighs equal vs uneven splits; or proposes a mid-experiment split change (
repo: PostHog/posthog
الشعبية
- نجوم GitHub
- 41k
- الترتيب
- #6876
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
depot-ci
41kيساعد وكيلك على إعداد سير عمل Depot CI وتشغيله، وهو بديل لـ GitHub Actions، بما في ذلك نقل سير العمل الحالي وقراءة سجلات التشغيل.
depot-container-builds
41kيساعد وكيلك على بناء صور Docker على بُنّاة Depot البعيدين، بما في ذلك الصور متعددة المنصات والدفع إلى السجلات وإصلاح أخطاء البناء.
depot-github-runners
41kيساعد وكيلك على نقل مهام GitHub Actions إلى مشغّلات Depot المُدارة، واختيار أحجامها وتسمياتها، وإصلاح مشاكل إعدادها.
editing-agents-md
41kيساعد وكيلك على تحديد ما إذا كانت القاعدة تنتمي إلى ملف AGENTS.md أو CLAUDE.md، وكتابتها بطريقة تُتَّبع دون تضخيم الملف.
مهارات مشابهة
gitcrawl
394kيتيح لوكيلك البحث في أرشيف محفوظ لمشكلات GitHub وطلبات السحب، وتجميع المكرر منها، والتحقق من حالتها الحالية على GitHub.
slacrawl
394kيتيح لوكيلك البحث في رسائل Slack داخل أرشيف محلي وعدّها، والتحقق من مدى حداثة الأرشيف، وتحديثه عند الحاجة.
goplaces
394kيساعد وكيلك على البحث عن الأماكن وعرض تفاصيلها وتقييماتها وتحديد أسمائها عبر Google Places، مع مخرجات JSON للسكربتات.