Hashes the chunk as stored, which is redacted: a raw secret never feeds
a synced id, so a chunk holding one keeps its id only while the redactor
rewrites it the same way.
The transcript’s sessionId, plus /<agentId> for a subagent file, each
from the first line carrying it as a top-level field. None when no line
carries a sessionId.