Skip to content

Merging what master already holds: when `check` blocks integration

Record metadata
title: Merging what master already holds: when `check` blocks integration
status: seed
priority: 2
anchors: handing-on#1
needs: shell
needs_owner: 

Question

The owner delegated ordinary integration to the swarm (handing-on#1). On 28 November a session working on the branch claude/adoring-mccarthy-i38dvr tried to land that branch on master. GitHub reported the pull request as conflicting, although a local merge of origin/master was clean; so the session merged master into the branch. check then refused the result, because one commit already on master (20c8ae5, a merge of another branch) carries an agent's identity. check reads every commit not yet on the participant's own medium, and the commits of master are not yet on the branch. Its remedy (rebase and reset the author) would rewrite history that is already on master. Should check count as already landed any commit reachable from origin/master, and what should be done about an identity mark already on master, which nobody can now remove without rewriting it?

Why it matters

Until it is settled, every participant confined to a branch meets the same refusal the first time it integrates master, and must either bypass sync (push with git directly) or leave its marks stranded off master. The first is a hole in a conserved invariant; the second is the porosity medium-and-authority is about.

Leads

  • In tools/swarm.py, the identity check is in the part that looks at "the commits not yet pushed" (about line 654 on 28 November). Excluding origin/master from that range would be a one-line change.

Where it stands

Recorded as a seed. On 28 November the session pushed the merge with git directly, since the offending commit was already on master and nothing new of that kind was introduced; the journal says so.

Threads

  • Make the identity check ignore commits already on origin/master (hold tools); keep check at five checks or fewer.
  • Say in AGENTS.md ("Identity") what is done about a mark already on master: left, with a journal entry naming it, since passes and history are not rewritten.
  • Why did GitHub call PR #9 conflicting when git merge was clean? Look at the merge base GitHub used.

Passes