Skip to content

v0.9.0 Phase 1: Lane CLI + Runtime backends (tmux, worktrees, stream-json logs) #4176

Description

@Hmbown

Parent: #4175

Problem

Today durable multi-agent runs are ad hoc: tmux sessions, worktrees, and headless codewhale exec are wired separately. There is no first-class Lane (running workflow instance) or Runtime adapter layer.

Per the approved architecture, tmux durability belongs in Runtime, not Fleet.

Scope

Implement Phase 1 of the Fleet/Workflow/Lane/Runtime model:

Lane registry + CLI

codewhale lane list
codewhale lane status <lane-id>
codewhale lane attach <lane-id>      # tmux attach when runtime=tmux
codewhale lane logs <lane-id>        # tail stream-json / journal
codewhale lane stop <lane-id>

Each lane binds: workflow name, fleet name, issue/goal id, runtime backend, branch/worktree refs, started/stopped timestamps.

Runtime backends (adapter trait)

Backend Use case
tmux Durable local sessions + attach
inline In-process subagents (current TUI path)
vm Remote workbench / cloud VM
ci GitHub Actions / headless gate runs

Runtime owns: worktree/branch provisioning, process/session lifecycle, stream-json log capture, reconnect/attach metadata.

Worktree provisioning

Non-goals

Acceptance criteria

  • codewhale lane list|status|attach|logs|stop works against a tmux-backed lane.
  • Lane registry persists across CLI invocations (e.g. under CODEWHALE_HOME).
  • Runtime tmux adapter: create session, stream-json log file, attach metadata, stop/cleanup.
  • Runtime provisions isolated worktree + branch for a lane when configured.
  • Fleet module does not import tmux or session management.
  • Integration test: start lane → attach → stop → worktree TTL cleanup.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or requestlane-workflowreliabilityReliability, flaky behavior, retries, fallbacks, and robustnesssubagentsSub-agent orchestration, lifecycle, and completion handlingtuiTerminal UI behavior, rendering, or interactionv0.9.0Targeting v0.9.0workflow-runtimeWorkflow IR, executor, control flow, and replay runtime

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions