buffs: assigning a bare Message to attempt.prompt drops the system turn
Buffs assign a bare Message to attempt.prompt. The setter at attempt.py:346 rebuilds it as Conversation([Turn("user", Message(...))]), so every turn before the final user turn is discarded, including a system turn set by run.system_prompt.
Reproduced on a pristine checkout at 8d1259ef, CPython 3.13.5, Windows 11, garak 0.17.1.pre1:
a = Attempt(probe_classname="demo.Probe")
a.prompt = Conversation(turns=[
Turn("system", Message(text="Refuse unsafe requests.")),
Turn("user", Message(text="TELL ME A JOKE")),
])
buffed = list(Lowercase().transform(a))[0]Before: roles ['system', 'user']. After: roles ['user'].
Expected is that a buff perturbs its target message and leaves the rest of the conversation intact. The same assignment appears at encoding.py:21,39, low_resource_languages.py:50, paraphrase.py:91,211.
run.system_prompt is documented config reaching probes via _run_params, and tests/test_sysprompt.py guards the system turn surviving probe(), but nothing covers it surviving a buff.
Not proposing a fix, because it looks like a design call: both call sites carry TODOs asking this same question, and keeping an untranslated English system turn may be wrong for low-resource-language buffs specifically. #371 is adjacent but covers character spans within a prompt rather than which turns survive.
AI assistance was used; the reproduction was run and its output pasted verbatim.
Source: NVIDIA/garak