[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
@@ -1,99 +1,35 @@
---
id: wiki-2026-0508-런타임-상태-검증-runtime-validation
title: 런타임 상태 검증(Runtime Validation)
category: Redirect
status: merged
canonical_id: self
aliases: [P-Reinforce-REDIRECT-RV-002]
duplicate_of: Runtime_Validation
category: 10_Wiki/Topics
status: duplicate
canonical_id: runtime-validation
duplicate_of: "[[Runtime Validation]]"
aliases: []
source_trust_level: A
confidence_score: 0.92
tags: [uncategorized]
raw_sources: []
last_reinforced: 2026-05-08
confidence_score: 0.9
verification_status: redirected
tags: [duplicate, frontend, validation, typescript]
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
---
# [[런타임 상태 검증 (Runtime Validation)]]
# 런타임 상태 검증(Runtime Validation)
> [!NOTE]
> 본 문서는 **[[Runtime_Validation]]**으로 통합되었습니다. 🫡🐟
## 📌 한 줄 통찰 (The Karpathy Summary)
> **이 문서는 [[Runtime Validation]] 의 중복본입니다.** Canonical 문서로 redirect.
> 프런트엔드 런타임 상태 검증은 API 응답·로컬 스토리지·URL 파라미터 등 신뢰할 수 없는 입력을 도메인 모델로 변환하기 전에 검사하는 패턴이다.
## 핵심 요약 (specialization aspects)
- 매 TypeScript 컴파일 타임 type 매 runtime 에서 사라짐 — 매 외부 데이터 (API, localStorage, URL params) 매 검증 필요.
- 매 2026 ecosystem: Zod 4, Valibot, ArkType, Effect Schema, TypeBox.
- 매 Zod = de facto standard (가장 큰 ecosystem, tRPC/React Hook Form 통합).
## 📖 구조화된 지식 (Synthesized Content)
## 🔗 Graph
- 부모: [[Runtime Validation]] (canonical)
- 변형: [[Zod Schemas]] · [[Valibot]] · [[ArkType]]
- Adjacent: [[Type Guards]] · [[unknown vs any]]
**추출된 패턴:** 백엔드 응답을 "신뢰 가능"으로 가정하면 안 됨 — 버전 변경·네트워크 손상·악성 입력으로 깨질 수 있음.
**세부 내용:**
- API 응답: Zod parse → 타입 안전 + 에러 격리.
- localStorage: JSON.parse 후 검증.
- URL 쿼리: 스키마 기반 파싱.
- 경계 위치 일관성 (한 곳에서만 변환).
- 검증 실패 = 도메인 에러로 정상 흐름 통합.
## 🤖 LLM 활용 힌트 (How to Use This Knowledge)
**언제 이 지식을 쓰는가:**
- *(TODO)*
**언제 쓰면 안 되는가:**
- *(TODO)*
## 🧪 검증 상태 (Validation)
- **정보 상태:** merged
- **출처 신뢰도:** A
- **검토 이유:** *(P-Reinforce Phase 1 자동 정규화. 본문 검증 필요.)*
## 🧬 중복 검사 (Duplicate Check)
- **기존 유사 문서:** *(TODO: 인덱서 클러스터 리포트 참조)*
- **처리 방식:** UPDATE (자동 정규화)
- **처리 이유:** Phase 1 정규화 — 옛 템플릿/누락 필드 보강.
## ⚠️ 모순 및 업데이트 (Contradictions & Updates)
- **과거 데이터와의 충돌:** 없음
- **정책 변화:** 없음
## 🔗 지식 연결 (Graph)
- **Parent:** [[10_Wiki/Topics]]
- **Related:** *(TODO: 최소 2개)*
- **Opposite / Trade-off:** *(TODO)*
- **Raw Source:** 직접 입력
## 🕓 변경 이력 (Changelog)
| 날짜 | 변경 내용 | 처리 방식 | 신뢰도 |
|------|-----------|-----------|--------|
| 2026-05-08 | P-Reinforce Phase 1 정규화 (frontmatter + 헤더 표준화) | UPDATE | A |
## 💻 코드 패턴 (Code Patterns)
**패턴 1:** *(TODO: 이 프로젝트 컨벤션 반영한 구조 스켈레톤)*
```text
# TODO
```
## 🤔 의사결정 기준 (Decision Criteria)
**선택 A를 써야 할 때:**
- *(TODO)*
**선택 B를 써야 할 때:**
- *(TODO)*
**기본값:**
> *(TODO)*
## ❌ 안티패턴 (Anti-Patterns)
- **[안티패턴]:** *(TODO: 무엇을 하면 안 되는가 + 이유 + 대신 무엇을)*
## 🕓 변경 이력
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | 중복 처리 — canonical 문서로 redirect |