[PR #509] [MERGED] fix(noodle): stop pruning generated posts and replies (1.2.13) #1005

Closed
opened 2026-10-20 17:33:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/509
Author: @Gunterlie
Created: 8/22/2026
Status: ✅ Merged
Merged: 8/23/2026
Merged by: @Gunterlie

Base: staging ← Head: trimmed-kobol-fat


📝 Commits (10+)

  • 0c84586 Promote Noodle 1.0.10 fixes to main
  • d9b93fe Merge pull request #427 from Pasta-Devs/staging
  • 595fff2 fix(noodle): stop pruning generated posts and replies (1.2.5)
  • b5a8f04 Merge branch 'staging' into trimmed-kobol-fat
  • 98b44d4 Merge remote-tracking branch 'origin/staging' into trimmed-kobol-fat
  • fc53c70 style(noodle): format the generated-refresh clip helper
  • 6e5e1ba fix(noodle): address CodeRabbit review on #509
  • 21963b8 test(noodle): assert clipping behavior instead of source text
  • b864540 test(noodle): normalize the handle fixture in the refresh validator case
  • 37d9120 Merge branch 'staging' into trimmed-kobol-fat

📊 Changes

15 files changed (+441 additions, -274 deletions)

View changed files

➕ artifacts/noodle-1.2.13.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/noodle/client.js (+12 -12)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+199 -199)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-activity.service.ts (+47 -18)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-refresh.ts (+26 -9)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-handle.ts (+47 -0)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-generation.service.ts (+14 -3)
📝 packages/noodle/src/engine/packages/server/src/services/noodle/noodle-response-format.ts (+2 -2)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/noodle-generated-refresh.regression.ts (+25 -1)
➕ tests/noodle-handle-resolution.regression.ts (+39 -0)

📄 Description

Pull request

Linked issue

Closes #508

Why this change

  • A koboldcpp user saw generated activity disappear between the model response and the timeline: 4 posts generated and 1 shown, 7 interactions generated and 5 shown. The prompt-side post-target work in 59b986ac raised how many posts the model writes; these drops happen later, in the persistence stage, and nothing reported them.

What changed

  • Package ID noodle, version 1.2.13.
  • noodle-handle.ts gains one handle resolver used by every generated-activity lookup: exact handle first, then the punctuation-stripped handle, then the display name. Exact handles are registered in a first pass, so an alias can never steal another account's post.
  • The same key set backs validateNoodleGeneratedRefresh, so a display-name answer no longer forces a correction round trip.
  • parseNoodleGeneratedRefresh clips over-long content to the documented field limit instead of rejecting the whole row.
  • Interaction targets are matched against both targetPostId and targetTempId, in both the real-post set and the temp-id map.
  • Every remaining drop now logs its reason: unknown handle, or no matching target post.
  • deduplicateGeneratedNoodleContent is deliberately unchanged. Identical text from the same account is a model repetition loop and should stay out of the feed.
  • Generated outputs: packages/noodle/server.mjs, packages/noodle/client.js, packages/noodle/manifest.json, artifacts/noodle-1.2.13.zip, and the three catalog lanes.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: none; minEngineVersion stays 2.4.4.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: standard package update. No storage migration, no schema change.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • node scripts/validate-catalog.mjs: 35 packages valid, lanes v2=35 and v3=35.
  • git diff --check: clean.
  • Rebuilt with node scripts/build-feature-packages.mjs noodle and confirmed the new drop-reason log strings are present in the bundled packages/noodle/server.mjs.
  • Added tests/noodle-handle-resolution.regression.ts, run by npm run test:noodle:regressions. It covers exact-handle precedence over an alias, display-name and punctuation-stripped resolution, unknown handles, and the clipping guard.
  • Not installed through a live Engine, and not exercised against a real koboldcpp refresh. Those two boxes stay unticked.

Documentation impact

  • No documentation changes needed

UI evidence (if applicable)

Not applicable. No UI change.

Summary by CodeRabbit

  • New Features

    • Updated the Noodle package to version 1.2.13.
    • Improved account handle matching, including case-insensitive, display-name, and punctuation-tolerant matching.
    • Generated posts, interactions, follows, and temporary post identifiers now resolve more consistently.
  • Bug Fixes

    • Overlong generated posts and replies are clipped to supported limits instead of being discarded.
    • Invalid or unknown generated references are safely excluded, improving refresh reliability.
    • Improved handling of ambiguous or conflicting account handles.

🔄 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-Agents/pull/509 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/22/2026 **Status:** ✅ Merged **Merged:** 8/23/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `trimmed-kobol-fat` --- ### 📝 Commits (10+) - [`0c84586`](https://github.com/Pasta-Devs/Marinara-Agents/commit/0c8458614d02b8b6ee3a46eeff87b32fd7c8beed) Promote Noodle 1.0.10 fixes to main - [`d9b93fe`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d9b93fe1e9067423a983b1d3755724356232fc91) Merge pull request #427 from Pasta-Devs/staging - [`595fff2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/595fff20400238dd5232cb175c1e988083ff6fae) fix(noodle): stop pruning generated posts and replies (1.2.5) - [`b5a8f04`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b5a8f047600e3dc84cde8e863852c69f2e7b6b11) Merge branch 'staging' into trimmed-kobol-fat - [`98b44d4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/98b44d4c9d6baa13c4d4ed95c3056b8cd16bddbb) Merge remote-tracking branch 'origin/staging' into trimmed-kobol-fat - [`fc53c70`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fc53c7058b5659afcc48ef0c78fb290da5d6b487) style(noodle): format the generated-refresh clip helper - [`6e5e1ba`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6e5e1bac669e4e6c12062d48f7959d5226f0c787) fix(noodle): address CodeRabbit review on #509 - [`21963b8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/21963b81e5329397c7482108804305e51b86d4c3) test(noodle): assert clipping behavior instead of source text - [`b864540`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b8645401902d851e1320a54ad212800de55ca42e) test(noodle): normalize the handle fixture in the refresh validator case - [`37d9120`](https://github.com/Pasta-Devs/Marinara-Agents/commit/37d9120f8d764c41b47012910cb8445e618b7e4c) Merge branch 'staging' into trimmed-kobol-fat ### 📊 Changes **15 files changed** (+441 additions, -274 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/noodle-1.2.13.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/noodle/client.js` (+12 -12) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+199 -199) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-activity.service.ts` (+47 -18) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-generated-refresh.ts` (+26 -9) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-handle.ts` (+47 -0) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-public-generation.service.ts` (+14 -3) 📝 `packages/noodle/src/engine/packages/server/src/services/noodle/noodle-response-format.ts` (+2 -2) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/noodle-generated-refresh.regression.ts` (+25 -1) ➕ `tests/noodle-handle-resolution.regression.ts` (+39 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #508 ## Why this change - A koboldcpp user saw generated activity disappear between the model response and the timeline: 4 posts generated and 1 shown, 7 interactions generated and 5 shown. The prompt-side post-target work in 59b986ac raised how many posts the model writes; these drops happen later, in the persistence stage, and nothing reported them. ## What changed - Package ID `noodle`, version 1.2.13. - `noodle-handle.ts` gains one handle resolver used by every generated-activity lookup: exact handle first, then the punctuation-stripped handle, then the display name. Exact handles are registered in a first pass, so an alias can never steal another account's post. - The same key set backs `validateNoodleGeneratedRefresh`, so a display-name answer no longer forces a correction round trip. - `parseNoodleGeneratedRefresh` clips over-long `content` to the documented field limit instead of rejecting the whole row. - Interaction targets are matched against both `targetPostId` and `targetTempId`, in both the real-post set and the temp-id map. - Every remaining drop now logs its reason: unknown handle, or no matching target post. - `deduplicateGeneratedNoodleContent` is deliberately unchanged. Identical text from the same account is a model repetition loop and should stay out of the feed. - Generated outputs: `packages/noodle/server.mjs`, `packages/noodle/client.js`, `packages/noodle/manifest.json`, `artifacts/noodle-1.2.13.zip`, and the three catalog lanes. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: none; `minEngineVersion` stays 2.4.4. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: standard package update. No storage migration, no schema change. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `node scripts/validate-catalog.mjs`: 35 packages valid, lanes v2=35 and v3=35. - `git diff --check`: clean. - Rebuilt with `node scripts/build-feature-packages.mjs noodle` and confirmed the new drop-reason log strings are present in the bundled `packages/noodle/server.mjs`. - Added `tests/noodle-handle-resolution.regression.ts`, run by `npm run test:noodle:regressions`. It covers exact-handle precedence over an alias, display-name and punctuation-stripped resolution, unknown handles, and the clipping guard. - Not installed through a live Engine, and not exercised against a real koboldcpp refresh. Those two boxes stay unticked. ## Documentation impact - [x] No documentation changes needed ## UI evidence (if applicable) Not applicable. No UI change. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated the Noodle package to version 1.2.13. * Improved account handle matching, including case-insensitive, display-name, and punctuation-tolerant matching. * Generated posts, interactions, follows, and temporary post identifiers now resolve more consistently. * **Bug Fixes** * Overlong generated posts and replies are clipped to supported limits instead of being discarded. * Invalid or unknown generated references are safely excluded, improving refresh reliability. * Improved handling of ambiguous or conflicting account handles. <!-- 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-20 17:33:09 +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-Agents#1005
No description provided.