Feature Flag
Indicador de función
Un Feature Flag es un interruptor que se revisa mientras el software funciona. Cambia una función sin desplegar código nuevo.
Otro ejemplo
Un nuevo checkout llega a los empleados, luego al 5% de los compradores elegibles. Las medidas de error activan automáticamente el apagado documentado.
Partes principales
- 01Identity or input
- 02Policy or transformation
- 03Stored result and audit evidence
Úsalo cuando
Úselo para implementaciones cuidadosas, experimentos o cierres de emergencia. Asigne un responsable y una fecha de finalización para cada bandera.
No lo uses cuando
Evita banderas permanentes, chequeos de permisos ocultos, combinaciones sin probar y elegir usuarios por características sensibles.
Nombre usado en código
flag key + targeting rule + default + expiry Antes de lanzarlo
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Indicador de función (Feature Flag). User context: Un nuevo checkout llega a los empleados, luego al 5% de los compradores elegibles. Las medidas de error activan automáticamente el apagado documentado. Technical concept or control: Indicador de función (Feature Flag). Why it fits: Úselo para implementaciones cuidadosas, experimentos o cierres de emergencia. Asigne un responsable y una fecha de finalización para cada bandera. Do not use it when: Evita banderas permanentes, chequeos de permisos ocultos, combinaciones sin probar y elegir usuarios por características sensibles. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Ningún estándar oficial único controla todo el término. Su significado puede cambiar según equipos, plataformas o marcos. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Revisa esta petición
Review how Indicador de función (Feature Flag) is used now. Definition: Un Feature Flag es un interruptor que se revisa mientras el software funciona. Cambia una función sin desplegar código nuevo. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.