C.W.K.
Stream
Lesson 02 of 05 · published

Memory Architecture: Episodic, Semantic, Procedural

~34 min · memory, rag, structured-state

Level 0Observer
0 XP0/40 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

Memory는 한 통이 아니야

Agent는 서로 다른 memory class가 필요해. 서로 다른 fact는 서로 다른 방식으로 실패하거든. user preference, 실패한 deploy attempt, vector-retrieved article, workflow recipe를 같은 shape에 넣으면 나중에 망한다.

쓸모 있는 분리

  • Working memory: current run state, plan, scratchpad, open questions.
  • Episodic memory: prior run에서 무슨 일이 있었는지, 실패와 decision 포함.
  • Semantic memory: 안정적인 fact와 preference.
  • Procedural memory: 반복 가능한 workflow와 playbook.
  • Vector memory: 긴 note와 source chunk의 fuzzy retrieval.
  • Structured memory: staleness나 precision이 중요한 exact state.

source와 freshness는 필수야

source, timestamp, confidence, invalidation rule 없는 memory는 예의 바른 미래 hallucination이야. vector search는 특히 위험하다. 오래된 memory가 semantic하게 너무 잘 맞아 보일 수 있거든.

Code

Memory record contract·json
{
  "id": "mem_2026_05_03_001",
  "type": "episodic",
  "subject": "agent-quest-remake",
  "content": "The first remake compressed the original too aggressively.",
  "source": "cwk-site git audit",
  "created_at": "2026-05-03T07:45:00Z",
  "confidence": 0.96,
  "expires_at": null,
  "invalidates_when": "Agent Quest is rebuilt from legacy inventory"
}
Hybrid retrieval policy·text
Need exact current status?        SQL / key-value / file pointer
Need fuzzy prior context?        vector search + source check
Need repeatable procedure?       markdown playbook
Need active run coordination?    scratchpad / run state
Need auditability?               append-only event log

External links

Exercise

실제 project memory 열 개를 working, episodic, semantic, procedural, vector, structured storage로 분류해봐. source와 freshness rule도 포함해.
Hint
틀린 stale memory가 사고를 만들 수 있으면 vector chunk 하나로만 저장하지 마.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.