[PR #4681] [MERGED] feat(noodler): add quiet synthetic fan engagement #6467

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

📋 Pull Request Information

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

Base: staging ← Head: feat/noodler-slice-9a


📝 Commits (10+)

  • 5578cd8 feat(noodler): add synthetic fan activity
  • 1cb9a97 feat(noodler): complete fan activity scheduling
  • e3ca0f8 Merge branch 'staging' into feat/noodler-slice-9a
  • 9408caa fix(noodler): strip sourceSnapshot from stage profile draft state
  • 6334945 fix(noodler): address CodeRabbit review findings on fan engagement
  • e10efac fix(noodler): show localized error on all-zero archetype weight rejection
  • 172f0a3 feat(noodler): surface source-drift notice on the creator profile page
  • 1733b44 feat(noodler): add re-draft action to the source-drift banner
  • 9370756 Merge branch 'staging' into feat/noodler-slice-9a
  • 3c6d558 fix(noodler): preserve selected profile content when redrafting from source

📊 Changes

24 files changed (+2476 additions, -71 deletions)

View changed files

➕ .github/plans/noodl-split/noodler-fan-engagement.md (+248 -0)
📝 .github/plans/noodl-split/noodler-pr-split-living-plan.md (+2 -1)
📝 CHANGELOG.md (+8 -0)
📝 package.json (+1 -0)
📝 packages/client/src/components/noodle/NoodlerHome.tsx (+219 -12)
📝 packages/client/src/components/noodle/NoodlerPublishingSettings.tsx (+226 -38)
📝 packages/client/src/hooks/use-noodle.ts (+45 -0)
📝 packages/client/src/localization/locales/en.json (+38 -0)
📝 packages/server/src/app.ts (+4 -0)
📝 packages/server/src/db/file-backed-store.ts (+2 -0)
📝 packages/server/src/db/schema/noodle.ts (+6 -0)
📝 packages/server/src/routes/backup.routes.ts (+8 -9)
📝 packages/server/src/routes/noodle.routes.ts (+35 -1)
➕ packages/server/src/services/noodle/noodle-fan-activity-day-plan.ts (+347 -0)
➕ packages/server/src/services/noodle/noodle-fan-activity-scheduler.service.ts (+48 -0)
➕ packages/server/src/services/noodle/noodle-fan-activity.operation.ts (+264 -0)
➕ packages/server/src/services/noodle/noodle-fan-identity-provider.ts (+43 -0)
➕ packages/server/src/services/noodle/noodle-noodler-fan-activity.service.ts (+286 -0)
📝 packages/server/src/services/noodle/noodle-response-format.ts (+29 -7)
📝 packages/server/src/services/storage/noodle.storage.ts (+127 -3)

...and 4 more files

📄 Description

Linked issue

Closes #4633

Why this change

NoodleR creators can publish and answer real viewers, but the audience surface is inert between user actions. This adds bounded synthetic engagement while keeping provider cost, post access, scheduling, and persistence deterministic.

What changed

  • Added creator-scoped synthetic likes, replies, and reposts for public NoodleR posts.
  • Added four durable platform runs per local day with one batched provider call per run, up to 12 creators, and no catch-up bursts.
  • Added global quotas and six archetype weights plus per-creator inherit, on, off, and archetype overrides.
  • Added event-local synthetic identity snapshots without durable fan account rows.
  • Added persisted run claims, restart recovery, stable interaction IDs, and transactional access and policy revalidation.
  • Made manual runs consume the same four-run daily budget as automatic runs.
  • Added focused activity and day-plan regression coverage plus the Slice 9a contract document.

Known limitations

  • Locked posts are intentionally excluded until a later slice defines synthetic audience access.
  • Browser screenshots and manual UI verification are blocked in this environment because Playwright Chromium cannot load libnspr4.so.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • NODE_OPTIONS=--max-old-space-size=4096 pnpm check
  • pnpm regression:noodler-fan-activity
  • pnpm localization:check
  • git diff --check
  • pnpm smoke:ui attempted, but every browser case was blocked before page launch by missing host library libnspr4.so.
  • Manual desktop/mobile light/dark verification and screenshots remain required in a browser-capable environment.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Pending browser-capable manual verification.

Summary by CodeRabbit

  • New Features

    • Added optional, quota-limited synthetic fan activity for public NoodleR posts, including likes, replies, and reposts.
    • Added controls for inheritance, enablement, audience archetypes, usage limits, status monitoring, and manual refresh.
    • Added daily scheduling, resumable runs, interrupted-run recovery, and deterministic synthetic identities.
    • Added source identity adoption, dismissal, and stage-profile redrafting options.
  • Bug Fixes

    • Locked posts no longer expose fan-generated interactions to locked viewers.
    • Added localized validation, clearer recovery messages, profile-control error handling, and malformed-activity isolation.
  • Tests

    • Added regression coverage for selection, quotas, persistence, recovery, and run lifecycle.

Additional changes riding this branch (8f-6, unrelated to 9a)

While auditing NoodleR's release status, found that 8f-6's server-side source-drift
detection (resolveNoodlerSourceSnapshot, compareNoodlerSourceSnapshots, the
/noodler/accounts/:id/source/dismiss and /source/adopt-identity routes, and the
matching client hooks) had shipped with no UI consumer. Two follow-up commits add the
missing surface:

  • Source-drift notice: a controller-only banner on the Creator profile page when
    the linked character/persona has changed or gone missing, listing the changed fields
    with Adopt name & handle (open profiles only) and Dismiss actions.
  • Re-draft action: regenerates the stage profile against the current source by
    reusing the existing /noodler/stage-profile-draft generation endpoint and edit
    flow — no new server endpoint needed.

Relink-on-missing (pointing a stage profile at a different source) is intentionally
still out of scope; only the delete path exists today for a missing source.

Manual verification still needed for this part

  • Edit a character/persona linked to a NoodleR Creator profile and confirm the
    drift banner appears on that Creator's profile page with the correct changed
    fields
  • Adopt name & handle on an open-disclosure profile and confirm the banner clears
  • Dismiss drift and confirm the banner clears without changing the profile
  • Re-draft and confirm it opens the editor with a freshly generated draft, and that
    saving it clears the drift banner
  • Delete the linked character/persona and confirm the "source missing" variant
    renders instead

🔄 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/4681 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/6/2026 **Status:** ✅ Merged **Merged:** 8/7/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `feat/noodler-slice-9a` --- ### 📝 Commits (10+) - [`5578cd8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5578cd8a1f348fdddd38973331148ee0463081d2) feat(noodler): add synthetic fan activity - [`1cb9a97`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1cb9a973afe6a9f0926583a5a80958bdfe11c00c) feat(noodler): complete fan activity scheduling - [`e3ca0f8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e3ca0f84c5b8c2a4c4862883ec67d11405d71712) Merge branch 'staging' into feat/noodler-slice-9a - [`9408caa`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9408caa0182598a909e0429fe02fa8315f8da321) fix(noodler): strip sourceSnapshot from stage profile draft state - [`6334945`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6334945335cfff3b1eb29ad380c837c3b8dac7a8) fix(noodler): address CodeRabbit review findings on fan engagement - [`e10efac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e10efac073684c345b94fd3a296b7b69732e5eb7) fix(noodler): show localized error on all-zero archetype weight rejection - [`172f0a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/172f0a376f698c5f1bef6d445a2ee44da8185c21) feat(noodler): surface source-drift notice on the creator profile page - [`1733b44`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1733b447eed723faa0edd523e9709d6f0eee0cf4) feat(noodler): add re-draft action to the source-drift banner - [`9370756`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9370756821a32214789e03a18a830b38d0d7cf38) Merge branch 'staging' into feat/noodler-slice-9a - [`3c6d558`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3c6d55881ef207c8065e3858217f43e36d092376) fix(noodler): preserve selected profile content when redrafting from source ### 📊 Changes **24 files changed** (+2476 additions, -71 deletions) <details> <summary>View changed files</summary> ➕ `.github/plans/noodl-split/noodler-fan-engagement.md` (+248 -0) 📝 `.github/plans/noodl-split/noodler-pr-split-living-plan.md` (+2 -1) 📝 `CHANGELOG.md` (+8 -0) 📝 `package.json` (+1 -0) 📝 `packages/client/src/components/noodle/NoodlerHome.tsx` (+219 -12) 📝 `packages/client/src/components/noodle/NoodlerPublishingSettings.tsx` (+226 -38) 📝 `packages/client/src/hooks/use-noodle.ts` (+45 -0) 📝 `packages/client/src/localization/locales/en.json` (+38 -0) 📝 `packages/server/src/app.ts` (+4 -0) 📝 `packages/server/src/db/file-backed-store.ts` (+2 -0) 📝 `packages/server/src/db/schema/noodle.ts` (+6 -0) 📝 `packages/server/src/routes/backup.routes.ts` (+8 -9) 📝 `packages/server/src/routes/noodle.routes.ts` (+35 -1) ➕ `packages/server/src/services/noodle/noodle-fan-activity-day-plan.ts` (+347 -0) ➕ `packages/server/src/services/noodle/noodle-fan-activity-scheduler.service.ts` (+48 -0) ➕ `packages/server/src/services/noodle/noodle-fan-activity.operation.ts` (+264 -0) ➕ `packages/server/src/services/noodle/noodle-fan-identity-provider.ts` (+43 -0) ➕ `packages/server/src/services/noodle/noodle-noodler-fan-activity.service.ts` (+286 -0) 📝 `packages/server/src/services/noodle/noodle-response-format.ts` (+29 -7) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+127 -3) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #4633 ## Why this change NoodleR creators can publish and answer real viewers, but the audience surface is inert between user actions. This adds bounded synthetic engagement while keeping provider cost, post access, scheduling, and persistence deterministic. ## What changed - Added creator-scoped synthetic likes, replies, and reposts for public NoodleR posts. - Added four durable platform runs per local day with one batched provider call per run, up to 12 creators, and no catch-up bursts. - Added global quotas and six archetype weights plus per-creator inherit, on, off, and archetype overrides. - Added event-local synthetic identity snapshots without durable fan account rows. - Added persisted run claims, restart recovery, stable interaction IDs, and transactional access and policy revalidation. - Made manual runs consume the same four-run daily budget as automatic runs. - Added focused activity and day-plan regression coverage plus the Slice 9a contract document. ## Known limitations - Locked posts are intentionally excluded until a later slice defines synthetic audience access. - Browser screenshots and manual UI verification are blocked in this environment because Playwright Chromium cannot load `libnspr4.so`. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `NODE_OPTIONS=--max-old-space-size=4096 pnpm check` - `pnpm regression:noodler-fan-activity` - `pnpm localization:check` - `git diff --check` - `pnpm smoke:ui` attempted, but every browser case was blocked before page launch by missing host library `libnspr4.so`. - Manual desktop/mobile light/dark verification and screenshots remain required in a browser-capable environment. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Pending browser-capable manual verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added optional, quota-limited synthetic fan activity for public NoodleR posts, including likes, replies, and reposts. * Added controls for inheritance, enablement, audience archetypes, usage limits, status monitoring, and manual refresh. * Added daily scheduling, resumable runs, interrupted-run recovery, and deterministic synthetic identities. * Added source identity adoption, dismissal, and stage-profile redrafting options. * **Bug Fixes** * Locked posts no longer expose fan-generated interactions to locked viewers. * Added localized validation, clearer recovery messages, profile-control error handling, and malformed-activity isolation. * **Tests** * Added regression coverage for selection, quotas, persistence, recovery, and run lifecycle. <!-- end of auto-generated comment: release notes by coderabbit.ai --> ## Additional changes riding this branch (8f-6, unrelated to 9a) While auditing NoodleR's release status, found that 8f-6's server-side source-drift detection (`resolveNoodlerSourceSnapshot`, `compareNoodlerSourceSnapshots`, the `/noodler/accounts/:id/source/dismiss` and `/source/adopt-identity` routes, and the matching client hooks) had shipped with no UI consumer. Two follow-up commits add the missing surface: - **Source-drift notice**: a controller-only banner on the Creator profile page when the linked character/persona has changed or gone missing, listing the changed fields with Adopt name & handle (open profiles only) and Dismiss actions. - **Re-draft action**: regenerates the stage profile against the current source by reusing the existing `/noodler/stage-profile-draft` generation endpoint and edit flow — no new server endpoint needed. Relink-on-missing (pointing a stage profile at a different source) is intentionally still out of scope; only the delete path exists today for a missing source. ### Manual verification still needed for this part - [ ] Edit a character/persona linked to a NoodleR Creator profile and confirm the drift banner appears on that Creator's profile page with the correct changed fields - [ ] Adopt name & handle on an `open`-disclosure profile and confirm the banner clears - [ ] Dismiss drift and confirm the banner clears without changing the profile - [ ] Re-draft and confirm it opens the editor with a freshly generated draft, and that saving it clears the drift banner - [ ] Delete the linked character/persona and confirm the "source missing" variant renders instead --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:10:42 +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#6467
No description provided.