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

Open
Rareuncommon wants to merge 2 commits from upstream-pr/835 into main
Rareuncommon commented 2026-11-24 06:31:18 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Rareuncommon on 2026-11-24T06:31:18Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5467314669 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/835). Originally posted by [Rareuncommon](https://github.com/Rareuncommon) on 2026-11-24T06:31:18Z. --- 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.
milas6669 commented 2026-11-24 07:06:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by milas6669 on 2026-11-24T06:42:14Z.


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.
<!-- greyfinch-sync:ivall/xcl:comment:7124205076 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/835#issuecomment-7124205076). Originally posted by [milas6669](https://github.com/milas6669) on 2026-11-24T06:42:14Z. --- 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.
dcastell1 commented 2026-11-24 08:03:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by dcastell1 on 2026-11-24T07:09:51Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7124688964 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/835#issuecomment-7124688964). Originally posted by [dcastell1](https://github.com/dcastell1) on 2026-11-24T07:09:51Z. --- 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.
DavidM1911 commented 2026-11-25 11:09:05 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T10:27:53Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7159730957 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/835#issuecomment-7159730957). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T10:27:53Z. --- 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!
github-actions[bot] commented 2026-11-29 20:40:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:40:56Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7262273811 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/835#issuecomment-7262273811). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:40:56Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 04:16:11 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:16:11Z.


Triage (#1607) – head 9df3fd1

Stacked on #527: the first commit (5bdaffa) is #527's section_texts() change unchanged; only the top commit (9df3fd1) belongs here. That is not a duplicate.
The top commit makes the banned-model check in scripts/pr_check.py:check read section_texts(body, "AI use") instead of the first raw **AI use** match up to the next bold line, with five BannedModelTests. No other open PR changes the model check. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7300555052 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/835#issuecomment-7300555052). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T04:16:11Z. --- **Triage (#1607)** – head 9df3fd1 Stacked on #527: the first commit (`5bdaffa`) is #527's `section_texts()` change unchanged; only the top commit (`9df3fd1`) belongs here. That is not a duplicate. The top commit makes the banned-model check in `scripts/pr_check.py:check` read `section_texts(body, "AI use")` instead of the first raw `**AI use**` match up to the next bold line, with five `BannedModelTests`. No other open PR changes the model check. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/835:upstream-pr/835'
git switch 'upstream-pr/835'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/835'
git switch 'upstream-pr/835'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/835'
git switch 'upstream-pr/835'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/835'
git switch 'main'
git merge --squash 'upstream-pr/835'
git switch 'main'
git merge --ff-only 'upstream-pr/835'
git switch 'main'
git merge 'upstream-pr/835'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!829
No description provided.