[PR #3656] [MERGED] Preserve Noodle refresh model attempts #6036

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

📋 Pull Request Information

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

Base: staging ← Head: fix/3655-noodle-refresh-audit


📝 Commits (2)

  • 56b6a3a fix: preserve Noodle refresh attempts
  • 703fbc4 test: cover legacy Noodle refresh rows

📊 Changes

6 files changed (+172 additions, -8 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/db/schema/noodle.ts (+1 -0)
📝 packages/server/src/routes/noodle.routes.ts (+43 -6)
📝 packages/server/src/services/storage/noodle.storage.ts (+55 -0)
📝 packages/shared/src/types/noodle.ts (+11 -0)
📝 scripts/regressions/noodle-settings.regression.ts (+61 -2)

📄 Description

Linked issue

Closes #3655

Why this change

Noodle refresh debug mode logged the outgoing prompt but not the model reply. When the first response failed validation and a correction succeeded, the rejected response and full validation reason disappeared, leaving no durable evidence for diagnosing malformed generations.

What changed

  • Log each successful Noodle timeline model response in debug mode with its attempt kind and sequence.
  • Persist initial, text-only fallback, and correction responses with their full rejection reason on the refresh run.
  • Keep the existing final result field for backward compatibility.
  • Default older file-native refresh rows to an empty attempt list without a migration.
  • Add persistence/restart regression coverage and a v2.3.0 changelog entry.

Validation

  • Manually verify an initial successful refresh logs one raw response in debug mode.
  • Manually force a rejected first response and verify both raw attempts appear in debug output and mari db get noodle_refresh_runs <id>.

Automated evidence:

  • pnpm regression:noodle
  • git diff --check

Risk

This changes persistent Noodle refresh-run data. Existing rows normalize attempts to []; the existing prompt, result, and error fields remain unchanged.


🔄 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/3656 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/15/2026 **Status:** ✅ Merged **Merged:** 7/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3655-noodle-refresh-audit` --- ### 📝 Commits (2) - [`56b6a3a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/56b6a3a7125d936fc21bb1d6c50e545d87369cc4) fix: preserve Noodle refresh attempts - [`703fbc4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/703fbc47f6b8a7eb461154b7461828014dad28f1) test: cover legacy Noodle refresh rows ### 📊 Changes **6 files changed** (+172 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/db/schema/noodle.ts` (+1 -0) 📝 `packages/server/src/routes/noodle.routes.ts` (+43 -6) 📝 `packages/server/src/services/storage/noodle.storage.ts` (+55 -0) 📝 `packages/shared/src/types/noodle.ts` (+11 -0) 📝 `scripts/regressions/noodle-settings.regression.ts` (+61 -2) </details> ### 📄 Description ## Linked issue Closes #3655 ## Why this change Noodle refresh debug mode logged the outgoing prompt but not the model reply. When the first response failed validation and a correction succeeded, the rejected response and full validation reason disappeared, leaving no durable evidence for diagnosing malformed generations. ## What changed - Log each successful Noodle timeline model response in debug mode with its attempt kind and sequence. - Persist initial, text-only fallback, and correction responses with their full rejection reason on the refresh run. - Keep the existing final `result` field for backward compatibility. - Default older file-native refresh rows to an empty attempt list without a migration. - Add persistence/restart regression coverage and a v2.3.0 changelog entry. ## Validation - [ ] Manually verify an initial successful refresh logs one raw response in debug mode. - [ ] Manually force a rejected first response and verify both raw attempts appear in debug output and `mari db get noodle_refresh_runs <id>`. Automated evidence: - `pnpm regression:noodle` - `git diff --check` ## Risk This changes persistent Noodle refresh-run data. Existing rows normalize `attempts` to `[]`; the existing `prompt`, `result`, and `error` fields remain unchanged. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:06:27 +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#6036
No description provided.