Skip to content

Add the check-double-inequalities caller - #652

Merged
d-morrison merged 1 commit into
mainfrom
claude/check-double-inequalities
Nov 24, 2026
Merged

d-morrison merged 1 commit into
mainfrom
claude/check-double-inequalities

Conversation

@d-morrison

Copy link
Copy Markdown
Contributor

This PR adds a thin caller for check-double-inequalities, the check added in Morrison-Lab/gha#2189. The check enforces psw's Avoiding double inequalities rule: write p \in [0, 1], not 0 \le p \le 1.

Why: on Morrison-Lab/pds#492, Ezra asked "why did you write a double inequality? isn't there a psw rule against that?". Nothing enforced the rule.

  • The check is diff-scoped, so existing pages never block it. A manual run (workflow_dispatch) scans the whole tree.
  • The check blocks. A line can opt out with <!-- check-double-inequalities: allow: <reason> -->.
  • This is infra only: one workflow file. The wiring issue is Morrison-Lab/gha#2190.

Generated by Claude Code

psw's "Avoiding double inequalities" rule had no check, so an agent wrote
a double inequality on Morrison-Lab/pds#492 and Ezra had to ask why.
Morrison-Lab/gha#2189 adds a diff-scoped check for the rule; this is the
sds caller (wiring: Morrison-Lab/gha#2190). Only added lines count, so
existing pages never block.

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

Copy link
Copy Markdown
Contributor

Claude finished review — View run


This PR adds one thin caller workflow, .github/workflows/check-double-inequalities.yml. It calls Morrison-Lab/gha's reusable check of the same name. I found no blocking issues.

  • Reusable workflow: it exists in the local gha checkout and declares workflow_call. It accepts both inputs the caller passes, whole-tree and paths-ignore.
  • Version pin: @v3 matches the other 53 gha callers in this repo, all of which use @v3.
  • Permissions and concurrency: contents: read is the least privilege needed. The concurrency group cancels in-progress runs only on pull_request, so manual runs aren't cancelled.
  • Scope: _extensions/** is ignored, which fits the vendored extensions.
  • Not checked: I did not run the workflow, because workflow YAML is restored from the default branch in this job. I also did not read the reusable workflow's internals beyond its inputs.
  • Math macros, prose and line-break rules: the diff adds no notes content or math, so these checks don't apply.

Verdict

Ready for merge

Structured Review Data (JSON)
{
  "schema_version": "1.1",
  "reviewer": "claude",
  "commit_sha": "f60543cd258fabd18a9db8db9c03f1d77e1d7a15",
  "verdict": "CLEAN",
  "findings": [],
  "detailed_assessment": "The new check-double-inequalities.yml caller passes whole-tree and paths-ignore, both declared by the reusable gha workflow, and pins v3 like every other caller.",
  "holistic_assessment": "The change is a scoped single-file CI addition with least-privilege permissions and no content, math, or build-artifact impact; validation was by inspection only."
}

Reviewed commit: f60543c

@github-actions

Copy link
Copy Markdown
Contributor

💰 Cost: $0.2534 (review) — run

Copy link
Copy Markdown
Contributor Author

Annotation dispositions for head f60543c:

  • SUBMODULES_TOKEN is empty; cloning submodules anonymously (review / claude-review, check / check-tautological-equations): false positive. This is a notice-level message, and the only submodule, latex-macros, is public, so the anonymous clone succeeded.
  • PR edits workflow files; restored .github/workflows/ from the default branch (review / claude-review): false positive. This is a notice that the gha#598 safety path ran as designed for a PR that adds a workflow. The review completed with a CLEAN verdict.

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


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.2
🚀 Preview available at: https://Morrison-Lab.github.io/sds/pr-preview/pr-652/

Built to branch gh-pages at 2026-11-24 16:49 UTC.

Copy link
Copy Markdown
Contributor Author

Annotation dispositions for head f60543c:

  • SUBMODULES_TOKEN is empty; cloning submodules anonymously (review / claude-review, check / check-tautological-equations): false positive. It is a notice, and latex-macros is public, so the clone succeeded.
  • PR edits workflow files; restored .github/workflows/ from the default branch (review / claude-review): false positive. This notice confirms the gha#598 safety path ran. The review completed CLEAN.
  • Skipping element-level diff highlighting: 757 old / 779 new candidate elements exceed the 500-element cap (build / build): false positive. This notice comes from the preview diff highlighter. It describes how large the rendered site is, not what this PR changed, which is one workflow file and no page content.

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


Generated by Claude Code

@d-morrison
d-morrison merged commit 5caa800 into main Nov 24, 2026
60 checks passed
@d-morrison
d-morrison deleted the claude/check-double-inequalities branch November 24, 2026 16:51
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