[PR #4425] [CLOSED] AFTER UPDATE: feat(noodler): collapse post access to public|locked, add creator replies and reserve #6374

Closed
opened 2026-10-23 04:09:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4425
Author: @Gunterlie
Created: 8/1/2026
Status: ❌ Closed

Base: stack/2-docs ← Head: stack/3-server


📝 Commits (2)

  • 13382a9 feat(noodler): collapse post access to public|locked, add creator replies and post reserve
  • da09ee0 Merge branch 'stack/2-docs' into stack/3-server

📊 Changes

31 files changed (+2280 additions, -533 deletions)

View changed files

📝 package.json (+1 -1)
📝 packages/server/src/db/file-backed-store.ts (+51 -7)
➕ packages/server/src/db/noodle-access-migration.ts (+13 -0)
📝 packages/server/src/db/schema/noodle.ts (+48 -2)
📝 packages/server/src/routes/agents.routes.ts (+1 -0)
📝 packages/server/src/routes/backup.routes.ts (+2 -0)
📝 packages/server/src/routes/noodle.routes.ts (+135 -68)
➖ packages/server/src/services/noodle/noodle-autopost-cadence.ts (+0 -33)
📝 packages/server/src/services/noodle/noodle-autopost-scheduler.service.ts (+29 -87)
📝 packages/server/src/services/noodle/noodle-image-retry.ts (+2 -2)
➕ packages/server/src/services/noodle/noodle-noodler-creator-reply.operation.ts (+53 -0)
📝 packages/server/src/services/noodle/noodle-noodler-generation.service.ts (+89 -12)
📝 packages/server/src/services/noodle/noodle-noodler-images.service.ts (+12 -4)
📝 packages/server/src/services/noodle/noodle-noodler-media.ts (+12 -0)
📝 packages/server/src/services/noodle/noodle-noodler-post.operation.ts (+43 -21)
➕ packages/server/src/services/noodle/noodle-noodler-reply-generation.service.ts (+145 -0)
➕ packages/server/src/services/noodle/noodle-noodler-reserve.operation.ts (+179 -0)
📝 packages/server/src/services/noodle/noodle-response-format.ts (+15 -3)
📝 packages/server/src/services/noodle/noodle-stage-profile-draft.service.ts (+11 -3)
📝 packages/server/src/services/noodle/noodler-access.ts (+1 -3)

...and 11 more files

📄 Description

Why

The NoodleR access model had grown three overlapping concepts — subscriber, ppv, ppvPrice, subscriptionIncludesPpv — that users experienced as one question: can this viewer read this post. This collapses post access to public | locked with a data migration, and builds the two features that depend on that settled model: creators replying to the viewer, and a front-loaded reserve of scheduled posts so a creator's feed does not go silent when generation is slow.

Carries Slices 8f-1, 8f-2, 8g, and 8f-3 from the living plan.

Why these four slices are one PR

The living plan orders them as separate slices, and that was the right build order. They cannot be separated after the fact at file granularity: all four turn on the same access and settings type collapse, which ripples through noodle.routes.ts, the autopost scheduler, and the generation service. Splitting them here would mean cutting those three files hunk-by-hunk and hand-repairing each intermediate state so it compiles — real risk of subtly wrong intermediate commits, for no reviewer benefit.

The client surface for this work is deliberately held back to layer 4.

Stack

Layer 3 of 4. Base: stack/2-docs (#4424).

Notes

  • No linked issue exists for this work; one should be opened before this is taken out of draft.
  • noodle-autopost-cadence.ts is deleted; the reserve operation replaces it.
  • Includes a migration for existing noodle_posts rows off the retired access values. Reviewers should look hardest here — it rewrites stored user data on first boot.

Test plan

  • pnpm check
  • pnpm regression:noodle (15 regressions, including the new noodle-creator-reply and reserve coverage)
  • Manually verify the migration against a pre-8f data directory: existing subscriber/ppv posts land as locked, and no post becomes readable that was not readable before
  • Manually verify a locked post's media stays inaccessible to a non-subscribed viewer, including by direct media URL
  • Manually verify creator replies appear for the addressed viewer and respect access rules
  • Manually verify the reserve refills and that a paused creator stops consuming it

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4425 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/1/2026 **Status:** ❌ Closed **Base:** `stack/2-docs` ← **Head:** `stack/3-server` --- ### 📝 Commits (2) - [`13382a9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/13382a94f7ce6e6d73a3996cfe806d29424ce4db) feat(noodler): collapse post access to public|locked, add creator replies and post reserve - [`da09ee0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/da09ee0ef2bf1c1ae4f5acebddfe642e390960ce) Merge branch 'stack/2-docs' into stack/3-server ### 📊 Changes **31 files changed** (+2280 additions, -533 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `packages/server/src/db/file-backed-store.ts` (+51 -7) ➕ `packages/server/src/db/noodle-access-migration.ts` (+13 -0) 📝 `packages/server/src/db/schema/noodle.ts` (+48 -2) 📝 `packages/server/src/routes/agents.routes.ts` (+1 -0) 📝 `packages/server/src/routes/backup.routes.ts` (+2 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+135 -68) ➖ `packages/server/src/services/noodle/noodle-autopost-cadence.ts` (+0 -33) 📝 `packages/server/src/services/noodle/noodle-autopost-scheduler.service.ts` (+29 -87) 📝 `packages/server/src/services/noodle/noodle-image-retry.ts` (+2 -2) ➕ `packages/server/src/services/noodle/noodle-noodler-creator-reply.operation.ts` (+53 -0) 📝 `packages/server/src/services/noodle/noodle-noodler-generation.service.ts` (+89 -12) 📝 `packages/server/src/services/noodle/noodle-noodler-images.service.ts` (+12 -4) 📝 `packages/server/src/services/noodle/noodle-noodler-media.ts` (+12 -0) 📝 `packages/server/src/services/noodle/noodle-noodler-post.operation.ts` (+43 -21) ➕ `packages/server/src/services/noodle/noodle-noodler-reply-generation.service.ts` (+145 -0) ➕ `packages/server/src/services/noodle/noodle-noodler-reserve.operation.ts` (+179 -0) 📝 `packages/server/src/services/noodle/noodle-response-format.ts` (+15 -3) 📝 `packages/server/src/services/noodle/noodle-stage-profile-draft.service.ts` (+11 -3) 📝 `packages/server/src/services/noodle/noodler-access.ts` (+1 -3) _...and 11 more files_ </details> ### 📄 Description ## Why The NoodleR access model had grown three overlapping concepts — `subscriber`, `ppv`, `ppvPrice`, `subscriptionIncludesPpv` — that users experienced as one question: can this viewer read this post. This collapses post access to `public | locked` with a data migration, and builds the two features that depend on that settled model: creators replying to the viewer, and a front-loaded reserve of scheduled posts so a creator's feed does not go silent when generation is slow. Carries Slices 8f-1, 8f-2, 8g, and 8f-3 from the living plan. ## Why these four slices are one PR The living plan orders them as separate slices, and that was the right *build* order. They cannot be separated *after the fact* at file granularity: all four turn on the same access and settings type collapse, which ripples through `noodle.routes.ts`, the autopost scheduler, and the generation service. Splitting them here would mean cutting those three files hunk-by-hunk and hand-repairing each intermediate state so it compiles — real risk of subtly wrong intermediate commits, for no reviewer benefit. The client surface for this work is deliberately held back to layer 4. ## Stack Layer 3 of 4. Base: `stack/2-docs` (#4424). ## Notes - No linked issue exists for this work; one should be opened before this is taken out of draft. - `noodle-autopost-cadence.ts` is deleted; the reserve operation replaces it. - Includes a migration for existing `noodle_posts` rows off the retired access values. Reviewers should look hardest here — it rewrites stored user data on first boot. ## Test plan - [ ] `pnpm check` - [ ] `pnpm regression:noodle` (15 regressions, including the new `noodle-creator-reply` and reserve coverage) - [ ] Manually verify the migration against a pre-8f data directory: existing `subscriber`/`ppv` posts land as `locked`, and no post becomes readable that was not readable before - [ ] Manually verify a locked post's media stays inaccessible to a non-subscribed viewer, including by direct media URL - [ ] Manually verify creator replies appear for the addressed viewer and respect access rules - [ ] Manually verify the reserve refills and that a paused creator stops consuming it --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:09:47 +07:00
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#6374
No description provided.