Skip to content

fix: allow text after section name in _section_present - #275

Closed
RohithPariki wants to merge 1 commit into
microsoft:mainfrom
RohithPariki:fix-section-present-regex
Closed

fix: allow text after section name in _section_present#275
RohithPariki wants to merge 1 commit into
microsoft:mainfrom
RohithPariki:fix-section-present-regex

Conversation

@RohithPariki

Copy link
Copy Markdown
Contributor

Fixes #175. This PR removes the \s*$ anchor from the regex in judges._section_present. Previously, this strict anchor caused the check to fail on headings that contained numbering, annotations, or subtitles (e.g. ### 1. Key Risks (Риски) — обзор). By removing the anchor, we ensure that as long as the expected section name is present in a heading, the format is accepted.

@RohithPariki

Copy link
Copy Markdown
Contributor Author

Closing — the maintainer direction confirmed in #175 is to add opt-in section_contains operator rather than modify _section_present. This 1-line change would silently alter scores for existing task sets, which is exactly what maintainers want to avoid. Will reopen with the correct additive approach.

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.

section_present rejects numbered or annotated headings, and the optimizer 'fixes' it by forbidding the skill's own heading format

1 participant