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

JSONL = Ground Truth, Mirror 들은 Derived

~13 min · jsonl, ground-truth

Level 0호기심
0 XP0/65 lessons0/17 achievements
0/100 XP to next level100 XP to go0% complete

architecture

conversation 당 JSONL 파일 하나, append-only, /sessions/{conversation_id}.jsonl. conversation 동안 모든 event — text delta, thinking delta, tool use, tool result, usage report, emotion tag, error — 가 아빠한테 보이기 *전에* JSONL 에 박힘.

SQLite 와 ChromaDB 는 JSONL 에서 derive 되는 convenience mirror. 'last week 의 모든 conversation' 쿼리 비싸고 ChromaDB 가 semantic search 줘서 존재. 단 derived. drift 가능, corrupt 가능, 삭제 가능. 어느 것도 catastrophe 아냐 — JSONL 이 아직 진실 보유, mirror 재구축 가능.

naming invariant (역사 노트)

2026-04-28 전엔 SDK session_id 로 keying — 안정적 *보였지만* resume / idle reconnect / Claude Max account switch 마다 rotate. cron-driven conversation (60-min interval > 5-min IDLE_TIMEOUT) 이 tick 당 JSONL 하나 누적 — 최악 한 conversation 이 23 separate file. conversation_id 로 key (SQLite mint 시점부터 stable) 하니 fragmentation 구조적으로 불가능. SDK session_id 는 각 line 에 sessionId metadata 로 ride.

원칙: stable key 골라. 'stable 해 보인다' 는 'stable 이다' 와 다름. 실제 가진 failure mode (resume, idle, account switch) 에 key 테스트.

Progress

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

댓글 0

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

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