Skip to content

fix: provide computed symbol counts for accurate hints - #65

Open
fhsinchy wants to merge 1 commit into
mainfrom
fix/accurate-symbol-count-hints
Open

fhsinchy wants to merge 1 commit into
mainfrom
fix/accurate-symbol-count-hints

Conversation

@fhsinchy

@fhsinchy fhsinchy commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

The model could miscount repeated symbols while explaining a failing test. In the reported movie-review case, the code contained ten stars but lacked the numeric rating after them. Socrates incorrectly claimed there were eleven or twelve stars and told the learner to change code that was already correct.

Socrates now computes counts of consecutive pictorial symbols in the student's source and includes those counts in the prompt. The helper uses Unicode character categories and grapheme clusters, so it works with mixed symbols and compound emoji. Updated instructions and contrasting examples guide the model to use those counts and identify which requirement actually failed when a test checks multiple conditions.

@fhsinchy
fhsinchy requested a review from a team as a code owner October 17, 2026 10:40

This branch has not been deployed

No deployments
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