Skip to content

Run check-merge-drops, failing on a merge that drops content - #1495

Merged
d-morrison merged 4 commits into
mainfrom
claude/project-thread-1trh17
Nov 18, 2026
Merged

d-morrison merged 4 commits into
mainfrom
claude/project-thread-1trh17

Conversation

@d-morrison

@d-morrison d-morrison commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Ezra · project thread

The PRs this was stacked on, rme#1500 and rme#1502, have merged, and main is merged in at e51afd7. This PR now changes one file against main.

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's examples/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: read on the calling job, which is what the reusable workflow requests and what check-caller-permissions expects.

On a pull request it checks only the merges the PR adds (such as a merge of main into the branch); on a push to main, 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-length and similarity) over the last 300 commits on lds main (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

  • Merging this changes a workflow file on 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

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
@d-morrison d-morrison self-assigned this Nov 12, 2026
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@d-morrison

Copy link
Copy Markdown
Collaborator Author

🤖 Antigravity agent report

Cross-harness review (Gemini 3.8 Flash (Medium) via Antigravity agy, read-only plan mode) at fb9e51c

Flash saw the PR diff (.github/workflows/check-merge-drops.yml, +22/-0, identical to the lds caller I reviewed) and the inputs of gha's reusable check-merge-drops.yml@v3; it ran nothing.

Verdict: CLEAN. Flash found nothing blocking.
It found fail: true matching the reusable workflow's boolean input, permissions: contents: read and the pull_request default types sufficient, ordinary merges of main unaffected, and the header comment accurate.
Per the coordinator's hold, this is not merged: rme#1400 and rme#1399 are open content PRs that a new workflow on main would mark stale.

Posted by Claude Code (AI agent) --- not written by a human.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Copy Markdown
Collaborator Author

Two red checks on eca14bd, neither caused by this diff (one new workflow file):

  • lint-changed-files: libnode109 has no install candidate on ubuntu-latest (now Ubuntu 26.04). Filed as rme#1499.
  • link-checker: https://demorrison.ucdavis.edu/ was unreachable (connection failed; also unreachable from here at 06:45 PST). Re-ran once.

Posted by Claude Code (AI agent) --- not written by a human.


Generated by Claude Code

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Claude finished review — View run


I re-read the PR's full diff at e51afd7. It still adds only .github/workflows/check-merge-drops.yml, and that file is unchanged from the earlier rounds. The only commit since the last round is a merge of main that matches git's automatic merge of its parents. I did not run the workflow.

The caller points at the v3 reusable workflow in gha and sets fail: true. It runs on pushes to main, on pull requests and on manual dispatch. It has no content or math, so the notes-content and macro checks don't apply. The workflow-only scope matches the repo rule keeping workflow changes in their own PRs.

The latest prior review (2026-11-18, commit 9df62aa) said Ready for merge. That verdict still stands.

Verdict

Ready 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

@github-actions

Copy link
Copy Markdown
Contributor

💰 Cost: $0.2178 (review) — run

@d-morrison

Copy link
Copy Markdown
Collaborator Author

Annotation dispositions for head e51afd7:

I read the annotations on this head with scripts/batch-read-annotations.py (32 of 32 run(s), 34 annotation(s) in 3 group(s)). None is about the content of this PR; each is a routine notice or warning:

  • 1 notice: SUBMODULES_TOKEN is empty; cloning submodules anonymously (works for public submodules; a private one will fail at checkout)....
  • 1 notice: PR edits workflow files; restored .github/workflows/ from the default branch and passing github_token so the review can run with...
  • 32 notice: "The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/act...

Meaning: SUBMODULES_TOKEN is empty is the checkout step's allowlisted token notice; PR edits workflow files is the review job's gha#598 safety notice; the ubuntu-latest and Node.js 20 lines are GitHub's runner and action-runtime notices; wait-runner-capacity is a runner-load notice after which the job ran to success; the element-diff skip is the preview diff's size cap. There are no failure annotations.

Posted by Claude Code (AI agent) --- not written by a human.

@d-morrison
d-morrison merged commit fd69574 into main Nov 18, 2026
36 checks passed
@d-morrison
d-morrison deleted the claude/project-thread-1trh17 branch November 18, 2026 07:35
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.

2 participants