Hacker

vishleshak

@vishleshak

Joined Aug 2026ML Engineer at NAIndia

Projects

  • FlagStrata

    Flagsmith Experimentation HackathonNov 2026

    We built FlagStrata — a trustworthy natural-language analytics workbench for Flagsmith Experimentation warehouses, paired with a live Track 01 Flagsmith experiment proving that a constrained semantic-plan compiler beats raw LLM text-to-SQL on the exact same model. The problem: Flagsmith Experimentation stores raw exposures ( $flag_exposure ) and custom outcome events together in a single event table with JSON traits . When analysts ask plain-English cohort questions over experiment logs, naive LLM text-to-SQL fails silently or catastrophically on three real traps: (1) single-table self-join and JSONB dialect errors, (2) at-least-once duplicate exposures and cross-variation contamination inflating counts, and (3) post-treatment collider bias — e.g., asking for "purchase rate among visitors", which conditions on an event after exposure, breaks randomization, and biases lift ~5x. Who uses it & how it works: Product analysts, data engineers, and growth teams running Flagsmith Experimentation. Instead of letting the LLM write raw SQL, FlagStrata constrains it to emit a closed Pydantic Semantic Plan (JSON). A pure validator checks environment/feature scope, known metrics, and causal timing before any SQL is generated — returning a typed HTTP 409 refusal ( POST_EXPOSURE_COVARIATE , UNKNOWN_METRIC , SCOPE_MISMATCH ) with zero SQL executed when a question is unsafe. Valid plans are lowered by a deterministic compiler into one parameterized, read-only PostgreSQL query implementing Flagsmith's exact attribution rules (earliest $flag_exposure , cross-variant quarantine, inclusive post-exposure join), returning the estimate, 95% confidence interval, exact SQL, and audited operator trail on one screen.