Memex Admin

Backend: Feature Flag Hygiene

Repository: mem-labs/mem

inactiveUpdated Feb 18, 2026, 8:49 PM

Policy ID js7cmjdwaz31z5681atfrz046181c6x7

Feature flags in backend should be intentional and maintainable.

Scope:
- Enforce when adding or changing backend feature flags.

Rules:
1) New flags should include clear ownership/context in code or PR description.
2) Default behavior should be explicit and safe.
3) Add a cleanup intent (ticket, comment, or follow-up note) for temporary/experimental flags.

Review behavior:
- Return NOT APPROVED when a new flag is introduced with ambiguous default behavior or no clear ownership/cleanup intent.
- Do not block simple flag removals.