Add post-creation workflow and rollout type guidance to flag targeting skill#9
Add post-creation workflow and rollout type guidance to flag targeting skill#9
Conversation
Co-authored-by: nieblara <17378597+nieblara@users.noreply.github.com>
|
Original prompt to Copilot: Add a new section after "Core Concept: Evaluation Order" about post-creation workflow: Working with Newly Created FlagsImportant: When a flag is first created, targeting is OFF by default. This means:
Typical post-creation workflow:
If a user mentions they just created a flag and want to configure it, always check the current state first and remind them that targeting needs to be explicitly enabled.
Choosing Between Variation and Percentage RolloutCritical decision: When updating the default rule (fallthrough), choose the most efficient approach:
Anti-pattern to avoid: Do NOT use percentage rollout with weights like Detection logic: If the user asks to "enable the flag" or "roll out to everyone" or "serve variation X to all users," this is a 100% rollout and should use Important Context
Add a new section after "Core Concept: Evaluation Order" about post-creation workflow: Working with Newly Created FlagsImportant: When a flag is first created, targeting is OFF by default. This means:
Typical post-creation workflow:
If a user mentions they just created a flag and want to configure it, always check the current state first and remind them that targeting needs to be explicitly enabled.
Choosing Between Variation and Percentage RolloutCritical decision: When updating the default rule (fallthrough), choose the most efficient approach:
Anti-pattern to avoid: Do NOT use percentage rollout with weights like Detection logic: If the user asks to "enable the flag" or "roll out to everyone" or "serve variation X to all users," this is a 100% rollout and should use Important Context
|
Agents were missing two critical patterns: newly created flags have targeting OFF by default, and 100% rollouts should use
rolloutType: "variation"not percentage with[0,0,0,100].Changes
New section: "Working with Newly Created Flags" — Documents that targeting defaults to OFF and must be explicitly enabled. Provides 4-step post-creation workflow.
Enhanced "Common scenarios" table — Clarifies when to use percentage rollout ("splitting traffic between variations") vs variation rollout ("100% to single variation"). Adds anti-pattern warning against
[0,0,100].New section: "Choosing Between Variation and Percentage Rollout" — Explains performance and clarity benefits of variation rollout for 100% cases. Includes detection logic for agents: use variation when user says "enable the flag" or "roll out to everyone"; use percentage only when explicitly splitting traffic.
Updated "Important Context" — Adds reminders to check flag state and choose correct rollout type, with cross-reference to detailed guidance.
Impact
Prevents two common mistakes:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.