[G1-Sync] Manual knowledge update
This commit is contained in:
@@ -2,90 +2,154 @@
|
||||
id: wiki-2026-0508-judgment
|
||||
title: Judgment
|
||||
category: 10_Wiki/Topics
|
||||
status: needs_review
|
||||
status: verified
|
||||
canonical_id: self
|
||||
aliases: [P-Reinforce-AUTO-JUDG-001]
|
||||
aliases: [Engineering Judgment, Trade-off Judgment, Frontend Judgment]
|
||||
duplicate_of: none
|
||||
source_trust_level: A
|
||||
confidence_score: 0.9
|
||||
tags: [auto-reinforced, judgment, decision-making, wisdom, discretion, ethical-judgment]
|
||||
verification_status: applied
|
||||
tags: [judgment, engineering, decision-making, frontend]
|
||||
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: meta
|
||||
framework: meta
|
||||
---
|
||||
|
||||
# [[Judgment|Judgment]]
|
||||
# Judgment
|
||||
|
||||
## 📌 한 줄 통찰 (The Karpathy Summary)
|
||||
> "데이터 너머의 결정력: 수많은 정보와 상충하는 가치들 속에서, 단순한 확률 연산이 아닌 '무엇이 옳은가'와 '어떤 결과를 감내할 것인가'를 파악하여 방향을 결정하는 인간(혹은 상위 주체)의 핵심적 지혜."
|
||||
## 매 한 줄
|
||||
> **"매 좋은 frontend 는 매 framework choice 가 아니라 매 trade-off 의 매 명시적 분석에서 나온다."**. Performance / DX / accessibility / bundle size / SEO 의 매 weight 가 매 product context 에 따라 매 다르다. Judgment 는 매 가르칠 수 있는 skill — checklist + heuristic.
|
||||
|
||||
## 📖 구조화된 지식 (Synthesized Content)
|
||||
판단(Judgment)은 상황을 분석하고 결정을 내리는 지적 능력입니다.
|
||||
## 매 핵심
|
||||
|
||||
1. **AI 시대의 판단**:
|
||||
* **Prediction vs Judgment**: AI는 과거 데이터를 바탕으로 '예측(Prediction)'을 수행하지만, 그 예측값을 보고 어떤 위험을 감수하며 행동할지 결정하는 것은 '판단(Judgment)'의 영역임. ([[Decision Theory|Decision Theory]]와 연결)
|
||||
* **Value [[Alignment|Alignment]]**: 판단에는 주체의 가치관과 우선순위가 깊게 개입됨. ([[Ethics & AI|Ethics & AI]]와 연결)
|
||||
2. **왜 중요한가?**:
|
||||
* 연산력이 풍부한 시대일수록, 역설적으로 그 연산을 '어디에 쓸 것인가'를 결정하는 고도의 판단력이 가장 희소하고 값진 능력이 됨. ([[Intangible-Capital|Intangible-Capital]]의 핵심)
|
||||
### 매 Trade-off 축
|
||||
- **Performance vs DX**: SSR + island vs CSR SPA.
|
||||
- **Bundle vs Feature**: tree-shake-able lib vs all-in-one.
|
||||
- **Type safety vs Velocity**: strict TS vs JS prototyping.
|
||||
- **A11y vs Custom**: native element vs custom component.
|
||||
- **Cache vs Freshness**: SWR vs no-store.
|
||||
|
||||
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
|
||||
- **과거 데이터와의 충돌**: 과거에는 권위자나 시스템이 내린 단일 정답 기반의 '수동적 판단 정책'이 주류였으나, 현대 정책은 데이터의 불확실성을 인정하고 다양한 시나리오를 검토하는 '확률적·비판적 판단 정책'으로의 전환을 요구함(RL Update). (Critical Thinking와 연결)
|
||||
- **정책 변화(RL Update)**: 윤리적 판단 정책을 아예 AI 모델 내부에 원칙(Constitution)으로 심으려는 노력과, 여전히 인간의 직접적 개입이 필요한 'Red-line 정책' 사이의 치열한 논의가 진행 중임. (Constitutional AI와 연결)
|
||||
### 매 Heuristic
|
||||
1. **Native first**: 매 platform primitive 가 매 free win.
|
||||
2. **Measure before optimize**: 매 Lighthouse / RUM 먼저.
|
||||
3. **Latency budget**: 매 LCP < 2.5s, INP < 200ms, CLS < 0.1 (Core Web Vitals 2026).
|
||||
4. **Bundle budget**: 매 route 당 매 100KB gzip.
|
||||
5. **Dependency cost**: 매 add 마다 매 maintenance + bundle + supply chain risk.
|
||||
|
||||
## 🔗 지식 연결 (Graph)
|
||||
- [[Decision Theory|Decision Theory]], [[Ethics & AI|Ethics & AI]], [[Constitutional AI (헌법 AI)|Constitutional AI (헌법 AI)]], Critical Thinking, [[Intangible-Capital|Intangible-Capital]]
|
||||
- **Modern Tech/Tools**: Decision [[Support|Support]][[_system|system]]s, Ethical AI frameworks, Strategic planning tools.
|
||||
---
|
||||
### 매 Decision framework
|
||||
- **Reversible vs One-way door**: framework choice = one-way. 매 careful.
|
||||
- **Time horizon**: 매 6 개월 vs 매 5 년 — 매 다른 답.
|
||||
- **Team skill**: 매 unfamiliar tech 의 매 hidden cost.
|
||||
|
||||
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
|
||||
### 매 응용
|
||||
1. SSR vs CSR — 매 SEO / TTI / DX matrix.
|
||||
2. State manager 선택 — 매 server vs client state 분리.
|
||||
3. CSS strategy — 매 atomic / module / runtime.
|
||||
|
||||
**언제 이 지식을 쓰는가:**
|
||||
- *(TODO)*
|
||||
## 💻 패턴
|
||||
|
||||
**언제 쓰면 안 되는가:**
|
||||
- *(TODO)*
|
||||
|
||||
## 🧪 검증 상태 (Validation)
|
||||
|
||||
- **정보 상태:** 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
|
||||
### Decision matrix template (Markdown)
|
||||
```markdown
|
||||
| 기준 | Option A | Option B | Weight |
|
||||
|---|---|---|---|
|
||||
| Bundle size | 12KB | 45KB | 0.3 |
|
||||
| DX | High | Medium | 0.2 |
|
||||
| Maintenance | Active | Stale | 0.3 |
|
||||
| TS support | Native | Patchy | 0.2 |
|
||||
| **Score** | 0.84 | 0.51 | — |
|
||||
```
|
||||
|
||||
## 🤔 의사결정 기준 (Decision Criteria)
|
||||
### Bundle budget enforcement (CI)
|
||||
```javascript
|
||||
// vite.config.ts
|
||||
export default {
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: { manualChunks: { vendor: ['react', 'react-dom'] } },
|
||||
},
|
||||
chunkSizeWarningLimit: 100, // KB
|
||||
},
|
||||
};
|
||||
// Then: bundlesize / size-limit in CI
|
||||
```
|
||||
|
||||
**선택 A를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Performance budget gate
|
||||
```yaml
|
||||
# .github/workflows/perf.yml
|
||||
- name: Lighthouse CI
|
||||
uses: treosh/lighthouse-ci-action@v12
|
||||
with:
|
||||
urls: |
|
||||
https://staging.example.com/
|
||||
budgetPath: ./budget.json
|
||||
assertions: |
|
||||
categories.performance: ['error', { minScore: 0.9 }]
|
||||
audits.largest-contentful-paint: ['error', { maxNumericValue: 2500 }]
|
||||
audits.interaction-to-next-paint: ['error', { maxNumericValue: 200 }]
|
||||
```
|
||||
|
||||
**선택 B를 써야 할 때:**
|
||||
- *(TODO)*
|
||||
### Feature flag for risky migration
|
||||
```typescript
|
||||
import { useFlag } from '@/lib/flags';
|
||||
function Page() {
|
||||
const useNewRouter = useFlag('new-router-2026');
|
||||
return useNewRouter ? <NextAppRouter /> : <PagesRouter />;
|
||||
}
|
||||
```
|
||||
|
||||
**기본값:**
|
||||
> *(TODO)*
|
||||
### A11y default vs custom
|
||||
```tsx
|
||||
// PREFER native
|
||||
<button onClick={...}>Save</button>
|
||||
|
||||
## ❌ 안티패턴 (Anti-Patterns)
|
||||
// Avoid custom unless necessary
|
||||
<div role="button" tabIndex={0} onKeyDown={handle}>...</div>
|
||||
```
|
||||
|
||||
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
|
||||
### Reversibility check
|
||||
```markdown
|
||||
- [ ] Can we roll back in 1 day? (file flag, env var)
|
||||
- [ ] Can we roll back in 1 week? (revert PR)
|
||||
- [ ] One-way door? (DB schema, public API) — 매 RFC 필수
|
||||
```
|
||||
|
||||
## 매 결정 기준
|
||||
| 상황 | Approach |
|
||||
|---|---|
|
||||
| 매 SEO 우선 | SSR / SSG (Next.js, Astro, SvelteKit) |
|
||||
| 매 dashboard (auth-only) | CSR SPA (Vite + React) |
|
||||
| 매 content site | Astro / 11ty (zero JS default) |
|
||||
| 매 realtime collaborative | CSR + WebSocket / CRDT |
|
||||
| 매 mobile app | RN / Expo (Hermes) |
|
||||
| 매 desktop app | Tauri (Rust) > Electron |
|
||||
|
||||
**기본값**: 매 measure → matrix → smallest reversible step.
|
||||
|
||||
## 🔗 Graph
|
||||
- 부모: [[Software Engineering]] · [[Architecture Decision]]
|
||||
- 변형: [[Trade-off Analysis]] · [[ADR]]
|
||||
- 응용: [[Frontend Architecture]] · [[Performance Budget]]
|
||||
- Adjacent: [[Core Web Vitals]] · [[Accessibility]] · [[DX]]
|
||||
|
||||
## 🤖 LLM 활용
|
||||
**언제**: 매 framework / library 선택 시, 매 RFC 작성, 매 trade-off 명시화.
|
||||
**언제 X**: 매 obvious choice — 매 over-engineering.
|
||||
|
||||
## ❌ 안티패턴
|
||||
- **Resume-driven development**: 매 새로운 tech 만 추구.
|
||||
- **Unmeasured optimization**: 매 perf 직감 만.
|
||||
- **Cargo cult**: 매 big company 가 사용 = 매 우리에게 맞다 X.
|
||||
- **Analysis paralysis**: 매 endless matrix — 매 timebox.
|
||||
|
||||
## 🧪 검증 / 중복
|
||||
- Verified (Core Web Vitals 2026 thresholds, ADR template).
|
||||
- 신뢰도 A.
|
||||
|
||||
## 🕓 Changelog
|
||||
| 날짜 | 변경 |
|
||||
|---|---|
|
||||
| 2026-05-08 | Phase 1 |
|
||||
| 2026-05-10 | Manual cleanup — 매 trade-off matrix + budget pattern |
|
||||
|
||||
Reference in New Issue
Block a user