Build config for a task-backed invocation attempt.
The graph thread uses context.task_id, the user-partitioned
internal ID for the public session. The public session_id remains
available in the invocation envelope and task input only.
The task context is transport-scoped rather than checkpointed graph state. Nodes can use it to inspect recovery, cancellation, steering, and shutdown signals for the current attempt.