Hacker

Mihiresh Joshi

@mihireshjoshi

Joined Nov 2026SDE at JPMCIndia

Elsewhere

Projects

  • FlagMatrix: Automated Feature Flag Testing

    Flagsmith Experimentation HackathonNov 2026

    FlagMatrix is an open-source, self-hosted testing studio, CLI, and proxy shim for Flagsmith that tests every combination of your feature flags, segments, and running experiments in real browsers—without touching your experiment data. Feature flags multiply quickly: 20 flags across customer segments and a live A/B/C test create over 6.2 million versions of your app. Bugs hide where flags intersect (like a loyalty upsell bar covering a new checkout button, or a member discount dropping a cart below a backend payment minimum), and manually testing with real accounts pollutes live Flagsmith experiments with fake identities and events. FlagMatrix solves both by reading your flags, segments, and experiments straight from Flagsmith's Admin API, running every version in parallel Playwright browsers (plus mobile for the riskiest combination), pinpointing the failing element and affected experiment traffic share, and verifying zero test data reached Flagsmith. It's built for teams self-hosting Flagsmith who want fast pre-release QA without a large manual QA team, engineers gating pull requests in CI (⁠ npx flagmatrix check ⁠, failing with ⁠ exit 1 ⁠ on broken combinations or data leaks), and developers using coding agents via our Claude Code plugin and ⁠ flagmatrix-setup ⁠ skill to wire up FlagMatrix automatically without printing or committing tokens. FlagMatrix runs as one Docker container (⁠ saadsurve1702/flagmatrix ⁠) alongside Flagsmith with two components: a Studio, pairwise planner, and Playwright runner on port 4000 (which cuts 6.29M combinations down to 273 pairwise tests and automatically re-runs on Flagsmith's signed flag-change webhook), and a Java 21 Safe Shim on port 4001. Browser apps need zero code changes, while server SDKs (Node, Java, Python, Go) point at the Shim and pass an ⁠ fm:slot_N:<user> ⁠ prefix (~5 lines). The Shim forces each slot's exact variant across frontend and backend services using throwaway identities, quarantines every event batch, fails closed with HTTP 409 on unknown slots while passing real users straight through, and confirms with Flagsmith's Admin API after every run that 0 test identities and 0 events were stored.

    TechGrill@saad_surve