Skip to content

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

Open
Rareuncommon wants to merge 2 commits into
xcl-dev:mainfrom
Rareuncommon:scripts/pr-check-ai-use-visible-text
Open

Rareuncommon wants to merge 2 commits into
xcl-dev:mainfrom
Rareuncommon:scripts/pr-check-ai-use-visible-text

Conversation

@Rareuncommon

@Rareuncommon Rareuncommon commented Nov 24, 2026 •

Copy link
Copy Markdown

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 PR checks: a section with nothing under it is refused as empty #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

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 Rareuncommon changed the title Scripts/pr check ai use visible text PR checks: the model check reads what is visible under AI use Nov 24, 2026
@milas6669

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown

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.

phantomic12 pushed a commit to phantomic12/xcl that referenced this pull request Nov 24, 2026
…ree surveys

The harness reads d3d12.last_frame_dump from report.json (sampled_pixels / non_dark_samples)
instead of parsing BMPs - that is the number XCL already computes, and it is what issue ivall#717
proposes to put in the smoke block. -MinLitPct (default 1) fails a run whose last frame is dark,
so a black screen cannot be reported as a pass.

Surveys committed (docs/):
- bcpack-decoder-plan.md: BCPack is already staked out upstream by ivall#888/ivall#856/ivall#832, and no public
  bit layout exists - the seam is definable but every stream detail is 'unknown - needs a sample'.
- upstream-scan.md: 17 PRs and 25 issues touch this area; the smoke block format is
  maintainer-owned (ivall#834/ivall#835/ivall#717) and our summary.md is not an xcl-smoke v1 block.
- trap-695-not-reproduced.md: issue ivall#695's int3 at +0x4dcbc9d does not happen on this AMD RDNA2
  machine over 6 consecutive 120 s runs, with the same shader and PSO refusals - a data point for
  that issue.

Windows PowerShell 5.1's Get-Content -Raw mangles the en-dash in the 'backend' line, so the GPU
name is read with [IO.File]::ReadAllText.
@upipibi upipibi mentioned this pull request Nov 24, 2026
… removed first

Rebuilt on main after ivall#965 / ivall#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)
@Rareuncommon
Rareuncommon force-pushed the scripts/pr-check-ai-use-visible-text branch from 1b124f7 to 9df3fd1 Compare November 24, 2026 14:50
@ivall ivall added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants