Repository navigation
feat(worktree)!: keep worktree records beside git, drop the global store - #44
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
meta recorded every worktree set in ~/.meta/worktree.json behind worktree.lock. Each linked worktree meta creates now gets a record in git's own admin directory for it (<repo>/.git/worktrees/<id>/meta-worktree.json), which git deletes with the worktree. remove and prune prove ownership from those records; list reads TTL, ephemeral and custom metadata from them; prune finds sets under the worktree root and through the records in the workspace's repositories. The store, its lock and the lock module are deleted. Sets created by an older meta have no record: remove and prune refuse them, as they refused unrecorded sets before. Implements [[tasks/harmony-2765]]
… live record - add, list and prune read records through one check (member_record), so a record outside <repo git dir>/worktrees is never copied or used - a worktree git has locked blocks removal up front - prune decides with the record the set's own worktrees hold and needs the removal check to see that same record; an orphaned-repos verdict is re-checked with every repo the full scan finds; records it cannot read are reported as kept (so --strict fails); forgetting a missing set deletes only the records prune read Refs [[tasks/harmony-2765]]
gold-silver-copper
force-pushed
the
feat/stateless-worktrees
branch
from
October 26, 2026 06:33
a21cee8 to
3c34228
Compare
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.
Updates the meta-worktree skill: where records live, what remove/prune check, prune's scope, strict-mode rollback.
Part of gitkb/meta#126, which has the full description, the investigation and how it was verified. Merge together with it (same branch name, so CI builds them together).
Implements [[tasks/harmony-2765]]