Repository navigation
[skip-cr] session-peers: add private local repository ledgers - #189
Merged
Merged
Conversation
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.
Adds private handover ledgers shared by a repository's worktrees. The skill derives the location from the canonical Git common directory, with an anchor check that refuses key collisions and explicit relocation for moved repositories.
Each ledger is a local Git repository with private permissions, isolated configuration, disabled hooks/signing/transports and refusal of configured remotes. Mutations serialize under a bounded lock, read committed state, preserve interrupted work, and check ownership again before editing. Expired leases grant no takeover rights. Import preserves original documents and provenance in one commit; done items remain searchable.
Discovery runs through the skill and compact, bounded human buddy/handover reminders. Existing JSON output stays unchanged. No hooks or consumer-repository configuration are added. Repository-specific private rules and the existing handover notes are not included in this PR.
Validation:
The broader 2,016-test sweep had 2,015 passes and one source-digest failure: runtime files were edited after that process imported them. The frozen-head rerun covers that digest class and every directly affected test. A clean full exact-head sweep is left to PR CI; that earlier run is not reported as a full pass.
The ledger-only suite takes about 10 seconds locally. Before/after CI critical-path timing is unmeasured; no CI jobs or timers were added. The reminder timeout test uses a mocked timeout, not a real wait.
VERSION advances to 0.50.0. The documentation also fixes pre-existing wrapped-placeholder lint errors without changing their wording.