Interactive ghost story built on Gemma 4 stress-tested with 478 adversarial prompts

Extreme_Ad5709 · reddit · 2026-10-29

A developer built "The Last Guest," a browser-based interactive ghost story powered by open-weight Gemma 4 E4B (a Hacktoberfest 2026 "Ghost in the Machine" entry). Four in-game objects each access only a different subset of the narrative, and the challenge is preventing an object from revealing facts assigned to another object, even when users try to coax it out.

The author added a code-based guardrail that inspects generated responses before display, then tested with 478 questions including adversarial prompts. It worked in some cases, but keyword-based checks have an obvious flaw: the model can leak the same fact through different wording.

The author is asking how to evaluate this more rigorously — LLM-as-a-judge, semantic similarity checks, structured output constraints, or a separate adversarial pipeline — and which failure cases to test first.

Original post →

More from coding & agent

coding & agent channel →