Skip to content

feat: improve AI Mentor configuration - #1818

Draft
Japrolol wants to merge 6 commits into
stagingfrom
jh_feat_1807_improve_ai_mentor_config_and_introduce_ai_generation
Draft

feat: improve AI Mentor configuration#1818
Japrolol wants to merge 6 commits into
stagingfrom
jh_feat_1807_improve_ai_mentor_config_and_introduce_ai_generation

Conversation

@Japrolol

Copy link
Copy Markdown
Collaborator

Issue(s)

1807

Overview

  • Replaces the generic AI Mentor instructions model with structured Teacher and Roleplay configurations.

  • Adds normalized configuration, subtype, translation, enum, RLS, migration, and legacy-data backfill support. Existing lessons are migrated without
    requiring creator action.

  • Adds authenticated APIs for retrieving, replacing, and translating configurations while enforcing course ownership, curriculum availability, language
    rules, tenant isolation, and exactly one active subtype.

  • Preserves structured configurations during master-course synchronization and supports legacy Luma imports with safe defaults.

  • Adds one focused AI Mentor behavior card and manual configuration dialog with:

    • Teacher-specific goals, expertise, content scope, teaching style, and feedback guidance.
    • Roleplay-specific roles, scenario, character goal, difficulty, facts, and constraints.
    • Shared opening and additional instructions.
    • Rich-text fields, scenario starters, missing-configuration validation, translation handling, and confirmation before clearing mode-specific
      fields.
  • Introduces deterministic Teacher and Roleplay runtime prompts. Roleplay responds using plain spoken dialogue without stage directions, Markdown, or
    assistant-style formatting.

  • Prevents currency amounts such as $0.50 and $0.70 from being incorrectly rendered as KaTeX while retaining explicit $$...$$ math support.

  • Adds backend, frontend, prompt, migration, translation, synchronization, and curriculum E2E coverage.

  • Keeps AI-assisted Mentor configuration generation as a separate follow-up slice.

Business Value

Course creators can configure AI Mentor behavior through a clearer, purpose-built experience instead of relying on one broad instruction field. Teacher
and Roleplay modes now capture only the information each experience needs, making authoring easier and model behavior more predictable.

Learners receive more natural and consistent conversations. Roleplay characters maintain stable roles and difficulty without theatrical narration or
formatting artifacts, while Teacher behavior follows an explicit instructional approach.

Existing AI Mentor lessons continue working after migration without manual intervention. Structured multilingual storage, tenant-safe APIs, and master-
course synchronization provide a reliable foundation for future AI-assisted configuration generation.

@Japrolol
Japrolol requested a review from its-gabo July 28, 2026 14:09
@Japrolol Japrolol self-assigned this Jul 28, 2026
@Japrolol Japrolol added the review me 👀 PR is ready to be reviewed label Jul 28, 2026
@Japrolol Japrolol changed the title Jh feat 1807 improve ai mentor config and introduce ai generation feat: improve ai mentor config and introduce ai generation Jul 28, 2026
@Japrolol
Japrolol force-pushed the jh_feat_1807_improve_ai_mentor_config_and_introduce_ai_generation branch 2 times, most recently from 8d82fec to b4a39d0 Compare July 31, 2026 09:38
@Japrolol Japrolol changed the title feat: improve ai mentor config and introduce ai generation feat: improve AI Mentor configuration Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review me 👀 PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant