Prepare the input
Your preparation script selects source records and adds reusable tasks. A task names a prompt file, supplies JSON arguments, and can carry a string unit identifier.
store.add_task("summarize.md", {"text": source_text}, unit_id="note:001")