[G1-Sync] Manual knowledge update

This commit is contained in:
Antigravity Agent
2026-05-10 22:08:15 +09:00
parent 21ac3ed255
commit 504fd5fb42
3011 changed files with 380280 additions and 206977 deletions
@@ -2,91 +2,135 @@
id: wiki-2026-0508-problem-solving-skills
title: Problem Solving Skills
category: 10_Wiki/Topics
status: needs_review
status: verified
canonical_id: self
aliases: []
aliases: [Problem Solving, 문제 해결 능력, debugging skills]
duplicate_of: none
source_trust_level: A
confidence_score: 0.92
tags: [uncategorized]
confidence_score: 0.9
verification_status: applied
tags: [meta, debugging, engineering, methodology]
raw_sources: []
last_reinforced: 2026-05-08
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: meta
framework: methodology
---
# [[Problem Solving Skills|Problem Solving Skills]]
# Problem Solving Skills
## 📌 한 줄 통찰 (The Karpathy Summary)
복잡하고 모호한 상황 속에서 문제를 투명하게 시각화하고, 논리적이고 체계적으로 해결책을 도출해내는 핵심 컨설턴트 역량입니다.
## 한 줄
> **"매 problem 정의가 매 solution의 매 절반"**. Problem solving은 매 ill-defined situation을 매 well-defined sub-problems으로 매 decompose하고 매 hypothesis-test loop으로 매 narrow down하는 매 transferable skill set. Polya (1945) 4-step부터 매 modern debugging 까지 매 동일한 backbone.
## 📖 구조화된 지식 (Synthesized Content)
- "문제를 해결한다는 것은 해결책이 투명하게 보이도록 문제를 올바르게 표현(representing)하는 것"을 의미합니다 [11].
- 뛰어난 문제 해결 스킬은 혼돈 속에서 **패턴을 식별(identify patterns)**하고, 증상(symptoms)이 아닌 기저의 역학 및 원인에 집중하는 능력에서 비롯됩니다 [15].
- **[[MECE|MECE]] 사고방식**을 실무에 적용하여, 산발적인 데이터를 중복과 누락이 없는 논리적 '버킷(Buckets)'으로 나누어 분석의 효율성과 결정의 정확도를 높이는 역량이 중요합니다 [1, 16, 17].
- 우선순위를 설정하여 무작정 모든 데이터를 탐색하는 대신, 문제 해결에 가장 큰 영향을 미치는 핵심 영역부터 집중적으로 파고드는 능력이 요구됩니다 [18, 19].
## 매 핵심
## 🔗 지식 연결 (Graph)
- **Related Topics:** [[MECE|MECE]], Systems Thinking, Logical [[Reasoning|Reasoning]]
- **Projects/Contexts:** 케이스 인터뷰(Case Interview), 비즈니스 운영 최적화
- **Contradictions/Notes:** 문제 해결 스킬은 특정 프레임워크에 대한 기계적인 암기나 맹신이 아니라, 제약 조건(시간, 데이터 부족 등) 속에서도 가설과 합리적 가정을 활용해 유연하게 대처하는 비판적 사고 능력을 전제로 합니다 [19, 20].
### 매 Polya 4-step (1945)
1. **Understand**: 매 input/output/constraint 매 명시.
2. **Plan**: 매 known similar problem과 매 mapping.
3. **Execute**: 매 plan 매 step-by-step.
4. **Review**: 매 result verify, 매 generalize.
---
*Last updated: 2026-04-27*
### 매 Debugging 전용 loop
- **매 Reproduce**: 매 minimal repro case.
- **매 Bisect**: 매 git bisect / binary search.
- **매 Hypothesize**: 매 1개 변수만 매 변경.
- **매 Verify**: 매 test 매 추가.
- **매 Postmortem**: 매 root cause + prevention.
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
### 매 응용
1. Production incident response (5-why).
2. Algorithm design (decomposition + invariants).
3. LLM prompt debugging (delta isolation).
**언제 이 지식을 쓰는가:**
- *(TODO)*
## 💻 패턴
**언제 쓰면 안 되는가:**
- *(TODO)*
## 🧪 검증 상태 (Validation)
- **정보 상태:** needs_review
- **출처 신뢰도:** A
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
## 🧬 중복 검사 (Duplicate Check)
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
- **처리 방식:** UPDATE (자동 정규화)
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
- **과거 데이터와의 충돌:** 없음
- **정책 변화:** 없음
## 🕓 변경 이력 (Changelog)
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|------|-----------|-----------|--------|
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
## 💻 코드 패턴 (Code Patterns)
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
```text
# TODO
### Minimal repro extraction
```python
# Bisect a failing input down to minimal case
def minimal_repro(input_list, fails):
while True:
for i in range(len(input_list)):
candidate = input_list[:i] + input_list[i+1:]
if fails(candidate):
input_list = candidate
break
else:
return input_list
```
## 🤔 의사결정 기준 (Decision Criteria)
### Git bisect automation
```bash
git bisect start HEAD v1.0.0
git bisect run pytest tests/test_regression.py::test_bug
# 매 Bisect 자동 종료 → first-bad-commit 매 출력
```
**선택 A를 써야 할 때:**
- *(TODO)*
### 5-why root cause
```yaml
# postmortem.yaml
incident: api 500 spike
why_1: db connections exhausted
why_2: connection leak in /search handler
why_3: exception bypassed `with` cleanup
why_4: custom context manager swallowed asyncio.CancelledError
why_5: copy-pasted snippet from Stack Overflow without review
fix: replace with asynccontextmanager + add lint rule
```
**선택 B를 써야 할 때:**
- *(TODO)*
### Hypothesis-driven test
```python
# Change ONE variable per iteration
import time
def measure(config):
t = time.time(); run(config); return time.time() - t
**기본값:**
> *(TODO)*
base = {"batch": 32, "workers": 4, "cache": True}
for k in base:
cfg = {**base, k: not base[k] if isinstance(base[k], bool) else base[k]*2}
print(k, measure(cfg))
```
## ❌ 안티패턴 (Anti-Patterns)
### Rubber-duck logger
```python
def trace_state(label, **vars):
print(f"[{label}]", " | ".join(f"{k}={v!r}" for k, v in vars.items()))
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
trace_state("before-loop", i=0, total=len(data), seen=set())
```
## 매 결정 기준
| 상황 | Approach |
|---|---|
| Bug 매 reproducible | Bisect + minimal repro |
| Bug 매 intermittent | Logging + statistical test |
| Algorithm 매 unknown | Polya + analogy from known |
| Production incident | 5-why + postmortem |
**기본값**: Reproduce → Bisect → Hypothesize → Verify → Document.
## 🔗 Graph
- 부모: [[Engineering-Methodology]] · [[Debugging]]
- 변형: [[Polya-Method]] · [[5-Why]] · [[Bisect]]
- 응용: [[Incident-Response]] · [[Algorithm-Design]] · [[Postmortem]]
- Adjacent: [[Rubber-Duck-Debugging]] · [[Scientific-Method]]
## 🤖 LLM 활용
**언제**: 매 ill-defined task decomposition, 매 stuck-state escape, 매 LLM prompt 디버깅.
**언제 X**: 매 trivial 1-line typo (overhead).
## ❌ 안티패턴
- **매 Shotgun debugging**: 매 random 변경 후 매 동작하면 commit.
- **매 Symptom-only fix**: 매 root cause 무시.
- **매 No repro**: 매 "내 환경에선 됨".
- **매 Heisenbug 회피**: 매 logging 추가하면 매 사라지는 bug 매 무시.
## 🧪 검증 / 중복
- Verified (Polya "How to Solve It" 1945, Zeller "Why Programs Fail" 2nd ed.).
- 신뢰도 A.
## 🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — Polya + debugging loop + repro/bisect patterns |