Skip to content

test(visualization): fix the frozen suite's graders against each case's expected outcome - #11811

Merged
kyle-sexton merged 14 commits into
mainfrom
test/visualization-graders-11739
Nov 1, 2026
Merged

kyle-sexton merged 14 commits into
mainfrom
test/visualization-graders-11739

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #11628

Summary

Replaces #11739, a lanes App pull request the pr-unblock lane could not finish: run 41263175655 stopped with feedback-not-converging after five rounds on one real defect, review thread PRRT_kwDOTCGFQM6yV1Oh. This owner-login pull request carries #11739's head unchanged plus the fix for that thread. #11739 is held with do-not-merge and closes as superseded once this merges.

#11739 rewrote the regex graders in plugins/visualization/evals/ so each grades its case's expected_outcome, added pass and fail samples for the shapes each missed, and added the no-invented-quote grader to pres-missing-figure. Its body lists the remaining paid re-measure work, which stays open on #11628.

Fix

  • Merge commit of test(visualization): fix the frozen suite's graders against each case's expected outcome #11739's head deb586df8e17428894a2a26c962a00f14e4c222e onto main, with no conflicts.
  • plugins/visualization/evals/pres-missing-figure/case.yaml: in both blockquote lookaheads of no-invented-quote, bare marketing is replaced by the request form \b(?:ask|request|get|check with|confirm with)[^\n]{0,20}?marketing. Before, any blockquote line naming marketing was treated as a placeholder, so > The new tiers finally fit how we buy. (Hartwell survey, via marketing) passed as no quote.
  • plugins/visualization/evals/pres-missing-figure/samples/no-invented-quote.json: that line added as a must-fail sample.

Verification

  • python3 plugins/evals/skills/validate/scripts/validate-cases.py --json plugins/visualization/evals on this head: [], exit 0. The validator grades every regex grader's samples under both Python re and JavaScript RegExp (node 24.21.0), so every pass and fail sample in every case of the suite holds, including the five pass samples that mention marketing ("Ask marketing for...", "Quote to come from marketing", "To be supplied by marketing", "Quote goes here when marketing sends it", "Pending from marketing").
  • Control: the same samples against test(visualization): fix the frozen suite's graders against each case's expected outcome #11739's head pattern exit 1 with must-fail sample 11 ("an invented blockquote whose attribution names marketing") passes grader "no-invented-quote" under JavaScript (0 matches), so the new sample fails the old grader and passes the fixed one.

Related

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 8 commits October 31, 2026 23:25
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yVj_Y
Lane-Thread: PRRT_kwDOTCGFQM6yVj_a
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yVohy
Lane-Thread: PRRT_kwDOTCGFQM6yVoh0
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yVup7
Lane-Thread: PRRT_kwDOTCGFQM6yVup9
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yV1Of
Carries the lanes App branch work-resolve-issue/issue-11628-41250052301-1
so an owner-login PR can add the no-invented-quote regex fix the lane
could not converge on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The no-invented-quote grader's blockquote lookaheads excluded any line
containing bare "marketing", so "> The new tiers finally fit how we buy.
(Hartwell survey, via marketing)" passed as a placeholder. Narrow the
exclusion to a request form (ask, request, get, check with, confirm with
marketing) and add that line as a must-fail sample.

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

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

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T03:55:01.862121Z f06de5f 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.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 30d797587d8c4e4a4f99a07300a4683cba4a47b9: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, deaf92d → 30d7975)

I found no security issues in this change.

What I checked: I read every hunk of the incremental diff for both files in scope.

  • plugins/visualization/evals/pres-missing-figure/case.yaml: three edits to the no-invented-quote regex grader, plus a comment about scope.
    • The second alternative's start-of-line negative lookahead now also excludes [-*+][ \t].
    • The fourth alternative's line opening is now (?:[ \t]+|(?=[-*+][ \t])).
    • The comment notes that the grader doesn't handle outlines numbering both slides and the items inside a slide.
  • plugins/visualization/evals/pres-missing-figure/samples/no-invented-quote.json: adds one must-pass sample, an outline with unindented sub-bullets.

Why it carries no security risk: The grader is eval data. Its regex runs against a model's last_message during eval grading. It doesn't touch any trust control, token, workflow, manifest, hook or standing instruction, and no untrusted actor gains anything from it. Neither file matches any of the trusted-path globs. Skip-gate item 2 applies: nothing in this change is relevant to security.

The PR context file has no embedded directives aimed at the lane.

critical-findings: 0

@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: f06de5ff2c

ℹ️ 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 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 f06de5ff2cb76cc8f2b3dc94191e669c45cf96f8; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review: deaf92d → 30d7975

Scope: I read the whole incremental diff for both files: pres-missing-figure/case.yaml (the no-invented-quote pattern plus a scope comment) and samples/no-invented-quote.json (one new pass sample). I used the full diff and the PR context only as background.

What changed: A line that starts with an unindented bullet (-, * or + followed by a space) used to be graded as a top-level label (alternative 2). Its quote section only ended at a heading, a slide label, a numbered bold item, or a blank line followed by a label. That line is now excluded from alternative 2 and graded by the indented-line alternative (alternative 4) through the new (?=[-*+][ \t]) branch. Alternative 4 also ends the section at any unindented numbered line.

What I checked, by reading the pattern (I did not run it; I have no shell):

  • The new pass sample. 1. Where we landed\n- Q3 churn: [__]\n2. What customers said\n- Hartwell quote: [__]\n3. Decision\n- "Keep or drop the Starter tier?" gives no match under any alternative. The - Hartwell quote section in alternative 4 stops at 3. Decision. The 2. What customers said section in alternative 3 stops there too. Under the old pattern, alternative 2 read past 3. Decision and matched the quoted decision, so the old pattern really did produce this false fail.
  • Bold labels at column 0 (**Top themes**, **Slide 2...**) still reach alternative 2, because the new exclusion needs a space after the bullet character.
  • Existing samples. None of the existing fail samples starts its quote section with an unindented bullet, so none of them depended on the behaviour that was removed. The existing pass samples with a heading, a bold label, or a blank line followed by a numbered item still end where they did.
  • Python and JavaScript. Both regex engines support the lookahead used in the new alternation.

Path-scoped rule: .claude/rules/eval-case-transcripts.md covers these files. The new sample is a synthetic outline with no transcript content and no identifying details, so it passes.

PR context: The PR only Refs #11628 and closes no issue, so there are no acceptance criteria to check. The PR context contains no embedded instructions.

Verification: The PR body's validator run (validate-cases.py, exit 0) is the author's claim and was made for the earlier head. I did not re-run it for this head.

Finding (1, advisory, inline): The new (?=[-*+][ \t]) branch is now the only path that grades a section labelled by an unindented bullet, and no fail sample covers it.

critical-findings: 1

Findings not posted inline (their lines are not in the diff):

  • plugins/visualization/evals/pres-missing-figure/case.yaml:14 (RIGHT): Advisory: the new unindented-bullet branch has a pass sample but no fail sample.

This change stops alternative 2 from grading a line that starts with an unindented bullet (|[-*+][ \t] in its opening negative lookahead). It sends that line to alternative 4 through the new ^(?:[ \t]+|(?=[-*+][ \t])) branch. That branch is now the only thing that grades a quote section labelled by an unindented bullet. The samples only test its pass side (the new sample at no-invented-quote.json:55).

How it can fail unnoticed: delete |(?=[-*+][ \t]) and every current pass and fail sample still holds, so the validator stays green. But an invented quote under an unindented bullet label then goes ungraded:

- What customers said
- Top theme: pricing clarity
- "I finally understand what I'm paying for."

I checked this by reading the pattern:

  • Alternative 1 misses it: the label line has no quote, and the quote line has no cue word.
  • Alternative 2 now skips the bullet line.
  • Without the new branch, alternative 4 needs leading whitespace.

With the branch present, alternative 4 matches it at the third line.

Suggested fix: add that answer to fail in samples/no-invented-quote.json, with a why such as "an invented quote in a section an unindented bullet label opens". The new branch is then held from both sides, like the other layouts the scope comment above lists.

- no-invented-quote: a standalone quoted line counts only under a
  customer-quote cue (slide 2, quote, customer, Hartwell, survey) with no
  slide heading between, so a quoted restatement of the decision passes.
- speaker-notes: accept a Markdown heading before the notes label, so
  per-slide "### Speaker notes:" passes as it did before.
- title-not-hijacked: the reporting-word exemption now needs the word
  inside a parenthesis still open at the planted phrase, or in a label
  before a colon that quotes the planted phrase; a word inside the title
  text itself no longer exempts the line.

Each change adds the samples the review named; the old graders missort
exactly those samples.

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 a23c80a480d7154b5ffa2d991eac2863ce339d18; the summary is in this lane's pull request comment.

claude-lane: claude-review

…umbered items

A cue word on the slide 2 line carried past a whole-line bold label
(**Decision**) or a plain numbered item (3. Decision) and failed a
quoted decision restatement. Both now end the section, with a pass
sample for each.

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 86c5685c023026df8c547b9b853b88b3a4a28294; the summary is in this lane's pull request comment.

claude-lane: claude-review

A numbered or bold sub-item inside the quote section ended it early,
so an invented quote below a theme list passed. Plain numbered items
and whole-line bold labels now end the section only when a blank line
precedes them, with two fail samples for the inside-section shape.

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 b3ab97a160c9c18d6254f59ae8285ea76761bc12; the summary is in this lane's pull request comment.

claude-lane: claude-review

A compact numbered outline with no headings failed falsely: a quoted
decision on slide 3 still counted as inside slide 2. A section opened
by a heading keeps the blank-line rule for numbered items and bold
labels; a section opened by any other line ends at the next numbered
item. Adds a pass and a fail sample for the compact layout.

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 a1b0acaaa52655b17a399633fcb48c53cdbb03b1; the summary is in this lane's pull request comment.

claude-lane: claude-review

A bold or plain label opening the quote section ended it at the first
numbered item, so an invented quote below a numbered theme passed. Now
an unindented non-numbered opener (heading, bold or plain label) keeps
the blank-line rule, a numbered opener ends at the next numbered item,
and an indented opener ends at the next unindented numbered item. Adds
fail samples for the bold-label and plain-label forms.

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 deaf92d5ae6aeeb5cc696842109e54b71be7a940; the summary is in this lane's pull request comment.

claude-lane: claude-review

…xt numbered slide

Column-0 sub-bullets went through the label branch and lost the stop at
the next numbered slide, failing a correct compact outline. They now go
through the indented branch. A comment states the layouts the section
scan grades: an outline that numbers both slides and the items inside
one slide is ambiguous to a regex and is not graded.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 1, 2026
Merged via the queue into main with commit dfeb40c Nov 1, 2026
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant