[GH-ISSUE #857] [Issue]: Slurp2 AI Creator drafts fail when the model omits gender or tags #451

Closed
opened 2026-10-20 17:27:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (Sep 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/857

Summary

Generating a Creator with AI fails when the model's answer leaves out gender or tags.

Affected package

slurp2

Expected behavior

Gender and tags are optional on a Creator. A generated draft without them should succeed with no gender and no tags, the same as a Creator created or edited by hand.

Actual behavior

normalizeNoodlerStageProfileDraft does not default gender or tags. The draft is then parsed with slurpGeneratedDiscoveryProfileSchema, where gender is z.enum(...).nullable() (a missing key is refused) and tags is a required array. The draft fails, the retry fails the same way, and the user gets a draft error.

Existing Creators without a gender or tags are not affected: the stored profile reader and the create/edit route default both fields.

Steps to reproduce

  1. Open Slurp and generate a Creator draft with AI.
  2. Use a model that answers without gender or tags keys.
  3. The draft fails.

Verified locally: normalizeNoodlerStageProfileDraft + slurpGeneratedDiscoveryProfileSchema reject { displayName, handle, bio, stagePersonality } at gender and tags.

Environment

  • Marinara Engine version: staging
  • Package version: slurp2 0.0.10 (the schema was added in c33be391, before 0.0.10)
  • Install type: any
  • OS + version: any
  • Browser or app shell: any

Logs, screenshots, or video

Zod issues at paths gender and tags when parsing the generated draft.

Additional context

Fix: default gender to null and tags to [] in the draft normalizer, released as slurp2 0.0.11.

Originally created by @Gunterlie on GitHub (Sep 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/857 ## Summary Generating a Creator with AI fails when the model's answer leaves out `gender` or `tags`. ## Affected package `slurp2` ## Expected behavior Gender and tags are optional on a Creator. A generated draft without them should succeed with no gender and no tags, the same as a Creator created or edited by hand. ## Actual behavior `normalizeNoodlerStageProfileDraft` does not default `gender` or `tags`. The draft is then parsed with `slurpGeneratedDiscoveryProfileSchema`, where `gender` is `z.enum(...).nullable()` (a missing key is refused) and `tags` is a required array. The draft fails, the retry fails the same way, and the user gets a draft error. Existing Creators without a gender or tags are not affected: the stored profile reader and the create/edit route default both fields. ## Steps to reproduce 1. Open Slurp and generate a Creator draft with AI. 2. Use a model that answers without `gender` or `tags` keys. 3. The draft fails. Verified locally: `normalizeNoodlerStageProfileDraft` + `slurpGeneratedDiscoveryProfileSchema` reject `{ displayName, handle, bio, stagePersonality }` at `gender` and `tags`. ## Environment - Marinara Engine version: staging - Package version: slurp2 0.0.10 (the schema was added in c33be391, before 0.0.10) - Install type: any - OS + version: any - Browser or app shell: any ## Logs, screenshots, or video Zod issues at paths `gender` and `tags` when parsing the generated draft. ## Additional context Fix: default `gender` to `null` and `tags` to `[]` in the draft normalizer, released as slurp2 0.0.11.
bsakaguchi 2026-10-20 17:27:41 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@Gunterlie commented on GitHub (Sep 14, 2026):

Fixed in staging by #858 (merge commit 687d005f3), released as slurp2 0.0.11.

<!-- gh-comment-id:5671316572 --> @Gunterlie commented on GitHub (Sep 14, 2026): Fixed in staging by #858 (merge commit 687d005f3), released as slurp2 0.0.11.
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-Agents#451
No description provided.