The Walls Have Ears: When Memory Isolation Worked Too Well
A few weeks back I wrote about context isolation: how Stage Whisper splits the AI's brain into a Story Director and a Scene Director so NPCs don't know things they shouldn't. That fixed the problem of omniscient NPCs who somehow knew your secret before you told them, but it introduced the opposite problem: NPCs not knowing what the should realistically have heard from another NPC.
I kept getting moments where an NPC would ask me "What did you say to her?", referencing another NPC that this one was close to, someone they lived with, someone they should have heard about it from. I was finding myself having to spend time explaining parts of the dialog and plot to this new NPC.
It felt like none of the NPCs were talking to each other. Which is its own flavour of immersion-breaking.
The Gossip Layer
So I added gossip. At the end of scenes, right after we generate an NPC's normal memories of what happened in the scene, for each NPC we decide what other NPCs this one might realistically talk to. A soldier reporting to a captain. A bard performing in a tavern. Someone in the same house who overheard a conversation. For each of those connected NPCs, we generate a gossip memory.
The fun part is, the gossip memory isn't exact. It can be vague. It can include inaccuracies or embellishments. NPC personality can change how exact or exaggerated, or even how gossipy this is. A dramatic bard might turn "you found a key" into "you challenged the lord for his ancestral birthright" before it reaches the tavern floor. A stoic soldier might downplay everything to their captain. The personality of the NPC shapes how the story gets told.
That's what makes it feel like real gossip rather than a broadcast system. Information travels through characters, according to their personalities. Some are gossipy, others write accurate accounts.
A Note on Importance
Unlike memories and recontextualized memories that change an NPC's understanding of a situation, gossip is really just extra general awareness. I have the importance score of gossip turned down, since naturally gossip should be relied upon less than first-hand memories. If gossip were as reliable as direct memory, NPCs would start acting on rumours as if they were fact.
The same recontextualization process I described in Part 3 (what I called NPC dreaming) also applies to gossip memories. An NPC can reconcile things they have learned first-hand as well as heard from others, creating new memories that summarize a particular topic or understanding of a topic. The result is better understanding than just having loose memories floating around. An NPC who's heard things from multiple sources, combined with what they know first-hand, will reconcile all of that into a synthesized understanding.
What It Feels Like
The effect can be quite subtle. Like with a lot of things when the memory is working, you're really only experiencing it through a lack of immersion-breaking moments where you know an NPC should know something but doesn't. I count it a success if I don't get "wait, you should know this, you live with that person" moments anymore.
NPCs feel like they're part of a living world where information travels, where people talk. That's exactly the feeling context isolation was meant to protect in the first place.
For more on Stage Whisper's memory system, see Part 1: Narrative Consistency, Part 2: Context Isolation, and Part 3: NPC Dreaming.
Stage Whisper is built for people who want AI companions and AI GM campaigns where what you say actually matters - and where what you say to one character eventually gets back to the others. Get started or join our Discord to see what happens when NPCs actually talk to each other.