{"tab":"ai","section":"summarization","title":"Story Memory","summary":"Custom guidance for how the AI summarizes recent and past story context. Use it to name the world-specific details summaries should preserve for long-term continuity, so key facts are not forgotten or garbled. Newly author-editable.","kind":"schema","uiLocation":"AI Tasks → Advanced → Story Memory","uiSubtitle":"\"Custom Memory Summarization Instructions\"","editor":"Graphical form (textarea)","related":[{"section":"generateStory","note":"the primary narration task"},{"section":"storySettings","note":"world background context"},{"section":"worldLore","note":"durable lore that complements run-specific memory"}],"wikiUrl":"/ai/summarization","schema":null,"sizeLimits":[],"blocks":[{"type":"example","lang":"json","code":"{\n  \"aiInstructions\": {\n    \"summarization\": {\n      \"custom\": \"Track the player's growth, learning, cultivation of new skills and power, and how this changes their identity and relationships with the world and society.\"\n    }\n  }\n}"},{"type":"prose","md":"## Fields\n\n### custom\n\nThe only key — free-form guidance for what world-specific details the summaries must preserve for long-term continuity. Like every other `aiInstructions` task, it is layered on top of the engine's base summarization instructions."},{"type":"prose","md":"## Authoring pattern\n\nThe engine summarizes recent and past story context on its own; `custom` tells it what not to lose. The guiding question: describe what would be jarring if an NPC forgot it or mixed up the details — \"in my world, *this* is important, do not lose it.\"\n\nWhat matters depends on the genre:\n\n- Relationship-driven worlds — who is related to whom, who is involved with whom, and which of those ties are secret.\n- Military or war worlds — ranks, when and why characters were promoted, the chain of command, who was wounded in which battle.\n- Progression or leveling worlds — when and why a character levels, learns a new skill, or undergoes an evolution.\n- Worlds where alignment matters — an act that shifts a character's alignment is a critical beat, not just another dice roll, and must not drop out of the summary.\n\nKeep it focused on what must be preserved; name the load-bearing facts rather than restating the whole world."}],"body":"## Example\n\n```json\n{\n  \"aiInstructions\": {\n    \"summarization\": {\n      \"custom\": \"Track the player's growth, learning, cultivation of new skills and power, and how this changes their identity and relationships with the world and society.\"\n    }\n  }\n}\n```\n\n## Fields\n\n### custom\n\nThe only key — free-form guidance for what world-specific details the summaries must preserve for long-term continuity. Like every other `aiInstructions` task, it is layered on top of the engine's base summarization instructions.\n\n## Authoring pattern\n\nThe engine summarizes recent and past story context on its own; `custom` tells it what not to lose. The guiding question: describe what would be jarring if an NPC forgot it or mixed up the details — \"in my world, *this* is important, do not lose it.\"\n\nWhat matters depends on the genre:\n\n- Relationship-driven worlds — who is related to whom, who is involved with whom, and which of those ties are secret.\n- Military or war worlds — ranks, when and why characters were promoted, the chain of command, who was wounded in which battle.\n- Progression or leveling worlds — when and why a character levels, learns a new skill, or undergoes an evolution.\n- Worlds where alignment matters — an act that shifts a character's alignment is a critical beat, not just another dice roll, and must not drop out of the summary.\n\nKeep it focused on what must be preserved; name the load-bearing facts rather than restating the whole world."}