Skip to content

Shared Data Resolves Under the Main Worktree for Every Reader, Writer and Cleanup #616

Closed

Description

@dan-petty

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 clean prunes <top>/.data and ignores data.dir and DEVOPS_CLI_DATA_DIR. From an outside worktree it prunes nothing.
  • Hallucination catalogue: a relative DEVOPS_CLI_DATA_DIR is anchored at the top-most root, unlike every other data site.
  • devops benchmark --suite and devops ai prompt-eval look 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-models puts a relative --output-dir under 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.

Activity

  1. added this to the v0.2.23 milestone on Sep 25, 2026
  2. added
    type/bug
    scope/config
    priority/p1-high
    on Sep 25, 2026
  3. dan-petty commented on Sep 25, 2026

    @dan-petty
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p1-highscope/configtype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions