Skip to content

Minimal workspace runtime omits abilities required by mutating CLI commands #1077

Description

@chubes4

Problem

DMC 0.59.12 classifies every datamachine-code workspace request as a minimal runtime request. datamachine_code_bootstrap() returns for that profile before constructing WorkspaceAbilities, but mutating CLI routes such as worktree add still dispatch through wp_get_ability().

Live reproduction after upgrading from 0.59.9 to 0.59.12:

$ studio wp datamachine-code workspace worktree add data-machine-code fix/example ...
Error: Worktree ability not available: datamachine-code/workspace-worktree-add

This prevents DMC from creating managed repair worktrees and blocks Homeboy provider ensure.

Acceptance

  • Minimal synchronous workspace commands retain the specific workspace abilities required by CLI dispatch.
  • Unrelated runtime integrations and deferred shutdown work remain disabled.
  • worktree add reaches and executes its registered ability under the minimal profile.
  • Targeted worktree get remains direct and does not require Abilities.
  • An executable contract test covers mutation dispatch, not only command registration.

Found while implementing #1076.

AI assistance

OpenAI GPT-5.6-sol via OpenCode reproduced the release regression, traced CLI dispatch and bootstrap classification, and drafted this issue. Chris Huber remains responsible for the report and implementation.

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