en Law of Demeter clean code coupling encapsulation make-public
But the important difference here is that we don't violate the object encapsulation when we use transformation pipelines - we just apply set of modification to some data.
seedling design clean code interface coupling encapsulation information surface area make-public
Therefore, breaking encapsulation means providing information that goes beyond the abstraction level of the interface.
seedling clean code encapsulation coupling make-public
Another aspect of keeping the knowledge local is ensuring that the outside world does not know about the internals of the object - that is maintaining encapsulation