[PR #7951] [MERGED] test(memory): move fixture budget to connection defaults #8020

Closed
opened 2026-10-24 04:09:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7951
Author: @SpicyMarinara
Created: 10/21/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @SpicyMarinara

Base: staging ← Head: test/advanced-memory-connection-budget


📝 Commits (2)

  • 2e487a9 test(memory): set fixture budget on connection (#7950)
  • a9c15ab test(memory): persist the fixture connection defaults (#7950)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 scripts/regressions/advanced-memory-generation.regression.ts (+1 -1)

📄 Description

Linked issue

Closes #7950

Why this change

After preset caps were intentionally removed in #7940, the Advanced Memory regression receives its fixture connection's 16k context instead of the old explicit 8k test budget. The full Node job reaches 952/953 passing but its bounded-scene assertion no longer tests an oversized scene. The same failure reproduced unchanged locally before this patch.

What changed

  • Move the fixture's existing 8k context and 512-token output limits into connection defaults, keeping the connection's advertised 16k capacity.
  • Remove the obsolete preset-cap fixture fields. All truncation, recent-history, privacy, summary and preview assertions remain unchanged.

Validation

Completed evidence at a9c15abd511210e0f169f2cdf74ea981d2d053ba:

  • pnpm install, pnpm check, focused Prettier and git diff --check: passed. The existing unrelated HomeProfessorMariChat hook warning remains.
  • Unchanged pre-fix replay reproduced the hosted assertion failure. Final node scripts/run-regressions.mjs --filter advanced-memory-generation: passed, including actual generation, preview and historical regeneration.
  • Uses the existing updateDefaultParameters API so the budget is persisted; connection creation does not store that field. Every existing assertion is byte-identical.
  • Independent source review completed; final local CodeRabbit reviewed the one changed file with no new findings. Hosted checks and final-head review remain separate merge gates.

Human checklist, intentionally unchecked:

  • 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
  • Read and followed CONTRIBUTING.md

The reported hosted failure: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39578902055/job/119151877658 . No production code or browser UI changes.

Manual verification notes

  • Manually inspect that this test-only diff preserves all assertions and changes only budget ownership.

Docs and release impact

  • No docs changes needed
  • Translated docs updated, or a follow-up issue opened if needed
  • Version/release files updated, if needed

No documentation, release metadata or changelog changes are needed for fixture calibration.

Summary by CodeRabbit

  • Bug Fixes
    • Updated regression coverage to apply default context and token limits through the connection settings, ensuring consistent parameter handling.

🔄 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/7951 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `test/advanced-memory-connection-budget` --- ### 📝 Commits (2) - [`2e487a9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e487a93a900a353c2ec3b8140d1468bab80d3b5) test(memory): set fixture budget on connection (#7950) - [`a9c15ab`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a9c15abd511210e0f169f2cdf74ea981d2d053ba) test(memory): persist the fixture connection defaults (#7950) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `scripts/regressions/advanced-memory-generation.regression.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #7950 ## Why this change After preset caps were intentionally removed in #7940, the Advanced Memory regression receives its fixture connection's 16k context instead of the old explicit 8k test budget. The full Node job reaches 952/953 passing but its bounded-scene assertion no longer tests an oversized scene. The same failure reproduced unchanged locally before this patch. ## What changed - Move the fixture's existing 8k context and 512-token output limits into connection defaults, keeping the connection's advertised 16k capacity. - Remove the obsolete preset-cap fixture fields. All truncation, recent-history, privacy, summary and preview assertions remain unchanged. ## Validation Completed evidence at `a9c15abd511210e0f169f2cdf74ea981d2d053ba`: - `pnpm install`, `pnpm check`, focused Prettier and `git diff --check`: passed. The existing unrelated HomeProfessorMariChat hook warning remains. - Unchanged pre-fix replay reproduced the hosted assertion failure. Final `node scripts/run-regressions.mjs --filter advanced-memory-generation`: passed, including actual generation, preview and historical regeneration. - Uses the existing `updateDefaultParameters` API so the budget is persisted; connection creation does not store that field. Every existing assertion is byte-identical. - Independent source review completed; final local CodeRabbit reviewed the one changed file with no new findings. Hosted checks and final-head review remain separate merge gates. Human checklist, intentionally unchecked: - [ ] `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 - [ ] Read and followed `CONTRIBUTING.md` The reported hosted failure: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/39578902055/job/119151877658 . No production code or browser UI changes. ## Manual verification notes - [ ] Manually inspect that this test-only diff preserves all assertions and changes only budget ownership. ## Docs and release impact - [ ] No docs changes needed - [ ] Translated docs updated, or a follow-up issue opened if needed - [ ] Version/release files updated, if needed No documentation, release metadata or changelog changes are needed for fixture calibration. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Updated regression coverage to apply default context and token limits through the connection settings, ensuring consistent parameter handling. <!-- 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-24 04:09:43 +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#8020
No description provided.