MicroFish/backend/tests
anadoris007 d3bec344c7 feat(narrative): extend translator with world context + dead filter
- PROSE_PROMPT_TEMPLATE extended with world_rules, world_events,
  world_locations, and event_enforcement substitution fields
- EVENT_ENFORCEMENT_STRENGTH set to "hard" — opening line MUST
  reference the most recent world event (aligns with existing
  punchy, cinematic voice)
- Character summaries now resolve location id → name for prompts
- translate_round loads world_state and filters dead characters
  from both the roster and the action list before prose generation
- User-supplied strings (rules, events, locations) brace-escaped
  before str.format() to prevent KeyError on stray { or }

Tests: 36/36 passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 14:54:22 +05:30
..
__init__.py feat(narrative): add action-to-verb mapping for OASIS actions 2026-04-20 20:50:05 +05:30
test_action_mapper.py feat(narrative): add action-to-verb mapping for OASIS actions 2026-04-20 20:50:05 +05:30
test_character_engine.py feat(narrative): set status=alive on new characters 2026-04-20 22:23:59 +05:30
test_god_mode.py feat(narrative): add god_mode.kill_character with auto-death event 2026-04-20 22:25:24 +05:30
test_narrative_e2e.py test(narrative): add end-to-end pipeline test 2026-04-20 22:05:08 +05:30
test_narrative_translator.py feat(narrative): extend translator with world context + dead filter 2026-04-22 14:54:22 +05:30
test_story_store.py feat(narrative): add StoryStore for file-based narrative persistence 2026-04-20 20:50:55 +05:30
test_world_state.py feat(narrative): add WorldStateStore for rules, locations, event log 2026-04-20 22:23:38 +05:30