Hacker
Srijan K
@srijan_
Projects
ChangePilot — Approval-Gated, Time-Bounded Customer Feature Control for Flagsmith
Flagsmith Experimentation HackathonNov 2026
**Problem:** Enabling a feature for a single customer can unintentionally affect other customers if environment defaults or segment rules are configured incorrectly. Temporary trials may also remain enabled indefinitely, and manual rollbacks can lose the exact configuration that existed before a change. **What we built:** ChangePilot is an approval-gated, tenant-isolated feature-change control plane built using FastAPI, Next.js, Auth.js OIDC, SQLite and Flagsmith Cloud. It implements a controlled lifecycle: REQUEST → PREVIEW → APPROVE → APPLY → VERIFY → AUDIT → EXPIRE → RESTORE → VERIFY **Who uses it and how it works:** 1. REQUESTER: A customer-specific feature change is submitted with a target tenant, desired feature state, reason and expiry time. 2. PREVIEW: ChangePilot performs read-only checks against Flagsmith to identify configuration conflicts, existing segment rules and potential priority shadowing. 3. APPROVE: A separate APPROVER reviews and approves the request. Self-approval is prevented by server-side authorization. 4. APPLY: An authorized OPERATOR applies the change. ChangePilot captures the exact previous configuration in a snapshot before publishing the new Flagsmith feature version. 5. VERIFY: Fresh Flagsmith evaluations independently verify the intended customer's feature state and confirm that unrelated customers remain unaffected. 6. EXPIRE AND RESTORE: When the requested duration expires, the recovery mechanism restores the original configuration and verifies the restored state. 7. AUDIT: Each important operation is recorded in an append-only audit trail. **Demonstrated outcome:** In our controlled live Flagsmith demonstration, the `ai_assistant_enabled` feature was enabled for `acme-corp`, while `northstar-ai` and `globex-unrelated` remained disabled. Following expiry and restoration, fresh evaluations confirmed that all three customers were disabled again. ChangePilot focuses on proving both the intended change and the exact restoration, rather than relying only on successful API responses.