Repository navigation
Description
Problem
#553 made shared data (reviews, benchmarks, caches, the hallucination catalogue and the rest) resolve under the main worktree through resolve_data_path, so every worktree shares one data directory and removing a worktree loses nothing. Its roadmap entry says "Every data output uses one resolver". Several sites still anchor data at the top-most parent holding .git or pyproject.toml, or at the current directory. From a linked worktree created outside the checkout, that is the worktree itself, so they read and write <worktree>/.data. From a worktree nested inside the checkout, they are right only by accident.
devops workspace cleanprunes<top>/.dataand ignoresdata.dirandDEVOPS_CLI_DATA_DIR. From an outside worktree it prunes nothing.- Hallucination catalogue: a relative
DEVOPS_CLI_DATA_DIRis anchored at the top-most root, unlike every other data site. devops benchmark --suiteanddevops ai prompt-evallook for the feedback dataset under the worktree. The benchmark then silently falls back to its baseline cases, and prompt-eval uses one root for both shared data and source files.- Model bundles:
devops ai bundle-modelsputs a relative--output-dirunder the top-most root. - Workspace discovery (
GET /workspace) scans<root>/repos, which exists only in the main checkout, so it lists nothing from an outside worktree. - Other sites: the analysis cache, the CI result cache,
devops ai audit-library-usage, the dashboard's data providers, the controller and the sandbox logs and registry use the current directory or a redundant top-most lookup.
Expected
Every shared-data reader, writer and cleanup resolves through resolve_data_path, so the main checkout and every worktree, nested or outside, share one data directory. Source files are still read from the tree the command runs in. Cleanup prunes exactly where data is written, and refuses to prune anything that is not a dedicated data directory.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix(config): shared data resolves under the main worktree for every r…
dan-petty commentedon Sep 25, 2026
Closed by #618, merged into
release/v0.2.23.GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by
devops gh issues close-merged.