Repository navigation
Open
2 / 102 of 10 issues completedOpen
2 / 102 of 10 issues completed
Copy link
Description
Context
Dim should be composable across machines: a Session or branch instance lives in one kernel, while the parts that do work and the resources they need can run elsewhere. This parent tracks the implementation. The analysis is in docs/design/research/remote-plugins.md.
It serves:
- remote execution;
- remote file read and write;
- central session state (tracked separately; see Non-goals).
Model
- Instance: a Session or branch, owned by exactly one kernel. Instances do not federate.
- Leaf: a session far end that does not resolve names. The host resolves the
injectkeys and lends them. Node/Python parts already run this way; this work makes the leaf remote and adds a Rust leaf host. - Resource leaf: a leaf that owns local resources (exec, fs, OCR, MCP) and provides data services. It can be mounted from the resource machine.
- Data face: every public service is id + operations + events.
internalis an explicit exception with a reason. A service host code looks up by type (branch.service::<T>(),Key<T>) is a consumer too; a part that provides a Rust-only service is not leaf-ready. A part is leaf-able only if its injects are dispatched, it uses only dispatched methods, and it captures no non-service Rust state.
The principles (planes, seams, one owner, data faces, instance non-federation) are in the research document's "remote composition model" section.
Scope
- Link and leaf runtime: WebSocket transport, connection rows, leaf session, remote Node/Python runtimes.
- Rust leaf host for existing Rust plugins.
- Service shape policy (data by default,
internalexplicit) and the first data faces. - Resource leaf contract: external mount, identity, lifecycle.
execHostandfsHostdata services, and the consumers that use them.- An ADR recording the composition rules.
Non-goals
- Instance federation (an instance from one kernel with parts from another).
- Automatic takeover or multiple writers per Session; one Session has one owner.
- Remote Session/branch parts from a peer kernel.
- File bytes in the database.
- PostgreSQL backend: #1298.
Sub-issues
- Link: mount a rutis session over WebSocket #1290 Link: mount a rutis session over WebSocket
- Leaf runtime: run Node/Python Dim plugins on another machine #1294 Leaf runtime: run Node/Python Dim plugins on another machine
- Rust leaf host for existing Rust plugins #1293 Rust leaf host for existing Rust plugins
- Service shape policy: data by default, internal explicit #1289 Service shape policy: data by default,
internalexplicit - Shape inventory: classify every Rust-only service #1300 Shape inventory: classify every Rust-only service
- Make leaf dependencies data-facing #1292 Make leaf dependencies data-facing
- Resource leaf contract: external mount, identity, lifecycle #1296 Resource leaf contract: external mount, identity, lifecycle
- execHost: remote exec data service #1295 execHost: remote exec data service
- fsHost: remote file and search operations #1297 fsHost: remote file and search operations
- ADR: remote composition #1291 ADR: remote composition
Order: #1290 first; #1294 and #1293 after it; #1296 after #1293; #1295 and #1297 after #1296. #1289, #1300, #1292 and #1291 can proceed in parallel.
References
- Research: remote-plugins.md
- Session state on remote PostgreSQL #1298 Session state on remote PostgreSQL (separate)
- Runtime: resolve a process service per provider on each call without gating the consumer #861 per-call process service resolution (needed by resource leaves)
- design: offline resource nodes assume imported services stay registered, but rutis withdraws them #38 offline resource nodes (closed)
- rutis 0.10 adoption: nodes and remote plugins (P1) #5 rutis nodes and remote plugins (closed)
Sub-issues
Collapse Sub-issuesSub-issues
Loading 10 sub-issues
Activity
docs: draft remote plugins research