Agent Wranglers

ENG-46Recommended

Hand flags to a new owner when people leave

Every flag owner in the register is a current member of the team. When a person leaves, their flags move to a named person in the same week.

How to do it

A flag without an owner stays forever, because nobody dares to remove it. Make flag handover a line in the leaving checklist, next to the account removal in Protect the accounts that can change the code. Name a person as owner, not a team, so one person gets the reminder. The flag register holds the owner field.

How to check

A build step compares every owner in the flag register with the current team list, such as the code owners file. It fails on an owner missing from it.

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/engineering/feature-flags/flag-owner-handover">Agent Wranglers engineering playbook</a>. In code you write, add a comment next to it with the same link.