Skip to content

Hints never end in an error card (More help / second I'm stuck) - #76

Merged
Azrkiel merged 1 commit into
mainfrom
fix/hint-fallback
Nov 15, 2026
Merged

Azrkiel merged 1 commit into
mainfrom
fix/hint-fallback

Conversation

@Azrkiel

@Azrkiel Azrkiel commented Nov 15, 2026

Copy link
Copy Markdown
Owner

User report: after the first hint, More help and a second I'm stuck always showed "Albert couldn't read that. Try again?".

Cause (live, logged): every rung-2 draft and its repair broke the rung-2 rule "no = in a math segment" (the model writes dx = 4\cos\theta\,d\theta), so the request ended in bad_model_output.

Fix:

  • Violations are logged server-side (rule text only, no student content).
  • After the permitted repair, an equation is cut to its left side (dx = … → dx) when the result passes every check. Otherwise Albert writes a neutral question for the rung and keeps only valid rows and marks. The rejected words are never shown.
  • The deferred-method aside ("You'll meet … later") is not drawn on PDF pages, where it overlapped the note.

Live check (dev server, recorded missing-dx-pdf handwriting, budget preload cap 12, 8 calls): rung 1 done 4.3 s / 5.0 s; rung 2 first run used the neutral fallback (both drafts broke the = rule); the second run's repair passed: "Step 2: differentiate the substitution and write dx as a multiple of dθ in the numerator before simplifying." No error card.

Checks: typecheck, lint, unit 989 passed / 20 skipped (new tests for the cut and the fallback), e2e pdf-workflow, pdf-surface, ask, hint-errors 22 passed.

🤖 Generated with Claude Code

…tral question

Live: every rung-2 request on Worksheet 3 failed twice on the rung-2
no-equation rule (the model writes dx = 4 cos theta d theta), so More help and a
second I'm stuck showed 'Albert couldn't read that'. After the repair, an
equation is now cut to its left side when that passes every check; otherwise
Albert writes a neutral question for the rung, keeping only valid marks/rows.
Violations are logged (rule text only). The deferred-method aside is not drawn
on PDF pages, where it overlapped the note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Azrkiel
Azrkiel merged commit ffafce7 into main Nov 15, 2026
1 of 2 checks passed
@Azrkiel
Azrkiel deleted the fix/hint-fallback branch November 15, 2026 12:12
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