Incremental Feature Development
2023-10-26Feature Flag–Driven Development
Design a feature using flags to enable safe, gradual rollout and instant rollback.
SCENARIO
Act as a senior engineer designing a feature that will be controlled using feature flags. Your task is to plan how the feature can be developed, shipped, and validated while remaining disabled or partially enabled.
YOUR TASK:
- Identify which parts of the feature must be flag-protected
- Define default flag states and rollout rules
- Ensure both old and new code paths can coexist safely
FLAG DESIGN:
- Flag ownership and lifecycle
- Where flags are evaluated (entry points only)
- How flags are removed after stabilization
WHAT NOT TO DO:
- Do NOT scatter flag checks throughout the codebase
- Do NOT let flags become permanent configuration
- Do NOT mix flag logic with business logic
OUTPUT:
- Detailed flag design and placement
- Incremental rollout strategy
- Cleanup plan after feature launch
INPUT:
Feature description: [Insert feature details]