mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #860] [MERGED] fix(slurp2): 0.0.12 repair AI Creator drafts instead of failing #1160
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1160
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/860
Author: @Gunterlie
Created: 9/14/2026
Status: ✅ Merged
Merged: 9/14/2026
Merged by: @Gunterlie
Base:
staging← Head:fix/slurp2-0.0.12-smart-drafts📝 Commits (3)
f322181fix(slurp2): repair AI Creator drafts instead of failing (0.0.12)304321ffeat(slurp2): give persona Creators AI drafts and AI imagesa753f83fix(slurp2): address CodeRabbit review on 0.0.12📊 Changes
24 files changed (+712 additions, -311 deletions)
View changed files
➕
artifacts/slurp2-0.0.12.zip(+0 -0)📝
catalog/catalog.json(+8 -8)📝
catalog/notes.json(+6 -0)📝
catalog/v2/catalog.json(+8 -8)📝
catalog/v2/notes.json(+6 -0)📝
catalog/v3/catalog.json(+8 -8)📝
catalog/v3/notes.json(+6 -0)📝
packages/slurp2/CHANGELOG.md(+6 -0)📝
packages/slurp2/client.js(+29 -29)📝
packages/slurp2/manifest.json(+5 -5)📝
packages/slurp2/server.mjs(+199 -190)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/SlurpHome.tsx(+60 -14)📝
packages/slurp2/src/engine/packages/client/src/components/slurp/slurp2-release.ts(+10 -1)📝
packages/slurp2/src/engine/packages/client/src/hooks/use-slurp.ts(+4 -0)📝
packages/slurp2/src/engine/packages/client/src/localization/locales/en.json(+3 -0)📝
packages/slurp2/src/engine/packages/server/src/routes/slurp.routes.ts(+39 -13)📝
packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-generation.service.ts(+5 -1)📝
packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-post.operation.ts(+9 -1)📝
packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-stage-profile-draft.service.ts(+57 -26)➕
packages/slurp2/src/engine/packages/server/src/services/slurp/slurp-stage-profile-repair.ts(+119 -0)...and 4 more files
📄 Description
Pull request
Linked issue
Closes #859
Why this change
A user on 0.0.11 still could not create Creators with AI, even though the model returned a complete profile with
"gender": "female"and six tags. The server log shows the bulk create request answered 201 after one model call, with the Creator skipped as "did not include a valid gender and at least 3 tags" — a reason that did not match the answer.Root causes:
sourceSnapshotin open mode,sourceRevisionTokenwhen redrafting). The bulk route passed the whole draft to the.strict()create schema, so every open-mode Creator was refused asunrecognized_keysand reported with the wrong reason.bio500,stagePersonality1000) failed as a whole, twice, because the prompt never stated the limits — and the route replaced the cause with a generic 500 message.What changed
A draft is repaired, not rejected (
slurp-stage-profile-repair.ts, new and pure):@and spaces, or is built from the display name.woman,f,non-binary, …); anything unknown becomesnullwith a note.Draft service
jsonrepair(already an Engine server dependency) is the last parsing resort afterparseGameJsonish.protectNoodlerGeneratedIdentity, with a note. A leaked name or handle is still refused.Routes
notes,sourceSnapshot, andsourceRevisionTokenbefore the strict schema, and reports the real validation reason when it is not the gender/tags rule.Persona Creator parity (requested in review)
imagePrompt, so a manual post can be rendered later through the existing reviewed-image path.tests/slurp2-persona-creator-ai.regression.tscovers the gate, the automatic-path exclusions, the toggle wiring, and the manual image path.Release: slurp2
0.0.12with payloads, artifact, catalog entries, and notes. Newtests/slurp2-stage-profile-repair.regression.tscovers the reported answer, over-long text, gender spellings, comma-separated tags, unusable answers, and the route/service wiring.Package and security impact
slurp2jsonrepair, resolved from the Engine server workspace at build time.notesis response-only and never stored on a Creator.Validation
Run on commit
304321fa:node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyslurp20.0.12)npm run typecheck:packages— 0 errors;npm run check— 0 errors (baseline warnings)node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/tests/catalog-release-notes.regression.mjs— passedtests/slurp2-*.regression.tspassed, plusnoodler-stage-profile-draft,noodler-disclosure-contract, andnoodler-generation-guidance-defaulttests/slurp-*.regression.ts— the same 11 baseline failures as onstaging; no new failuresNot done: no browser test and no live model call.
Noodle package browseris expected to fail (Engine staging retiredPUT /api/characters/personas/:id/activate); it is not a required check.Summary by CodeRabbit
New Features
Bug Fixes
Release
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.