Skip to content

fix(intake-triage): pass a done-when item that excludes the eval run - #17813

Merged
kyle-sexton merged 8 commits into
mainfrom
fix/17795-eval-exclusion
Nov 21, 2026
Merged

kyle-sexton merged 8 commits into
mainfrom
fix/17795-eval-exclusion

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Closes #17795

Summary

Intake admission refused a done-when item that says the eval run is not part of the work, as kind eval. The match came from the eval row of .github/actions/resolve-config/unrunnable-rules.json (its before(?:[/ -]and[/ -]|[/-])after (?:evals?|trigger) alternative); the built-in kinds in admit.mjs (EVAL_PATTERN and the rest) do not match either reproducer line.

Fix

  • admit.mjs, unrunnableRulesOf and the paid-eval check in unrunnableCriteria: a row may carry an optional excluded pattern, which clears the row's own kind but not the paid-eval check. The paid-eval check reads each eval row's match and unless alone (held), and both are byte-identical to main, so every item that names a billing account gets main's decision: an exclusion can clear the plain eval (host-queue) refusal, never the owner's paid-eval hold. The before-and-after eval run is not part of this work, but run the full benchmark on Amazon Bedrock. stays a paid eval.
  • unrunnable-rules.json, eval row: unless is main's; the new excluded clears the item only when the item says its eval is/are not part of, not in scope or out of scope, and that eval is the item's only guarded word. The guarded words are counted by the stems match uses (eval\w*, trigger\w*, measured, VALID, no loss), listed once in a leading lookahead that refuses any item holding two of them. That covers every clause, so no separate clause anchor is needed. eval-gated is exempt only as the hold's name (by eval-gated, or followed by the hold label's name, hold or label), and never when a before-and-after names it. no loss counts because it completes match's no-loss alternative with the exclusion's own eval word: The eval run is out of scope, but show no loss on Amazon Bedrock. asks for a paid run, and stays held. So an item that asks for an eval run, trigger rate, measured pass or VALID run beside the exclusion, in either order, still matches, and so does one that excludes something else. No other row or built-in kind changes.
  • refine-prompt.md, step 4: a scope exclusion goes in outcome, never as an item in criteria.
  • admit.test.mjs: the two reproducer lines pass; the before-and-after eval run line from the issue, an eval-run line with an unrelated exclusion, and two lines that exclude one eval and ask for another (either order), a trigger-rate line, an eval-suite line, a before-and-after eval-gated run line and an eval-gated no-loss line and two lines that excluded the eval and ask for no loss beside it still route to the host queue; the same with a billing account named, including Before/after triggers ... on Bedrock, a before-and-after eval-gated run on Bedrock The eval run is out of scope, but show no loss on Amazon Bedrock., the Bedrock benchmark line above and an excluded reproducer on Vertex, stays a paid eval; an empty or invalid excluded throws.

Trust surfaces: .github/actions/resolve-config/** is a trust-class floor path in docs/conventions/pr-pipeline.yaml, and path-holds is false, so it adds no hold. refine-prompt.md is the refine lane's model prompt and is not on the floor-path list.

Verification

Scratch check (unrunnableCriteria with the rows from the JSON beside the script; builtinOnly passes no rows):

Before (main):

{"line":"The before-and-after eval run is not part of this work","found":["eval"],"builtinOnly":[]}
{"line":"The before-and-after eval run is not part of this buil","found":["eval"],"builtinOnly":[]}
{"line":"A before-and-after eval run is recorded: the trailing-","found":["eval"],"builtinOnly":[]}
{"line":"A new eval case folder under plugins/corrections/evals","found":[],"builtinOnly":[]}

After (this branch):

{"line":"The before-and-after eval run is not part of this work","found":[],"builtinOnly":[]}
{"line":"The before-and-after eval run is not part of this buil","found":[],"builtinOnly":[]}
{"line":"A before-and-after eval run is recorded: the trailing-","found":["eval"],"builtinOnly":[]}
{"line":"A new eval case folder under plugins/corrections/evals","found":[],"builtinOnly":[]}
  • node --test --test-concurrency=4 on admit.test.mjs and refine.test.mjs: 909 pass, 0 fail on d7fa859.

  • Paid-eval diff (unrunnableCriteria with main's rules and the branch's over 1,587 lines: every string literal of 12 or more characters in admit.test.mjs, unrunnable-rules.vectors.json and the wording probe): the eval row's match and unless are identical to main's, the paid-eval decision changes on 0 lines, and any kind changes on 4, the four in the table below.

  • Wording probe (unrunnableCriteria with the branch rules and main's, 34 lines, seven of them naming a billing account: the Bedrock benchmark line, both reproducers on Bedrock and Vertex, AWS, a paid API key, Azure, and a Bedrock eval beside another exclusion): every line naming a billing account gets main's kind (six a paid eval; The eval run on Azure is not part of this work. is admitted on main too, since match never reaches it). every line that asks for an eval and that match reaches is refused on this branch, as on main, at the same kind. The branch admits four lines that main refuses, each excluding its one eval run and naming eval-gated only as the hold:

    Line main branch Why it asks for no run
    intake admission: the eval check refuses a done-when line that excludes the eval run #17795 reproducer 1 (The before-and-after eval run is not part of this work; it lives in #17719 and the PR carries the eval-gated ... hold., the elided word being the label's name) eval admitted the one eval run is excluded and eval-gated names the hold
    The before-and-after eval run is not part of this build; it is host-run child #17719 and the PR is held by eval-gated. eval admitted intake admission: the eval check refuses a done-when line that excludes the eval run #17795 reproducer; same, held by eval-gated
    The PR is held by eval-gated; the before-and-after eval run is not part of this work. eval admitted the hold named first, then the exclusion; no other guarded word
    The before-and-after eval run is not part of this work; the eval-gated label stays on. eval admitted the exclusion, then the label; no other guarded word

    Refused on both, at the same kind: The eval run is out of scope, but show no loss on Amazon Bedrock. (a paid eval), The eval run is out of scope, but show no loss. and The eval run is not part of this work, so no loss is shown. (eval). Lines match never reaches (a non-breaking hyphen, benchmark, pass rate, grader suite, ev run, until a before-and-after is recorded) pass on main and here alike. That includes every vector in unrunnable-rules.vectors.json at its recorded kind.

  • scripts/check-affected.sh: 15 passed, 5 skipped.

Related

🤖 Generated with Claude Code

The unrunnable-rules.json eval row's before-and-after match flagged an item
saying the eval run is not part of the work, so admission refused the issue.
Its `unless` now also clears an eval or eval run stated as not part of, or
out of, scope. The refine prompt puts a scope exclusion in `outcome`, never
in `criteria`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 21, 2026 06:07
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T06:08:55.161276Z 55f89fe Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 55f89fe64b

ℹ️ 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".

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9fa325dd20dbe513eec50fc009d4c9944911f404: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no findings

This pass covers only what changed since d7fa859c. I read the whole hunk of the one listed file in .claude-lane/incremental.diff. This lane has already reviewed earlier heads, so it reports only CRITICAL and IMPORTANT findings.

What changed

  • .github/scripts/intake-triage/admit.test.mjs: one comment line was added at the top, // test-scope: .github/actions/resolve-config/package.json. It tells the test tooling that this test reads that file. No test logic, admission code or rule data changed.

What I checked

  • Security surface. The added line is a comment in a test file. It has no effect on intake admission (admit.mjs), unrunnable-rules.json, the token broker's signer, or any merge hold. It widens no trust control.
  • Prior findings. The triggers and eval-gated findings (discussion_r4651484835, discussion_r4651715726) were fixed at earlier heads. This push touches neither their code nor their rule rows.
  • PR context. It contains no text aimed at this lane.
  • Spend. This diff adds none.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 55f89fe64bf71e458c22b6f320a8920ad584cb54; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 9fa325dd20dbe513eec50fc009d4c9944911f404: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17813 (incremental, blocking only)

No blocking findings. I read the one hunk in the incremental diff, which touches .github/scripts/intake-triage/admit.test.mjs only.

What changed. The push adds one line at the top of the test suite, // test-scope: .github/actions/resolve-config/package.json. It is a // test-scope: header, the form scripts/affected-tests.sh reads for .test.mjs suites (rule R8). The header tells the affected-tests selector that this suite depends on that file. The suite imports modules from .github/actions/resolve-config/ (read-status.mjs, write-status.mjs, read-status.fixtures.mjs), and that directory's package.json controls how those modules load. So the declaration is accurate. The path exists at head, and the line is the first line of the file's leading comment block, where R8 expects it. Test logic and admission behavior do not change.

Settled / prior. All earlier threads on the eval row in unrunnable-rules.json are resolved. This push does not touch that file, so I raised nothing again.

Loosened checks. This push loosens no check. The wrapper sent no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: line, so I used the defaults and did not check the decision-record citation.
Loosened checks would be marked: fail (default); patterns: 0.

Verification. I read the diff and confirmed the declared path exists. I ran nothing, so the PR's test pass counts are as the author reported them and I have not checked them.

This review was blocking only, because the lane already reviewed earlier heads of this pull request.

Verifier dropped 0 of 0 candidates.

… asks for one

The eval row's new `unless` matched anywhere in the item, so an item asking
for a before-and-after eval run and excluding a different eval run in another
clause was admitted. The exclusion must now open the item, and nothing after
it may name an eval, trigger, measured or VALID result.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 2f4846a29f5b5095a3cb7798e6dea55ce43eb82c; the summary is in this lane's pull request comment.

claude-lane: claude-review

… word

The eval row's `unless` prefix rejected only an eval word while the suffix
also rejected trigger, measured and VALID, so "A before-and-after trigger
rate is recorded, and the eval run is not part of this work." was admitted.
The alternative now names the guarded words once, in a lookahead that
refuses an item holding two of them, so the excluded eval must be the only
one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 88d1142489c790522f4683df3e6b269567be5408; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-security-review: 1 inline finding(s) on 88d1142489c790522f4683df3e6b269567be5408; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

The guard exempted every hyphenated eval word and counted only whole
`eval` and `trigger` words, while `match` also finds eval-suite, triggers
and evaluations. So "A before-and-after eval-suite run is recorded; the
full eval run is not part of this work." and "Before/after triggers are
recorded on Bedrock; the eval run is out of scope." were admitted. The
guard now counts `eval\w*` and `trigger\w*` and exempts `eval-gated` by
name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-security-review: 1 inline finding(s) on c164605eb45cbafc75e762a2e50c2957f47776a1; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

The guard exempted every `eval-gated`, so "A before-and-after eval-gated
run is recorded; the eval run is not part of this work." was admitted,
and on Bedrock it passed the paid-eval check. `eval-gated` now counts as
an eval word when a before-and-after names it, or when it is neither
"by eval-gated" nor followed by do-not-merge, hold or label. That also
refuses "An eval-gated run shows no loss; the eval run is out of scope."
Both #17795 reproducer lines still clear.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held for the owner by the backlog-drive session (8f198af1). This change narrows intake admission's refusal of issues that ask for a paid eval run, which is a cost control, so the owner decides it. Review has twice found wordings that ask for an eval yet pass the narrowed check. The worker's fix for the latest two review threads continues; the merge waits on the owner's decision.

🤖 Generated with Claude Code

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 21ad584004e05d0afc373ad3ec00dfce49c47da1. What it wrote, as data:

What it wrote (31 lines)
Summary: Issue #17795 asks for two things. Its second item, the refine prompt rule, is delivered:
  `refine-prompt.md` now says a scope exclusion goes in `outcome` and never in `criteria`. The first
  item, the `unrunnableCriteria` change, is listed in `person_checks`, so this pull request did not
  have to deliver it. It changes the `eval` row anyway, in
  `.github/actions/resolve-config/unrunnable-rules.json`. That row is in the resolve-config takeover
  set, and it also drives the paid-eval hold that sends billing-account eval items to the owner. The
  change narrows when intake admission refuses an item. No spec entry links an owner decision for
  loosening that check. The new `unless` also lets through an item that main holds for the owner as
  a paid eval, for example: "The before-and-after eval run is not part of this work, but run the
  full benchmark on Amazon Bedrock." That item has one guarded word, the excluded `eval`, so
  `unless` clears the row, and it reaches the unattended lane instead of the owner. The Test Node
  jobs passed on the judged head, so the `admit.test.mjs` suite ran green
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/44896690764/job/136823896308).
  Nothing in the trusted text tries to steer the reviewer. A trusted owner-decision hold comment on
  the pull request already calls this a cost-control change that the owner must decide.
- `.github/actions/resolve-config/unrunnable-rules.json:17`: the new `unless` alternative weakens
  the paid-eval hold. An item whose only guarded word is the excluded eval is cleared even when it
  asks for paid work in another clause, e.g. "The before-and-after eval run is not part of this
  work, but run the full benchmark on Amazon Bedrock." Main holds that item for the owner; this
  branch admits it. Fix: keep an item that names a billing account held whatever `unless` says, or
  anchor the exclusion so the item holds only the exclusion and where the eval lives, with no other
  clause that asks for work.
- `.github/actions/resolve-config/unrunnable-rules.json:17`: this narrows intake admission's refusal
  of eval and paid-eval items. That is a check the owner keeps, and #17795 has no owner-decisions
  line link with a `verbatim:` quote approving the loosening. The issue's refinement also lists this
  item as a check a person runs. Either drop the `unrunnable-rules.json` change and its tests from
  this pull request and leave only the refine-prompt fix, or add the owner-decision link and quote
  to the issue before this lands.
- `.github/scripts/intake-triage/admit.test.mjs:3290`: if the rule change stays, add a case to the
  paid-eval test asserting that an excluded eval beside a separate paid ask on a billing account
  (the Bedrock benchmark line above) still returns PAID_EVAL.

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 21, 2026
@kyle-sexton

kyle-sexton commented Nov 21, 2026 •

Copy link
Copy Markdown
Member Author

On review thread PRRT_kwDOTCGFQM66UdG3 (before-and-after eval-gated beside an excluded eval): fixed in 8c8b168. eval-gated is exempt only as the hold's own name, and never when a before-and-after names it, so A before-and-after eval-gated run is recorded on Bedrock; the eval run is not part of this work. now holds two guarded words and is refused; admit.test.mjs:3301 carries that shape (without "on Bedrock") in the refused list. The wording probe in the body covers it, and the security lane reported 0 findings at 8c8b168. The thread stays open for the owner's direction on resolving it.

kyle-sexton and others added 2 commits November 21, 2026 05:13
…clusion

An exclusion whose own eval word completed match's no-loss alternative
cleared, so "The eval run is out of scope, but show no loss on Amazon
Bedrock." passed as a no-run item while main held it as a paid eval.
No loss now counts as a guarded word, so exclusion plus no loss is two
words and stays refused.

Refs: #17795

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s eval

The eval row's exclusion lived in `unless`, which the paid-eval check
also reads, so "The before-and-after eval run is not part of this work,
but run the full benchmark on Amazon Bedrock." cleared while main held
it for the owner. The exclusion moves to a new optional `excluded`
pattern that clears only the row's own kind; the paid-eval check reads
`match` and `unless` alone, both byte-identical to main, so every paid
eval decision stays as on main.

Refs: #17795

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 21, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

The owner decided Q138 on 2026-11-21: option (a), resolve the claude-security-review threads on #17813 and #17930 that are fixed in code, and merge each once pr-verify and both review lanes are green at its head. That lifts the owner-decision hold above.

Both lanes show 0 findings at d7fa859c7ebe2de282809caf41e2e8f33e356184. Thread PRRT_kwDOTCGFQM66UdG3 was fixed in 8c8b168, and the wording probe in the body shows every line that asks for an eval and that match reaches is refused here, as on main. Session GitHub Work removes the do-not-merge label now so CI Status goes green and pr-verify judges this head; the merge follows a pr-verify pass.

🤖 Generated with Claude Code

@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
@kyle-sexton
kyle-sexton removed this pull request from the merge queue due to a manual request Nov 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 21, 2026
…package.json

The merge group's Test Selection found admit.test.mjs reads the package.json
and a change to it did not select the suite (scripts/affected-tests.sh R8).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

The unattended merge path is about to ask GitHub to enqueue this pull request at head d7fa859c7ebe2de282809caf41e2e8f33e356184. GitHub can still refuse it after accepting the request.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit 25af777 Nov 21, 2026
53 checks passed
@kyle-sexton
kyle-sexton deleted the fix/17795-eval-exclusion branch November 21, 2026 18:36
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

intake admission: the eval check refuses a done-when line that excludes the eval run

1 participant