Soft TTD: in-process Replay 샌드박스 (call tape)

비결정적 에이전트/확장 런타임을 VM 힙 롤백 없이 재현할 때, 호출 테이프(record) → replay/inject/hotReboot을 동일 프로세스에서 돌리는 soft Time-Travel Debugging 패턴.

핵심 축

축권장비목표(후속)
Runner hostingin-process IsolatedRunnerworker/VM heap rollback
Recordcall tape + checkpoint cache전체 힙 스냅샷
Controlsreplay(entry, break) · inject · hotReboot → last checkpointcloud Mirror / ChangeScore
Sanitizeshallow: maxDepth≤3, namePatterns + AST-sensitive → [REDACTED]; deeper → [MAX_DEPTH]; leaf stringify깊은 그래프 완전 마스킹
Living Specsidecar frontmatter scenarioId ↔ 테스트 1:1; unknown id throw(orphan 테스트 금지)외부 Graphify

Host 배선 (개념)

  • Time Bar scrub → timeline.onChangeEnd
  • Hot Reboot → runner.hotReboot + timeline.cache push

검증

# 패키지 로컬 (예: extension/)
npm test          # suites cover sanitize / replay / living-spec id
npm run compile   # host tsc clean

로컬 확장 패키지만이면 테넌트 tenant_cd/QA e2e/AA 게이트는 N/A — Test-Overlay-vs-Release-Package-Deploy-Paths.md.

참고

🔗 관련 문서