Build the chat_prompt attachments array in draft order with the web's
{name, mime, data} shape, trimming and 8-file/1 MiB bounds, and read a
recorded history file part back to an attachment.
Lift recorded activity/compaction parts out of an assistant turn into a
single activity row before the answer. Running kinds use the web's phase
words; terminal records keep the label the server recorded.