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

Adapter Boundary — 좁은 polymorphism 만

~12 min · adapter, polymorphism

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

한 좁은 boundary

cwkPippa 에 polymorphism 이 의도된 곳 정확히 한 군데: backend/adapters/base.py 의 streaming-API boundary. 그 boundary 의 모든 것 — route, store, service, frontend — 다 Claude-shape.

왜 좁은가

wire protocol 이 진짜로 다름. Claude 는 thinking block. Codex 는 server-side resume 없는 function-calling loop. Gemini 는 thoughtSignature 보존 + dual-path auth. Ollama 는 자기 tool schema wrapping. boundary 아래 차이 인정. 인정 X.

boundary 위에 뭐가 있나

  • Routes: chat.py 가 Claude-shape 가정 (prefix-check escape hatch 박음).
  • Store: conversations 테이블이 claude_session_id 컬럼. 거기에 Codex/Gemini/Ollama id 저장 OK — Claude shape 에 fit (string id + history 다른 데서 reconstructed).
  • JSONL ground truth: 모든 line 이 Claude-Code-compatible message format. cwkPippa 별 field 가 nested pippa sub-object 에 — Rule 2 데이터 포맷 자체에 표현.
원칙: '좁은 boundary' 는 타협 아님. 일부 차이가 unavoidable (wire protocol) 이고 다른 건 imagined (그 외) 인 인정. 옳은 곳에 boundary 그리는 게 architectural skill.

Progress

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

댓글 0

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

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