레이어 스택
Agent
도메인 의미를 직접 갖지 않는 worker runtime입니다.
소유하는 것:
- session
- harness execution
- sandbox와 tools
- worker-local runtime memory
- private workspace와 learnings
- chat transcript truth
- business commitment
- operator-facing evidence meaning
Chat
shared office이자 durable coordination fabric입니다.
소유하는 것:
- room, DM, group DM, thread
- participant binding과 access rule
- append-only transcript truth
- unread, mention, inbox, transcript projection
- generic agent execution internals
- work commitment semantics
- observe evidence semantics
Work
chat 위의 business execution layer입니다.
소유하는 것:
- explicit business commitment
- owner와 participant assignment
- blocker, approval, result, execution state semantics
- chat lineage를 durable business execution object로 올리는 publication
Observe
work와 execution 위의 governance and evidence layer입니다.
소유하는 것:
- execution ref와 session linkage
- operator-facing evidence stitching
- blocked, degraded, risk visibility
- audit-friendly execution explanation
현재 코드 현실
현재 저장소는 네 레이어가 모두 같은 성숙도로 구현되어 있지는 않습니다. 지금 실제 성숙도는 다음과 같습니다.Agentsrc/agents/아래에 session-first runtime이 실질적으로 구현됨
Chatsrc/chat/아래에 shared backend truth와 projection이 실질적으로 구현됨
Work- mostly
shared model + shell scaffolding
- mostly
Observe- mostly
shared model + shell scaffolding
- mostly
현재 안정적인 코드 레이아웃
저장소 매핑
src/agents/
Agent 레이어에 해당합니다.
핵심 runtime object:
AgentDefinitionEnvironmentSessionSessionEventwake(sessionId)HarnessSandboxToolDefinition
src/chat/core/
chat truth를 소유합니다.
- room
- DM / group DM
- thread scope
- membership
- grant
- message
- reaction
- cursor
- append-only ordering
src/chat/policy/
chat-local command와 access behavior를 담당합니다.
- join / leave
- room command
- role evaluation
- grant / membership flow
- room setting / archive behavior
src/chat/projections/
chat truth 위의 rebuildable read model을 담당합니다.
- unread
- mention
- latest activity
- transcript shaping
- sidebar discovery
- DM grouping
src/shared/
cross-cutting protocol type과 shared company model을 둡니다.
현재 Work와 Observe의 초기 shape도 여기에 있습니다.
예를 들면:
TopLevelSurfaceState = "chat" | "work" | "observe"CompanyWorkSurfaceCompanyObserveSurface- execution ref, work card, observe evidence, linked chat context
src/shell/
browser / desktop adapter가 product surface를 렌더합니다.
현재 shell에는 이미 다음이 있습니다.
- chat surface rendering
- work surface rendering
- observe surface rendering
의존 방향
의도된 dependency direction은 다음과 같습니다.- shell adapter가 parallel truth를 만들면 안 됩니다
chat/core는 UI-specific behavior 아래로 내려가면 안 됩니다chat/projections가 rebuildable view를 담당합니다- agent-private journal이 자동으로 shared truth가 되면 안 됩니다
Work,Observe를 shell-only UI concept로 다시 축소하면 안 됩니다- provider backend는 harness seam 뒤에 남아야 합니다
Truth 배치
Agent-private truth
private execution evidence는 여기 있습니다.- workspace substrate file
- session event log
- runtime checkpoint / working buffer
- reusable per-agent learnings
Shared company truth
shared company truth는 append-only ledger에 있습니다.Work / Observe의 현재 상태
Work와 Observe는 이미 아키텍처 일부이지만, durable backend contract는 아직 Agent, Chat보다 덜 굳었습니다.
지금은 주로 다음 형태로 나타납니다.
src/shared/company-model.ts안의 shared company model typechat,work,observetop-level shell tabsrc/shell/web/안의 demo / frame-state scaffolding
Shell rule
shell은 domain truth의 downstream consumer입니다.Agent가 worker execution을 소유합니다Chat이 coordination truth를 소유합니다Work가 business execution meaning을 소유합니다Observe가 evidence / governance meaning을 소유합니다- shell은 projection을 렌더하고 command를 내보냅니다
성숙도 요약
현재 성숙도는 다음과 같습니다.Agent: real runtimeChat: real shared backend truthWork: early shared model plus shell scaffoldingObserve: early shared model plus shell scaffolding