Skip to content

feat(review): list fanout spec findings first under their own heading, then standards - #12204

Merged
kyle-sexton merged 9 commits into
mainfrom
feat/review-12138-intent-not-stated
Nov 2, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
feat/review-12138-intent-not-stated

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #12138

Replaces #12158

Summary

Owner-login replacement for #12158 (the lanes App cannot add a new .sh scaffold or edit PR bodies). This branch merges #12158's head (eb1d37768e) onto current main and adds the fix for its open review thread: the Intent: not stated axis rule had no test. /review:fanout gives each finding one axis, spec or standards, and lists them under ## By axis with ### Spec first. See #12158 for the full change description.

Fix

  • Everything in feat(review): list fanout spec findings first under their own heading, then standards #12158, merged as is (no conflicts).
  • New eval case plugins/review/evals/fanout-intent-not-stated-all-standards/. scaffold.sh (mode 100755) builds a branch whose only commit says wip, and the prompt states no purpose, so a non-interactive run must write Intent: not stated (fanout SKILL.md:100-102). The commit adds a CSV export that writes raw emails and breaks isWeekend. Three tool_used graders, each with pass and fail samples:
    • intent-not-stated-dispatched: an Agent dispatch carries Intent: not stated.
    • spec-reads-none: in the .work/reviews/ findings file, ### Spec reads none.
    • defect-under-standards: the weekend defect is under ### Standards.
  • docs/upstream/cursor-pstack.md: the interrogate row's fanout citations now point at the lines after this change: :93-97 to :95-99 (intent paragraph), :135-139 to :145-149 (Dismissed).
  • Changelog fragment: lists the new case.

Verification

  • python3 plugins/evals/skills/validate/scripts/validate-cases.py plugins/review/evals: no FAIL, exit 0. All three deterministic graders of the new case, and the sibling fanout-spec-first-email-redaction's three, sort their samples correctly. The new case's only WARNs are the same as the sibling's: allowed_tools Bash/Write need --allow-tools.
  • scripts/check-changelog-fragments.sh --check: all 8 fragments valid.
  • scripts/check-line-citations.py: clean.

Not verified:

  • The eval suite was not run (claude plugin eval, a paid run).
  • intent-not-stated-dispatched assumes default mode dispatches surfaces through the Agent tool.
  • Like the sibling case, the Write graders assume the findings file is written with the Write tool.
  • docs/contracts/detector-findings/README.md still does not list ## By axis among the sections a third-party detector may omit. Carried over from feat(review): list fanout spec findings first under their own heading, then standards #12158.

Related

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 7 commits November 1, 2026 22:56
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yfdfu
Add fanout-intent-not-stated-all-standards: a branch whose only commit
says "wip" and a prompt with no purpose, so a non-interactive run writes
Intent: not stated. Three tool_used graders check that the surfaces get
the marker, that ### Spec reads none, and that the isWeekend defect sits
under ### Standards, each with pass and fail samples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The row cited fanout/SKILL.md :93-97 for the intent paragraph and
:135-139 for the Dismissed section; after this change they are at
:95-99 and :145-149.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 2, 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-02T01:59:27.419602Z 56fb1b7 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 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12204 (incremental, 5ceefa7 → 5edc0d4)

I read every hunk of both files that changed since the last review and found no security issues.

Scope. Neither file matches a trusted-path glob. The plugins/review/evals/security-review-*/** glob does not match fanout-spec-first-email-redaction/. The change only touches eval test data. It does not touch a manifest, workflow, action, token, kill switch, merge hold, trusted-actor list or instruction surface.

What I checked:

  • case.yaml: loosens the input_match regex on the existing axis-row-keeps-rank-and-surfaces grader. It now trims padding around the Surface(s) cell, limits the redaction keyword to the same row, and also accepts PII and personal data as keywords. The grader only matches the Write input of an eval run. It runs nothing, reads no secrets and grants no tools. The case's allowed_tools, prompt and run settings are unchanged.
  • samples/axis-row-keeps-rank-and-surfaces.json: adds one static pass fixture. Its path is a placeholder under /tmp/ws/, and its content is made-up review markdown with no credentials, email addresses or real personal data.
  • Instruction surface: no standing instruction was deleted, narrowed or softened.
  • PR context: I found no embedded instructions aimed at this review.

Spend: none added. The grader runs inside the case's existing runs.

Prior findings: the only earlier entry is the clean summary from the last round. There is nothing to restate (round 0 of 3; the round cap does not apply).

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

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review, incremental: PR #12204 (5ceefa7b → 5edc0d44)

I read every hunk of both changed files in .claude-lane/incremental.diff: the rewritten axis-row-keeps-rank-and-surfaces grader in case.yaml and the new third pass sample. I also read the head case.yaml and the full head samples file.

No findings.

What changed

  • The Surface(s) capture is trimmed. \| *([^|]*?) *\| in ## Findings now pairs with \| *\2 *\| under ### Spec, so tables padded to different widths still match. That fixes the padding sensitivity I noted last round as an observation (not counted as a finding).
  • The topic match now covers the whole row. (?:(?!\\n).)*? stops at the row's escaped newline, so the topic word can now sit in the Finding or the Action cell, not only Finding. The list also gains PII and personal data. That makes it the same as the sibling missing-goal-under-spec grader at case.yaml:13.

Hand trace of the head regex against every sample

I did not run validate-cases.py, so the PR body's validation claim is the author's and unverified.

  • pass 1: rank 1 with surfaces code-reviewer, security-reviewer and the word redacted. The Spec row carries the same rank and surfaces. Matches.
  • pass 2: row 1 (weekend) has no topic word in its row, so the engine moves on to row 2: rank 2, surface security-reviewer. The Spec row carries both. Matches.
  • pass 3 (new): the ## Findings table is column-aligned and the Spec row is unpadded. The trimmed capture security-reviewer matches \| *\2 *\|, and PII satisfies the topic match. Matches. This sample tests both new behaviours.
  • fail 1: rank 1 has no topic word in its row. Rank 2 has one, but the Spec row is numbered 1, so \| *2 *\| finds no row before ### Standards. Fails as intended.
  • fail 2: the Spec row's 5th cell is the finding text, not the surfaces, so \2 cannot match. Fails as intended.

Widening the topic match to the Action cell lets the redaction row pass whether the topic word sits in its Finding or Action cell. I found no sample or plausible run where a non-redaction row would match because of it.

Prior findings

The one inline thread (discussion_r4438344703) is marked lines changed since posted: yes, and the last round found it fixed. This change keeps that fix: the grader still ties the Spec row's rank and Surface(s) cell to the ## Findings row. I am not reposting it. Round 2 of 3; the cap does not apply.

Closing issue #12138

  • "rows keep merged-rank order and their rank numbers, and keep the Surface(s) column": still tested for the Spec heading, now regardless of column padding.
  • The other criteria are unchanged since the earlier review that found them met. CI status is outside what this lane can check.

Other checks

  • Neither changed file matches a trusted-path glob.
  • No plugin manifest changed, so there are no manifest lines.
  • Path-scoped rule .claude/rules/eval-case-transcripts.md (plugins/*/evals/**): the new sample is synthetic, uses the same /tmp/ws placeholder path as its siblings, and holds no identifying detail.
  • Spend: the grader runs only inside the existing eval case. It adds no runs or turns; any spend comes from prepaid or subscription usage when the suite runs.
  • The PR context and prior-findings files contain no embedded instructions.

kyle-sexton and others added 2 commits November 1, 2026 22:09
A new grader on fanout-spec-first-email-redaction ties the redaction row in
## Findings (its rank and Surface(s) cell) to its row under ### Spec, so a run
that renumbers the axis rows or drops the Surface(s) column fails.

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

The axis-row grader now compares the Surface(s) cell without its padding,
so a column-aligned ## Findings table still matches an unpadded Spec row,
and accepts PII or personal data anywhere after that cell, as the sibling
missing-goal-under-spec grader does. A padded PII sample covers both.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 403185f Nov 2, 2026
43 checks passed
@kyle-sexton
kyle-sexton deleted the feat/review-12138-intent-not-stated branch November 2, 2026 03:54
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.

feat(review): list fanout spec findings first under their own heading, then standards

1 participant