You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complete the product integration and production hardening of Runtime Host as the single long-lived authority for one State Root and its Runtime work.
Local IPC and authenticated WebSocket Clients use the same Host state, operation routing, execution authority, recovery, and shutdown lifecycle. Desktop may connect to multiple independent Hosts as a Client-side composition; CLI and TUI continue to use one selected Host per process.
Stable architecture belongs in the Runtime Host architecture guide. This issue tracks remaining product and operational work rather than duplicating protocol or TypeScript designs.
Stable constraints
One State Root has at most one writer Host.
Local IPC and WebSocket are transport adapters for the same Kernel, Composition, Domain Modules, and canonical Stores.
Root ID identifies the durable Host State Root. A profile identifies one immutable way to connect to it.
Host-owned identifiers are scoped to one State Root. A Client that aggregates Hosts must retain Host identity on every resource reference.
A remote target connects only; it never joins local discovery, election, candidate spawning, or fallback.
Runtime Host is the only authority that resolves a workspace target to a Host path. Remote Clients select Host Projects and never reinterpret Client-local paths as Host paths.
Reconnect restores canonical observation. It never blindly replays commands whose outcome may be unknown.
TLS, SSH, and explicitly acknowledged plaintext are distinct connection methods. No method silently downgrades to another.
Multi-Host Desktop remains a Client-side composition. It does not create a federated Host, cross-Host durable database, or second execution authority.
Delivered foundation
Local standalone service, common transport/listener boundaries, and explicit ephemeral/service lifecycle (#2583)
Host-owned Project Catalog and canonical workspace authority through the closed project/host-path target model (#2603, #2642)
Stable Client identity, capability registration/rebind, reconnect, catch-up, and no generic command replay (#2608, #2618)
Trusted unattended capability-provider service with path-free offers by default and explicit Host-cwd access (#2625)
Durable Host ownership boundaries and current architecture documentation (#2613, #2683)
Desktop stream recovery and safe local Host upgrade handoff (#2630, #2633, #2654)
Shared, Client-owned Host profiles for Desktop, CLI, and TUI, with exact-target credential binding, pinned root identity, zero-configuration Local startup, and no automatic transport fallback (#2834)
In-process Desktop target switching and Host-owned remote Project selection, without treating remote paths as Client-local paths (#2834)
Same-target reconnect preserves Client-owned drafts, attachments, quotes, and selection while stale candidate results are fenced and Host projections are refreshed (#2901)
Desktop Host identity and target-generation fencing across IPC, events, observations, diagnostics, and Client-local resources (#2935)
Guided Direct TLS onboarding, machine-readable service readiness, Host-local Project management, least-privilege Client access presets, and shared Desktop/CLI/TUI remote Profiles (#2911)
System SSH tunneling and explicitly acknowledged plaintext transport for Desktop, TUI, and CLI (#2925)
The current Desktop can onboard remote Hosts over Direct TLS, system SSH, or explicitly acknowledged plaintext without restarting, and can keep Local and enabled remote Hosts connected concurrently. Existing Sessions remain bound to their owning Host, new-task composition can select or register a Project on any ready Host, and Host-owned Settings can target an explicit Host without changing the default Host. Remote registration uses constrained Host-published directory roots and does not expose file contents or a general remote filesystem browser. Windows Local IPC now establishes and verifies a current-user/SYSTEM trust boundary before granting Local Owner authority. The production-hardening closure is complete.
Remaining work
1. Remote onboarding and connection methods
Add guided direct-TLS onboarding with endpoint validation, root verification, credential replacement, and actionable unavailable/incompatible states (#2911).
Add a system-SSH tunnel connection method. Desktop provides a bounded interactive terminal for host-key, password, passphrase, or MFA prompts; TUI may interact before taking over the terminal; non-interactive CLI fails promptly with actionable guidance (#2925).
Add explicit plaintext support only when both Host and Client opt in and the Client stores a durable insecure-transport acknowledgement. Never add automatic downgrade or certificate-verification bypass (#2925).
Add machine-readable service readiness output and versioned least-privilege Client access presets so an operator can prepare a Host without reading internal protocol details (#2911).
Keep credentials in the platform credential store or environment input; never place them in profile documents, command-line arguments, logs, or onboarding output (#2911).
2. Multi-Host Desktop
Replace the single active-target owner with independent per-Host connection entries. Changing the default Host for new work does not disconnect another Host or move an existing Session (#3097).
Carry verified Host identity through Session, Project, event, observation, diagnostics, notification, and Client-local resource references so equal raw IDs from different Hosts cannot collide (#2935).
Aggregate Session summaries from enabled Hosts, show Host identity and per-Host readiness, retain bounded in-memory presentation during reconnect, and route every existing Session action back to its owning Host (#3097).
Let new-task composition select a Project from any enabled Host without changing the default Host (#3122).
Keep Host-scoped settings under an explicit Host selector instead of merging unrelated Host domains (#3131).
Let Desktop register a Project on a remote Host through a constrained Host-side directory picker without exposing a general remote filesystem browser (#3145).
Preserve one selected profile per CLI/TUI process; Desktop multi-Host presentation remains Desktop-only (#3097).
3. Windows Local IPC trust boundary
Verify the effective Windows named-pipe access boundary and enforce a current-user-equivalent ACL where platform defaults are insufficient (#3179, #3182).
Grant unrestricted local-owner authority only after that boundary is established (#3179, #3182).
Add one focused Windows integration test for unauthorized admission, including replacement pipe instances and foreign-user read, write, and duplex access (#3182).
4. Production hardening
Cover representative cross-listener journeys: two Clients observing and controlling one Session, reconnect/catch-up, root mismatch, and indeterminate command outcomes (closure audit: #3186).
Verify bounded behavior for slow consumers, queue exhaustion, malformed or oversized frames, and large streamed payloads (closure audit: #3186).
Verify credential revocation fences existing and future operations without leaking credential material (closure audit: #3186).
Verify graceful drain, forced shutdown, service restart, and capability-provider loss/rebind, including Automation waiting and recovery (closure audit: #3186).
Keep Domain behavior tests shared. Run transport conformance once per adapter and add end-to-end cases only for transport- or lifecycle-specific risk (closure audit: #3186).
Definition of done
Desktop can keep Local and remote Hosts connected concurrently, show their Sessions with explicit Host identity, and route every action to the owning Host.
CLI and TUI can select one of the same saved profiles and observe or control the same canonical Host state.
Direct TLS, system-SSH tunneling, and explicitly acknowledged plaintext have clear, non-downgrading onboarding and failure behavior.
Remote Client configuration safely preserves Host identity and credentials without exposing secrets or silently changing roots.
Remote workspace selection is Host-scoped and cannot confuse a Client path with a Host path.
Windows Local IPC has an explicit same-user trust boundary before receiving local-owner authority.
Restart, disconnect, revocation, backpressure, and shutdown converge without duplicate commands, orphaned writers, or unbounded queues.
All listeners share one protocol, one dispatcher, one execution authority, and one canonical state model.
Non-goals
Replacing Local IPC with WebSocket
Automatic Local IPC-to-WebSocket fallback or transport downgrade
A federated Host, cross-Host durable database, or cross-Host Session migration
Browser authentication in the native-Client milestone
Multi-tenant Session or Project isolation
Shared-filesystem path mapping without a concrete deployment requirement
A second bulk data plane without measured need
A second Runtime, dispatcher, writer, or recovery model
简体中文
目标
完成 Runtime Host 的产品接入与生产强化,使其成为一个 State Root 及其 Runtime 工作的唯一长生命周期 authority。
English
Goal
Complete the product integration and production hardening of Runtime Host as the single long-lived authority for one State Root and its Runtime work.
Local IPC and authenticated WebSocket Clients use the same Host state, operation routing, execution authority, recovery, and shutdown lifecycle. Desktop may connect to multiple independent Hosts as a Client-side composition; CLI and TUI continue to use one selected Host per process.
Stable architecture belongs in the Runtime Host architecture guide. This issue tracks remaining product and operational work rather than duplicating protocol or TypeScript designs.
Stable constraints
Delivered foundation
The current Desktop can onboard remote Hosts over Direct TLS, system SSH, or explicitly acknowledged plaintext without restarting, and can keep Local and enabled remote Hosts connected concurrently. Existing Sessions remain bound to their owning Host, new-task composition can select or register a Project on any ready Host, and Host-owned Settings can target an explicit Host without changing the default Host. Remote registration uses constrained Host-published directory roots and does not expose file contents or a general remote filesystem browser. Windows Local IPC now establishes and verifies a current-user/SYSTEM trust boundary before granting Local Owner authority. The production-hardening closure is complete.
Remaining work
1. Remote onboarding and connection methods
2. Multi-Host Desktop
3. Windows Local IPC trust boundary
4. Production hardening
Definition of done
Non-goals
简体中文
目标
完成 Runtime Host 的产品接入与生产强化,使其成为一个 State Root 及其 Runtime 工作的唯一长生命周期 authority。
Local IPC 与经过认证的 WebSocket Client 使用同一套 Host 状态、operation routing、execution authority、恢复和关闭生命周期。Desktop 可以通过 Client 侧组合同时连接多个独立 Host;CLI 与 TUI 仍然在每个进程中使用一个选定 Host。
稳定架构由 Runtime Host 中文架构文档 维护。本 issue 跟踪剩余产品与运维工作,不重复容易漂移的 protocol 或 TypeScript 设计。
稳定约束
已完成基础
当前 Desktop 可以在无需重启的情况下,通过 Direct TLS、system SSH 或显式确认风险的 plaintext 完成远程 Host onboarding,并同时保持 Local 与已启用 remote Host 的连接。已有 Session 始终绑定所属 Host;新任务组合可以在任意 ready Host 选择或注册 Project;Host-owned Settings 也可以显式选择目标 Host,且不改变默认 Host。远程注册只使用 Host 发布的受限目录 root,不会暴露文件内容或通用 remote filesystem browser。Windows Local IPC 现在会在授予 Local Owner authority 前建立并验证 current-user/SYSTEM 信任边界。基于实际证据的生产强化收口现已完成。
剩余工作
1. 远程 onboarding 与连接方式
2. Multi-Host Desktop
3. Windows Local IPC 信任边界
4. 生产强化
完成标准
非目标