Skip to content

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

Closed
melodic-automation-lanes[bot] wants to merge 3 commits into
mainfrom
work-resolve-issue/issue-12138-41358586006-1
Closed

melodic-automation-lanes[bot] wants to merge 3 commits into
mainfrom
work-resolve-issue/issue-12138-41358586006-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12138

Summary

Opened by the work-resolve-issue lane. The run's own summary:

/review:fanout now gives each finding one axis: spec when it says the change does not do, or only partly does, what the intent paragraph says it is for; otherwise standards, and always standards under Intent: not stated. The findings file gains a ## By axis section after ## By dimension, with ### Spec before ### Standards; rows keep their rank numbers and Surface(s) column, and the fix action does not parse the section. SKILL.md states that fanout reviews code against its purpose, not a spec document, and that a committed stub-scaffold phase may be reviewed before fill-in. A new eval checks the ordering. Design choice: the eval graders are deterministic tool_used graders on the Write call that persists the findings file. The file name carries a run timestamp, so a { source: file, path } target, which needs one exact path, cannot reach it.

Not verified

  • The eval suite was not run (claude plugin eval) and validate-cases.py was not run, because the lane's Bash allows only the named wrappers; the grader samples were checked by hand and by the review subagent. Left to the PR's CI and to a paid eval run
  • The eval graders assume the findings file is written with the Write tool; a run that writes it with a Bash heredoc would fail all three graders
  • check-evals-quality wrapper applies to evals.json sets, not to case directories (it rejected case.yaml as non-JSON), so it was not used for this case
  • The PR's CI being green is left to the PR's CI
  • Tidy: passes 1-3 (code) found nothing to change; pass 4 applied write-for-agents to the three agent-loaded docs (dropped a reason duplicated in findings-file-shape.md); write-for-humans was not invoked on the fragment and prompt.md; pass 5 (ai-slop) did not run its detector script because the lane's
  • docs/contracts/detector-findings/README.md does not list ## By axis among the sections a third-party detector may omit; findings-file-shape.md covers it, and docs/contracts is outside this plugin's area
  • git status shows untracked sandbox entries (.bashrc, .gitconfig, .mcp.json, .idea, .vscode, and similar) at the checkout root that this run did not create and Read cannot open; they are not part of this change

Fix

  • plugins/review/skills/fanout/context/findings-normalization.md: new ## Axis assignment section (spec / standards / Intent: not stated rule); Model assignment says axis assignment runs on the main thread
  • plugins/review/reference/findings-file-shape.md: ## By axis with ### Spec then ### Standards added to the shape after ## By dimension; a paragraph says each finding appears exactly once, rows keep rank order, rank numbers and Surface(s), an empty heading reads none, and the fix action does
  • plugins/review/skills/fanout/SKILL.md: Step 2 Axis paragraph names the axis assignment and ## By axis and says fanout reviews code against its stated purpose, not a spec or plan document; a Stub-scaffold phase paragraph (planning's scaffold_stubs) with no new argument, setting or step; `## D
  • plugins/review/skills/audit-enforceability/SKILL.md: the gotcha about re-rendered rows now names ## By axis as well as ## By dimension (each finding appears three times in the file, not twice)
  • plugins/review/evals/fanout-spec-first-email-redaction/case.yaml: schema_version "1.1" case with three tool_used graders on the Write of the .work/reviews/ findings file: spec-before-standards, missing-goal-under-spec, defect-under-standards
  • plugins/review/evals/fanout-spec-first-email-redaction/prompt.md: runs /review:fanout on the scaffolded branch
  • plugins/review/evals/fanout-spec-first-email-redaction/scaffold.sh: the commit message states two goals (CSV export, redacted emails) and builds only the export, which writes raw emails; the same commit breaks isWeekend (checks 7, while getDay() returns 0 for Sunday)
  • plugins/review/evals/fanout-spec-first-email-redaction/samples/spec-before-standards.json: 1 pass, 3 fail samples
  • plugins/review/evals/fanout-spec-first-email-redaction/samples/missing-goal-under-spec.json: 1 pass, 1 fail sample
  • plugins/review/evals/fanout-spec-first-email-redaction/samples/defect-under-standards.json: 1 pass, 1 fail sample
  • .changes/review/work-resolve-issue-issue-12138-41358586006-1-9a866400.md: bump: minor fragment describing the axis section, the stub-scaffold use, the audit-enforceability note and the eval

Verification

The runner ran each check from the base copy against e33a8c9:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 3 fragments valid (final run after all edits)
  • check-changed-skills: fanout and audit-enforceability PASS, 0 errors (warnings: fanout body 165 -> 175 lines and over the 5000-token router cap, which it already exceeded; description length and no-Gotchas warnings predate the change)
  • check-affected: 12 passed, 6 skipped, over 11 changed files (final run)
  • read https: //code.claude.com/docs/en/plugin-evals: a regex target / llm focus of { source: file, path: <path> } reads one file's contents; tool_used passes when the count of calls to tool whose JSON-encoded input matches input_match is within min/max; file_exists sees only creat
  • fresh-context review subagent over the whole diff: no confirmed bugs. It traced every grader regex against every sample (pass samples match, fail samples do not) and confirmed fix-pass-mode.md and emit-stubs.sh read only the ## Findings table. Its hardening suggestions were applied: case-tolerant
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41358586006

Left out: the items under Not verified.

Related

#12138

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head e33a8c951914dba614c5688a78ea4d50800adb44. The lanes clear this reason on their own; the next scheduled run judges it again.

pr-merge's gate holds it on its risk score (unreadable: the head is
  a7aef2f8c1eafa40d6107b9b7b5cb3f1b2458e1b, not e33a8c951914dba614c5688a78ea4d50800adb44)

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12158, incremental since a7aef2f8

I found no security issues in this increment.

What I read: every hunk of both files in .claude-lane/incremental.diff:

  • plugins/review/evals/fanout-spec-first-email-redaction/case.yaml: the missing-goal-under-spec grader's input_match regex changed. It now captures the rank number from the Spec table row that holds the redaction finding. The negative lookahead rejects the output only when that same rank (\1) also appears under ### Standards. Before, any redaction or masking keyword under Standards rejected it.
  • samples/missing-goal-under-spec.json: one new pass sample. Its rank 3 test-gap row under Standards mentions masking but is a different finding.

Scope and trust controls: neither file matches a TRUSTED PATHS: glob. The directory is fanout-spec-first-*, not security-review-*. The change is limited to an eval grader regex and static sample data. It touches no workflow, token request, trust control, merge hold, instruction surface or plugin manifest. The regex only runs when the eval harness grades a sandboxed model's own Write input, so no untrusted input reaches a credentialed context through it.

Plugin manifests: no plugin.json or marketplace.json changed, so there are no manifest lines.

Prior findings: this lane's only earlier post reported 0 findings, so nothing carries forward. The round cap (3) has not been reached.

Embedded text: the PR context contains no directive aimed at this lane.

Spend (not a hold, not counted): this increment does not change the eval case's prepaid model use.

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

claude-lane: claude-review

Comment on lines +5 to +17
graders:
- name: spec-before-standards
type: tool_used
tool: Write
input_match: '^(?=.*\.work/reviews/[^"]*\.md")(?=.*## By axis(?:(?!\\n## ).)*### Spec(?:(?!\\n## ).)*### Standards)'
- name: missing-goal-under-spec
type: tool_used
tool: Write
input_match: '^(?=.*\.work/reviews/[^"]*\.md")(?=.*## By axis(?:(?!\\n## ).)*### Spec(?:(?!### Standards)(?!\\n## ).)*(?:[Rr]edact|REDACT|[Mm]ask|MASK|PII|[Pp]ersonal data))'
- name: defect-under-standards
type: tool_used
tool: Write
input_match: '^(?=.*\.work/reviews/[^"]*\.md")(?=.*## By axis(?:(?!\\n## ).)*### Standards(?:(?!\\n## ).)*(?:[Ii]sWeekend|[Ww]eekend|WEEKEND|[Ss]unday|SUNDAY))'

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.

Advisory: some #12138 criteria are met in the docs, but no test fails if a run breaks them.

The issue says "every finding in ## Findings appears under exactly one of the two", "an empty heading reads none", and "standards for every finding when the intent paragraph reads Intent: not stated". No grader here, and nothing else in the repo, checks any of the three:

  • Finding listed under both headings. Suppose a run puts the redaction finding under ### Spec and also again under ### Standards (say, as the security-reviewer's PII row). missing-goal-under-spec still passes, because it only looks for the words between ### Spec and ### Standards. defect-under-standards also passes. Nothing catches the duplicate.
  • isWeekend filed under Spec. If a run lists the isWeekend row under Spec as well as Standards, every grader still passes. The only fail sample for this (defect-under-standards.json) leaves Standards as none.
  • Intent: not stated. No case runs fanout without a stated intent, so a run that still files findings under spec in that situation passes everything.

To fix the first two, add a grader (or a negative lookahead in defect-under-standards) that fails when [Ii]sWeekend|[Ss]unday appears between ### Spec and ### Standards. Also add a fail sample with the redaction row under both headings. The Intent: not stated rule needs its own small case, or a stated reason in the PR for leaving it untested.

claude-lane: claude-review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pr-unblock / address-feedback: UNCERTAIN, left open

Evidence: plugins/review/evals/fanout-spec-first-email-redaction/case.yaml:13, plugins/review/evals/fanout-spec-first-email-redaction/case.yaml:17, plugins/review/skills/fanout/context/findings-normalization.md:81

The finding is accurate. The graders checked only for presence under one heading, so a finding listed under both headings passed. This round fixes the first two parts. missing-goal-under-spec now also fails when the redaction words (redact, mask, PII, personal data) appear under ### Standards in By axis. defect-under-standards now also fails when the weekend words (isWeekend, weekend, Sunday) appear between ### Spec and ### Standards. Each graders samples file gains a fail sample with the finding listed under both headings. The axis rule in findings-normalization.md:79-80 files an unstated change as standards, never spec, so a weekend mention under Spec is always wrong for this case. Both new lookaheads were checked by reading against the existing pass samples, which contain neither word set under the other heading. Running the eval graders is left to CI. This thread stays open for a person because of the third part: the Intent: not stated rule (findings-normalization.md:81) needs its own eval case, and that case needs a new scaffold.sh, which this lane cannot create (check-paths refused it). The other option is to state in the PR why it is left untested, and this lane cannot edit the PR body either.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pr-fix lane: please fix this finding.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

pr-unblock / address-feedback: UNCERTAIN, left open

Evidence: plugins/review/evals/fanout-spec-first-email-redaction/case.yaml:13, plugins/review/evals/fanout-spec-first-email-redaction/case.yaml:17, plugins/review/skills/fanout/context/findings-normalization.md:81, plugins/review/skills/fanout/SKILL.md:102, plugins/review/skills/fanout/SKILL.md:108

Following the direction, this round checked what is left of this finding. Parts one and two were fixed last round and are still covered. A finding listed under both headings fails missing-goal-under-spec (case.yaml:13). This round makes that check compare rank numbers instead of wording, see the other thread on line 13. A weekend row under Spec fails defect-under-standards (case.yaml:17). Each has a fail sample. The third part is still open: no case runs fanout with Intent: not stated (findings-normalization.md:81). fanout writes Intent: not stated only when no PR, commit subject or request states a purpose (SKILL.md:99-102), and it reviews only a git diff (SKILL.md:108). So a case for this rule needs its own scaffold.sh that builds a branch whose commit subject states no purpose. check-paths refused a new scaffold.sh at plugins/review/evals/fanout-intent-not-stated-all-standards/scaffold.sh, so this lane cannot add the case. Adding only its case.yaml, prompt.md and samples would leave a case pointing at a missing scaffold script, so none of them were added. A person needs to pick one of two options. One is to add the case: a scaffold like this one's, with a commit subject such as wip and no body, plus a grader that passes only when ### Spec reads none under By axis. The other is to state in the PR body why the rule is left untested. The thread stays open for that decision.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The replacement PR #12204 carries the fix: new eval case plugins/review/evals/fanout-intent-not-stated-all-standards/ (a wip-only commit and a purpose-free prompt) with three tool_used graders checking that the surfaces get Intent: not stated, that ### Spec reads none, and that the isWeekend defect sits under ### Standards; validate-cases.py sorts every sample correctly. Pushed; head 56fb1b7 on feat/review-12138-intent-not-stated.

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12158, incremental since a7aef2f8

I read every hunk of .claude-lane/incremental.diff (2 files). The change rewrites the missing-goal-under-spec grader in case.yaml and adds one pass sample to missing-goal-under-spec.json. For context I also read case.yaml and the samples file at head, plus the ## By axis contract in findings-file-shape.md.

What the change fixes. It fixes my round-2 finding on case.yaml:13 (thread). The grader no longer matches on wording. It captures the rank of the first Spec row that has a redaction word, using \\n\| *(\d+) *\| and then non-\\n text up to the keyword. It fails only when that same rank starts a row under ### Standards. The contract supports this: findings-file-shape.md L68 says rows keep their rank numbers under ## By axis. The grader regexes are ECMAScript, which keeps captures made inside a positive lookahead, so \1 resolves in the negative lookahead that follows.

Regex trace. I traced the pattern by hand against every sample in its JSON-encoded form. I did not run the graders, validate-cases.py or claude plugin eval.

  • Pass sample 1 matches: Spec rank 1 has "redacted", and Standards has only | 2 |.
  • Pass sample 2 (new) matches: it captures 1, and Standards has only | 2 | and | 3 |. The rank-3 "masks" row no longer trips the grader, which is what the old pattern got wrong.
  • Fail sample 1 fails: Spec reads none, so the positive lookahead finds no row.
  • Fail sample 2 fails: it captures 1, and \\n| 1 | appears under Standards.
  • \| *\1 *\| cannot match a different rank that starts with the same digit, such as | 12 |, because *\| must follow the digit. The row-start anchor \\n keeps path:1 | cells from matching.

Findings (1, advisory, summary only):

  1. Still open from rounds 1 and 2: Intent: not stated is untested. Issue feat(review): list fanout spec findings first under their own heading, then standards #12138 asks for "standards for every finding when the intent paragraph reads Intent: not stated". findings-normalization.md L81 states the rule, but no case runs fanout without a stated intent. scaffold.sh L56 always states one, so no grader would catch a run that breaks this rule. The thread's owner reply ("please fix this finding") asks for a fix and decides nothing about leaving the rule untested. The PR body still gives no reason either. The fix lane says it cannot add the needed scaffold.sh (check-paths refused it), so this needs a person's decision: add a small Intent: not stated case with its own scaffold, or say in the PR body why the rule is left untested.

Note (not a finding): the PR body's Fix list still says missing-goal-under-spec.json has "1 pass, 1 fail sample". It now has 2 pass and 2 fail samples.

Spend (not a finding): the case still runs 3 times in the paid eval suite, using prepaid or subscription eval usage. This change does not alter that.

I found no embedded instructions in the PR context, settled-threads or prior-findings files. This is round 3 of a cap of 3, and the file says "past the cap: no", so the cap did not apply.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on a7aef2f.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 1, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=12158 -f activity=address-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 a7aef2f8c1eafa40d6107b9b7b5cb3f1b2458e1b; the summary is in this lane's pull request comment.

claude-lane: claude-review

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yfdfu
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 2 of max 4 on eb1d377.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Nov 2, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: a disputed review finding is one only a person decides (a CRITICAL finding, a security-review finding with no rating the lane reads, or a thread a person opened or directed).

  • Reason: feedback-disputed
  • Resume key: eb1d37768e3dc52c314e4662d7189107a9c64923 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=12158 and activity=address-feedback:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=12158 -f activity=address-feedback

@kyle-sexton

Copy link
Copy Markdown
Member

Hold: superseded by #12204. Releases when: never; closed once #12204 merges.

@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #12204, merged 2026-11-02T03:54:38Z.

@kyle-sexton kyle-sexton closed this Nov 2, 2026
@github-actions
github-actions Bot deleted the work-resolve-issue/issue-12138-41358586006-1 branch November 4, 2026 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Hard merge gate: do not merge while applied. needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop.

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