refactor(core): remove pre-ADR-0011 worktree machinery#302
Draft
tildesrc wants to merge 1 commit into
Draft
Conversation
Deletes GitWorktrees/Worktree/worktree_path from core/git.py and Workflow.provision from core/workflow.py — both were designed for the old per-task worktree provisioning model that ADR 0011 replaced with per-task local clones (GitClones). No callers exist in src/; everything is trivially recoverable from git history if a real use case appears. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes the two remaining artifacts of the pre-ADR-0011 worktree provisioning model.
What's deleted
GitWorktrees/Worktree/worktree_path(core/git.py) — created per-taskgit worktree addcheckouts on a shared host repo. Replaced byGitClones(ADR 0011), which doesgit clone --localinstead. Zero callers insrc/.Workflow.provision(core/workflow.py) — a seam designed to fire after the worktree was created, for workflow-specific remote setup (e.g. opening a draft PR). With the worktree step gone there's no synchronous host-side hook point; the PR-opening use case now lives as the agent-drivenopen-prskill. The task service comment marking it "unwired here" is also removed.Also updates
AGENTS.md(module-mapcoreentry,tests/test_git.pydescription, glossary "Provisioning" entry) and trims the corresponding unit + integration tests.Everything deleted is trivially recoverable from git history.
Plan: plan.md