[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,95 +2,171 @@
|
||||
id: wiki-2026-0508-thought-architecture
|
||||
title: Thought Architecture
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-Reinforce-AUTO-THAR-001]
|
||||
aliases: [생각 설계, Architecture of Thought, 사고 아키텍처]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.94
|
||||
tags: [auto-reinforced, thought-Architecture, cognitive-science, Mental-Models, structured-thinking]
|
||||
confidence_score: 0.9
|
||||
verification_status: applied
|
||||
tags: [architecture, design-thinking, mental-model]
|
||||
raw_sources: []
|
||||
last_reinforced: 2026-04-20
|
||||
last_reinforced: 2026-05-10
|
||||
github_commit: pending
|
||||
inferred_by: Claude Opus 4.7 (auto-normalize 2026-05-08)
|
||||
tech_stack:
|
||||
language: unspecified
|
||||
framework: unspecified
|
||||
language: conceptual
|
||||
framework: software-architecture
|
||||
---
|
||||
|
||||
# [[Thought-Architecture|Thought-Architecture]]
|
||||
# Thought Architecture
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "생각의 설계도: 무질서하게 흩어진 아이디어를 논리적, 체계적 구조로 정렬하여 복잡한 문제를 단순화하고, 최적의 의사결정을 이끌어내는 내면의 지적 시스템."
|
||||
## 매 한 줄
|
||||
> **"매 architecture 는 thought 의 외화 (externalization)"**. 매 system 의 구조는 매 designer 의 사고 모델을 그대로 반영. 2026 LLM-assisted era 에서도 매 핵심 thought structure 는 인간이 결정 — AI 는 elaboration / pattern matching.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
사고 아키텍처(Thought Architecture)는 정보를 받아들이고 처리하여 출력(행동/결정)하는 지각과 추론의 내적 구조를 의미합니다.
|
||||
## 매 핵심
|
||||
|
||||
1. **구성 요소**:
|
||||
* **[[Mental Models|Mental Models]]**: 세상을 이해하는 고정된 틀 (예: First [[Principles|Principles]], Occam's Razor).
|
||||
* **[[Logic|Logic]] Frameworks**: 결론에 도달하는 경로 (연역, 귀납, 가추법).
|
||||
* **Knowledge Representation**: 머릿속에 정보를 저장하는 방식 (위계적 구조, 네트워크형 구조).
|
||||
2. **Architecture의 유형**:
|
||||
* **[[Linear Thinking|Linear Thinking]]**: 원인과 결과의 1:1 관계에 집중. 단순 문제 해결에 적합.
|
||||
* **[[Systems Thinking|Systems Thinking]]**: 변수 간의 피드백 루프와 전체 역동성 파악. 복합 위기 해결에 필수.
|
||||
* **Structural Thinking**: 핵심 뼈대(Structure)를 먼저 세우고 세부 사항을 채워 넣음.
|
||||
3. **AI 지능과의 유사성**:
|
||||
* LLM의 'Chain-of-Thought (CoT)'는 기계가 인간의 사고 아키텍처를 모방하여 중간 추론 단계를 구조화하는 시도로 볼 수 있음.
|
||||
### 매 layers of thought
|
||||
- **What**: 도메인 / 문제 정의.
|
||||
- **Why**: 매 가치 / 제약 / trade-off.
|
||||
- **How**: 매 component / boundary / contract.
|
||||
- **When**: 매 evolution / lifecycle.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌**: 과거에는 사고를 단순히 '기억'의 양으로 평가했으나, 현대 교육 및 기업 정책은 '정보를 연결하고 구조화하는 아키텍처 능력'을 핵심 역량으로 재정의함(RL Update).
|
||||
- **정책 변화(RL Update)**: AI와의 협업 정책 수립 시, 인간은 창의적이고 전략적인 '상위 사고 아키텍처'를 설계하고, 실무적인 '하위 연산 아키텍처'는 AI에게 맡기는 '인지 부하 분산 정책'이 도입됨.
|
||||
### 매 thought-to-architecture mapping
|
||||
- 매 mental concept → module.
|
||||
- 매 invariant → contract / type.
|
||||
- 매 change axis → seam / interface.
|
||||
- 매 trust boundary → service / process boundary.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- [[Systems Thinking|Systems Thinking]], [[Structuralism|Structuralism]], [[Soft-Skills-Development|Soft-Skills-Development]], [[Philosophy|Philosophy]] of Science, [[Decision Theory|Decision Theory]]
|
||||
- **Modern Tech/Tools**: Notion/Obsidian (Building personal Knowledge Base), Brainstorming frameworks ([[MECE|MECE]]), Chain-of-Thought (CoT) prompting.
|
||||
---
|
||||
### 매 응용
|
||||
1. Domain-Driven Design — 매 ubiquitous language ⇔ thought architecture.
|
||||
2. Hexagonal — 매 core thought 는 안쪽, 매 details 는 바깥.
|
||||
3. C4 model — 매 thought 의 zoom levels.
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
## 💻 패턴
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
### Concept-to-Module 매핑
|
||||
```typescript
|
||||
// 매 도메인 concept "Order" → module
|
||||
// src/domain/order/
|
||||
// order.ts // 매 entity (invariants 의 집)
|
||||
// order-events.ts // 매 state transitions
|
||||
// order-policy.ts // 매 business rules
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
export class Order {
|
||||
private constructor(
|
||||
readonly id: OrderId,
|
||||
private state: OrderState,
|
||||
private items: LineItem[],
|
||||
) {}
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
static create(items: LineItem[]): Order {
|
||||
if (items.length === 0) throw new Error('Empty order');
|
||||
return new Order(OrderId.new(), 'pending', items);
|
||||
}
|
||||
|
||||
- **정보 상태:** needs_review
|
||||
- **출처 신뢰도:** A
|
||||
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
|
||||
|
||||
## 🧬 중복 검사 (Duplicate Check)
|
||||
|
||||
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
|
||||
- **처리 방식:** UPDATE (자동 정규화)
|
||||
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
|
||||
|
||||
## 🕓 변경 이력 (Changelog)
|
||||
|
||||
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|
||||
|------|-----------|-----------|--------|
|
||||
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
|
||||
|
||||
## 💻 코드 패턴 (Code Patterns)
|
||||
|
||||
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
|
||||
|
||||
```text
|
||||
# TODO
|
||||
confirm(): OrderConfirmed {
|
||||
if (this.state !== 'pending') throw new Error('Bad state');
|
||||
this.state = 'confirmed';
|
||||
return { type: 'OrderConfirmed', orderId: this.id };
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### Invariant-as-Type
|
||||
```typescript
|
||||
// 매 thought: "email 은 항상 valid 한 형식"
|
||||
// 매 architecture: type 으로 enforce
|
||||
type Email = string & { readonly __brand: 'Email' };
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
function parseEmail(raw: string): Email {
|
||||
if (!/^[^@]+@[^@]+\.[^@]+$/.test(raw)) throw new Error('Invalid');
|
||||
return raw as Email;
|
||||
}
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
// 매 downstream 은 valid email 만 받음 — invariant 가 type 에 새겨짐
|
||||
function send(to: Email, body: string) { /* ... */ }
|
||||
```
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### Change-axis-as-seam
|
||||
```typescript
|
||||
// 매 thought: "결제 provider 는 바뀔 수 있다"
|
||||
// 매 architecture: interface seam
|
||||
interface PaymentProvider {
|
||||
charge(amount: Money, token: string): Promise<ChargeResult>;
|
||||
}
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
class StripeProvider implements PaymentProvider { /* ... */ }
|
||||
class TossProvider implements PaymentProvider { /* ... */ }
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
// 매 core 는 PaymentProvider 만 알고, 매 concrete 는 wiring 시 결정
|
||||
```
|
||||
|
||||
### Trust-boundary-as-process
|
||||
```typescript
|
||||
// 매 thought: "user-supplied data 는 untrusted"
|
||||
// 매 architecture: validation gateway
|
||||
|
||||
// gateway/api.ts
|
||||
app.post('/orders', async (req, res) => {
|
||||
const dto = OrderDto.parse(req.body); // 매 zod schema — boundary
|
||||
const cmd = toCommand(dto);
|
||||
await commandBus.dispatch(cmd);
|
||||
res.json({ ok: true });
|
||||
});
|
||||
```
|
||||
|
||||
### C4-style zoom
|
||||
```text
|
||||
L1 Context: [User] → [ShopApp] → [PaymentProvider]
|
||||
L2 Container: [Web] → [API] → [DB] / [Queue] → [Worker]
|
||||
L3 Component: API = [Router] + [CommandHandler] + [Repository]
|
||||
L4 Code: Repository = class with save/find methods
|
||||
```
|
||||
|
||||
### Thought log → ADR
|
||||
```markdown
|
||||
# ADR-0042: Use event sourcing for orders
|
||||
## Context
|
||||
매 order state 는 audit trail 이 critical.
|
||||
## Decision
|
||||
매 event sourcing — state 는 events 의 fold.
|
||||
## Consequences
|
||||
- (+) 매 audit / replay 의 free.
|
||||
- (-) 매 query 는 projection 필요.
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| 매 domain 이 rich | DDD + concept-to-module |
|
||||
| 매 changes axis 명확 | Hexagonal + seams |
|
||||
| 매 communication 이 main concern | C4 + ADR |
|
||||
| 매 thought 가 아직 흐림 | Spike → throw away → rebuild |
|
||||
|
||||
**기본값**: 매 concept-to-module mapping + ADR 의 light-weight 사용.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Software_Architecture]] · [[Design_Thinking]]
|
||||
- 변형: [[Domain_Driven_Design]] · [[Hexagonal_Architecture]] · [[C4_Model]]
|
||||
- 응용: [[ADR]] · [[Ubiquitous_Language]]
|
||||
- Adjacent: [[Mental_Model]] · [[Conceptual_Integrity]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 ADR draft, 매 concept extraction, 매 module boundary 의 review.
|
||||
**언제 X**: 매 core thought 의 결정 — 매 human 의 책임. LLM 은 매 elaboration 만.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **Architecture without thought**: 매 framework 의 default 만 따라가기.
|
||||
- **Thought without architecture**: 매 brilliant idea 가 매 code 에 reflect 되지 않음.
|
||||
- **Premature crystallization**: 매 thought 가 흐릴 때 매 architecture 를 fix.
|
||||
- **Over-abstraction**: 매 thought 보다 더 많은 layer.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Brooks "Mythical Man-Month" — conceptual integrity, Evans DDD, Simon Brown C4).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — full content with thought-to-architecture mapping patterns |
|
||||
|
||||
Reference in New Issue
Block a user