I4003 — Devtask.implement runs readiness, preflight, claim, worktree and one execution
devtask.implement: issue readiness and intents.preflight, then mesh.claim, worktree.create and an agent run through executions.start; it refuses an overlap or an invalid intent with a reason and answers pending when no worker is attached (Mission Control B4).
BLOKOVÁNO vlna 2 · p1 · profil implementation · běží samostatně
Blocked. This issue cannot start until I4000, I4001, I4002, I4004 are done. The status is derived from that, not declared.
Cíl
devtask.implement: issue readiness and intents.preflight, then mesh.claim, worktree.create and an agent run through executions.start; it refuses an overlap or an invalid intent with a reason and answers pending when no worker is attached (Mission Control B4).
Proč
Taking an issue is a hand-run sequence; two sessions can follow it at once and a double request starts two runs.
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 4003 proves them.
Rozsah
- apps/majordomus-cli/src/capability/builtin/devtask.rs
- apps/majordomus-cli/src/execution
- docs/EXECUTIONS.md
- test/cases/4003_devtask_implement_claims_creates_and_starts_once.sh
- .ai/repo/project/issues/I4003.yaml
Závislosti
- I4000READY A repeated executions.start with the same key answers one execution
- I4001BLOCKED The execution state machine has Authorizing, Claimed, Verifying, Refused and UnknownOutcome
- I4002READY Worktree.create is a typed writing capability
- I4004BLOCKED The executor takes the issue's mesh claim in the handler and releases it when the run ends
Co na tom čeká
Kritéria přijetí
- A ready issue with a valid intent starts one execution holding its mesh claim in a new worktree
- An overlapping claim or an invalid intent is refused with the reason and nothing is created
- No attached worker answers pending, not failed
- The same request twice answers the same execution (I4000)
Validace
- env -u MAJORDOMUS_SHARE -u MAJORDOMUS_HTTP_HOST -u MJ_ROOT bash test/run.sh 4003_devtask_implement_claims_creates_and_starts_once
Požadované důkazy
- case_4003_devtask_implement_claims_creates_and_starts_once
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/I4003.yaml. Read it back with majordomus plan show I4003.