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 폴더 제거.
7.0 KiB
7.0 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-icre-framework | ICRE Framework | 10_Wiki/Topics | verified | self |
|
none | B | 0.85 | applied |
|
2026-05-10 | pending |
|
ICRE Framework
매 한 줄
"매 incident 는 4 개의 질문에 답해야 끝난다 — 무엇이, 왜, 어떻게 고쳤고, 다시 안 일어나려면". ICRE (Issue-Cause-Resolution-Enhancement) 는 incident postmortem 을 4 개의 명시적 단계로 강제하는 프레임워크로, blameless 5-whys 와 action-item tracking 을 결합해 학습이 실제 시스템 개선으로 이어지도록 만든다.
매 핵심
매 4 단계
- Issue (문제): 사용자 관점 증상, 영향 범위, 시간선 — "무엇이 깨졌는가".
- Cause (원인): contributing factors + root cause(s) — "왜 깨졌는가" (5-Whys, fishbone, causal tree).
- Resolution (해결): 즉시 mitigate 한 액션 — "어떻게 멈췄는가".
- Enhancement (개선): 재발 방지 + 시스템 개선 액션 — "다시 안 일어나려면".
매 관련 프레임워크 비교
- 5 Whys: cause 단계의 도구. ICRE 안에서 사용.
- CAPA (Corrective + Preventive Action): 의료/제조의 Resolution + Enhancement 와 유사.
- Google SRE postmortem: timeline + lessons learned 중심, ICRE 는 4-단계 구조 강제.
- STAMP/CAST: 시스템 사고 기반 — ICRE 의 Cause 분석을 더 깊게.
매 응용
- SaaS incident postmortem (P0/P1).
- ML 모델 drift 사고 분석.
- Security incident response.
- 의료/제조 deviation report.
💻 패턴
1. ICRE 템플릿 (Markdown)
# Incident INC-2026-0420 — Checkout 5xx spike
## I — Issue
- Symptom: /checkout 5xx 12% (normal 0.05%)
- Impact: 2,400 orders 실패, 추정 매출 손실 $48k
- Detect: 14:02 UTC (PagerDuty SLO burn alert)
- Resolve: 14:31 UTC · Duration: 29min
- Severity: P1
## C — Cause
- 5-Whys:
1. 왜 5xx? → DB connection pool exhausted
2. 왜 exhausted? → 한 query 가 평균 12s 걸림
3. 왜 12s? → 새 인덱스가 deploy 되지 않은 테이블에 full scan
4. 왜 deploy 안 됐나? → migration job 이 silently fail
5. 왜 silent? → exit code 만 보고 stderr 무시
- Root cause: migration runner 의 stderr 무시
- Contributing: connection pool size monitoring 부재
## R — Resolution
- 14:18 hotfix index 생성 (manual)
- 14:25 connection pool size 50 → 200
- 14:31 5xx normalize 확인
## E — Enhancement
- [ ] AI-2611: migration runner stderr capture + alert (owner: @alice, due: 2026-05-01)
- [ ] AI-2612: connection pool saturation SLO (owner: @bob, due: 2026-05-15)
- [ ] AI-2613: chaos test for missing-index scenario (owner: @carol, due: 2026-06-01)
2. ICRE JSON schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["issue", "cause", "resolution", "enhancement"],
"properties": {
"issue": {
"type": "object",
"required": ["symptom", "impact", "detected_at", "resolved_at", "severity"]
},
"cause": {
"type": "object",
"required": ["five_whys", "root_cause", "contributing"]
},
"resolution": {
"type": "array",
"items": { "type": "object", "required": ["at", "action"] }
},
"enhancement": {
"type": "array",
"items": { "type": "object", "required": ["id", "title", "owner", "due"] }
}
}
}
3. ICRE → Jira (Python)
from jira import JIRA
def icre_to_jira(icre: dict, jira: JIRA):
parent = jira.create_issue(
project="SRE", summary=f"Postmortem: {icre['issue']['symptom']}",
issuetype={"name": "Postmortem"},
description=render_icre(icre),
)
for ai in icre["enhancement"]:
jira.create_issue(
project="SRE", summary=ai["title"],
assignee={"name": ai["owner"]},
duedate=ai["due"],
customfield_parent=parent.key,
)
4. action-item tracker (SQL)
CREATE TABLE icre_action_items (
id TEXT PRIMARY KEY,
incident_id TEXT NOT NULL,
title TEXT NOT NULL,
owner TEXT NOT NULL,
due_date DATE NOT NULL,
status TEXT CHECK (status IN ('open','in_progress','done','wontfix')),
closed_at TIMESTAMPTZ,
created_at TIMESTAMPTZ DEFAULT now()
);
-- weekly stale-AI report
SELECT incident_id, title, owner, due_date
FROM icre_action_items
WHERE status != 'done' AND due_date < CURRENT_DATE - INTERVAL '14 days';
5. blameless 언어 변환 (예시)
BAD : "Alice 가 잘못된 SQL 을 deploy 했다"
GOOD: "deploy 시점에 SQL 검증 게이트가 부재했다"
BAD : "팀이 모니터링을 안 봤다"
GOOD: "alert 가 #ops 채널에서 noise 에 묻혔다"
6. 5-Whys 자동 prompt (LLM)
prompt = f"""
Apply 5-Whys to this incident. Stop when reaching a systemic cause
(not a person, not a single line of code).
Symptom: {symptom}
Known facts:
{facts}
Output JSON: {{ "whys": [...], "root_cause": "...", "systemic": true|false }}
"""
7. Causal tree (Mermaid)
graph TD
A[5xx spike] --> B[DB pool exhausted]
B --> C[Slow query 12s]
C --> D[Missing index]
D --> E[Migration silently failed]
E --> F[Runner ignored stderr]
C --> G[N+1 in checkout endpoint]
매 결정 기준
| 상황 | Approach |
|---|---|
| P0/P1 incident | 전체 ICRE 필수, 72h 내 작성 |
| P2 | I + C + E 만 (R 은 ticket 으로) |
| Near-miss | I + C 만, E 는 선택 |
| Security incident | ICRE + IR-specific (containment, IOC) 추가 |
| ML drift | Cause 단계에 data + model + infra 3축 분리 |
기본값: P0/P1 은 72h ICRE + AI tracker 등록 + 30 일 후 follow-up review.
🔗 Graph
- 부모: SRE
- Adjacent: 5-Whys · Chaos-Engineering
🤖 LLM 활용
언제: 사실 정리에서 5-Whys 초안, 영향 추정, action item 후보 생성, 유사 incident 검색. 언제 X: 비난 표현 제거 / 윤리적 판단은 사람 — LLM 이 추정 책임자 지목 금지.
❌ 안티패턴
- Resolution 만 쓰고 끝: 재발 방지 없음 = 같은 사고 반복.
- 개인 비난: blameless 원칙 위배 — 시스템 결함으로 변환.
- Action item 미추적: 90% 가 30일 내 stale 됨.
- Root cause 1 개로 단정: contributing factors 무시 — causal tree 사용.
- 공유 안 함: 다른 팀 학습 차단 — postmortem db / wiki 필수.
🧪 검증 / 중복
- Verified (Google SRE Workbook ch. 10, PagerDuty Incident Response, ITIL 4 Problem Mgmt 2026).
- 신뢰도 B (ICRE 자체는 비공식 약어 — 4-단계 구조는 표준).
🕓 Changelog
| 날짜 | 변경 |
|---|---|
| 2026-05-08 | Phase 1 |
| 2026-05-10 | Manual cleanup — ICRE template + JSON schema + tracker SQL |