mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3795] [MERGED] feat(noodle): add private generation operation #6106
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6106
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-Engine/pull/3795
Author: @Gunterlie
Created: 7/18/2026
Status: ✅ Merged
Merged: 7/18/2026
Merged by: @SpicyMarinara
Base:
staging← Head:noodl-split-4-private-generation📝 Commits (3)
c73e79bfeat(noodle): add private generation operatione9f2246Merge branch 'staging' into noodl-split-4-private-generationb83d7c6fix(noodle): honor agent debug logging📊 Changes
10 files changed (+402 additions, -18 deletions)
View changed files
📝
packages/client/src/hooks/use-noodle.ts(+1 -0)📝
packages/server/src/routes/noodle.routes.ts(+31 -2)➕
packages/server/src/services/noodle/noodle-generation-log.ts(+5 -0)➕
packages/server/src/services/noodle/noodle-private-generation.service.ts(+175 -0)📝
packages/server/src/services/noodle/noodle-public-generation.service.ts(+1 -4)📝
packages/server/src/services/noodle/noodle-refresh-scheduler.service.ts(+1 -1)📝
packages/server/src/services/noodle/noodle-response-format.ts(+15 -3)📝
packages/server/src/services/storage/noodle.storage.ts(+50 -0)📝
packages/shared/src/schemas/noodle.schema.ts(+55 -5)📝
scripts/regressions/noodle-prompt.regression.ts(+68 -3)📄 Description
Linked issue
Closes #3793
Summary
generatePrivatePost()as a typed, single-account operation beside the public generation service established in Slice 3.mode: "public"andmode: "private"schema variants.targetAccountId,privatePostGuide, andprivateProjectWorkto the private variant at both the Zod-schema and inferred-TypeScript levels.Why
The original oversized NoodleR implementation added private targeted generation as optional branches throughout the public timeline pipeline. That allowed public-mode requests to carry private-only fields and coupled one private creator post to public participant selection, timeline activity, refresh runs, and later NoodleR policies.
This slice resolves P2 Finding 4 by making public and private generation different typed operations. The route validates and dispatches the discriminated request, but the private service never calls or branches inside the public generation service.
Known limitations
privatePostGuideandprivateProjectWorkare bounded instruction strings only. They do not define modal controls, project IDs, milestone lifecycle, access tiers, or scheduling behavior.mode: "public"explicitly.pnpm regressioncommand passed every deterministic/non-browser lane, then Playwright failed before executing browser assertions because Chromium could not load the host librarylibnspr4.so.Test plan
pnpm check.pnpm guard:installer-artifacts.pnpm regression:noodle.pnpm regressionon a host with Playwright Chromium dependencies installed.targetAccountIdreturns HTTP 400 before generation starts.privatePostGuidereturns HTTP 400 before generation starts.privateProjectWorkreturns HTTP 400 before generation starts.Validation notes
A temporary deterministic service fixture used isolated file storage and a local OpenAI-compatible provider. It returned malformed output first and valid corrected output second. The proof confirmed one private post was persisted, its image prompt remained private with no served image URL, and the private account/post did not appear in public account, post, bootstrap, digest, or refresh-run reads. The temporary fixture was removed before commit.
pnpm check,pnpm guard:installer-artifacts, andpnpm regression:noodlepassed locally. Every deterministic/non-browser lane inpnpm regressionalso passed. Playwright could not launch Chromium becauselibnspr4.sois missing from the host, so no browser assertions were personally verified.Docs touched
None. This slice adds an internal generation operation and request contract but no user-facing NoodleR generation workflow. User-facing documentation belongs with the later slice that exposes the operation in the UI.
Summary by CodeRabbit
New Features
Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.