Every villager has a private brain log. A read is always filtered to one actor_id, so Actor A's discoveries, wrong hypotheses and episodic memories can never enter Actor B's prompt. Corrections keep the full history rather than overwriting it.
The three knowledge modes
| Mode | What the villager may consult |
|---|---|
| INTRO_EXPLORE | The short intro orientation and the actor's own brain log only. No wiki, no forum, no advanced field notes |
| INTRO_PLUS_FORUM | The orientation, the private log, and bounded local-forum search plus posting |
| INTRO_PLUS_WIKI | The orientation, the private log, and a bounded local-wiki consultation that costs one turn |
INTRO_EXPLORE is the default for a new world. It is deliberately the narrowest mode: the villager learns by handling objects, failing combinations, remembering what happened, and listening to neighbours in person. The orientation itself is the intro-video-level document in cognition/knowledge/intro_orientation.md, a short read of roughly five to ten minutes.
The mode can be overridden per world through configuration, and an individual brain can be switched later (for example, to INTRO_PLUS_FORUM) without rewriting its history.
Bounded optional tools
- Local forum. INTRO_PLUS_FORUM may call search_local_forum and post_local_forum. Posting is capped at three posts per sky day. Every post is a public in-world action attributed to the actor, not a private thought.
- Local wiki. INTRO_PLUS_WIKI may call consult_local_wiki. The consultation costs one turn and distils the learned fact into the actor's private brain log, so the villager carries the understanding forward instead of re-reading the page every time.
- Neither tool reaches the public internet. Both read the local snapshot or the local forum store.
Private episodic memory
The brain log distinguishes several kinds of entry:
- discoveries, which are things the actor observed or made;
- hypotheses, which are current beliefs that may be wrong;
- lessons, which are corrected beliefs;
- episodic memories, which are short first-person recollections.
The prompt builder caps the number of events and the characters per event, so a long life cannot drown the current decision in history. It also never widens the actor's perception: a danger is only reported if that actor already learned the species is hostile.
Hypothesis formation and self-correction
A villager may record a hypothesis, act on it, and later revise it. A revision is a new lesson row with supersedes_id pointing at the older hypothesis. The older row is not deleted. That single link is what lets the UI show a struck-through theory followed by the corrected understanding, and it lets an auditor replay why a villager changed their mind.
The World Forum and the wiki are optional inputs to this loop, never an oracle. An INTRO_EXPLORE villager who has never seen a bear gets no warning from the brain log; they must learn the danger through play, injury, or another villager telling them.
Brain Evolution Timeline
The Chronicle exposes a per-actor Brain Evolution Timeline. It walks the actor's events in order and renders:
- the discovery or hypothesis as it was recorded;
- the correction, when a lesson supersedes an older hypothesis;
- the sky day of each step;
- the actor's current knowledge mode.
Because the underlying log is append-only and per-actor, the timeline is both a debugging tool for operators and a readable biography for players.
The local World Forum
Forum access is a knowledge mode, not a global chat channel. A villager in INTRO_PLUS_FORUM can read and write the local World Forum, subject to the three-posts-per-sky-day cap. A villager in INTRO_EXPLORE cannot see it at all. The forum is documented with the rest of the public history in HHLocal:Chronicle and World Forum.
Where the rules live
- Modes, private reads, posting caps and prompt blocks: cognition/brain_log.py
- Fog-of-knowledge gating and wiki/forum pipeline: cognition/rag.py and cognition/sidecar.py
- Intro orientation document: cognition/knowledge/intro_orientation.md
- Brain events and the supersedes link: cognition/chronicle_store.py
- Timeline API: cognition/brain_log.py (get_brain_timeline)