Hacker

Ruihua He

@herh

Joined Nov 2026student at University of Southern CaliforniaUnited States

Projects

  • Flag Bisect

    Flagsmith Experimentation HackathonNov 2026

    An on-call engineer hears that one customer's page is broken while every other customer is fine. That customer's flags differ from the defaults in many places, through segments and identity overrides, and the usual move is to switch them off one at a time. When the bug needs two flags together, that never finds it: in our Globex demo, all ten differences pass one at a time. Flag Bisect finds the flags behind a single-customer failure. You give it the customer's identity and a short check script (exit 0 means healthy). It: 1. Runs the check against the real customer in production and stops if it passes. 2. Compares the customer's effective flags in prod with a fresh sandbox identity in dev: on/off, value, variant, and where each value came from (environment, segment, identity override). 3. Replays all differences as overrides on a temporary dev identity. If that does not reproduce the failure, it reports "not a flag problem" and stops. 4. Narrows the set with delta debugging (ddmin), which catches single flags and pairs that only fail together, confirms the minimal set, and verifies each one-flag fix against the full replay. 5. Scans other production customers for the same culprit values and runs the read-only check on matches. 6. Proposes the exact override for that one customer. Production is written only after a person approves it, then the check runs again and an undo file is saved. The temporary identity is always deleted. On the Globex demo it found the pair (amount_cell_input + currency_formatter) in 22 checks and about 13 to 23 seconds on a laptop, then found that Hooli was failing with the same pair, inherited from a segment, before Hooli had reported anything. Who would use it: on-call and support engineers on teams that target flags per customer. It ships as a CLI, an MCP server with six tools, and a portable agent skill. The program does the searching and deciding; the model writes the check and explains the result. Honest notes: the demo app (Acme Billing) and its six customers are synthetic, and the two bugs were planted for the demo. The result is one minimal failing set for the given check; others may exist.