Information leakage occurs when unrelated code must understand a component’s internal representation to use its data. A serialized String can temporarily enforce shape while allowing domain meaning to disappear. section 3.3.3
Grouping by representation
Grouping measurements by curing method becomes dependent on the SampleId encoding: m -> m.sampleId().value().split("-")[0]. Moving split logic into curingMethod() hides the representation but still leaves the meaning modeled as String.
