fix(workflows): use artifacts.item_body not metadata.task_description

metadata.task_description is not in the consumer snapshot — the trigger
consumer only populates metadata.automation from the outbox typed_payload.

artifacts.item_body IS populated via dispatch_service from
item_snapshot["body"] (set from typed_payload.body in the consumer,
which comes from item.get("body") in emit_work_item_event).

For M39 items the body contains the full task description, so
${artifacts.item_body} gives the agent complete implementation instructions.
This commit is contained in:
Paul O'Reilly
2026-07-31 10:44:14 +12:00
parent fc27ffe170
commit b5f039f73f

View File

@@ -28,7 +28,7 @@ nodes:
You are implementing source code for the following task.
## Task Description
${metadata.task_description}
${artifacts.item_body}
## Instructions
1. Read the task description carefully — it specifies the file(s) to create/modify and the exact requirements.