Repository navigation
Run check-merge-drops, failing on a merge that drops content - #1495
Conversation
A conflict resolved by keeping one side of a whole file can silently drop content. gha's check-merge-drops (gha#958) catches that, but rme did not call it. This adds the consumer workflow from gha's example, with fail: true. Part of Morrison-Lab/ai-config#5408. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9rEXHYxA5DCp2TL1oG
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤖 Antigravity agent reportCross-harness review (Gemini 3.8 Flash (Medium) via Antigravity
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Two red checks on eca14bd, neither caused by this diff (one new workflow file):
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
…orrison' into claude/project-thread-1trh17
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Claude finished review — View run I re-read the PR's full diff at The caller points at the The latest prior review (2026-11-18, commit VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "e51afd7c8f89653c5ee0cd9d8338a15a5285b724",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "The check-merge-drops.yml caller still references the gha v3 reusable workflow with fail true, and the latest head only merges main.",
"holistic_assessment": "The change is a scoped infrastructure-only PR with no content edits, so the prior clean verdict remains valid and regression risk is low."
}Reviewed commit: e51afd7 |
|
Annotation dispositions for head e51afd7: I read the annotations on this head with
Meaning: Posted by Claude Code (AI agent) --- not written by a human. |
Requested by Ezra · project thread
The PRs this was stacked on, rme#1500 and rme#1502, have merged, and
mainis merged in at e51afd7. This PR now changes one file againstmain.Part of Morrison-Lab/ai-config#5408.
Why
Resolving a merge conflict by keeping one side of a whole file has silently dropped definitions, citations and code from the notes before.
gha's
check-merge-drops(Morrison-Lab/gha#958) flags a merge commit whose tree lacks lines either parent added since the merge base, but on 2026-11-12 none of the notes repos (lds, mds, pds, sds, mcs, psw, psc) called it.What changes
One new file,
.github/workflows/check-merge-drops.yml: the consumer from gha'sexamples/check-merge-drops.yml, pinned at@v3, with two changes:fail: true, so a merge that drops content fails CI instead of only writing a warning to the job summary.permissions: contents: readon the calling job, which is what the reusable workflow requests and whatcheck-caller-permissionsexpects.On a pull request it checks only the merges the PR adds (such as a merge of
maininto the branch); on a push tomain, the merges the push brought in.A PR with no merge commits passes trivially.
Expected effect
A dry run of the checker (default
globs,min-lengthandsimilarity) over the last 300 commits on ldsmain(281 merges) flagged 3 merges, each dropping one line.At least one was deliberate: a bullet removed on a branch that converted bullets to prose.
So with
fail: true, a deliberate drop will fail this check about once in a hundred merges, and that merge needs its dropped line restored or the drop explained and fixed.Making it a required status check is a branch-ruleset setting, which this PR does not change.
Not done
main, which marks the repo's other open PRs stale for the runner's checker; merge it after the content PRs in the queue.Generated by Claude Code