Soft TTD: in-process Replay 샌드박스 (call tape)
비결정적 에이전트/확장 런타임을 VM 힙 롤백 없이 재현할 때, 호출 테이프(record) → replay/inject/hotReboot을 동일 프로세스에서 돌리는 soft Time-Travel Debugging 패턴.
핵심 축
| 축 | 권장 | 비목표(후속) |
|---|---|---|
| Runner hosting | in-process IsolatedRunner | worker/VM heap rollback |
| Record | call tape + checkpoint cache | 전체 힙 스냅샷 |
| Controls | replay(entry, break) · inject · hotReboot → last checkpoint | cloud Mirror / ChangeScore |
| Sanitize | shallow: maxDepth≤3, namePatterns + AST-sensitive → [REDACTED]; deeper → [MAX_DEPTH]; leaf stringify | 깊은 그래프 완전 마스킹 |
| Living Spec | sidecar frontmatter scenarioId ↔ 테스트 1:1; unknown id throw(orphan 테스트 금지) | 외부 Graphify |
Host 배선 (개념)
- Time Bar scrub →
timeline.onChangeEnd - Hot Reboot →
runner.hotReboot+timeline.cachepush
검증
# 패키지 로컬 (예: 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.