[GH-ISSUE #3781] [Feature]: Extract the public Noodle generation service seam #2041

Closed
opened 2026-10-21 05:44:50 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Jul 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3781

Originally assigned to: @Gunterlie on GitHub.

What problem does this solve?

The existing public Noodle timeline generation pipeline is implemented inside POST /api/noodle/refresh. This makes the route double as the reusable business-logic layer and gives later NoodleR slices the wrong extension point. It corresponds to P2 Finding 5: routes should not own reusable business logic.

This issue tracks Slice 3 of the NoodleR PR-stack plan. It builds on Slice 1A (#3744), Slice 1B (#3751), and Slice 2 (#3759).

Proposed solution

Extract only the public Noodle generation pipeline that currently exists on staging into a typed, DB-backed service. Keep request validation, HTTP status mapping, connection checks, and in-flight request coordination in the route. Preserve prompt assembly, provider fallback, correction retry, generated media, persistence, digests, and refresh-run behavior.

Active owner: @Gunterlie on branch noodl-split-3-public-generation-seam.

Acceptance criteria:

  • The public generation route delegates reusable generation business logic to a typed service.
  • Existing public timeline generation output and side effects remain behavior-identical.
  • pnpm regression:prompt passes.
  • No private generation, stage identity, subscriptions, fan activity, automatic posting, cross-mode integration, or creator-project seams are introduced.

Alternatives considered

  • Leave the pipeline in the route and add later NoodleR behavior there. Rejected because it preserves the routes-as-service-layer finding.
  • Pre-build one generalized public/private generation pipeline. Rejected because private generation and later NoodleR capabilities do not exist on this baseline and belong to later slices.

Additional context

Authoritative plan: .github/plans/noodl-split/noodler-pr-stack-plan-v2.md, Slice 3.

This is intended to be a mechanical extraction. Any behavior change must remain separate from the pure move. Later NoodleR capabilities are intentionally out of scope.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Gunterlie on GitHub (Jul 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3781 Originally assigned to: @Gunterlie on GitHub. ## What problem does this solve? The existing public Noodle timeline generation pipeline is implemented inside `POST /api/noodle/refresh`. This makes the route double as the reusable business-logic layer and gives later NoodleR slices the wrong extension point. It corresponds to P2 Finding 5: routes should not own reusable business logic. This issue tracks Slice 3 of the NoodleR PR-stack plan. It builds on Slice 1A (#3744), Slice 1B (#3751), and Slice 2 (#3759). ## Proposed solution Extract only the public Noodle generation pipeline that currently exists on `staging` into a typed, DB-backed service. Keep request validation, HTTP status mapping, connection checks, and in-flight request coordination in the route. Preserve prompt assembly, provider fallback, correction retry, generated media, persistence, digests, and refresh-run behavior. Active owner: @Gunterlie on branch `noodl-split-3-public-generation-seam`. Acceptance criteria: - The public generation route delegates reusable generation business logic to a typed service. - Existing public timeline generation output and side effects remain behavior-identical. - `pnpm regression:prompt` passes. - No private generation, stage identity, subscriptions, fan activity, automatic posting, cross-mode integration, or creator-project seams are introduced. ## Alternatives considered - Leave the pipeline in the route and add later NoodleR behavior there. Rejected because it preserves the routes-as-service-layer finding. - Pre-build one generalized public/private generation pipeline. Rejected because private generation and later NoodleR capabilities do not exist on this baseline and belong to later slices. ## Additional context Authoritative plan: `.github/plans/noodl-split/noodler-pr-stack-plan-v2.md`, Slice 3. This is intended to be a mechanical extraction. Any behavior change must remain separate from the pure move. Later NoodleR capabilities are intentionally out of scope. ## Template check - [ ] 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#2041
No description provided.