1.8 KiB
1.8 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| 07-system-storage-api | System storage API and composition | done | 3 |
|
plan.md | ../../specs/system-page/requirements/storage-maintenance.md |
Task 07: System storage API and composition
Expose the complete Storage contract and replace the old Office GC wiring with the composed service.
Acceptance
- Every spec endpoint returns the documented status/shape, validates Go-cache/Docker confirmation and busy states, and publishes/persists matching System jobs.
- Backend composition supplies all providers, activity coordinator, cleanup worker, health checks, and startup reconciliation with correct start/stop ownership.
- The unconditional
office/infrasweep no longer runs; optional scheduling is available with Office disabled and waits one interval before its first run.
Verification
cd apps/backend && go test ./internal/system/storage ./internal/system ./internal/backendapp ./internal/office/infra
Files likely touched
apps/backend/internal/system/storage/handler.goapps/backend/internal/system/storage/handler_test.goapps/backend/internal/system/system.goapps/backend/internal/backendapp/main.goapps/backend/internal/backendapp/services.goapps/backend/internal/office/infra/gc.goand tests (remove/migrate)- health provider wiring and tests
Dependencies
Tasks 03–06.
Inputs
- Spec API surface, permissions, failures, and persistence guarantees
- Existing System route/service/job patterns
- Existing backend provider cleanup ownership conventions
Output contract
Report API matrix, composition lifecycle, old-GC migration, health behavior, tests run,
blockers/risks, and update this task plus plan.md to done.