{"id":"ocp-open-for-extension-closed-for-modification","text":"The Open-Closed Principle (OCP) states that software entities should be open for extension but closed for modification — new behavior is added by extending, not by altering existing code.","truth_value":"IN","source":"entries/2026/06/17/solid-overview.md","source_url":"https://en.wikipedia.org/wiki/SOLID","source_hash":"","justifications":[],"dependents":["dip-enables-ocp","solid-mutual-reinforcement","visitor-inverts-ocp-axis"],"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":"ocp-open-for-extension-closed-for-modification","truth_value":"IN","reason":"premise"}]}}