Skip to content

Resource leaf contract: external mount, identity, lifecycle #1296

Open

Description

@eric8810

Tracking update — 2026-11-15

Verified against main 908ddfd31 and its generated catalog.

This dependency remains open for the exec/fs implementations in #1295 and #1297. #1397 merged resource/store operation contracts, not the resource-leaf identity/mount/lifecycle implementation. Keep identity, service naming and disconnect decisions owned here; the overall migration inventory is #1292. This status update does not choose among the open alternatives below.

Context

A resource leaf is a leaf that owns local resources and is mounted from the resource machine. Before exec and fs, the contract for identity, naming and lifecycle must be fixed.

Scope

  • External mount: the leaf dials the host (wss) or the host dials the leaf; token or client certificate.
  • Leaf id; process-service naming per leaf (names are global, so execHost.<leaf> or a host-side directory/route); one documented shape.
  • Lifecycle: connect at boot, reconnect with backoff, disconnect semantics; processes started by the leaf are killed or kept (decide and document).
  • A probe service (node info) to validate the contract before exec/fs.
  • Trust: the mounted leaf is host-level code; its exposed surface is the services it provides.

Acceptance

  • A probe leaf mounts from another machine, reconnects, and its service is callable per call; an offline leaf fails only that call.
  • Two leaves can be mounted without name collisions.
  • The disconnect rule for owned processes is stated and tested.

Notes

Depends on the Rust leaf host. #861 (per-call process service resolution) is the runtime mechanism the host side needs.

Activity

  1. added
    core
    on Nov 8, 2026
  2. added
    design
    on Nov 27, 2026
  3. eric8810 commented on Nov 27, 2026

    @eric8810
    CollaboratorAuthor

    Needs three decisions recorded here (or in the remote-composition design) before it can gate #1295/#1297: whether the leaf dials the host or the host dials the leaf; the naming shape for per-leaf services (global execHost.<leaf> names versus a host-side route); and whether processes started by a leaf are killed or kept when the link drops. Also state that identity is per connection and grants no per-plugin authority. One contract, not two alternatives.

  4. added
    P3
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3coredesign

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions