PR checks: the model check reads what is visible under AI use #835

Open
github-bot wants to merge 2 commits from github-bot/gh-835 into main AGit
Owner

@⁠Rareuncommon on GitHub · 2026-11-24 06:31 UTC · original
Rareuncommon:scripts/pr-check-ai-use-visible-text → main · +114 −15 · 2 files · 2 commits · open

Stacked on #527; only the top commit (9df3fd1) belongs here. It is point 3 of @⁠Kalmarv's review there. Rebuilt on #527's new head 5bdaffa (main 930e8b4).

The check for models this repository does not accept looked for the first **AI use** anywhere in the raw description and stopped at the next bold line. So a comment or a sentence that named the section before the real one hid it, a bold line inside the section ended the scan, and a model named only inside a comment was refused.

What is in it

  • scripts/pr_check.py: the model check reads #527's section_texts(), the text the section check reads. +2 −2 in the top commit.
  • scripts/test_pr_check.py: BannedModelTests, five tests on hand-written descriptions. +39. The separate scripts/pr_check.tests.py is gone; the tests are in main's file, which unittest finds.

Tested

  • macOS arm64 (Darwin 27), Python 3.14.6. No Windows, no GPU.
  • cd scripts && python3 -m unittest test_pr_check: 21 passed. Against #527's pr_check.py (5bdaffa): 3 of the 5 new tests fail (a section named earlier in a comment or a sentence, a bold line inside the section, a model named only in a comment).
  • check() at 5bdaffa and at this commit compared on the descriptions of 1,029 PRs of this repository (all states): no verdict changes.
  • Merged together with #834 on main 930e8b4: 25 tests pass.

Regression run

  • not a runtime change (scripts only)

Not tested

  • Negation: "no Llama was used" under AI use is still refused, as on main. Whether to allow it is a policy question, not changed here.
  • The Rust workspace was not built or tested: no Windows machine. cargo test --workspace and the GPU suite were not run; this PR changes no Rust.
  • The PR checks workflow on GitHub's runner.
  • Merge requirement 2 (whole suite on a GPU) is not met from this machine.

AI use

  • Claude Code with Claude Fable 5.2: wrote the fix, the tests and this description. Reviewed by the author.
**@⁠Rareuncommon** on GitHub · 2026-11-24 06:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/835) `Rareuncommon:scripts/pr-check-ai-use-visible-text` → `main` · +114 −15 · 2 files · 2 commits · open Stacked on #527; only the top commit (`9df3fd1`) belongs here. It is point 3 of @⁠Kalmarv's review there. Rebuilt on #527's new head `5bdaffa` (main `930e8b4`). The check for models this repository does not accept looked for the first `**AI use**` anywhere in the raw description and stopped at the next bold line. So a comment or a sentence that named the section before the real one hid it, a bold line inside the section ended the scan, and a model named only inside a comment was refused. **What is in it** - `scripts/pr_check.py`: the model check reads #527's `section_texts()`, the text the section check reads. +2 −2 in the top commit. - `scripts/test_pr_check.py`: `BannedModelTests`, five tests on hand-written descriptions. +39. The separate `scripts/pr_check.tests.py` is gone; the tests are in main's file, which `unittest` finds. **Tested** - macOS arm64 (Darwin 27), Python 3.14.6. No Windows, no GPU. - `cd scripts && python3 -m unittest test_pr_check`: 21 passed. Against #527's `pr_check.py` (`5bdaffa`): 3 of the 5 new tests fail (a section named earlier in a comment or a sentence, a bold line inside the section, a model named only in a comment). - `check()` at `5bdaffa` and at this commit compared on the descriptions of 1,029 PRs of this repository (all states): no verdict changes. - Merged together with #834 on main `930e8b4`: 25 tests pass. **Regression run** - not a runtime change (scripts only) **Not tested** - Negation: "no Llama was used" under **AI use** is still refused, as on main. Whether to allow it is a policy question, not changed here. - The Rust workspace was not built or tested: no Windows machine. `cargo test --workspace` and the GPU suite were not run; this PR changes no Rust. - The `PR checks` workflow on GitHub's runner. - Merge requirement 2 (whole suite on a GPU) is not met from this machine. **AI use** - Claude Code with Claude Fable 5.2: wrote the fix, the tests and this description. Reviewed by the author.
Rebuilt on main after #965 / #1037, which took over the empty-section and template-placeholder part of this
change. What is left:

- A section name in bold at the end of a sentence was taken for the section's heading. When the sentence
  came before the real section, the real one was never read: a filled description was reported empty.
- The heading search could start inside an HTML comment, so a section commented out as a whole passed.
- An unclosed <!-- hides the rest of the description on GitHub but was still read as text.

section_texts() returns what is under each heading (comments removed, heading lines of their own at both
ends); section_has_content() keeps main's placeholder rule over it.

scripts/test_pr_check.py: SectionHeadingTests, seven tests; three fail on main's check.

Assisted-by: Claude Code (Claude Fable 5.2)
The check for models this repository does not accept looked for the first **AI use** anywhere in the raw
description and stopped at the next bold line. So a comment or a sentence that named the section before the
real one hid it, a bold line inside the section ended the scan, and a model named only inside a comment was
refused.

It now reads section_texts(), the text the section check reads: comments removed, the section from its
heading line to the next heading line.

scripts/test_pr_check.py: BannedModelTests, five tests; three fail on the check before.

Assisted-by: Claude Code (Claude Fable 5.2)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:34:04 +00:00
Author
Owner

@⁠milas6669 on GitHub · 2026-11-24 06:42 UTC · original

Test report on 1b124f7 (PR head; it is based on an older main, 2997c9a, and merges into main beaa245 with no conflict, also with #834).

Tested

  • Intel i9-10900KF, Windows 11 Pro 10.0.26200, Python 3.14.0
  • cd scripts && python pr_check.tests.py: 17 tests, OK on this head.
  • Two things I noticed while running it: python -m unittest pr_check.tests fails to import (the dot in the file name makes it look like a package), and python -m unittest discover -s . -p "pr_check.tests.py" runs 0 tests ("NO TESTS RAN"), so the file runs only when started as a script. main already has scripts/test_pr_check.py, which unittest finds as test_pr_check; this PR adds a second test file next to it under another name.

Not tested

  • the workflow itself (pr-check.yml on GitHub); only the unit tests ran
  • the 3 tests in scripts/test_pr_check.py on this head (that file is not in this PR's base)

AI use

  • Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
**@⁠milas6669** on GitHub · 2026-11-24 06:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/835#issuecomment-7124205076) Test report on `1b124f7` (PR head; it is based on an older main, 2997c9a, and merges into `main` beaa245 with no conflict, also with #834). **Tested** - Intel i9-10900KF, Windows 11 Pro 10.0.26200, Python 3.14.0 - `cd scripts && python pr_check.tests.py`: **17 tests, OK** on this head. - Two things I noticed while running it: `python -m unittest pr_check.tests` fails to import (the dot in the file name makes it look like a package), and `python -m unittest discover -s . -p "pr_check.tests.py"` runs 0 tests ("NO TESTS RAN"), so the file runs only when started as a script. `main` already has `scripts/test_pr_check.py`, which `unittest` finds as `test_pr_check`; this PR adds a second test file next to it under another name. **Not tested** - the workflow itself (`pr-check.yml` on GitHub); only the unit tests ran - the 3 tests in `scripts/test_pr_check.py` on this head (that file is not in this PR's base) **AI use** - Claude Code, Claude Sonnet 5.5, ran the commands and wrote this report. I did not review the diff beyond reading it.
Author
Owner

@⁠dcastell1 on GitHub · 2026-11-24 07:09 UTC · original

Ran the script tests on this tree after applying the PR (Debian 13, Python 3.13.14, no other changes):

git apply this PR
cd scripts && python3 pr_check.tests.py
Ran 17 tests in 0.002s — OK

Covers the visible-AI-use scan the PR describes, and the stacked #527 part is not needed for these 17.

AI-assisted (opencode): applied, ran, reverted.

**@⁠dcastell1** on GitHub · 2026-11-24 07:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/835#issuecomment-7124688964) Ran the script tests on this tree after applying the PR (Debian 13, Python 3.13.14, no other changes): ``` git apply this PR cd scripts && python3 pr_check.tests.py Ran 17 tests in 0.002s — OK ``` Covers the visible-AI-use scan the PR describes, and the stacked #527 part is not needed for these 17. AI-assisted (opencode): applied, ran, reverted.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 10:27 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 10:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/835#issuecomment-7159730957) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/835/head:github-bot/gh-835'
git switch 'github-bot/gh-835'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-835'
git switch 'github-bot/gh-835'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-835'
git switch 'github-bot/gh-835'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-835'
git switch 'main'
git merge --squash 'github-bot/gh-835'
git switch 'main'
git merge --ff-only 'github-bot/gh-835'
git switch 'main'
git merge 'github-bot/gh-835'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.