Skip to content

feat(desktop): add Runtime Host Session domain IPC - #2164

Merged
M4n5ter merged 1 commit into
mainfrom
feat/runtime-host-desktop-runtime-domains
Aug 4, 2026
Merged

M4n5ter merged 1 commit into
mainfrom
feat/runtime-host-desktop-runtime-domains

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Aug 4, 2026

Copy link
Copy Markdown
Member
English

Summary

  • Add the isolated Runtime Host-backed Desktop candidate adapters for Task Ledger, Goal, Agent Graph, Deep Research, Runtime Resources, and non-starting Plan controls.
  • Preserve the existing renderer contracts with revision-consistent pagination, conflict-aware Goal clearing, and one shared bounded Deep Research projection for embedded and hosted paths.
  • Publish mutation-driven domain changes through Session subscriptions. Runtime Resource notifications batch lightweight identities, then use true point reads so active and inherited Session views stay current without rebuilding the full resource list.
  • Keep Plan approval/resume outside the candidate until the Host owns an atomic Plan-to-Turn transition. Production continues to use the embedded Runtime until the M5 switch.
  • Advance the same-v0 compatibility epoch so Clients cannot reuse a stale Host with the previous closed schema.

Testing

  • npm test --workspace @maka/core (776 passed)
  • npm test --workspace @maka/runtime (3128 passed, 9 skipped)
  • npm test --workspace @maka/ui (317 passed)
  • npm test --workspace @maka/desktop (1656 passed)
  • Runtime Host full suite: 667 passed; the single shared-load timeout passed on isolated rerun
  • Focused Runtime Host protocol, point-read, subscription burst, UDS, and Desktop adapter tests
  • npm run format:check
  • npm run lint
  • npm run typecheck

Part of #2010.

简体中文

概要

  • 新增隔离的 Runtime Host-backed Desktop candidate adapter,覆盖 Task Ledger、Goal、Agent Graph、Deep Research、Runtime Resources,以及不会启动 Turn 的 Plan 控制。
  • 通过 revision-consistent pagination、可感知冲突的 Goal clear,以及 embedded/hosted path 共用的有界 Deep Research projection,保持现有 renderer contract。
  • 通过 Session subscription 发布由真实 mutation 驱动的 domain change。Runtime Resource notification 会批量携带轻量 identity,再使用真正的 point read,使当前 Session 与继承视图保持最新,同时避免重建完整资源列表。
  • 在 Host 拥有原子的 Plan-to-Turn transition 之前,candidate 不接管 Plan approve/resume。M5 切换前,production 仍继续使用 embedded Runtime。
  • 推进同一 v0 下的 compatibility epoch,避免 Client 复用采用旧 closed schema 的 Host。

测试

  • npm test --workspace @maka/core(776 项通过)
  • npm test --workspace @maka/runtime(3128 项通过,9 项跳过)
  • npm test --workspace @maka/ui(317 项通过)
  • npm test --workspace @maka/desktop(1656 项通过)
  • Runtime Host 全量测试:667 项通过;唯一的共享负载超时在隔离重跑时通过
  • Runtime Host protocol、point read、subscription burst、UDS 与 Desktop adapter 聚焦测试
  • npm run format:check
  • npm run lint
  • npm run typecheck

属于 #2010 的一部分。

@M4n5ter
M4n5ter marked this pull request as ready for review August 4, 2026 14:50
@M4n5ter
M4n5ter merged commit e98f7ff into main Aug 4, 2026
11 checks passed
@M4n5ter
M4n5ter deleted the feat/runtime-host-desktop-runtime-domains branch August 4, 2026 14:50
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