Skip to content

fix(insights): stop counting prose 'wrong answer' as a user correction - #952

Merged
iamtoruk merged 1 commit into
mainfrom
fix/correction-detector-prose
Aug 10, 2026
Merged

fix(insights): stop counting prose 'wrong answer' as a user correction#952
iamtoruk merged 1 commit into
mainfrom
fix/correction-detector-prose

Conversation

@iamtoruk

Copy link
Copy Markdown
Member

Real-data validation of the workflow metrics found the week's entire correction count (4) was one injected skill prompt matched four times: the artifact-design prompt contains "a well-composed page is never the wrong answer", and the wrong- correction pattern fired on it. The true correction count for the window was 0.

Injected skill and system prose lands in the user-message slot, where "the wrong answer" is an ordinary idiom. The fix removes "answer" from the wrong- alternation; the remaining nouns (file, approach, place, method, function, way, direction) are concrete work artifacts that prose rarely pairs with "wrong". Regression test carries the verbatim sentence; a companion test pins that concrete wrong-file / wrong-approach follow-ups still count.

@iamtoruk
iamtoruk merged commit c3e2f67 into main Aug 10, 2026
5 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