[PR #375] [MERGED] fix(noodle): restore Professor Mari on bootstrap (#372) #940

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

📋 Pull Request Information

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

Base: staging ← Head: finding-mari-noodle


📝 Commits (10+)

  • 675a0ce fix(noodle): restore Professor Mari, the manual write path, and client persona/reply behavior (#372)
  • 1fcd259 fix(noodle): address CodeRabbit review
  • 358cec2 test(slurp): wait for capability routes during startup
  • 968d4a4 fix(ci): keep package-browser data under the engine's watch-ignored ./data
  • 928674f Merge remote-tracking branch 'origin/staging' into finding-mari-noodle
  • da5e7e5 test(slurp): TEMP diagnostic — log /api/slurp/settings status+body on poll failure (#375)
  • 9fecdac chore(ci): TEMP diagnostic — engine LOG_LEVEL=info to surface slurp package activation (#375)
  • 47089b1 fix(slurp): drop removed _fileStore.registerTables call so the package activates
  • e80213f ci(noodle-browser): stop triggering on shared catalog/package.json so unrelated package PRs skip the Noodle/Slurp browser suite
  • 37d2d56 test(slurp): seed onboarding state on the correct package UI key

📊 Changes

16 files changed (+563 additions, -306 deletions)

View changed files

📝 .github/workflows/noodle-browser.yml (+6 -4)
➕ artifacts/noodle-1.2.1.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v3/catalog.json (+8 -8)
📝 packages/noodle/client.js (+18 -18)
📝 packages/noodle/manifest.json (+5 -5)
📝 packages/noodle/server.mjs (+189 -189)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx (+6 -1)
📝 packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx (+11 -1)
📝 packages/noodle/src/engine/packages/client/src/stores/noodle-package.store.ts (+19 -1)
📝 packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts (+247 -39)
📝 packages/slurp/src/engine/packages/server/src/services/slurp/server-entry.ts (+0 -2)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 scripts/start-package-browser-servers.mjs (+7 -1)
📝 tests/package-slurp.e2e.ts (+30 -20)

📄 Description

Pull request

Linked issue

Fixes #372

Why this change

  • The #372 lane was red on every branch containing current staging: the Noodle package browser suite failed 14 tests because Professor Mari's account was missing from the bootstrap.
  • The #371 Slurp split introduced two Noodle server regressions. First, GET /api/noodle was changed from bootstrapVisibleNoodle(...) (which lazily seeds the Professor Mari, persona, and ambient accounts) to a bare noodle.bootstrap() that only lists persisted accounts, so nothing re-seeded Mari on open.
  • Second (unmasked once Mari was restored and the tests ran further): the manual write path — POST /posts, the interaction routes, and DELETE /timeline — was collapsed into thin passthroughs that fed the request body straight to storage. The client still posts entity references (authorKind/authorEntityId, actorKind/actorEntityId) while storage keys on authorAccountId/actorAccountId, so every manual post, reply, like, repost, poll vote, and comment edit/delete returned 400/404.

What changed

  • Affected package ID: noodle (bumped 1.2.0 → 1.2.1).
  • GET / and DELETE /timeline restored to bootstrapVisibleNoodle, re-seeding Mari/persona/ambient accounts.
  • Restored the pre-#371 write-path handlers: entity→account resolution with persona lazy-create, invited-character gating, mention/poll/digest computation, and reply-ownership checks. Schemas and helpers were still exported by @marinara-engine/shared and noodle-public-support.
  • Regenerated server.mjs, artifacts/noodle-1.2.1.zip, manifest.json, and all three catalog lanes.

Package and security impact

  • Affected package IDs: noodle
  • Engine compatibility impact: none (minEngineVersion unchanged at 2.4.2)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; behavior restored to pre-#371

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

  • Rebuilt the noodle package and ran validate-catalog (35 packages, lanes valid).
  • Local Noodle browser lane was flaky to boot two engine dev-server pairs in the sandbox; relying on the CI Noodle package browser lane to confirm the 14 previously-red tests. The first CI run already confirmed the Mari fix (the __professor_mari__ assertion passed) and exposed the write-path 400/404s that this PR's second commit restores.

Documentation impact

  • No documentation changes needed

UI evidence (if applicable)

  • Not applicable (server-side behavior restoration).

Summary by CodeRabbit

  • New Features
    • Persona selection is now shared and preserved across navigation.
    • Improved support for invitations, polls, mentions, digests, and reply management.
  • Bug Fixes
    • Strengthened permission checks for editing and deleting replies.
    • Improved validation and error handling for posts and comments.
    • Prevented titles on public posts where not supported.
  • Updates
    • Upgraded the Noodle package to version 1.2.1.
    • Refined onboarding and settings flows for standalone Slurp experiences.

🔄 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/375 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/16/2026 **Status:** ✅ Merged **Merged:** 8/16/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `finding-mari-noodle` --- ### 📝 Commits (10+) - [`675a0ce`](https://github.com/Pasta-Devs/Marinara-Agents/commit/675a0ce00ad368be8381be1e2a8ab3dac90e5cea) fix(noodle): restore Professor Mari, the manual write path, and client persona/reply behavior (#372) - [`1fcd259`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1fcd259e949569ad04e7871e1f0c3f3d72e4f07f) fix(noodle): address CodeRabbit review - [`358cec2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/358cec266c08ab5fdc15e8d4c4c76fb0c9afb608) test(slurp): wait for capability routes during startup - [`968d4a4`](https://github.com/Pasta-Devs/Marinara-Agents/commit/968d4a4b38b1d95162ec2081a76e3012e07131a5) fix(ci): keep package-browser data under the engine's watch-ignored ./data - [`928674f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/928674fb8d8359fc2839855e7696211ae89d825c) Merge remote-tracking branch 'origin/staging' into finding-mari-noodle - [`da5e7e5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/da5e7e567995176500890f744977e8f545341cf8) test(slurp): TEMP diagnostic — log /api/slurp/settings status+body on poll failure (#375) - [`9fecdac`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9fecdace674bf2855eda865e05c7e1bf7ee96680) chore(ci): TEMP diagnostic — engine LOG_LEVEL=info to surface slurp package activation (#375) - [`47089b1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/47089b141974171266e16ea50db9a65af97f5c40) fix(slurp): drop removed _fileStore.registerTables call so the package activates - [`e80213f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e80213f7c41ecb65119023e9a0ac5f6e3b2179df) ci(noodle-browser): stop triggering on shared catalog/package.json so unrelated package PRs skip the Noodle/Slurp browser suite - [`37d2d56`](https://github.com/Pasta-Devs/Marinara-Agents/commit/37d2d567087e1dad488442d76d59e05c036aa314) test(slurp): seed onboarding state on the correct package UI key ### 📊 Changes **16 files changed** (+563 additions, -306 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/noodle-browser.yml` (+6 -4) ➕ `artifacts/noodle-1.2.1.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `packages/noodle/client.js` (+18 -18) 📝 `packages/noodle/manifest.json` (+5 -5) 📝 `packages/noodle/server.mjs` (+189 -189) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodleHome.tsx` (+6 -1) 📝 `packages/noodle/src/engine/packages/client/src/components/noodle/NoodlePostCard.tsx` (+11 -1) 📝 `packages/noodle/src/engine/packages/client/src/stores/noodle-package.store.ts` (+19 -1) 📝 `packages/noodle/src/engine/packages/server/src/routes/noodle.routes.ts` (+247 -39) 📝 `packages/slurp/src/engine/packages/server/src/services/slurp/server-entry.ts` (+0 -2) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `scripts/start-package-browser-servers.mjs` (+7 -1) 📝 `tests/package-slurp.e2e.ts` (+30 -20) </details> ### 📄 Description # Pull request ## Linked issue Fixes #372 ## Why this change - The #372 lane was red on every branch containing current `staging`: the Noodle package browser suite failed 14 tests because Professor Mari's account was missing from the bootstrap. - The #371 Slurp split introduced two Noodle server regressions. First, `GET /api/noodle` was changed from `bootstrapVisibleNoodle(...)` (which lazily seeds the Professor Mari, persona, and ambient accounts) to a bare `noodle.bootstrap()` that only lists persisted accounts, so nothing re-seeded Mari on open. - Second (unmasked once Mari was restored and the tests ran further): the manual write path — `POST /posts`, the interaction routes, and `DELETE /timeline` — was collapsed into thin passthroughs that fed the request body straight to storage. The client still posts entity references (`authorKind`/`authorEntityId`, `actorKind`/`actorEntityId`) while storage keys on `authorAccountId`/`actorAccountId`, so every manual post, reply, like, repost, poll vote, and comment edit/delete returned 400/404. ## What changed - Affected package ID: `noodle` (bumped `1.2.0 → 1.2.1`). - `GET /` and `DELETE /timeline` restored to `bootstrapVisibleNoodle`, re-seeding Mari/persona/ambient accounts. - Restored the pre-#371 write-path handlers: entity→account resolution with persona lazy-create, invited-character gating, mention/poll/digest computation, and reply-ownership checks. Schemas and helpers were still exported by `@marinara-engine/shared` and `noodle-public-support`. - Regenerated `server.mjs`, `artifacts/noodle-1.2.1.zip`, `manifest.json`, and all three catalog lanes. ## Package and security impact - Affected package IDs: `noodle` - Engine compatibility impact: none (minEngineVersion unchanged at 2.4.2) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; behavior restored to pre-#371 ## 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 - Rebuilt the noodle package and ran `validate-catalog` (35 packages, lanes valid). - Local Noodle browser lane was flaky to boot two engine dev-server pairs in the sandbox; relying on the CI Noodle package browser lane to confirm the 14 previously-red tests. The first CI run already confirmed the Mari fix (the `__professor_mari__` assertion passed) and exposed the write-path 400/404s that this PR's second commit restores. ## Documentation impact - [x] No documentation changes needed ## UI evidence (if applicable) - Not applicable (server-side behavior restoration). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Persona selection is now shared and preserved across navigation. * Improved support for invitations, polls, mentions, digests, and reply management. * **Bug Fixes** * Strengthened permission checks for editing and deleting replies. * Improved validation and error handling for posts and comments. * Prevented titles on public posts where not supported. * **Updates** * Upgraded the Noodle package to version 1.2.1. * Refined onboarding and settings flows for standalone Slurp experiences. <!-- 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:32:29 +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#940
No description provided.