Memory Boundary
Memory boundary는 agent가 task를 넘어서 무엇을 저장, recall, reuse할 수 있는지 정의합니다. 유용한 long-term context가 stale assumption, privacy leak, task drift의 원인이 되지 않도록 막는 역할입니다.
Memory는 아래처럼 나눌 수 있습니다.
여기서 working memory는 task-local이고, durable memory는 session을 넘어 persist되며, external memory는 file, doc, database, search에서 retrieve되는 정보입니다.
Boundary Questions
- 무엇을 persist해도 안전한가?
- 무엇은 task-local로 남아야 하는가?
- 무엇은 절대 저장하면 안 되는가?
- 어떤 fact는 reuse 전에 revalidation이 필요한가?
- durable memory를 update할 권한은 누구에게 있는가?
Public Wiki Rule
이 블로그의 public durable note에는 general concept, public workflow, sanitized guidance만 저장합니다. Private infrastructure detail, credential, internal task name, unpublished result, collaborator-specific information은 저장하지 않습니다.
Memory Classes
Memory를 모두 같은 신뢰도로 다루면 agent가 stale context를 현재 사실처럼 사용합니다. 저장 위치와 재검증 기준을 분리해야 합니다.
| Class | Lifetime | Example | Before reuse |
|---|---|---|---|
| Working memory | current task only | current diff, open terminal output | inspect current state again if side effects happened |
| Session memory | conversation or run | accepted plan, user preference for this task | check against newest user message |
| Durable memory | cross-session | public writing rule, project convention | verify if high-impact or time-sensitive |
| Retrieved memory | external source | paper, docs, repo file, web page | reopen source or cite exact evidence |
| Forbidden memory | should not persist | credentials, server endpoint, private user detail | do not store; redact if encountered |
The practical rule is:
즉 memory가 claim을 덮을 만큼 직접적이고 최신이어야 합니다.
Public vs Private Boundary
이 블로그는 public LLM Wiki이므로 durable public memory에 넣을 수 있는 것과 내부 operational memory를 분리합니다.
| Put in public wiki | Keep private |
|---|---|
| general AI, math, infra, agent concepts | server IPs, SSH ports, hostnames |
| sanitized command pattern | real command output with users or paths |
| public paper claim with citation | unpublished experiment result |
| generic workflow and checklist | internal task name or collaborator detail |
| project summary already safe to share | private repo, dataset, credential, token |
Public note로 승격하기 전에는 Sanitization checklist와 Wiki note quality gate를 통과해야 합니다.
Update and Deletion
Memory는 추가보다 수정과 삭제가 중요합니다. 틀린 durable memory가 남으면 이후 agent run이 반복적으로 같은 잘못을 재사용합니다.
| Event | Action |
|---|---|
| Fact becomes stale | add date, scope, or replace with current evidence |
| Public note contains private detail | remove immediately and check git/public artifact history |
| User changes preference | update only the relevant scope, not a broad global rule |
| Workflow changes | update runbook and related index pages together |
| Claim is contradicted | mark as revised or remove unsupported claim |
Stale Memory Failure
Agent는 old context를 current fact처럼 취급해서 실패할 수 있습니다.
이 식은 실제 calibrated metric이 아니라 운영 습관을 표현한 것입니다. 오래됐고 impact가 큰 memory일수록 더 강한 verification이 필요합니다.
Checks
- remembered fact가 public, current, relevant한가?
- source가 action에 충분히 authoritative한가?
- 이 fact를 저장하면 private information이 leak될 수 있는가?
- task에 durable memory가 필요한가, local note만 필요한가?
- wrong memory에 대한 deletion 또는 correction path가 있는가?
- memory의 lifetime과 reuse 조건이 note 안에서 드러나는가?