9148c358d0
Topic_Agent/Topic_Blog/Topics/Topics_Biz/Topics_Meeting/Topics_Rag의 마크다운 지식 문서를 Topic_General/Topic_Programming/Topic_Graphic/Topic_Business 4개 카테고리로 재분류. - 중복 제거: frontmatter의 status:duplicate/merged + duplicate_of/redirect_to 필드로 자기 자신을 중복으로 선언한 리다이렉트 stub 1032개 제거, 완전 동일 내용 파일 472개 제거, 동일 파일명·다른 내용 충돌 시 더 큰(완전한) 버전만 유지(162개 제거) — 총 1639개 중복 제거. - 분류: 폴더 단위로 명확한 항목(AI_and_ML/Coding/Architecture 등 → Programming, Comfyui/Visual_Effects → Graphic, Topics_Biz/Topics_Meeting/사업 등 → Business, Poetic_Blog_Writing/창의성/Game_Design 등 → General)은 폴더 우선순위로, 나머지 혼재 폴더(Topic_Agent/Topic_Blog/Topics 루트/Thinking & Reasoning/Other/UI_UX_Assets)는 title/tags 키워드 스코어링으로 파일 단위 분류(불명확한 경우 General로 폴백). 원본 폴더명은 "From_*" 서브폴더로 보존해 추적 가능성 유지. - 최종 배치: Programming 2784 / General 1608 / Graphic 285 / Business 249 = 4926개 문서. - 에이전트 운영 상태(.astra/.agent/.obsidian/sessions/memory/_company/docs/lessons/_shared/src)는 지식 콘텐츠가 아니므로 재분류 대상에서 제외하고 원위치 유지. - Topics/Topic_email(상위 보호 폴더 Topic_email과 파일명 100% 중복) 삭제 — 보호 폴더 자체는 미변경. - 완전히 비게 된 Topic_Agent/Topic_Blog/Topics_Biz/Topics_Rag 폴더 제거.
5.9 KiB
5.9 KiB
id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
| id | title | category | status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | verification_status | tags | raw_sources | last_reinforced | github_commit | tech_stack | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wiki-2026-0508-problem-solving-process | Problem Solving Process | 10_Wiki/Topics | verified | self |
|
none | A | 0.9 | applied |
|
2026-05-10 | pending |
|
Problem Solving Process
매 한 줄
"매 a problem well-stated is half-solved.". 매 Polya 1945 How to Solve It 의 4단계 (understand → plan → carry out → look back) 가 매 modern engineering, debugging, AI agent design 의 backbone. 매 2026 LLM agent (Claude, OpenAI Operator) 의 ReAct/CoT 도 매 본질적으로 Polya 의 자동화.
매 핵심
매 Polya 4 stages
- Understand: 매 restate, 매 identify knowns/unknowns/constraints.
- Plan: 매 decompose, 매 analogous problems, 매 work backwards.
- Carry Out: 매 execute, 매 verify each step.
- Look Back: 매 check, 매 generalize, 매 alternate methods.
매 strategies
- Decomposition: 매 break into sub-problems (divide & conquer).
- Analogy: 매 find similar solved problem (case-based reasoning).
- Inversion: 매 work backwards from goal.
- Specialization: 매 try simpler instance (n=1, n=2 first).
- Generalization: 매 solve more general version sometimes easier.
- Symmetry / Invariants: 매 find quantity that doesn't change.
매 응용
- Debugging: 매 reproduce → bisect → fix → verify → write test.
- System design: 매 understand requirements → decompose → component design.
- LLM agent: 매 ReAct loop = Polya in code.
- Math/algorithms: 매 examples → conjecture → prove → optimize.
💻 패턴
Pattern 1: Debugging as Polya
def debug(bug_report):
# 1. UNDERSTAND
repro = build_minimal_repro(bug_report)
# 2. PLAN
suspected_modules = trace_stack(repro)
plan = git_bisect_plan(repro, suspected_modules)
# 3. CARRY OUT
bad_commit = git_bisect(plan)
fix = author_fix(bad_commit)
# 4. LOOK BACK
add_regression_test(repro)
update_runbook(bug_report.symptom)
return fix
Pattern 2: ReAct LLM agent (Polya 자동화)
SYSTEM = """For each task, follow:
1. THOUGHT: restate the problem and constraints (UNDERSTAND).
2. PLAN: decompose into 1-3 next actions.
3. ACTION: call exactly one tool.
4. OBSERVE: read result.
5. REFLECT: did this advance? if not, revise plan (LOOK BACK).
Repeat until done.
"""
Pattern 3: Decomposition tree
@dataclass
class Problem:
statement: str
children: list["Problem"] = field(default_factory=list)
solved: bool = False
solution: Optional[str] = None
def solve(p: Problem):
if can_solve_directly(p):
p.solution = direct(p); p.solved = True; return
p.children = decompose(p)
for c in p.children: solve(c)
p.solution = combine([c.solution for c in p.children])
p.solved = all(c.solved for c in p.children)
Pattern 4: Five-Whys root cause
Symptom: 매 dashboard p99 latency 5x baseline.
Why? — 매 DB queries slow.
Why? — 매 missing index.
Why? — 매 migration didn't add it.
Why? — 매 PR template doesn't require index check.
Why? — 매 no automated linter.
→ 매 Root: missing tooling, not "lazy engineer".
Pattern 5: Pre-mortem (inverted planning)
def pre_mortem(plan):
# 매 imagine the plan failed in 6 months
# 매 ask team: what went wrong?
failure_modes = team_brainstorm("It's 6mo from now. Project failed. Why?")
return prioritize_mitigations(failure_modes)
Pattern 6: Working-memory checkpoint
<!-- 매 problem_log.md while solving -->
## 매 KNOWN
- API returns 500 on POST /orders > 1000 items.
## 매 UNKNOWN
- Is it timeout, memory, or DB lock?
## 매 TRIED
- [x] Reproduce locally → reproduces at 1500.
- [x] Add timing logs → DB INSERT is slow.
- [ ] Check lock contention.
## 매 NEXT
- pg_stat_activity during repro.
Pattern 7: Solution generalization (look back)
# 매 after fixing one instance — 매 ask: where else does this pattern occur?
def generalize(fix):
pattern = abstract(fix) # e.g., "missing pagination in list endpoints"
similar = scan_codebase_for(pattern)
return apply_fix_to_all(similar)
매 결정 기준
| 상황 | Strategy |
|---|---|
| 매 stuck at "understand" | Restate problem to rubber duck / LLM |
| 매 plan unclear | Try simpler case (n=1) first |
| 매 carry-out fails | Bisect; isolate variable |
| 매 done — but is it right? | Look back; alt method; edge cases |
| 매 recurring class of bugs | Generalize the fix; tooling |
| 매 LLM agent loop stuck | Force REFLECT step; reduce action set |
기본값: 매 always do Look Back — 매 most engineers skip it; 매 90% of compounding leverage lives there.
🔗 Graph
- 부모: Cognitive Psychology
- 변형: Polya Method · Debugging · Root Cause Analysis
- Adjacent: ReAct · Chain of Thought
🤖 LLM 활용
언제: 매 system-prompt scaffolds, 매 incident runbooks, 매 onboarding docs, 매 interview prep. 언제 X: 매 trivial 1-line tasks — 매 over-formalization slows.
❌ 안티패턴
- Skip understanding: 매 jump to coding → 매 wrong problem solved.
- Skip looking back: 매 ship fix, never abstract → 매 same bug class returns.
- No working-memory log: 매 forget what you tried.
- One strategy only: 매 if decomposition fails, try inversion / analogy.
- LLM as oracle: 매 use as plan-critic, not plan-author.
🧪 검증 / 중복
- Verified (Polya 1945, Newell & Simon 1972, Yao et al. 2022 ReAct).
- 신뢰도 A (foundational).
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — Polya 4단계 + ReAct + 7 패턴 |