Skip to content

Fix archived worktree reuse and snapshot recovery - #165

Merged
hkwuks merged 8 commits into
mainfrom
fix/2026-12-03-archive-worktree-handoff
Dec 3, 2026
Merged

hkwuks merged 8 commits into
mainfrom
fix/2026-12-03-archive-worktree-handoff

Conversation

@hkwuks

@hkwuks hkwuks commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Bind an archived task and its evidence to the worktree that produced them. Automatic discovery, manual handoff, and diagnostics now verify the same association.
  • Keep the archive commit reachable and the release valid when preparing a worktree for authorized local branch cleanup. Reuse a provably archived detached checkout from the selected verified base, even when the old archive is outside that base's history.
  • Restore a missing original branch from the verified snapshot commit. Reject a conflicting branch and restore idle status after an interrupted handoff only when the original record still matches.

TaskFlow traceability

  • Task: TaskFlowDocs/achieved/2026-12-03-archive-worktree-handoff/ (TF-20261203-cd3970)
  • Scope: Shared archive, ownership, reuse, recovery, and diagnostics hooks, plus documentation and regression fixtures
  • Base branch: main, verified against dc1e0cf before push
  • Target repository: hkwuks/TaskFlow

Verification

  • The Hooks workflow passed on Ubuntu, macOS, and Windows for e7cab33. GitHub Actions run
  • git diff --check origin/main...HEAD
  • TaskFlow Skill validation, Bash syntax checks, and focused Windows Git integration tests covering reuse, ownership, discovery, ledger locking, task integrity, write entry, and host parity
  • Results recorded in the TaskFlow Plan and its verification reference

Review boundaries

  • No secrets or opaque remote payloads included
  • No unrelated task or user files changed
  • Remote/base assumptions are stated
  • Known limitations and follow-ups are documented

The five supported Agent entry points were exercised with configuration and event fixtures. Interactive host sessions and the cross-platform GitHub Actions matrix are outside the completed local checks.

@hkwuks
hkwuks marked this pull request as ready for review December 3, 2026 07:34
@hkwuks
hkwuks merged commit af3d393 into main Dec 3, 2026
8 checks passed
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