feat(api): author narrator system prompt (voice, [FACT] rule, no-numbers, no player agency)

This commit is contained in:
2026-07-10 08:23:31 -05:00
parent 15995c57ee
commit 2558e2a2a0
2 changed files with 22 additions and 2 deletions

View File

@@ -33,3 +33,10 @@ def test_digest_omits_raw_numbers_and_ids():
assert "40" not in d and "15" not in d # the deserter dispositions
assert "brannoc_thane" not in d # ids stay out; names only
assert "schema_version" not in d
def test_narrator_body_is_authored():
body = system_prompt.__wrapped__("narrator") # bypass lru_cache in case of prior load
assert "TBD" not in body
assert "[FACT:" in body # the tag instruction is present
assert "second person" in body # the core task is present