Skip to content

docs(#1192): investigation — native WorktreeCreate/WorktreeRemove hooks vs worktree-isolation.ts (decision: partial) - #1402

Merged
admarble merged 5 commits into
mainfrom
feature/1192-investigation-worktrees-can-native-worktreecreate-
Oct 10, 2026
Merged

admarble merged 5 commits into
mainfrom
feature/1192-investigation-worktrees-can-native-worktreecreate-

Conversation

@admarble

@admarble admarble commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Docs only. This adds docs/investigations/native-worktree-hooks-2026-10.md. It maps each responsibility of src/lib/worktree-isolation.ts to a native WorktreeCreate/WorktreeRemove capability, using headless probe runs on Claude Code 2.1.296.

Decision: partial. Use native isolation: "worktree" for creating parallel-group sub-worktrees, with no WorktreeCreate hook. Keep merge-back, cleanup and reporting in worktree-isolation.ts. Upstream anthropics/claude-code#47548 has been closed since 2026-06-12, and the probe confirms the parent branch no longer moves.

Fixes #1192

Acceptance criteria

  • AC-1: the note maps every responsibility (R1–R9) to a native capability or "not covered", citing real WorktreeCreate hook runs (payload included).
  • AC-2: ## Decision gives partial, with rejected alternatives. #47548's state on 2026-10-10 is recorded (CLOSED, closedAt 2026-06-12).

Follow-up ledger

Runner verification (graph-2026-10-freeze, wave 2)

  • QA: AC_MET_BUT_NOT_A_PLUS (2/2), opus tier.
  • The note is public: paths are <tmp>/<home> placeholders, with no session ids or private repo names.
  • Plugin freeze (I-1): the diff is the one note.

🤖 Generated with Claude Code

admarble and others added 3 commits October 10, 2026 09:25
…be, R1-R9 mapping, decision partial

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Entire-Checkpoint: d8d26d04cee7
@admarble admarble changed the title feat(#1192): investigation(worktrees): can native WorktreeCreate/WorktreeRemove hooks replace src/lib/worktree-isolation.ts? docs(#1192): investigation — native WorktreeCreate/WorktreeRemove hooks vs worktree-isolation.ts (decision: partial) Oct 10, 2026
@admarble
admarble merged commit 64687b6 into main Oct 10, 2026
8 checks passed
@admarble
admarble deleted the feature/1192-investigation-worktrees-can-native-worktreecreate- branch October 10, 2026 15:31
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.

investigation(worktrees): can native WorktreeCreate/WorktreeRemove hooks replace src/lib/worktree-isolation.ts?

1 participant