1.6 KiB
1.6 KiB
id, title, status, wave, depends_on, plan, spec
| id | title | status | wave | depends_on | plan | spec | |
|---|---|---|---|---|---|---|---|
| 05-managed-go-cache | Managed Go build cache | done | 2 |
|
plan.md | ../../specs/system-page/requirements/storage-maintenance.md |
Task 05: Managed Go build cache
Own one explicit Go build cache for local Kandev executions and rotate it safely above threshold.
Acceptance
- Enabling the provider injects one absolute managed
GOCACHEinto setup, cleanup, shell, agent, test, and build processes for every new local execution. - Analysis and cleanup operate only on a marked Kandev path or explicitly confirmed adopted path; default user caches remain untouched.
- Above-threshold idle cleanup quarantines the cache, recreates an empty writable directory, and reports byte deltas; disabling injection does not implicitly delete old data.
Verification
cd apps/backend && go test ./internal/system/storage/gocache ./internal/agent/runtime/lifecycle
Files likely touched
apps/backend/internal/system/storage/gocache/provider.goapps/backend/internal/system/storage/gocache/provider_test.go- lifecycle environment construction and script/shell propagation files
- focused lifecycle environment tests
Dependencies
- Task 02 for settings and quarantine records.
Inputs
- Spec Go build cache section
- Existing agent/executor profile environment merge order
- Go's absolute
GOCACHEcontract
Output contract
Report path ownership and adoption safeguards, propagation call sites, cleanup behavior, tests run,
blockers/risks, and update this task plus plan.md to done.