Merge "Validate encoder buffer writes for single token partition"