2.1 KiB
2.1 KiB
id, title, status, wave, depends_on, plan, requirements, acceptance_criteria, system_design
| id | title | status | wave | depends_on | plan | requirements | acceptance_criteria | system_design | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 01-persist-pathless-failed-environment | Persist a Pathless Failed Environment | done | 1 | plan.md |
|
|
|
Task 01: Persist a Pathless Failed Environment
Summary
The repository must store a failed worktree environment when materialization creates no path. Reusable environment states must keep the non-empty path requirement.
In scope
- Add a failing repository regression test for
creating → failedwith an empty path. - Update the worktree path validation for the
failedstate. - Reload the row and make sure that the failed state and empty claim persist.
Out of scope
- Changes to worktree creation or Git refresh behavior.
- Automatic removal of the failed environment.
- Changes to ready-state inventory validation.
Acceptance
UpdateTaskEnvironmentstores a pathless worktree environment infailed.- The stored materialization-session claim is empty.
- Pathless reusable worktree states remain invalid.
Verification
Run this command from apps/backend:
go test -tags fts5 ./internal/task/repository/sqlite -run 'TestUpdateTaskEnvironment' -count=1
Files likely touched
apps/backend/internal/task/repository/sqlite/task_environment.goapps/backend/internal/task/repository/sqlite/task_environment_test.go
Dependencies
None.
Risks
- The validation must not permit
readyorstoppedwithout a path.
Parallelism
sequential
Inputs
AC-TASKS-TASK-LAUNCH-FAILURE-RECOVERY-001.2AC-TASKS-TASK-LAUNCH-FAILURE-RECOVERY-001.8docs/specs/tasks/system-design/task-launch-failure-recovery.md- Issue
https://github.com/kdlbs/kandev/issues/3335
Results
- RED: the targeted command failed because
UpdateTaskEnvironmentrejected the pathlessfailedstate. - GREEN: the targeted command passed all five matching repository tests.