Skip to content

workflow: bypass custom text validator on recitation fallback - #587

Merged
rgushchin merged 1 commit into
mainfrom
fix-recitation-fallback-text-validator
Sep 29, 2026
Merged

rgushchin merged 1 commit into
mainfrom
fix-recitation-fallback-text-validator

Conversation

@rgushchin

Copy link
Copy Markdown
Member

When a text stage such as report_stage triggers a recitation error from
the model provider, RecitationPolicy::FallbackToFreeForm activates
recitation_fallback_active and instructs the model not to quote code
verbatim. However, StageSession::validate still ran the custom text
validator (validate_inline_format), which rejected any response lacking
verbatim quoted diff lines starting with the greater-than character and
forced the model right back into recitation blocks.

Bypass the custom text formatting validator when recitation fallback is
active (requiring only non-empty text output), and make the Linux report
stage recitation reminder explicitly override the inline template diff
quoting instructions.

When a text stage such as report_stage triggers a recitation error from
the model provider, RecitationPolicy::FallbackToFreeForm activates
recitation_fallback_active and instructs the model not to quote code
verbatim. However, StageSession::validate still ran the custom text
validator (validate_inline_format), which rejected any response lacking
verbatim quoted diff lines starting with the greater-than character and
forced the model right back into recitation blocks.

Bypass the custom text formatting validator when recitation fallback is
active (requiring only non-empty text output), and make the Linux report
stage recitation reminder explicitly override the inline template diff
quoting instructions.

Signed-off-by: Roman Gushchin <roman.gushchin@linux.dev>
@sashiko-bot

sashiko-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

Sashiko review

✓ No issues found across 1 commit.

Full review log on sashiko.sashiko.dev

@rgushchin
rgushchin merged commit 1c4e070 into main Sep 29, 2026
3 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