[GH-ISSUE #307] NoodleR: deferred CodeRabbit follow-ups from PR #305 #157

Closed
opened 2026-10-20 17:24:57 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (Aug 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/307

Originally assigned to: @Gunterlie on GitHub.

Follow-up work deferred from #305 (tracked bug: #306). These are legitimate CodeRabbit findings intentionally left out of that PR to keep it scoped and because several are Major refactors on pre-existing code that need full browser-suite validation (the Playwright suite can't run in the dev sandbox).

Correctness / behavior (Major)

  • temp/topP precedence — noodle-public-generation.service.ts:293: the option reorder lets package temperature/topP override connection defaults. Intentional for verbosity control, but it discards user-set sampling. Needs a product decision (resolve per-parameter, or document).
  • Allow-list audience projection — noodler-disclosure.ts:41: build the audience profile from an explicit allow-list instead of stripping fields from the owner object (defense-in-depth against future field leaks).
  • Keyed digest for private source revisions — noodle-noodler-source.ts:36: use a keyed/HMAC digest so stored revision tokens can't be brute-forced back to source identity.
  • Transactional linked-follow-up persistence — noodle-noodler-generation.service.ts:649: persist a follow-up and its main post in one transaction (the teaser feature is removed from the UI but the server path remains).
  • Reject simultaneous linked-follow-up inputs — noodle-noodler-generation.service.ts:586.
  • Don't serialize the entire character record into the invited-post prompt — noodle-invited-post-draft.service.ts:88: send only the fields the draft needs.
  • Image-connection settings lost updates / validate creatorId — noodle.routes.ts:2033: concurrent PATCHes can clobber each other; validate creatorId and report an ignored patch.
  • Prepared posts discarded without notice — noodle.routes.ts:1674: surface the discarded count on a disclosure downgrade.
  • Structured reason code instead of literal string — noodle.routes.ts:1663: replace "the current creator avatar" literal with a stable reason code.

Maintainability / a11y / perf

  • Shared NOODLER_DEFAULT_GENERATION_GUIDANCE — currently duplicated in client NoodleHome.tsx and server noodle.storage.ts (kept in sync via comments). Add a package-local shared module if one becomes importable by both bundles.
  • Memoize the Markdown parse in NoodlePostCard NoodleTextContent — needs care: the parse output embeds onOpenProfile/mentionLabel closures, so memoization must key on those to avoid stale handlers.
  • ko.json translation gap — ko.json:516.

Tests / tooling (Trivial/Minor)

  • Replace whole-file source-text assertions with behavior assertions — noodle-generation-policy.regression.ts, noodler-content-formats.regression.ts.
  • Add non-boolean invited coverage — noodle-invited-post-draft.regression.ts.
  • Exercise the evaluator failure paths — tests/fixtures/noodle-generation-quality.samples.json.
  • Cross-platform test runner — package.json:17 uses a POSIX sh -c loop (repo is POSIX-only today; revisit if Windows dev is supported).

See the CodeRabbit review on #305 for full context on each.

Originally created by @Gunterlie on GitHub (Aug 11, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/307 Originally assigned to: @Gunterlie on GitHub. Follow-up work deferred from #305 (tracked bug: #306). These are legitimate CodeRabbit findings intentionally left out of that PR to keep it scoped and because several are Major refactors on pre-existing code that need full browser-suite validation (the Playwright suite can't run in the dev sandbox). ### Correctness / behavior (Major) - [ ] **temp/topP precedence** — `noodle-public-generation.service.ts:293`: the option reorder lets package `temperature`/`topP` override connection defaults. Intentional for verbosity control, but it discards user-set sampling. Needs a product decision (resolve per-parameter, or document). - [ ] **Allow-list audience projection** — `noodler-disclosure.ts:41`: build the audience profile from an explicit allow-list instead of stripping fields from the owner object (defense-in-depth against future field leaks). - [ ] **Keyed digest for private source revisions** — `noodle-noodler-source.ts:36`: use a keyed/HMAC digest so stored revision tokens can't be brute-forced back to source identity. - [ ] **Transactional linked-follow-up persistence** — `noodle-noodler-generation.service.ts:649`: persist a follow-up and its main post in one transaction (the teaser feature is removed from the UI but the server path remains). - [ ] **Reject simultaneous linked-follow-up inputs** — `noodle-noodler-generation.service.ts:586`. - [ ] **Don't serialize the entire character record into the invited-post prompt** — `noodle-invited-post-draft.service.ts:88`: send only the fields the draft needs. - [ ] **Image-connection settings lost updates / validate creatorId** — `noodle.routes.ts:2033`: concurrent PATCHes can clobber each other; validate `creatorId` and report an ignored patch. - [ ] **Prepared posts discarded without notice** — `noodle.routes.ts:1674`: surface the discarded count on a disclosure downgrade. - [ ] **Structured reason code instead of literal string** — `noodle.routes.ts:1663`: replace "the current creator avatar" literal with a stable reason code. ### Maintainability / a11y / perf - [ ] **Shared `NOODLER_DEFAULT_GENERATION_GUIDANCE`** — currently duplicated in client `NoodleHome.tsx` and server `noodle.storage.ts` (kept in sync via comments). Add a package-local shared module if one becomes importable by both bundles. - [ ] **Memoize the Markdown parse** in `NoodlePostCard` `NoodleTextContent` — needs care: the parse output embeds `onOpenProfile`/`mentionLabel` closures, so memoization must key on those to avoid stale handlers. - [ ] **ko.json** translation gap — `ko.json:516`. ### Tests / tooling (Trivial/Minor) - [ ] Replace whole-file source-text assertions with behavior assertions — `noodle-generation-policy.regression.ts`, `noodler-content-formats.regression.ts`. - [ ] Add non-boolean `invited` coverage — `noodle-invited-post-draft.regression.ts`. - [ ] Exercise the evaluator failure paths — `tests/fixtures/noodle-generation-quality.samples.json`. - [ ] Cross-platform test runner — `package.json:17` uses a POSIX `sh -c` loop (repo is POSIX-only today; revisit if Windows dev is supported). See the CodeRabbit review on #305 for full context on each.
Author
Owner

@Gunterlie commented on GitHub (Aug 11, 2026):

Additional finding from PR #305's later review rounds:

  • Allow folder-selected characters to author posts — noodle.routes.ts (POST /posts handler): folder-selected accounts default to invited: false, so the directly-invited-character guard 403s them even though NoodleHome exposes them as composer authors. Needs to resolve selected group membership and allow those accounts while still rejecting ambient/stale characters.
<!-- gh-comment-id:5259748062 --> @Gunterlie commented on GitHub (Aug 11, 2026): Additional finding from PR #305's later review rounds: - [ ] **Allow folder-selected characters to author posts** — `noodle.routes.ts` (POST /posts handler): folder-selected accounts default to `invited: false`, so the directly-invited-character guard 403s them even though `NoodleHome` exposes them as composer authors. Needs to resolve selected group membership and allow those accounts while still rejecting ambient/stale characters.
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-Agents#157
No description provided.