[GH-ISSUE #7760] [Feature]: Let Professor Mari write interactive onboarding #4283

Closed
opened 2026-10-21 06:14:08 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7760

Originally assigned to: @ylli-selmani on GitHub.

What problem does this solve?

Interactive onboarding (#7307, #7434) lets a card ask the player questions when a Roleplay chat is set up, but writing one by hand takes a while: the questions, the five persona template fields, {{name}} placeholders, {{#if}} follow-ups, and the naming rules.

Professor Mari is the obvious helper here ("Mari, write a fun onboarding for Queen Ayrene, with a template persona and all that"), but she doesn't know the feature exists. Nothing in her prompt mentions onboarding. She could write it today through a raw character.update patch on extensions.onboarding, but nothing checks it, so a typo in a variable name or a block the editor can't read would land silently. The editor would then show "Start over" for the broken block, which is a bad first impression.

Proposed solution

Give Mari two dedicated app_data actions, following the preset choice-block precedent (preset.addChoiceBlock and friends):

  • character.onboarding.get: returns the card's onboarding block, the same validation issues the editor shows, and a sample rendered persona.
  • character.onboarding.update: writes the block. Keys she sends replace, keys she leaves out stay; a question list she sends replaces the whole list. The server fills missing ids and defaults, then runs the existing schema and validateOnboarding checks. Errors (bad, reserved, duplicate or unknown names, plain {{#if x}}) refuse the write with a message she can fix and retry. Unused questions come back as a warning, like in the editor. The write goes through the normal review card / apply flow and character versioning, same as character.update.

Plus a short prompt paragraph and one worked example so she knows the shape and rules, and points to docs/characters/interactive-onboarding.md for the rest. Character questions (chat variables) also need a {{name}} in the card's own fields; Mari does that as a separate, visible character.update, so the user sees both changes.

Alternatives considered

  • Only teach her the raw extensions.onboarding patch. No new code, but no validation, and the model is bad at the boring parts (ids, merging into lists).
  • Separate add/update/delete actions per question, like preset choice blocks. More prompt and code surface for little gain: a list is at most 100 questions, so get → edit → update is cheap. Can be added later if she struggles.

Additional context

  • Related: #7307 (interactive onboarding), #7434 (card variables).
  • Found while tracing this: mari characters update --json merges shallowly and drops sibling extensions. Filed separately as a bug, since it's a fix on its own.
  • I'll take this one.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @ylli-selmani on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7760 Originally assigned to: @ylli-selmani on GitHub. ## What problem does this solve? Interactive onboarding (#7307, #7434) lets a card ask the player questions when a Roleplay chat is set up, but writing one by hand takes a while: the questions, the five persona template fields, `{{name}}` placeholders, `{{#if}}` follow-ups, and the naming rules. Professor Mari is the obvious helper here ("Mari, write a fun onboarding for Queen Ayrene, with a template persona and all that"), but she doesn't know the feature exists. Nothing in her prompt mentions onboarding. She *could* write it today through a raw `character.update` patch on `extensions.onboarding`, but nothing checks it, so a typo in a variable name or a block the editor can't read would land silently. The editor would then show "Start over" for the broken block, which is a bad first impression. ## Proposed solution Give Mari two dedicated `app_data` actions, following the preset choice-block precedent (`preset.addChoiceBlock` and friends): - `character.onboarding.get`: returns the card's onboarding block, the same validation issues the editor shows, and a sample rendered persona. - `character.onboarding.update`: writes the block. Keys she sends replace, keys she leaves out stay; a question list she sends replaces the whole list. The server fills missing ids and defaults, then runs the existing schema and `validateOnboarding` checks. Errors (bad, reserved, duplicate or unknown names, plain `{{#if x}}`) refuse the write with a message she can fix and retry. Unused questions come back as a warning, like in the editor. The write goes through the normal review card / `apply` flow and character versioning, same as `character.update`. Plus a short prompt paragraph and one worked example so she knows the shape and rules, and points to `docs/characters/interactive-onboarding.md` for the rest. Character questions (chat variables) also need a `{{name}}` in the card's own fields; Mari does that as a separate, visible `character.update`, so the user sees both changes. ## Alternatives considered - **Only teach her the raw `extensions.onboarding` patch.** No new code, but no validation, and the model is bad at the boring parts (ids, merging into lists). - **Separate add/update/delete actions per question**, like preset choice blocks. More prompt and code surface for little gain: a list is at most 100 questions, so get → edit → update is cheap. Can be added later if she struggles. ## Additional context - Related: #7307 (interactive onboarding), #7434 (card variables). - Found while tracing this: `mari characters update --json` merges shallowly and drops sibling `extensions`. Filed separately as a bug, since it's a fix on its own. - I'll take this one. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4283
No description provided.