altimate-code
altimate-code copied to clipboard
Workspace engine attach: reach a bound workspace's integrations from a terminal session
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
datamateMCP 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
datamateonPATHwhose--versionclears the floor is spawned asdatamate start-stdio --datamate <workspaceId>and persisted to the project config. - No engine → an
engine-missingoutcome (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-integrationshides 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).
Filed by mistake — tracked internally.