I4002 — Worktree.create is a typed writing capability
Declare worktree.create as a capability with a repository_mutation effect over the git calls integration/drain.rs already makes, so a worker creates a canonical worktree through the registry rather than a shell (Mission Control B5).
PŘIPRAVENO vlna 0 · p1 · profil implementation · bezpečné paralelně
Připraveno. Všechny závislosti jsou hotové, takže majordomus plan start I4002 bude přijato.
Cíl
Declare worktree.create as a capability with a repository_mutation effect over the git calls integration/drain.rs already makes, so a worker creates a canonical worktree through the registry rather than a shell (Mission Control B5).
Proč
Creating the worktree is a shell step of the CLI; a loop that proceeds unasked cannot do it as a declared, refusable, audited act.
Aktuální stav
Not built: this issue is planned by the milestone a-session-proceeds-through-the-mesh and nothing of it exists.
Cílový stav
The acceptance criteria below hold and case 4002 proves them.
Rozsah
- apps/majordomus-cli/src/capability/builtin
- apps/majordomus-cli/src/integration/drain.rs
- docs/WORKTREES.md
- test/cases/4002_worktree_create_is_a_typed_writing_capability.sh
- .ai/repo/project/issues/I4002.yaml
Závislosti
Žádné. Tento úkol je kořenem grafu.
Co na tom čeká
Kritéria přijetí
- worktree.create plans and applies the canonical <repository>-wt/<branch> path and refuses a misplaced or existing one with a reason
- It reuses the git calls of integration/drain.rs and adds no second implementation
- Its declaration projects to the command, the MCP tool and the skill from one definition
Validace
- env -u MAJORDOMUS_SHARE -u MAJORDOMUS_HTTP_HOST -u MJ_ROOT bash test/run.sh 4002_worktree_create_is_a_typed_writing_capability
Požadované důkazy
- case_4002_worktree_create_is_a_typed_writing_capability
Důkazy
Nic nezaznamenáno. Za každým tokenem výše musí stát příkaz nebo artefakt, než lze tento úkol dokončit; vyprávění se odmítá.
Časová osa
- zahájeno
- —
- ověřeno
- —
- dokončeno
- —
Tato tři pole, důkazy výše a stav závislostí jsou vše, z čeho se stav skládá. Neexistuje žádné pole stavu, které by s nimi mohlo být v rozporu.
Canonical record: .ai/repo/project/issues/I4002.yaml. Read it back with majordomus plan show I4002.