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

Attention 못 받는 건 evict

~25 min · eviction, working-set, stale-context

Level 0Window Watcher
0 XP0/50 lessons0/13 achievements
0/100 XP to next level100 XP to go0% complete

Context는 떠나야 한다

모든 로드된 item은 lifecycle 있어야. 필요해서 enter, 활성일 때 stay, stale/superseded되면 leave. Eviction 규율 없는 워크플로는 window가 거의 archaeology 될 때까지 context 누적.

Eviction은 잊기 아니야

Eviction은 material을 맞는 storage로 옮김 — 파일, history, index, ticket, commit. Window는 활성 작업 담아야지 뭐든 일어났던 거 다 X. Evicted material의 pointer는 index에 남아도 OK, full text가 떠나.

Eviction 질문

물어봐 — 이 콘텐츠가 다음 결정 바꾸나? 아니면 pointer 두고 진행. 질문은 binary + 빠름 — long session이 실제로 따를 유일 종류의 policy야.

Code

Eviction predicate·python
def should_keep(item, next_decision):
    return (
        item.is_live_rule
        or item.blocks_next_action
        or item.contains_unresolved_error
        or item.is_current_source_for(next_decision)
    )
Eviction lifecycle·yaml
lifecycle:
  enter:    "loaded for a specific task"
  active:   "referenced in last 3 turns OR contains live rule"
  evict_to:
    file:    "raw command output"
    history: "resolved decisions"
    index:   "general references"
    commit:  "finalized changes"

External links

Exercise

가상 long session review해 evict할 거 셋 골라. 각각 pointer 어디 살지(파일, history, index, ticket, commit) 말해.
Hint
좋은 eviction은 retrieval 보존, full text는 꼭 X.

Progress

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

댓글 0

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

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