Skip to content

Agents cannot start or stop a lane over MCP, and status in the main tree does not mention lanes #103

Closed

Description

@7schmiede

Situation

devstack 0.10.1, Windows 11, Docker Desktop.

A script in the repository creates a detached git worktree on a given commit to run the end-to-end suite against that commit in isolation (it builds its own images and starts its own Compose project). Because every worktree is a lane, devstack lists that worktree as a lane right away, stopped:

$ devstack lane list
LANE         BRANCH       PORTS +   RUNNING  MAIN   RUNS ON   PATH
<sha>        (detached)   400       stopped         local     <home>/.../worktrees/<sha>

A coding agent working in the main tree did not use that lane. The script's own image build failed (BuildKit lost its connection under load), and the agent's plan was to retry the build later. Starting the lane would have given the same isolation (own ports, own containers, own database) without building images at all. The agent had no way to notice that, and no way to act on it:

  1. The MCP server can list lanes but not start or stop one. Tools in 0.10.1: status, up (on, timeout_s), down, lanes, lane_move, lane_share, promote_lane, … There is no lane parameter on up/down and no lane_start/lane_stop. devstack up starts a lane only when run with the worktree as working directory, and the MCP server is bound to the directory it was started in (the main tree).
  2. devstack status in the main tree says nothing about lanes. A stopped (or running) lane next to the main stack is invisible unless one already knows to run devstack lane list.
  3. The generated devstack skill describes lanes only as "devstack up in a worktree". It does not cover the case "run a given commit beside the main stack" (create the worktree, start its lane, test against its shifted ports, stop it, remove the worktree), and its MCP section lists no lane tools at all (the 0.9.5 skill predates lanes; devstack skills check flags the mismatch, but nothing in status does).

Expected

  • MCP: start and stop a lane from the main tree, e.g. up/down with a lane parameter, or lane_start / lane_stop tools. The CLI equivalent (devstack up --lane <name>, devstack lane start <name>) for scripts that run from the main tree.
  • status (CLI and MCP): one line per lane, or at least N lanes (M running), see devstack lane list.
  • Generated skill: a short recipe "run a commit side by side in a lane" (worktree on the commit, start the lane, ports +N, lane stop, git worktree remove), and the lane tools in the MCP section. A hint that a worktree created by any tool is a lane that can be started instead of building a separate environment.
  • Optional: status mentions when the installed skills no longer match (devstack skills check), since agents read the skill, not the changelog.

Activity

  1. 7schmiede commented on Oct 19, 2026

    @7schmiede
    MemberAuthor

    Follow-up from actually using the lane (devstack 0.10.1, Windows 11):

    Started the lane with devstack up from the worktree directory (CLI, since MCP cannot). It came up fine, the dev server of the SPA service (ng serve, autostart) went healthy:

    13:50:20 info  prepare lane=<lane> run="npm ci" service=<spa>
    13:51:04 info  service build_id=null lane=<lane> service=<spa> status={"state":"starting"}
    13:51:33 info  service build_id=null lane=<lane> service=<spa> status={"state":"healthy"}
    13:52:38 warn  service build_id=null lane=<lane> service=<spa> status={"exit_code":0,"state":"exited"}
    

    About a minute later it exited with code 0, without any change in the worktree and without a stop request. devstack status in the lane then shows exited (0); nothing restarted it. The service log ends with the dev server's normal "Watching for file changes..." output, no error. A test suite started against the lane right after hit ECONNREFUSED on that port for every case.

    devstack start <spa> in the lane brought it back, and it then stayed healthy (watched for several minutes).

    What I can say about the trigger, unverified: the exit happened shortly after the devstack up CLI call that started the lane had returned. In between, devstack run <seed-command> (an HTTP step against another service of the lane) ran in the same worktree. If a lane's dev server is tied to the lifetime of the CLI process (or its console) that started it, that would explain it.

    Expected: either the dev server keeps running independent of the starting CLI process, or the exit is treated as a failure (restart, or at least status/the daemon log saying why a healthy autostart service went away with code 0).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions