Flush pending records and return the client-readable path.
Materialization rewrites the whole per-thread JSONL file, so it runs under a cross-process advisory lock and re-reads the on-disk records first, merging in anything another dcode process appended since this process last loaded the file.
Conversation thread identifier.
Optional subagent scope.