Skip to content

workflows: report every violation in a concerns answer at once - #929

Merged
rgushchin merged 1 commit into
sashiko-dev:mainfrom
ftabba:pr/report-all-concern-violations
Nov 20, 2026
Merged

rgushchin merged 1 commit into
sashiko-dev:mainfrom
ftabba:pr/report-all-concern-violations

Conversation

@ftabba

@ftabba ftabba commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

I don't know of an upstream stage that has hit this. A prompt that asks for fewer fields than its validator checks makes an answer fail once for each missing field. A stage in my fork asked for neither side nor code_snippet. On three models its answers passed only on the third attempt, and on a fourth model the third answer was rejected too and the stage failed.

validate_concerns_output returns at the first violation, and the retry's
feedback contains only that one. So when an answer's concerns lack side
and a dismissal lacks code_snippet, the first rejection is for the
missing side and the second for the missing code_snippet. With three
validation attempts, that answer can pass only on the third, and any
further violation in it fails the stage.

Collect every violation and return them together. Each violation's
wording is unchanged.

Change each copy of the validator: linux, gcc, qemu (which zephyr
shares), e2fsprogs and sashiko. In the copies that check that an item
is a JSON object, a non-object item is still reported with only that
violation.

Also make validate_locations_side report every bad location of an
item. Its other callers (the findings, inconclusive and dismissal
validators, and prior_feedback's validator) still stop at the first
failing item, and now report all of its bad locations.

Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
@sashiko-bot

sashiko-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

Sashiko review

✓ No issues found across 1 commit.

Full review log on sashiko.sashiko.dev

@rgushchin
rgushchin merged commit 03d51f9 into sashiko-dev:main Nov 20, 2026
1 check 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.

2 participants