Repository navigation
feat(toolchain): name changed files outside every ecosystem - #16186
Conversation
- code-tidying: changed-code-files.sh, scope-code-files.sh and comment-census.py read one shared list, scripts/code-extensions.txt. changed-code-files.sh now admits the seven extensions it lacked (mts, cts, mjs, cjs, pyi, bash, psm1), an intended change. Each script exits 4 and names the list's path when it cannot read it. - suppression scanner (lib/suppression-scan.py and its two copies): a new --unread-to <file> option lists each text file in scope whose language the scanner has no kind for; stdout, --count included, is unchanged. /code-metrics:audit-suppressions names those files in the report, the JSON document (unread) and the findings file's Surfaces section. - testing setup.sh: the language loop's catch-all arm names a detected language it has no lint check for, without counting it as a finding. Refs: #15705 Co-Authored-By: Claude Opus 5.5 <[email protected]>
/toolchain:lint and /toolchain:check name each changed text file no ecosystem's globs claim on a `Not linted` / `Not checked` line below the table, instead of skipping it silently. A binary file stays quiet, a match by a disabled or lint-only ecosystem counts as claimed, cross-cutting's `**` does not, and the line changes no Status or Overall line. A run whose changed files no ecosystem runs on prints the line and stops. The new ln-names-unclaimed-source eval case changes a markdown file, a source file no ecosystem claims and a binary image, and checks that the source file is named, the image is not, and the run still passes. Refs: #15705 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #15705 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Cross-cutting's checks run over the whole tree, so in a repository that opts into them a file no ecosystem claims may still be linted. Both skills now print `Outside every ecosystem: <path>, <path>` instead of `Not linted` / `Not checked`, and the new eval case's graders, samples and the toolchain fragment follow. Refs: #15705 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…kipped-files-15705
…ndings - toolchain lint: a file a running cross-cutting pass covers is no longer listed as outside every ecosystem; check states that cross-cutting never claims there, and that the lint-only yaml surface, disabled and opt-in-skipped ecosystems do. Both name the git range the binary test reads. - ln-names-unclaimed-source turns cross-cutting off explicitly; ln-runs-yaml-and-cross-cutting gains a grader that its text files are not reported as outside every ecosystem. - code-tidying scripts test the extension list before reading it, so a missing list prints only their own message. - suppression scanner: the file kind is computed once and passed to scan_text; both copies regenerated. - fragments: drop the ratchet --unread-to bullet; state what exit 4 reports. Refs: #15705 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…kipped-files-15705
A running cross-cutting pass no longer hides a changed file no other ecosystem claims: lint names it on `No ecosystem linter (cross-cutting text checks only)`, and on `Outside every ecosystem` when cross-cutting did not run. Cross-cutting's `**` is never a claim by itself, so a disabled cross-cutting config cannot claim either. Both skills name the numstat range for a caller-supplied list, say a deleted file is not named, and say `all` still reads the changed files. - New case ln-names-unclaimed-cross-cutting-on: the issue's demo with cross-cutting opted in. - ln-runs-yaml-and-cross-cutting: its text files must sit on the cross-cutting-only line, never the outside-every-ecosystem line. - Suppression scanner: kind_of_text reads the first line with splitlines, as scan_text did, so a CR-only extensionless file keeps its shebang kind; a test pins it, and both copies are regenerated. Refs: #15705 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, 2b37c1b → e5a312a): no security issues foundI found no security issues in this push. This lane already reviewed an earlier head of this pull request, so this review reports only CRITICAL and IMPORTANT findings. I read every hunk of both files in scope. Neither file matches a trusted-path glob. What changed
Why neither is a finding
Not affected: trusted actors, the lane token's scope, the kill switch, the token broker, merge holds, Spend: this push adds none. The PR context file contains no text aimed at this review. critical-findings: 0 |
|
claude-review reviewed Code review, incremental (2b37c1b → e5a312a): the "Outside every ecosystem" line is printed word for wordBlocking only. This lane has already reviewed earlier heads of this pull request, so this review reports blocking findings only and leaves out advisory ones. I read every hunk of both files in scope:
What changed Each skill gets one clause on its fixed line for unclaimed files. The line must be "printed word for word even when a note elsewhere in the reply says the same thing". This covers check's
Closing issue #15705 is still not met (restated each round because this finding has no line anchor)
Other notes
I dispatched no verifier subagents; this incremental review was a single pass. Verifier dropped 0 of 1 candidates. |
… reply
The first compare showed replies that named the unclaimed source file and
still added a note about the binary image ("was skipped", "binary, so
there was nothing to lint"). State in the report sections of both skills
and in lint's edge-case list that a binary file gets no mention at all.
Widen the new case's png-silent pattern to the wording it let through and
add that reply as a sample it must reject.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d45c792fc4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ecosystem Review found the sentence added in the last commit covered the whole reply, which would pull against required output such as a failing check's lines or the diff stat after a code fix. Limit it to binary files outside every ecosystem in both skills. Widen the new case's png-silent pattern to further wordings the reviewer found it let through (image, not text, left alone, excluded, no linter, did not lint). Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ile silence A failing check's lines or the diff stat after a code fix can name a binary file outside every ecosystem. Say that output the report shows stays as printed, so the silence rule covers only the skill's own notes. Co-Authored-By: Claude Fable 5.2 <[email protected]>
/toolchain:lint printed the cross-cutting-only line whenever cross-cutting was selected, even when its row was a skip such as a missing tool, which claimed text checks that never ran. The line now needs cross-cutting's check command to have executed (a pass or FAIL row); every other case, a skipped cross-cutting row included, uses the Outside every ecosystem line. Both line texts are unchanged. The binary test in /toolchain:lint and /toolchain:check ran git diff --numstat HEAD for a caller-supplied file list, which prints nothing for a path whose change is already committed. It now uses the caller's comparison range when the caller names one, and classifies the file itself with git diff --no-index when the diff has no entry. The same sentence restated git's numstat output for binary files. It now points at the --numstat section of the git-diff documentation instead, keeping only our rule that binary files stay unmentioned. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ked files The per-range numstat forms needed a no-index fallback for an untracked file or an already-committed path. Replace them with git ls-files --eol -c -o, which classifies the working-tree content of a tracked or untracked file in one read-only command, and point at its documentation section. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review found the docs pointer alone left two things to inference: which result means binary, and that the working-tree side is the one to read. State the rule in the skill's own words and say that a path with no working-tree content is never binary. Co-Authored-By: Claude Fable 5.2 <[email protected]>
In the second compare two of three Sonnet replies described cross-cutting coverage of unclaimed files in a note and left the fixed line out. Say the line is printed word for word even when a note says the same thing. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
The pr-verify verifier failed head What it wrote (38 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Third two-version compare (registration 3): opus MET, sonnet NOT METRecord for head Rule 1, validity: met on both models. All 42 files: Rule 2, paired 17 cases,
The sonnet drop is Rule 3, the three by-design cases, AFTER side, 6 runs each: met on both models.
BEFORE side for comparison: Hand read. No AFTER reply of Result. opus MET. sonnet NOT MET on rule 2. The registration allows no rerun, so this pull request stays as it is until the owner decides the next step. |
Post-merge mutation testingKilled 4, survived 3, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Closes #15705
This pull request carried the
do-not-mergelabel from its opening, as the issue's Method requires, until the compare record below was complete.Summary
/toolchain:lintand/toolchain:checkname each changed text file that no ecosystem's globs claiminstead of skipping it silently; binary files stay quiet. Every unclaimed text file is
named, for example
.txt,.json,.toml,.svg,.cssandLICENSE: the issue does not say howto tell a source file from an asset, and the owner chose this reading on 2026-11-14 (name every
unclaimed text file, keep binary files quiet; the decision record is on #15705). Three more executed adapters name what they cannot
read: the suppression scanner behind
/code-metrics:audit-suppressions, the testing setup script'scatch-all language arm, and the three code-tidying file-scoping scripts, which now share one
extension list.
Fix
**is never a claim by itself; a match by any other ecosystem counts,even a disabled or opt-in-skipped one. Lint names an unclaimed file on
No ecosystem linter (cross-cutting text checks only): <paths>when cross-cutting ran, else onOutside every ecosystem: <paths>; check never runs cross-cutting and uses only the second line.Neither line changes a Status or the Overall line. New eval cases
ln-names-unclaimed-source(cross-cutting off) and
ln-names-unclaimed-cross-cutting-on(the issue's demo); new graders onln-runs-yaml-and-cross-cutting.lib/suppression-scan.py, two generated copies):--unread-to <file>;stdout and
--countunchanged. The audit reportsNot read, JSONunread, findingsNot examined.setup.sh: the catch-all arm prints<lang> - NONE setup has no lint check for this language, not a finding.scripts/code-extensions.txtread by all three scripts;changed-code-files.shgains
mts cts mjs cjs pyi bash psm1(intended); exit 4 names an unreadable list.Verification
lib/suppression-scan.test.sh,audit-suppressions.test.sh,setup.test.sh,changed-code-files.test.sh,scope-code-files.test.sh,test_comment_census.py.scripts/check-affected.sh --no-fetch;scripts/sync-shared-copies.sh --check; evals staticvalidator on
plugins/toolchain/evals.comments, parent Resolve ecosystem specifics from the consumer repository and align the enforcement ladder with the talk's pyramid #15703 nor this repository's docs define one. The step taken is the issue's demo
as an eval case (
ln-names-unclaimed-cross-cutting-on):/toolchain:linton a diff that changesone
.rsfile where cross-cutting is opted in.Two-version eval compare (pre-registered, graders frozen)
The record is for this head. Before: 21e2c81 (the merge base).
After: e5a312a (this head). Both sides ran the after commit's
case files. Models
sonnetandopuscompared separately, judge claude-opus-5-5, Claude Code2.1.325. Registration 3 (
.work/eval-15705-prereg-3.md) was frozen before the first scored run:the 17 cases that exist on both sides ran 3 times per side, the three cases that test the new
behavior ran 6 times per side. 276 runs, 59.36 USD list. Every figure was re-derived from the 42
result files.
Rule 1, validity: met on both models. All 42 files read VALID in
run-validity.py --scaffolded,0 run errors, none partial, 0
is not a valid shim, 0 permission-check failures. Eachcommand not foundhit was read in its trace:pythonprobes inck-notice-reads-checkeron bothsides, one
mapfileunder zsh in a before-side run, andgofmtin one after-side sonnet run(below). None is a command a case's scaffold provides, and every run attempted its task.
Rule 2, paired compare over the 17 existing cases (
noise-report.py, margin 0.05, threshold 0.8):Sonnet did not meet rule 2. The dropped case is
ln-go-fix-filters-non-go, 1.00 to 0.67: oneafter-side run of three read the plugin's bundled
go.yamlinstead of the repository's own, ranbare
gofmt(not installed) and reportedINCOMPLETE. That result stands as recorded.Rule 3, the three new-behavior cases, after side, 6 runs each: met on both models.
ln-names-unclaimed-sourcepng-silent6/6png-silent6/6ln-names-unclaimed-cross-cutting-onln-runs-yaml-and-cross-cuttingtxt-cross-cutting-only4/6, the rest 6/6Before the change the same cases score 0.40 to 0.80, with
png-silent0/6 on both models. Read byhand: no after-side reply of
ln-names-unclaimed-source(6 per model) orln-missing-tool-png-silent(3 per model) mentions the image. The two sonnet replies that failedtxt-cross-cutting-onlydid not print the fixed line; one named both files in a Scope bullet, theother named neither.
Diagnostic check of the dropped case (registration 4,
.work/eval-15705-prereg-4.md). Registration3 forbids reruns; the owner granted one exception on 2026-11-14 for a check of this case only, with
its bar written before any run and registration 3's sonnet result left as recorded. Same two
versions, sonnet,
ln-go-fix-filters-non-go, 6 runs per side, 1.62 USD list. Both files VALID, 0errors, 0
command not foundhits. Before: mean 1.00, 6 of 6 runs pass every grader. After: mean1.00, 6 of 6 runs pass every grader. All 12 runs used the repository's
tools/run.sh go fix. Thebar (after mean at or above before mean) is met. Limit: 6 runs per side cannot show a small
difference; the result says the 1-of-3 miss did not repeat as a difference between the sides at
this size.
Result: opus met registration 3. Sonnet met rules 1 and 3 and missed rule 2 on one case whose miss
did not repeat in the diagnostic check. The owner's release condition for this case (Q150 (a)) is
met. That decision, answered 2026-11-14T19:39:27Z, is recorded on #15705 with its acceptance
criteria, beside the Q146 record; it amends the issue's "two-version compare is non-inferior" item
for this pull request.
Earlier compares, kept as history: the first (after side d45c792) read non-inferior on both
models while the new case's
png-silentand judge graders failed; the second (after sided8ff31f) read opus met and sonnet short on the new-behavior bar. Both heads are superseded by
the skill-text fixes in 5fdda19, 30e7f43, 2b37c1b and e5a312a, which this record covers.
Known limits
plugins/code-tidying/skills/remove-comments/SKILL.md:22runs the scope script with2>/dev/null || echo "(not a git repository)", which hides the new exit-4 message. Not changedhere, since editing that skill would bring its eval cases into scope.
shipped languages (
adapter-load.awk:415); its test reaches it through a loader copy.record-result.mjsexits 2 in theeval sandbox because it cannot write the git index there. Same on both sides.
Related
session: GitHub Support
🤖 Generated with Claude Code