[PR #3984] [MERGED] (feat)noodler Slice 8a: text-only automatic creator posting #6184

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3984
Author: @Gunterlie
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: noodl-split/slice-8


📝 Commits (5)

  • d88fce0 Slice 8a: text-only automatic creator posting
  • 4118e6e Merge branch 'staging' into noodl-split/slice-8
  • ed97817 Address PR #3984 review: freshness polling, error feedback, intensity-safe claim
  • f287e62 Address CodeRabbit review on PR #3984
  • cc2d3ae Merge branch 'staging' into noodl-split/slice-8

📊 Changes

13 files changed (+534 additions, -13 deletions)

View changed files

📝 package.json (+1 -1)
📝 packages/client/src/components/noodle/NoodlerHome.tsx (+117 -0)
📝 packages/client/src/hooks/use-noodle.ts (+41 -0)
📝 packages/server/src/app.ts (+4 -0)
📝 packages/server/src/routes/noodle.routes.ts (+15 -0)
➕ packages/server/src/services/noodle/noodle-autopost-cadence.ts (+33 -0)
➕ packages/server/src/services/noodle/noodle-autopost-scheduler.service.ts (+105 -0)
📝 packages/server/src/services/storage/noodle.storage.ts (+103 -4)
📝 packages/shared/src/schemas/noodle.schema.ts (+31 -2)
📝 packages/shared/src/types/noodle.ts (+14 -1)
➕ scripts/regressions/noodle-autopost.regression.ts (+63 -0)
📝 scripts/regressions/noodle-prompt.regression.ts (+1 -1)
📝 scripts/regressions/noodle-settings.regression.ts (+6 -4)

📄 Description

Small basic feature, gets better with time.

Slice / capability

Slice 8a — text-only automatic creator posting. Adds a per-creator NoodleR scheduler so stage-profile creators post autonomously while Marinara runs, plus the per-creator control surface. Builds on the merged Slice 1A–7 foundation (typed private-account settings, atomic patching, the generateNoodlePrivatePost application seam, and the Slice 7 creator profile page).

Why

The release-candidate bar requires autonomous posting: characters producing content on their own, per-creator toggleable and safe to stop. Until now NoodleR could only generate a private post on demand. This delivers the autonomy core.

This is the first step of NoodleR automation and will get refined later. It intentionally ships the minimum safe autonomous loop (text-only, subscriber access, per-creator cadence) so the behavior can be exercised and tuned in real use. Expect follow-ups to refine cadence/jitter, the control plane (8b), generated images (8b+), and fan activity (Slice 9). The scheduler seam and settings shape here are the foundation those iterations build on.

What changed

  • Settings (shared): fill the NoodleAutoPostingSettings / scheduler-subtree placeholders (types + zod). Default = disabled, intensity 1, nextRunAt: null. The client patch schema excludes the server-owned nextRunAt.
  • Storage: allow scheduler-subtree patches on private accounts; deep-merge preserves nextRunAt and clears it transactionally on enable/intensity change. New server-owned mutators: advanceAutoPostRun (seed / claim / skip), rescheduleAutoPostRun, listAutoPostEnabledAccounts. autoPosting exposed on the managed stage profile.
  • Scheduler service (noodle-autopost-scheduler.service.ts): polls enabled creators, claims a due run by advancing nextRunAt before provider work (at-most-once; no catch-up burst), bounded concurrency, subscriber-access text-only posts via generateNoodlePrivatePost (never routes). onClose drains active runs before storage closes. Wired in app.ts.
  • Cadence (noodle-autopost-cadence.ts): pure 1/3/6 → interval math with ±25% jitter and an anti-burst floor.
  • API + UI: reschedule route PUT /noodle/noodler/accounts/:id/auto-post/schedule (future-time validated); Automation panel on the creator profile (enable toggle, Low/Med/High cadence, next-run status + reschedule) with useUpdateNoodlerAutoPosting / useRescheduleNoodlerAutoPost.

Explicit non-scope

  • Deferred to a follow-up (8b): global NoodleR Settings section, global schedule on/off, enableNoodler toggle UI, and the global Refresh NoodleR now action. The release-candidate control plane is not fully closed until 8b lands.
  • Out of Slice 8 entirely: private images, uploads, polls, fan activity, automatic PPV, currency, creative-brief layer, cross-mode, projects.

Validation status

  • pnpm check
  • pnpm regression:noodle (incl. new noodle-autopost cadence/schema check)
  • pnpm guard:installer-artifacts
  • Manually verify in browser: enable automatic posting on a creator, set cadence, confirm next-run displays and reschedules
  • Manually verify in browser: force a due run (controlled clock) and confirm a subscriber post appears with title/body-only output and correct hinted/secret identity redaction
  • Manually verify in browser: disable automatic posting and confirm no further runs
  • Manually verify desktop + mobile layouts, themes, loading/disabled/error states
  • Real external-provider automatic-post smoke

Note: the checklist above is a to-do list for the human contributor. Automated checks (pnpm check, full regression:noodle, guard:installer-artifacts) and a temporary controlled-clock DB proof passed locally during development, but the boxes are intentionally left unchecked for manual sign-off, and the real-provider/browser passes require the contributor's environment.

Issue

No linked issue found — one should be opened before this PR is submitted per CONTRIBUTING.md § Before You Open a Pull Request.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Added automatic posting controls for NoodleR profiles, including enable/disable settings and posting intensity options.
    • Added visibility into the next scheduled post and the ability to reschedule it.
    • Automatic posting now runs on a recurring schedule when enabled.
  • Bug Fixes

    • Improved scheduler settings normalization and validation, including safe handling of legacy configurations.
  • Tests

    • Added regression coverage for scheduling intervals, timing jitter, rescheduling, and configuration validation.

🔄 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/3984 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `noodl-split/slice-8` --- ### 📝 Commits (5) - [`d88fce0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d88fce0e07b15b07609259fff34563ee48e7d3a1) Slice 8a: text-only automatic creator posting - [`4118e6e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4118e6e3495ee8eb6fa63378c3368d3c840d4154) Merge branch 'staging' into noodl-split/slice-8 - [`ed97817`](https://github.com/Pasta-Devs/Marinara-Engine/commit/ed978171d35334c019c8d9d9441ac5508d09b936) Address PR #3984 review: freshness polling, error feedback, intensity-safe claim - [`f287e62`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f287e6258796524e991ce0c9d3e0344671b5d291) Address CodeRabbit review on PR #3984 - [`cc2d3ae`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cc2d3aee8ee9c82451cde6208cf409bebcbe5c7a) Merge branch 'staging' into noodl-split/slice-8 ### 📊 Changes **13 files changed** (+534 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) 📝 `packages/client/src/components/noodle/NoodlerHome.tsx` (+117 -0) 📝 `packages/client/src/hooks/use-noodle.ts` (+41 -0) 📝 `packages/server/src/app.ts` (+4 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+15 -0) ➕ `packages/server/src/services/noodle/noodle-autopost-cadence.ts` (+33 -0) ➕ `packages/server/src/services/noodle/noodle-autopost-scheduler.service.ts` (+105 -0) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+103 -4) 📝 `packages/shared/src/schemas/noodle.schema.ts` (+31 -2) 📝 `packages/shared/src/types/noodle.ts` (+14 -1) ➕ `scripts/regressions/noodle-autopost.regression.ts` (+63 -0) 📝 `scripts/regressions/noodle-prompt.regression.ts` (+1 -1) 📝 `scripts/regressions/noodle-settings.regression.ts` (+6 -4) </details> ### 📄 Description Small basic feature, gets better with time. ## Slice / capability **Slice 8a — text-only automatic creator posting.** Adds a per-creator NoodleR scheduler so stage-profile creators post autonomously while Marinara runs, plus the per-creator control surface. Builds on the merged Slice 1A–7 foundation (typed private-account settings, atomic patching, the `generateNoodlePrivatePost` application seam, and the Slice 7 creator profile page). ## Why The release-candidate bar requires autonomous posting: characters producing content on their own, per-creator toggleable and safe to stop. Until now NoodleR could only generate a private post on demand. This delivers the autonomy core. **This is the first step of NoodleR automation and will get refined later.** It intentionally ships the minimum safe autonomous loop (text-only, subscriber access, per-creator cadence) so the behavior can be exercised and tuned in real use. Expect follow-ups to refine cadence/jitter, the control plane (8b), generated images (8b+), and fan activity (Slice 9). The scheduler seam and settings shape here are the foundation those iterations build on. ## What changed - **Settings (shared):** fill the `NoodleAutoPostingSettings` / scheduler-subtree placeholders (types + zod). Default = disabled, intensity 1, `nextRunAt: null`. The client patch schema excludes the server-owned `nextRunAt`. - **Storage:** allow `scheduler`-subtree patches on private accounts; deep-merge preserves `nextRunAt` and clears it transactionally on enable/intensity change. New server-owned mutators: `advanceAutoPostRun` (seed / claim / skip), `rescheduleAutoPostRun`, `listAutoPostEnabledAccounts`. `autoPosting` exposed on the managed stage profile. - **Scheduler service** (`noodle-autopost-scheduler.service.ts`): polls enabled creators, claims a due run by advancing `nextRunAt` **before** provider work (at-most-once; no catch-up burst), bounded concurrency, subscriber-access text-only posts via `generateNoodlePrivatePost` (never routes). `onClose` drains active runs before storage closes. Wired in `app.ts`. - **Cadence** (`noodle-autopost-cadence.ts`): pure 1/3/6 → interval math with ±25% jitter and an anti-burst floor. - **API + UI:** reschedule route `PUT /noodle/noodler/accounts/:id/auto-post/schedule` (future-time validated); Automation panel on the creator profile (enable toggle, Low/Med/High cadence, next-run status + reschedule) with `useUpdateNoodlerAutoPosting` / `useRescheduleNoodlerAutoPost`. ## Explicit non-scope - **Deferred to a follow-up (8b):** global NoodleR Settings section, global schedule on/off, `enableNoodler` toggle UI, and the global **Refresh NoodleR now** action. **The release-candidate control plane is not fully closed until 8b lands.** - Out of Slice 8 entirely: private images, uploads, polls, fan activity, automatic PPV, currency, creative-brief layer, cross-mode, projects. ## Validation status - [ ] `pnpm check` - [ ] `pnpm regression:noodle` (incl. new `noodle-autopost` cadence/schema check) - [ ] `pnpm guard:installer-artifacts` - [ ] Manually verify in browser: enable automatic posting on a creator, set cadence, confirm next-run displays and reschedules - [ ] Manually verify in browser: force a due run (controlled clock) and confirm a **subscriber** post appears with title/body-only output and correct hinted/secret identity redaction - [ ] Manually verify in browser: disable automatic posting and confirm no further runs - [ ] Manually verify desktop + mobile layouts, themes, loading/disabled/error states - [ ] Real external-provider automatic-post smoke > Note: the checklist above is a to-do list for the human contributor. Automated checks (`pnpm check`, full `regression:noodle`, `guard:installer-artifacts`) and a temporary controlled-clock DB proof passed locally during development, but the boxes are intentionally left unchecked for manual sign-off, and the real-provider/browser passes require the contributor's environment. ## Issue No linked issue found — one should be opened before this PR is submitted per `CONTRIBUTING.md § Before You Open a Pull Request`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added automatic posting controls for NoodleR profiles, including enable/disable settings and posting intensity options. - Added visibility into the next scheduled post and the ability to reschedule it. - Automatic posting now runs on a recurring schedule when enabled. - **Bug Fixes** - Improved scheduler settings normalization and validation, including safe handling of legacy configurations. - **Tests** - Added regression coverage for scheduling intervals, timing jitter, rescheduling, and configuration validation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:07:54 +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#6184
No description provided.