Derive an ordered map of each inline reference image to the surrounding
prompt text describing its role, and feed it into the decision, research,
task-plan, conversation and image-prompt builders. The image prompt now
carries this placement so reference roles are not swapped.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>