Skip to main content
← Back to list
01Issue
FeatureShippedExtensionsPublic
Assigneesstack72

Relationships

#1908 Add safe per-work-item workspace preparation

Opened by funsaized · 8/30/2026· Shipped 9/28/2026

Provide an official idempotent method that fetches an exact base ref, creates or safely reuses one verified Git worktree and branch per work item, refuses unrelated or overlapping paths, preserves expected dirty rework state, and returns subjectRoot, branch, and baseCommit.

Upstream repository: https://github.com/swamp-club/swamp-extensions

Environment

  • Extension: @swamp/git@2026.08.25.1
  • swamp: 20260828.231706.0-sha.ca29674e
  • OS: darwin (aarch64)
  • Deno: 2.8.3
  • Shell: /bin/zsh
02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPEDTRIAGE+ 5 MOREREVIEW+ 11 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/28/2026, 9:49:46 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/28/2026, 7:35:08 PM
Editable. Press Enter to edit.

stack72 commented 9/28/2026, 9:49:49 PM

Thanks @funsaized for reporting this! We shipped: Add ensure_worktree and verify_worktree to @swamp/git and fix remove_worktree path comparison. ensure_worktree fetches an exact base ref race-free, creates or safely reuses one verified worktree and branch per work item inside an optional bounded root, refuses unrelated or overlapping paths, preserves in-progress rework, and returns subjectRoot, branch, and baseCommit. verify_worktree is a read-only fail-closed check of an existing worktree against expected branch, base lineage, root, and remote.. The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.