[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-04-30 22:42:02 +09:00
parent 0bd4f19e38
commit c36c0644a1
4888 changed files with 18470 additions and 18602 deletions
@@ -1,8 +1,8 @@
---
id: P-REINFORCE-AI-DOM-INVARIANT
id: [[P-Reinforce]]-AI-DOM-INVARIANT
category: "10_Wiki/💡 Topics/AI"
confidence_score: 0.93
tags: [SoftwareEngineering, DDD, DomainDrivenDesign, Reliability]
tags: [SoftwareEngineering, DDD, DomainDrivenDesign, [[Reliability]]]
last_reinforced: 2026-04-20
---
@@ -14,10 +14,10 @@ last_reinforced: 2026-04-20
## 📖 구조화된 지식 (Synthesized Content)
- **What is an Invariant?**:
- 어떤 상황에서도 항상 참이어야 하는 비즈니스 규칙 (예: "주문 수량은 반드시 0보다 커야 한다", "할인율은 100%를 초과할 수 없다").
- **Encapsulation Strategy**:
- **Encapsulation [[Strategy]]**:
- **Private Constructor**: 외부에서 함부로 객체를 만들 수 없게 차단.
- **Factory Method**: 유효성 검사를 통과한 경우에만 객체를 생성하여 반환.
- **Read-only state**: 생성 이후 상태를 임의로 변경하지 못하게 하여 불변성을 유지.
- **Read-only [[State]]**: 생성 이후 상태를 임의로 변경하지 못하게 하여 불변성을 유지.
- **Benefit**: 버그 발생 지점을 객체 생성 시점으로 한정시켜, 시스템의 안정성과 예측 가능성을 높인다.
## ⚠️ 모순 및 업데이트 (RL Update)