Skip to content

Fix claims against another clone's unpushed commits - #28

Merged
douglaslassance merged 3 commits into
mainfrom
claude/claim-issuer-fix
Sep 21, 2026
Merged

douglaslassance merged 3 commits into
mainfrom
claude/claim-issuer-fix

Conversation

@douglaslassance

Copy link
Copy Markdown
Owner

Real commits written to the store now carry the issuing clone's host, user and clone path, as the Python implementation stamped them. Without the user field the spread logic routed every stored commit through the git log branch, so another clone's unpushed commit on the same branch rendered as MINE_ACTIVE_BRANCH and claim let it through.

A store record whose commit has since reached a remote branch is demoted to a plain remote commit when read. The issuing clone only rewrites its records on its next update, so the record lingers after a push.

is_uncommitted_changes keys off the missing sha instead of the user field.

Adds spread tests for the previously unreachable THEIR_* and MINE_OTHER_BRANCH flags, two-clone claim tests for the blocked and pushed cases, and the matching lifecycle steps.

@douglaslassance
douglaslassance merged commit 1364d46 into main Sep 21, 2026
8 checks passed
@douglaslassance
douglaslassance deleted the claude/claim-issuer-fix branch September 21, 2026 09:56
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