09 DEC 2025
David debugged: Investigated why module planner system prompt used raw file paths at runtime
David caught that module planners were using raw file path strings in their workspace titles and commissioned a production log investigation to find the root cause.
After seeing workspace titles showing raw file paths instead of proper module names:
see this image. then go to production and look at the module planners that are running for this course right now. go look at their system prompt. why are they using the raw path of the file? i thoguht we got rid of this a while ago in the system prompt? dont make changes. just go hunting to find out what is going on. are we editing the wrong system prompt?
When the agent proposed making changes, David enforced investigation-only mode:
i todl you not to make changes yet. revert that change. this is investigation mode.
He also spotted a separate issue with duplicate module plans:
it appears that there are duplicates of module plans being made. as you see, theres one called inflammation and what what, actually theres two, part 1 and 2, but then theres also one with the raw file path that also says inflammation adn what what. so what is going on? is the module planner agent being run twice
The investigation found that a seed migration script failure was causing the system prompt to fall back to an older version.