{"id":"composite-transparency-vs-safety-tradeoff","text":"The Composite pattern involves a transparency-vs-safety tradeoff: declaring child management (Add/Remove) in Component gives transparency (uniform treatment) but allows meaningless operations on Leaves; declaring it only in Composite gives compile-time safety but different interfaces for Leaves and Composites.","truth_value":"IN","source":"entries/2026/06/17/gof-oo-chunk-12.md","source_url":"","source_hash":"","justifications":[],"dependents":["behavioral-infrastructure-safely-complete","composite-universal-safe-structure","flexibility-type-safety-systematic-tradeoff","infrastructure-variation-safely-scalable","interpreter-recursive-subsystem-safely-complete","null-iterator-propagates-transparency-cost-across-pattern-boundaries","pedagogy-safely-onboards-into-governed-system","recursive-composition-reliable-at-scale","recursive-self-bootstrapping-safely-operational","recursive-subsystem-envelope-safely-maintained","recursive-subsystem-safe-and-complete","recursive-subsystem-safely-scalable-at-extreme-scale","recursive-subsystem-temporally-reliable"],"metadata":{"last_premise_reviewed":"2026-06-17T18:19:22","premise_review_result":"pass"},"created_at":"2026-06-17T17:04:08+00:00","updated_at":"2026-06-17T17:04:08+00:00","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"composite-transparency-vs-safety-tradeoff","truth_value":"IN","reason":"premise"}]}}