Prompt::lower strips the item's speaker id #84

Merged
weksa merged 3 commits from weksa-lowering/lower-strips-speaker into main 2026-11-13 16:32:31 +00:00

2026-11-13

Weksa
Tests: speaker stripped on every referent, matched by whole id
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 16:32:16 +00:00
Weksa
Prompt::lower strips the item's speaker id
lower takes the item's speaker; a referent citing it is printed with no entity,
and the speaker has no line in the entities map and is never looked up, so no
lowering prompt holds the speaker id (lower-prompt-no-item-text). Fixtures that
relied on a cited speaker now cite a prior-turn speaker. PROMPT_SOURCE_DIGEST
changes with context.rs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 16:26:56 +00:00
Weksa
Red: a lowering prompt must not hold the item's speaker id
A referent citing the item's speaker puts that entity id in the packet JSON and
the entities map of the lowering prompt, against lower-prompt-no-item-text.
Fails on bf57192 at the speaker id assertion.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 16:23:58 +00:00