Skip to content

test(eval): don't score a review run that only posted a notice - #2006

Merged
waynesun09 merged 1 commit into
fullsend-ai:mainfrom
tpouyer:review-notice-not-scored
Nov 14, 2026
Merged

waynesun09 merged 1 commit into
fullsend-ai:mainfrom
tpouyer:review-notice-not-scored

Conversation

@tpouyer

@tpouyer tpouyer commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Companion to fullsend-ai/fullsend#9399, raised by @waynesun09 in fullsend-ai/fullsend#9399 (comment).

fullsend-ai/fullsend#9399 posts stale-head and failure notices as their own comment under <!-- fullsend:review-notice -->, so the prior-review fetchers never read a notice as the last review. A run whose only output is such a notice leaves no review-agent sticky, so finding_expectations and expected_review_action would fail it with "expected one review-agent sticky comment, found 0" instead of abstaining.

Changes

  • eval/review/eval.yaml: both checks return Not scored when there is no review-agent sticky and a comment starts with the review-notice marker. A notice beside the run's review leaves the review scored. A notice inside the sticky (fullsend before #9399) is handled as before: expected_review_action abstains on it and finding_expectations scores it.
  • Both test scripts (state-and-action-checks-test.sh, finding-expectations-test.sh) gain cases for a stale-head notice comment, a failure notice comment, a notice beside a review, and the marker off the first line. The existing stale-head case in state-and-action-checks-test.sh is kept and labelled as the pre-#9399 shape.

Not changed

Only these two checks abstain. review_quality and the label checks still judge a notice-only run as they did a notice inside the sticky; the notice is matched on its first line, as the sticky is, without checking its author (each case runs in a new repository).

Order

This should land before or with the fullsend release that ships #9399. It is safe to land first: with today's fullsend no comment carries the review-notice marker, so nothing changes until #9399 ships.

Testing

  • bash eval/scripts/finding-expectations-test.sh: 27 tests, 0 failures.
  • bash eval/scripts/state-and-action-checks-test.sh: 71 tests, 0 failures.
  • Without the eval.yaml change, the new notice-only cases fail with "found 0".

fullsend post-review now posts stale-head and failure notices as their
own comment under <!-- fullsend:review-notice --> (fullsend-ai/fullsend#9399),
so the prior-review fetchers never read a notice as the last review. A
run whose only output is such a notice leaves no review-agent sticky, and
finding_expectations and expected_review_action failed it with "expected
one review-agent sticky comment, found 0" instead of abstaining, as
expected_review_action already does for a notice inside the sticky.

Both checks now return Not scored when there is no review-agent sticky
and a comment starts with the review-notice marker. A notice beside the
run's review leaves the review scored. Tests cover stale-head and failure
notices, a notice beside a review, and the marker off the first line.

Signed-off-by: Tim Pouyer <tim.pouyer@gmail.com>
@tpouyer
tpouyer requested a review from a team as a code owner November 13, 2026 18:43
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Abstain from scoring review runs that only post a notice

🐞 Bug fix 🧪 Tests 🕐 10-20 Minutes

Grey Divider

AI Description

• Abstain from finding and action checks when a run posts a notice but no review sticky.
• Continue scoring runs that post both a notice and a review sticky.
• Add regression cases for stale-head and failure notices, including marker placement.
Diagram

graph TD
  S["Fixture state"] --> K{"Review sticky?"} -->|yes| F["Findings check"]
  K -->|yes| A["Action check"]
  K -->|no| N{"Notice first line?"} -->|yes| U["Not scored"]
  N -->|no| E["Missing sticky failure"]
Loading
High-Level Assessment

The localized guards are appropriate: the two checks are separate embedded judge blocks, and each must preserve sticky-based scoring when a review exists. A shared helper would add wiring for a small condition without changing the behavior.

Files changed (3) +50 / -1

Bug fix (1) +18 / -0
eval.yamlAbstain from two checks on notice-only review runs +18/-0

Abstain from two checks on notice-only review runs

• The finding-expectations and expected-review-action judges now return Not scored when there is no review-agent sticky but a comment starts with the review-notice marker. A present sticky still takes precedence, and missing stickies without a notice still fail attribution.

eval/review/eval.yaml

Tests (2) +32 / -1
finding-expectations-test.shCover finding checks for standalone notices +15/-0

Cover finding checks for standalone notices

• Adds cases for stale-head and agent-failure notice-only runs, a notice alongside a scored review, and a notice marker below the first line.

eval/scripts/finding-expectations-test.sh

state-and-action-checks-test.shCover action checks for standalone notices +17/-1

Cover action checks for standalone notices

• Adds a standalone-notice fixture and cases for stale-head and failure notices, a notice beside a review, and a marker below the first line. Relabels the existing sticky-contained stale-head case as the pre-#9399 format.

eval/scripts/state-and-action-checks-test.sh

@qodo-code-review

qodo-code-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Failed runs that post a failure notice are not scored ✗ Dismissed
Description
The new no-sticky branch in finding_expectations returns None (Not scored) whenever any
comment's first line equals the review-notice marker, so the agent-failure notice is abstained on
along with the stale-head notice. A run that crashed or failed before writing its review is
therefore excluded from the nightly verdict instead of failing with "found 0" as before. The same
notice match in both checks ignores the comment's author and timestamp, so any account's comment
starting with that marker can also turn a no-sticky run into Not scored.

Grey Divider

Context sources
❌ Tickets: failed to load — Ticket collection could not establish complete evidence
✅ Compliance rules (platform): 55 rules
✅ Skills: 4 invoked
  code-review
  code-implementation
  pr-review
  docs-review
✅ Cross-repo context — repo relationships
Review mode: Auto: 🚀 Fast: Localized evaluation logic with focused tests and no high-risk pathways.

Grey Divider

Tip of the day
💡 Did you know, you can ask Qodo to dismiss a finding you disagree with, with your reason on record

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread eval/review/eval.yaml Resolved
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:45 PM UTC · Completed 6:51 PM UTC

Commit: 844e33f · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.90

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 13, 2026
@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Small eval test change with low metadata risk, elevated to moderate risk by recent regression history and change coupling on eval/review/eval.yaml.

@fullsend-ai-review

Copy link
Copy Markdown

Looks good to me

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 13, 2026

@waynesun09 waynesun09 left a comment

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.

Notice-only runs abstain in both judges, a notice beside a real sticky is still judged, and a marker not on the first line is ignored; tests cover each. Inert until fullsend#9399 emits the marker.

@waynesun09
waynesun09 added this pull request to the merge queue Nov 14, 2026
Merged via the queue into fullsend-ai:main with commit 69671c0 Nov 14, 2026
90 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants