Back to the LMS journey

BrokeStop 10 of 15

Why a ready study guide looked unavailable

A learner’s study guide was finished and saved, but the page said it was unavailable. The page was reading the wrong record.

What went wrong

The LMS uses AI to write a LMS · LMS AI Core · The Laravel sideStudy guidesA saved guide is shown only while it still matches the lesson as it is now. It must also match the current AI provider, model and settings.See it in the LMS build for a lesson. It shows the guide on the learner’s LMS · The platformLesson player and progressThe server decides how much of a lesson counts as done. It uses how long a video played and how long each page was open.See it in the LMS build. On the test site, that page said the study guide was unavailable. But the guide existed, saved and ready. The AI provider and the job queue were both working.

Why it happened

The LMS keeps two records for a study guide. A generation record tracks the work of making the guide. A saved version stores the finished guide. An older generation record was marked unavailable. The lesson page followed that record’s status. It never looked for a saved version, so the learner saw the old status and not the guide.

What I changed

The page now asks a different question. Is there a saved version that still matches this lesson? First it looks for a ready saved version made with the AI provider, model and generation rules set in the settings. Then it takes that version’s fingerprint. The fingerprint is a short code worked out from the lesson material and the generation rules, so it changes when either one changes. The page compares it with the lesson as it is today. Only if no saved version matches does the page say the guide is out of date, blocked or unavailable.

The admin filter lists guides by status, and it had the same blind spot. It now reads the same worked-out status as the page. So it can’t list a guide as unavailable while the page shows it as ready.

How I know it works

The test sets up exactly the broken case. It has a generation record marked unavailable, next to a ready saved version that matches. It expects the guide to show its takeaway and practice questions, but not the answers. The June record shows eight checks passing.