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.7 KiB
1.7 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec |
|---|---|---|---|---|---|---|
| 01-durable-source-contracts | Durable source contracts | done | 1 | plan.md | ../../specs/tasks/attach-workspace-sources.md |
Task 01: Durable Source Contracts
Acceptance
task_workspace_folderspersists canonical task-owned folder attachments with replay-safe schema, uniqueness, cascade deletion, and indexed ordering in SQLite and Postgres-compatible schema paths.- Task/API/event models expose
workspace_folderswhile existing repository payloads remain backward compatible. - Repository methods can create and compensate one attachment batch transactionally, and tests pin path/name uniqueness plus mixed source position allocation.
Verification
cd apps/backend
rtk go test ./internal/task/repository/... ./internal/task/dto/... ./pkg/api/v1/...
Files likely touched
apps/backend/internal/task/models/models.goapps/backend/internal/task/repository/interface.goapps/backend/internal/task/repository/sqlite/base_schema.goapps/backend/internal/task/repository/sqlite/base_migrations.goapps/backend/internal/task/repository/sqlite/workspace_folder.go(new)apps/backend/internal/task/repository/**/*workspace_folder*_test.goapps/backend/internal/task/dto/dto.goapps/backend/pkg/api/v1/task.goapps/backend/internal/task/service/service_events.go
Dependencies
None.
Inputs
- Spec: Data model, Persistence guarantees.
- ADR: preserve
task_repositories; folders use a separate relation. - Patterns:
sqlite/task_repository.go, replayable schema tests, task event repository projection.
Output contract
Summary, files changed, tests run, blockers, risks, divergence, and task/plan status updates.