Skip to content

Add the shared check-equation-labels check - #1512

Merged
d-morrison merged 1 commit into
mainfrom
claude/project-thread-ma5ve1
Nov 21, 2026
Merged

d-morrison merged 1 commit into
mainfrom
claude/project-thread-ma5ve1

Conversation

@d-morrison

Copy link
Copy Markdown
Collaborator

Adds .github/workflows/check-equation-labels.yml, a caller of the shared check-equation-labels reusable workflow (Morrison-Lab/gha#2177) at @v3.

It flags a $$ ... $$ display equation with no {#eq-...} label on the line of its closing $$, because the equation-anchors filter gives a number and a permalink only to a labeled equation.

It is diff-scoped: it reports an equation only when the PR adds or edits one of its lines, so the 1165 unlabeled equations already on main are not reported until a PR touches them, and this PR labels none of them. A manual run scans the whole tree. It blocks by default; <!-- check-equation-labels: allow: <reason> --> on the line before an equation exempts it.

Rollout tracked in Morrison-Lab/gha#2178, on Ezra's go (2026-11-21).


Generated by Claude Code

Diff-scoped: a PR that adds or edits a display equation with no {#eq-...}
label fails, since only a labeled equation gets a number and an anchor.
Existing unlabeled equations are left alone until a PR touches them
(Morrison-Lab/gha#2178, Ezra's go on 2026-11-21).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDkNzmEBzudq57zQYMbUuT
@github-actions

Copy link
Copy Markdown
Contributor

Claude finished review — View run


Matches inputs; consistent with sibling callers.

Review of PR #1512

This PR adds only .github/workflows/check-equation-labels.yml, a caller for the reusable workflow in Morrison-Lab/gha. It is a workflow-only change, which matches the CLAUDE.md rule that CI changes go in their own PR. I found no defects.

  • Reusable workflow: Morrison-Lab/gha/.github/workflows/check-equation-labels.yml exists in the local gha checkout and declares workflow_call.
  • Input: whole-tree is a declared boolean input, and the caller passes a boolean expression.
  • Pin: The caller pins @v3, and the v3 tag exists in the local gha checkout. Sibling callers such as check-equation-renders.yml pin the same tag.
  • Permissions: contents: read is set, which is least privilege for a check that only reads files.
  • Triggers: Using pull_request plus workflow_dispatch with no push is consistent with the header comment. A push run has no base to diff against.
  • Defaults: The fail default is true, so the check blocks as documented.
  • Math and content: The diff adds no .qmd content or math, so the macro and notes-content checks do not apply.
  • Not verified: I did not check that the preview site stays green. Enabling a blocking check could make unlabeled-equation edits in later PRs fail, which the header comment already says is intended.

Verdict

Ready for merge

Structured Review Data (JSON)
{
  "schema_version": "1.1",
  "reviewer": "claude",
  "commit_sha": "a3acfb0a9d1a1a8cd26acae5780a2da1f8bdc1b1",
  "verdict": "CLEAN",
  "findings": [],
  "detailed_assessment": "The new check-equation-labels.yml caller matches the reusable workflow's declared whole-tree input, pins an existing v3 tag, and sets read-only permissions.",
  "holistic_assessment": "A workflow-only PR, correctly separated from content changes, consistent with sibling caller workflows, with no regression or scope concerns."
}

I fetched PR #1512 live just now. It is open and not a draft, and it has not been merged (mergedAt is null). The head is still a3acfb0a9d1a1a8cd26acae5780a2da1f8bdc1b1, the commit I reviewed. So my verdict, Ready for merge, still applies to the current head.

The earlier gh pr view call failed because I asked for a merged field, which gh does not have. The working form is --json state,mergedAt,isDraft,headRefOid. I have not saved a memory note for this.

Verdict

Ready for merge

Reviewed commit: a3acfb0

@github-actions

Copy link
Copy Markdown
Contributor

💰 Cost: $0.2391 (review) — run

@d-morrison
d-morrison merged commit 75f67e3 into main Nov 21, 2026
40 checks passed
@d-morrison
d-morrison deleted the claude/project-thread-ma5ve1 branch November 21, 2026 17:33

Copy link
Copy Markdown
Collaborator Author

Merged under the standing infra merge grant, with green CI, a clean Claude review on this head, and check-pr-fully-clean.py exiting 0.
The cross-model review gate was waived: no cross-model reviewer can run from this cloud session (opencode, agy, codex, gemini and cursor-agent are absent, and the proxy refuses opencode.ai).

Posted by Claude Code (AI agent)


Generated by Claude Code

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