bc218dfbbe
* feat: add workspace sources from files panel * fix: preserve worktree identity during recovery * feat: unify workspace source actions * fix: validate recovered workspace repositories * fix: harden workspace source filesystem boundaries * test: split workspace repository chip coverage * fix: restrict repository rescan recovery paths * fix: stabilize workspace source CI checks * test: canonicalize workspace source paths * test: align workspace source container paths * fix: populate direct workspace repository names * test: preserve git fixture rewrites across restarts * test: isolate backend git fixture config * fix: resume remote workspace executions before creation * fix: preserve ssh agent identity during resume * fix: preserve SSH workspace across backend restart * fix: simplify workspace actions trigger * fix: refine add workspace repositories UX * docs: narrow workspace source UX updates * fix: avoid phantom turn on session resume * test(web): normalize workspace source request headers * feat(web): streamline workspace source picker * docs: remove trailing spaces from workspace source plan * fix: prevent resume status from creating phantom turns * fix(web): stabilize workspace source attachment * refactor(web): extract workspace source store contract * fix: avoid phantom turns on idle agent resume * fix: address backend static analysis findings * fix: preserve agentctl readiness status value * fix: preserve resume messages without active turns * fix: resume agents from promoted workspace root * chore: merge origin/main into feature/add-new-repo-folder-d97 * feat(web): explain workspace source consequences * test(websocket): count session activity subscription
1.6 KiB
1.6 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 02-attachment-service | Attachment service | done | 2 |
|
plan.md | ../../specs/tasks/attach-workspace-sources.md |
Task 02: Attachment Service
Acceptance
AttachWorkspaceSourcesvalidates and resolves complete mixed batches under a per-task lock before persistence, including task/workspace ownership, idle state, locator/path/branch validity, duplicates, and runtime-name collisions.- Materialization success publishes one truthful task update; failure or caller cancellation removes only records/repository entities created by the operation and returns a typed error.
- Existing
AddBranchToTaskbehavior and tests pass through a one-item compatibility adapter.
Verification
cd apps/backend
rtk go test ./internal/task/service/... -run 'Test(AttachWorkspaceSources|AddBranchToTask)'
Files likely touched
apps/backend/internal/task/service/service.goapps/backend/internal/task/service/service_workspace_sources.go(new)apps/backend/internal/task/service/service_workspace_sources_test.go(new)apps/backend/internal/task/service/service_branches.goapps/backend/internal/task/service/service_branches_test.goapps/backend/internal/task/service/service_events.go
Dependencies
Task 01.
Inputs
- Spec: What, Failure modes, Permissions.
- Existing repository resolution in
service_tasks.goandrepository_discovery.go. - Existing add-branch materialization/rollback behavior in
service_branches.go.
Output contract
Summary, files changed, tests run, blockers, risks, divergence, and task/plan status updates.