Skip to content

feat(runtime-host): add interactive session actions - #2023

Merged
M4n5ter merged 1 commit into
mainfrom
feat/runtime-host-interactive-session-actions
Aug 3, 2026
Merged

feat(runtime-host): add interactive session actions#2023
M4n5ter merged 1 commit into
mainfrom
feat/runtime-host-interactive-session-actions

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Aug 3, 2026

Copy link
Copy Markdown
Member
English

Summary

  • Add the v0 turn.regenerate, context.diagnostics.query, context.compact, and session.cwd.relocate Runtime Host operations with matching Client wrappers.
  • Make regeneration replay the immutable source content and lineage through one durable Root Turn identity, including exact retry and startup recovery.
  • Run manual context compaction as an explicit Host-owned root with durable admission, positive Run identity, query/stop/retry/recovery support, and honest backend capability preflight.
  • Route workspace relocation through Runtime's revision and quiescence authority, including same-path requests, so active runs, archived Sessions, and managed child resources remain fenced.

Why

Interactive Clients need authoritative Session actions without bypassing Runtime lifecycle, recovery, or multi-Client coordination. These operations reuse the existing Root Turn and Session mutation boundaries instead of introducing a parallel execution path.

Validation

  • npm run build
  • npm --workspace @maka/runtime-host run test:dist — 604 passed
  • Runtime and AiSdk compaction tests — 53 passed
  • npm --workspace @maka/core run test:dist — 752 passed
  • Focused Storage admission tests
  • npm run format:check
  • npm run lint
  • npm run typecheck
  • git diff --check

Part of #1167. Runtime Host roadmap context: #853.

中文

概要

  • 新增 v0 turn.regeneratecontext.diagnostics.querycontext.compactsession.cwd.relocate Runtime Host 操作,并提供对应的 Client 封装。
  • 让重新生成通过单一持久 Root Turn 身份重放不可变的源内容与 lineage,并支持精确重试和启动恢复。
  • 将手动上下文压缩作为显式的 Host-owned root 执行,具备持久 admission、正向 Run 身份、查询、停止、重试、恢复与真实的 backend 能力预检。
  • 让工作目录迁移统一经过 Runtime 的 revision 与 quiescence authority;即使路径未变化,也会正确约束 active run、已归档 Session 与受管 child resource。

原因

交互式 Client 需要权威的 Session 操作,同时不能绕过 Runtime 生命周期、恢复机制或多 Client 协调。这些操作复用现有 Root Turn 与 Session mutation 边界,不引入平行执行路径。

验证

  • npm run build
  • npm --workspace @maka/runtime-host run test:dist — 604 项通过
  • Runtime 与 AiSdk compaction 测试 — 53 项通过
  • npm --workspace @maka/core run test:dist — 752 项通过
  • Storage admission 聚焦测试
  • npm run format:check
  • npm run lint
  • npm run typecheck
  • git diff --check

属于 #1167 的一部分;Runtime Host 路线图背景见 #853

@M4n5ter
M4n5ter marked this pull request as ready for review August 3, 2026 14:05
@M4n5ter
M4n5ter merged commit 06eedba into main Aug 3, 2026
8 of 10 checks passed
@M4n5ter
M4n5ter deleted the feat/runtime-host-interactive-session-actions branch August 3, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant