You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gate Checks the Worktree It Runs In, Not the Main Checkout (devops ci) #582
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/cliCore CLI framework, Typer subcommands, options, and tablestype/bugType bug: the code does not do what it must
devops ci resolves its root with find_top_level_repo_root() (src/devops_cli/core/repo.py), which keeps the top-most parent directory holding .git or pyproject.toml. Every check then runs there. Claude Code and its workflow tool create agent worktrees under .claude/worktrees/, inside the main checkout, so from such a worktree the gate checks the main checkout's files instead of the branch being committed or pushed.
The same applies to the devops-ci-pre-push and devops-ci-test-changed pre-commit hooks, which call devops ci, and to the other commands that verify the current tree through the same resolver: devops test, devops uv, devops release and devops scan complexity.
Observed
Pushing #580 from a worktree at .claude/worktrees/roadmap-vibes failed the pre-push gate. Lint, typecheck and uv check failed on src/devops_cli/ai/schema_reflection.py, which is another session's uncommitted file in the main checkout and does not exist on the pushed branch. The same branch, checked out in a worktree outside the checkout, resolved to itself and passed.
The reverse case fails open: a broken branch in a nested worktree passes the gate whenever the main checkout is clean.
Expected
A gate run from a linked worktree checks that worktree. The main checkout, submodules and repositories cloned under repos/ keep resolving as they do today, and the shared data directory from #553 still resolves to the main worktree.
Roadmap: "Gate Checks the Worktree It Runs In, Not the Main Checkout (devops ci)".
priority/p0-criticalPriority P0: a release blocker or a critical defectscope/cliCore CLI framework, Typer subcommands, options, and tablestype/bugType bug: the code does not do what it must
Activity
fix(cli): gate checks the worktree it runs in, not the main checkout (#…
dan-petty commentedon Sep 25, 2026
Closed by #585, 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.fix(cli): keep repos/ clones on the workspace and read the current wo…