Skip to content

Run check-heading-siblings on pull requests - #317

Merged
d-morrison merged 4 commits into
mainfrom
claude/wire-heading-siblings
Nov 21, 2026
Merged

d-morrison merged 4 commits into
mainfrom
claude/wire-heading-siblings

Conversation

@d-morrison

Copy link
Copy Markdown
Collaborator

Summary

This PR adds .github/workflows/check-heading-siblings.yml, a caller of gha's check-heading-siblings.yml@v3 (Morrison-Lab/gha#2171).

On pull requests, it fails two kinds of heading:

  • a heading the PR adds to a group of more than seven siblings;
  • a lone numbered subheading (a 1.1 with no 1.2) that the PR adds or changes. This is Ezra's rule from psw#692.

A manual run scans the whole tree.

A whole-tree run on main finds 22 groups. The check is diff-scoped, so it reports one only when a PR touches it.

Test plan

  • I ran the gha script whole-tree over this repo (warn-only).
  • CI's run of the new workflow passes on this PR.

Generated by Claude Code

Enforces the lab's limit of seven sibling headings and the ban on a lone
numbered subheading (psw#692) on headings a PR adds or changes.
gha v3 carries the check as of aa7aec05.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDkNzmKYTkDuFyzHWwtqNp
Copilot AI balanced review requested due to automatic review settings November 20, 2026 23:19

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copy link
Copy Markdown
Collaborator Author

This PR adds only a workflow file. Neither of the two red checks comes from it.

  • link-checker: the broken links are in existing pages. https://github.com/microsoft/agent-framework returns 404 (agent-orchestration.qmd and ai-harness-landscape.qmd), and https://cursor.com/marketplace fails with an HTTP/2 protocol error (useful-plugins.qmd). Check Links has also failed on main since 2026-11-16.
  • lint-project: R stopped before linting anything. The error was unable to load shared object .../xml2/libs/xml2.so: libxml2.so.2: cannot open shared object file, which means the runner image is missing libxml2. That is a CI environment problem, not a lint finding.

Generated by Claude Code

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

wai mounts the macros submodule at macros/, so the copied
latex-macros/** pattern matched nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDkNzmKYTkDuFyzHWwtqNp
Copilot AI balanced review requested due to automatic review settings November 20, 2026 23:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copy link
Copy Markdown
Collaborator Author

lint-changed-files fails for the same reason as lint-project: libxml2.so.2: cannot open shared object file while loading the xml2 R package. The runner lacks libxml2; this PR does not touch it.

The latest push changes paths-ignore from latex-macros/** to macros/**, since wai's macros submodule is at macros/, as the review pointed out.


Generated by Claude Code

@d-morrison d-morrison mentioned this pull request Nov 20, 2026
1 of 2 tasks
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VDkNzmKYTkDuFyzHWwtqNp
Copilot AI balanced review requested due to automatic review settings November 21, 2026 06:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copilot AI balanced review requested due to automatic review settings November 21, 2026 06:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions

Copy link
Copy Markdown
Contributor

Claude finished review — View run


All CI checks relevant to this PR pass, including check / check-heading-siblings itself. Everything is consistent with the prior approved state.

Review of #317 — Run check-heading-siblings on pull requests

What changed since the last round: The computed range 7d7052ac..df92d339 contains only merge commits (e631e38, df92d33) plus 1dce1fe, which is a separate PR (#318, "Run check-result-titles on pull requests") merged into main and then pulled into this branch — it is not part of this PR's own diff. I confirmed this directly: gh pr view 317 --json files and gh pr diff 317 both show the PR's only changed file is still .github/workflows/check-heading-siblings.yml with 23 additions, and its content is byte-for-byte identical to the saved diff file and to what was reviewed and approved in the prior round (commit 24618227).

Verification performed:

  • Diffed the saved PR diff against the content from the prior CLEAN round — identical, including the macros/** path-ignore fix from two rounds ago.
  • Confirmed via gh pr checks 317 that check / check-heading-siblings passes, along with check-caller-permissions, check-dois, check-chars, link-checker, lint-changed-files, lint-project, Spellcheck, and CodeQL. Only build and claude-review are still pending/in-progress; nothing relevant is failing.
  • No new findings arise, since the merge brought in only unrelated changes from main (the check-result-titles.yml workflow from PR Run check-result-titles on pull requests #318) that this PR does not own.

The most recent substantive review (comment, posted 2026-11-20T23:29:23Z, reviewing commit 24618227) concluded CLEAN / Ready for merge, after the prior round's sole finding (misnamed latex-macros/** → macros/** path-ignore) was fixed. The subsequent confirming review on 2026-11-21T06:32:50Z (commit a61cb306) reaffirmed that verdict on an unchanged diff. That verdict still stands here: the diff is unchanged yet again.

No new issues found.

Verdict

Ready for merge — the diff is unchanged from the previously-approved, CI-green content; no new findings.

Structured Review Data (JSON)
{
  "schema_version": "1.1",
  "reviewer": "claude",
  "commit_sha": "df92d339526b5819e8d7e1a2f7f17ce533cd0913",
  "verdict": "CLEAN",
  "findings": [],
  "detailed_assessment": "The only PR-owned path, .github/workflows/check-heading-siblings.yml, is byte-identical to the previously reviewed and approved version with the macros/** path-ignore fix already applied.",
  "holistic_assessment": "Scope stayed tight since the prior round, CI including check-heading-siblings and lint, link, spell, and DOI checks all pass, and the new commits in range only bring in an unrelated PR 318 merge from main."
}

Reviewed commit: e631e38

@github-actions

Copy link
Copy Markdown
Contributor

💰 Cost: $0.2451 (review) — run

@github-actions

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

Built to branch gh-pages at 2026-11-21 06:46 UTC.

Copy link
Copy Markdown
Collaborator Author

Merging under Ezra's standing merge-when-confident grant for infrastructure PRs in every repo (2026-11-20 22:12 PST): every check on this head is green or skipped, the Claude review is clean, and check-pr-fully-clean.py exits 0.

The cross-model review gate is waived: no reviewer with a different model and harness can run in this cloud session (opencode, agy, codex, gemini, cursor-agent are absent and the proxy refuses opencode.ai), per ai-config shared/workflow/adversarial-self-review.md.


Posted by Claude Code (AI agent) on behalf of @d-morrison.
Generated by Claude Code


Generated by Claude Code

@d-morrison
d-morrison merged commit 4db8474 into main Nov 21, 2026
20 checks passed
@d-morrison
d-morrison deleted the claude/wire-heading-siblings branch November 21, 2026 06:47
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.

3 participants