Another observed failure: solution invents an exotic, unclued backstory
(astronaut returning from a space mission) to justify the twist, and repurposes
a mundane object (a nightstand hourglass) as something physically impossible
(running for three weeks) without the teaser ever flagging it as special.
Add an Occam's-razor rule plus a prop-plausibility rule, with a worked
bad-example pair.
Another observed failure mode: solutions resolving on an unverifiable mood
swing ("she realized she didn't want to leave") propped up by a convenient
coincidence, instead of a concrete fact a player could reach via yes/no
questions. Add an explicit rule plus a worked bad-example contrast.
Generated stories were sometimes incoherent or implausible (teasers claiming
things that didn't literally happen, unresolved details, forced twists).
Add explicit coherence/plausibility rules, a worked example, and lower
temperature from 1 to 0.85 to reduce randomness without killing variety.
Purges docs/DEPLOY.md per project decision to stop maintaining a
separate deploy walkthrough; deploy/ example systemd/nginx units remain
as the reference. Root README is translated to English (game name kept
as-is) to match the rest of the repo's documentation.
Renames the game to "Sí, no, o indiferente" across the app, README,
Capacitor config and Android strings. Replaces the dark-purple theme
with a distinct case-file/dossier look (monospace type, black/cream/red
palette, stamped difficulty badges, stacked-card shadows). Removes the
progressive hint system and the two-step solution confirmation: the
narrator's solution is now always rendered, gated only by a blur
show/hide toggle with a "Confidencial" stamp. Adds a back button from
the narrator screen to the picker (without marking the story as used),
drops dev-facing cruft (story source/count badge), converts remaining
UI copy to Peninsular Spanish, and adds a post-game screen where players
can optionally rate a story's difficulty (1-5), sent to the new backend
ratings endpoint.
Players can now submit a voluntary 1-5 difficulty rating after a story
ends (POST /api/stories/:id/ratings), stored in data/ratings.json. A new
reclassifyDifficulty script (wired to a weekly systemd timer) averages
those ratings and adjusts a story's difficulty band once it has enough
votes. The progressive hint system is removed end-to-end (schema, Gemini
prompt/response schema, generation instructions), and the Gemini prompt
is rewritten in Peninsular Spanish with an explicit instruction to
generate story content in Spain Spanish rather than any LatAm variant.
Also translates remaining Spanish code comments/error strings to English
and updates the backend README and systemd units accordingly.
Node/Express backend generates 5 lateral-thinking mystery stories a day via
Gemini and serves the latest batch; React/Vite frontend (Capacitor-wrapped
for Android) plays them pass-and-play style, falling back to a bundled set
of 16 original stories when the backend has nothing new or is unreachable.
Includes systemd/nginx deploy config for a Docker-less Debian LXC.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>