1.4 KiB
1.4 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 01-backend-child-completion-repository | Backend child completion repository | done | 1 | plan.md | ../../specs/tasks/requirements/subtask-completion-trigger.md |
Task 01: Backend child completion repository
Acceptance
- The task repository exposes active direct child completion rows for a parent task without importing Office repository code.
- Terminal-state evaluation treats
COMPLETED,FAILED, andCANCELLEDas terminal. - Archived and ephemeral children do not block the parent completion check.
Verification
cd apps/backend && go test ./internal/task/repository/...
Files Likely Touched
apps/backend/internal/task/repository/interface.goapps/backend/internal/task/repository/sqlite/task.goapps/backend/internal/task/repository/task_repository_test.go
Dependencies
None.
Inputs
- Spec:
docs/specs/tasks/requirements/subtask-completion-trigger.md, sectionsWhat,Data model,Scenarios. - Existing patterns:
TaskRepository.ListChildren,office/repository/sqlite.AreAllChildrenTerminal, andCountOpenWatcherCreatedTasksterminal-state SQL.
Output Contract
When finished, update this task frontmatter to status: done, update the
checkbox in plan.md, and report:
- Summary of repository API and SQL changes.
- Files changed.
- Tests run and their result.
- Any blockers or follow-up risks.