Why LLMs Count 8 People When Only 7 Are Online: A Negative-Constraint Schema for Long-Context Causality

wenger2026-12 · reddit · 2026-09-03

The author, stress-testing LLMs on 100k+ token hard sci-fi narratives, documents a telling hallucination: with 12 headsets in a scene and exactly 7 characters going online, the model repeatedly wrote "all 8 team members are online" — because the commander, who never wears a headset, dominated the context (handing out gear, commanding), and the model conflated high semantic attention with state classification.

The fix is a three-tier negative-constraint schema:

A ready-to-use XML guardrail schema is provided, including a pre-generation inspector that verifies active device counts against inventory, confirms scene transitions, and audits physical causality before prose is generated.

Original post →

More from coding & agent

coding & agent channel →