altimate-code icon indicating copy to clipboard operation
altimate-code copied to clipboard

Workspace engine attach: reach a bound workspace's integrations from a terminal session

Open ralphstodomingo opened this issue 3 months ago • 1 comments

Goal

A terminal session in a project bound to a workspace reaches the workspace's integrations through a local datamate engine on its first message, and states what it got.

Scope

  • Gated on the workspace pilot flag and a local binding.
  • Reuse a connected datamate MCP entry. A down URL entry (an IDE's engine that isn't running) is replaced by a local spawn and the replacement is reported; a down command entry is retried once, then reported — never double-spawned.
  • Otherwise: a datamate on PATH whose --version clears the floor is spawned as datamate start-stdio --datamate <workspaceId> and persisted to the project config.
  • No engine → an engine-missing outcome (surfaced by the install-offer issue). A failed spawn is reported; never a silent fallback to the hosted endpoint — it serves a different tool set.
  • Declared-vs-delivered inventory: the workspace's tool allowlist (extension-type excluded) diffed against the tools that actually arrived, surfaced to the user.
  • list-integrations hides extension-type integrations and says how many it hid.
  • Bounded wait on the first turn so turn 1 sees the engine tools.
  • Version floor bumped to the engine release that pins --datamate.

Out of scope

Install UI, tool precedence, engine-side reasons for missing tools — separate issues.

Verification

Unit tests over the attach seams; pre-merge E2E in a bound project (fresh attach, dead URL entry, dead command entry, unbound dir, extension-shared project reusing the IDE's engine).

ralphstodomingo avatar Aug 26 '26 12:08 ralphstodomingo

Filed by mistake — tracked internally.

ralphstodomingo avatar Aug 26 '26 12:08 ralphstodomingo