Repository navigation
Bot: tolerate decorated LABELS lines from smaller models - #20
Merged
Merged
Conversation
deepseek-flash sometimes bolds or backticks the LABELS marker and the individual names. Accept any decoration around the marker line and strip markdown characters from each name before the whitelist check. Also log the parsed label line for easier triage of future misses.
This was referenced Oct 10, 2026
murilosoave
pushed a commit
to murilosoave/ARTEX
that referenced
this pull request
Oct 25, 2026
Bot: tolerate decorated LABELS lines from smaller models
murilosoave
pushed a commit
to murilosoave/ARTEX
that referenced
this pull request
Oct 25, 2026
deepseek-flash dropped the LABELS instruction twice in live tests (decorated once, absent once); deepseek-chat followed it exactly on the first try. The price difference is fractions of a cent per call, reliability wins. The tolerant parser from BaaRai#20 stays: it is harmless and protects against any model formatting quirks.
murilosoave
pushed a commit
to murilosoave/ARTEX
that referenced
this pull request
Oct 25, 2026
The reworded instruction from BaaRai#20 ("plain text with no markdown formatting, characters, or emphasis") made models stop emitting the LABELS line entirely; the original quoted phrasing had 100 percent compliance. Tolerant parser and debug logging stay.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #18. deepseek-flash answered the triage but formatted its LABELS line with markdown (bold marker, backticked names), so the strict parser matched nothing and no labels were applied (observed live on the flash-model test issue: silent run, zero labels). The marker regex now ignores decoration and case, and each name is stripped of markdown characters before the whitelist check. Parsed labels are logged. Pipeline verified against LABELS: bug,
P2, question.