Skip to content

refactor(core): remove pre-ADR-0011 worktree machinery#302

Draft
tildesrc wants to merge 1 commit into
mainfrom
panopticon/remove-worktree-leftovers
Draft

refactor(core): remove pre-ADR-0011 worktree machinery#302
tildesrc wants to merge 1 commit into
mainfrom
panopticon/remove-worktree-leftovers

Conversation

@tildesrc

Copy link
Copy Markdown
Contributor

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-task git worktree add checkouts on a shared host repo. Replaced by GitClones (ADR 0011), which does git clone --local instead. Zero callers in src/.
  • 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-driven open-pr skill. The task service comment marking it "unwired here" is also removed.

Also updates AGENTS.md (module-map core entry, tests/test_git.py description, glossary "Provisioning" entry) and trims the corresponding unit + integration tests.

Everything deleted is trivially recoverable from git history.

Plan: plan.md

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant