[PR #5133] [MERGED] test: establish a filesystem-owned Engine regression foundation #6645

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5133
Author: @Xelvanis
Created: 8/16/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @SpicyMarinara

Base: staging ← Head: chore/regression-suite-runner


📝 Commits (10+)

  • 24434cf test: add filesystem-discovered Node regression runner
  • 098a908 test: repair stale regressions and remove package-owned checks
  • 4fc0d9f build: preserve MLX integrity lockfile LF bytes
  • 3099b6e chore: simplify local regression command interface
  • 67ad699 test: group regressions by product domain
  • bc22bfd refactor: make persisted message reconciliation testable
  • 924fd33 test: repair regressions for current product contracts
  • 93b125a test: keep Termux lease fixture on POSIX hosts
  • 8221485 docs: mark regression overhaul issue prerequisite
  • 2c5f5a5 docs: link regression overhaul issue

📊 Changes

56 files changed (+1532 additions, -2788 deletions)

View changed files

📝 .gitattributes (+1 -0)
📝 CHANGELOG.md (+4 -0)
📝 CONTRIBUTING.md (+6 -4)
📝 package.json (+11 -70)
📝 packages/client/src/hooks/use-generate.ts (+4 -71)
➕ packages/client/src/lib/message-cache-reconciliation.ts (+89 -0)
📝 scripts/regressions/assigned-issue-sweep.regression.ts (+5 -5)
📝 scripts/regressions/chat-branch-lineage.regression.ts (+2 -0)
📝 scripts/regressions/custom-tool-script-isolation.regression.ts (+1 -0)
📝 scripts/regressions/launcher/env.regression.mjs (+2 -2)
📝 scripts/regressions/launcher/format-guard.regression.mjs (+2 -2)
📝 scripts/regressions/launcher/update.regression.mjs (+4 -4)
📝 scripts/regressions/mari/db-execution-security.regression.ts (+10 -10)
📝 scripts/regressions/mari/db-review-durability.regression.ts (+56 -21)
📝 scripts/regressions/mari/edit-diff.regression.ts (+2 -2)
📝 scripts/regressions/mari/instructions-memory.regression.ts (+4 -4)
📝 scripts/regressions/mari/preset-granular.regression.ts (+4 -4)
➖ scripts/regressions/noodle-context.regression.ts (+0 -153)
➖ scripts/regressions/noodle-fan-activity.regression.ts (+0 -298)
➖ scripts/regressions/noodle-image-retry.regression.ts (+0 -32)

...and 36 more files

📄 Description

Linked issue

Closes #5132

Why this change

The Engine regression surface had no trustworthy default owner: useful scripts depended on manually maintained aliases, stale checks failed after valid product changes, and historical mixed-owner files obscured which subsystem should maintain each assertion. This change establishes one complete filesystem-discovered Node lane and repairs enough existing coverage for that lane to be actionable.

What changed

  • Added a recursive, sorted, serial Node regression runner with filtering, timeout, aggregate reporting, and interruption cleanup.
  • Made the Node and Playwright command boundaries explicit and reduced the local regression/smoke surface to 13 maintained keys.
  • Repaired stale Engine regressions, removed obsolete package-owned duplicates, and preserved MLX lockfile LF bytes.
  • Moved 31 clear-owner regressions into Launcher, Mari, Professor Mari, and Noodle directories while retaining complete discovery.
  • Extracted persisted-message cache reconciliation into a production helper and replaced brittle algorithm-shape checking with behavioral proof.
  • Repaired current-product fixtures exposed by the complete lane, including an honest Windows/POSIX boundary for the Termux writer-lock scenario.

Validation

Automated checks

Check Result
pnpm check Passed — Impeccable, localization, workspace lint/type checks, and production builds; stderr empty
pnpm regression Passed — 121 unique starts, 121 passes, 0 failures
Filesystem discovery 121 tracked / 121 discovered
git diff --check origin/staging..HEAD Passed

The regression run's only stderr was the expected diagnostic from the deliberately exercised TTS progressive-failure path.

Repository checklist

  • 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 (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • No UI behavior is changed by the runner, command, organization, or fixture-repair slices.
  • No browser/UI, container, installer execution, or manual app walkthrough was performed.
  • Live Android/Termux execution of the retained POSIX writer-lock subcase remains unverified; Windows authoritatively covers only the ordinary writer-lock path.
  • The inherited assigned-issue hook proof remains a static source-contract check rather than behavioral component/UI proof.

Docs and release impact

  • CONTRIBUTING.md and the [Unreleased] changelog are updated for the Node/UI command boundary and issue #5132.

  • No translated docs/ pack path changed.

  • No version or release metadata changed.

  • No docs changes needed

  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed

  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)

  • Version/release files updated (only if this PR includes a version bump)

UI evidence

Not applicable; this PR does not change UI behavior.


Summary by CodeRabbit

  • Bug Fixes

    • Improved chat message synchronization to prevent duplicates, preserve optimistic updates, and maintain correct ordering.
    • Preserved generated-message metadata and server-provided content during updates.
  • Documentation

    • Clarified separate Node, prompt, and UI regression workflows, including the retained UI smoke-test alias.
  • Tests

    • Added recursive regression discovery with filtering, timeouts, and clearer results.
    • Expanded coverage for storage cleanup, security, file-backed workflows, and cross-platform reliability.
    • Consolidated regression commands and reorganized test coverage by domain.

🔄 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/5133 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 8/16/2026 **Status:** ✅ Merged **Merged:** 8/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `chore/regression-suite-runner` --- ### 📝 Commits (10+) - [`24434cf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/24434cfa3501d95a75ce40cc5bdc85b8d9316145) test: add filesystem-discovered Node regression runner - [`098a908`](https://github.com/Pasta-Devs/Marinara-Engine/commit/098a9087aaff790a4ea94b2622a9b505bcbaa843) test: repair stale regressions and remove package-owned checks - [`4fc0d9f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4fc0d9fd3340522dc57d60bdb72e0234f43442d5) build: preserve MLX integrity lockfile LF bytes - [`3099b6e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3099b6e6b8bd78543a622f627d40ffe9c837b898) chore: simplify local regression command interface - [`67ad699`](https://github.com/Pasta-Devs/Marinara-Engine/commit/67ad699817919e64dd3bab2f2e3085ef58fe65f3) test: group regressions by product domain - [`bc22bfd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bc22bfd8690e419171615b572dd942fa384bd6e8) refactor: make persisted message reconciliation testable - [`924fd33`](https://github.com/Pasta-Devs/Marinara-Engine/commit/924fd33c47202dbe1fda145b9f7ee52c3ba54d66) test: repair regressions for current product contracts - [`93b125a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/93b125a463e271609693de1389bd99bd0921ad3f) test: keep Termux lease fixture on POSIX hosts - [`8221485`](https://github.com/Pasta-Devs/Marinara-Engine/commit/82214850f340e54cb68e9800c8806d0db8183e54) docs: mark regression overhaul issue prerequisite - [`2c5f5a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2c5f5a5c436ec9dbffbd3d21dd678142a7f19b9a) docs: link regression overhaul issue ### 📊 Changes **56 files changed** (+1532 additions, -2788 deletions) <details> <summary>View changed files</summary> 📝 `.gitattributes` (+1 -0) 📝 `CHANGELOG.md` (+4 -0) 📝 `CONTRIBUTING.md` (+6 -4) 📝 `package.json` (+11 -70) 📝 `packages/client/src/hooks/use-generate.ts` (+4 -71) ➕ `packages/client/src/lib/message-cache-reconciliation.ts` (+89 -0) 📝 `scripts/regressions/assigned-issue-sweep.regression.ts` (+5 -5) 📝 `scripts/regressions/chat-branch-lineage.regression.ts` (+2 -0) 📝 `scripts/regressions/custom-tool-script-isolation.regression.ts` (+1 -0) 📝 `scripts/regressions/launcher/env.regression.mjs` (+2 -2) 📝 `scripts/regressions/launcher/format-guard.regression.mjs` (+2 -2) 📝 `scripts/regressions/launcher/update.regression.mjs` (+4 -4) 📝 `scripts/regressions/mari/db-execution-security.regression.ts` (+10 -10) 📝 `scripts/regressions/mari/db-review-durability.regression.ts` (+56 -21) 📝 `scripts/regressions/mari/edit-diff.regression.ts` (+2 -2) 📝 `scripts/regressions/mari/instructions-memory.regression.ts` (+4 -4) 📝 `scripts/regressions/mari/preset-granular.regression.ts` (+4 -4) ➖ `scripts/regressions/noodle-context.regression.ts` (+0 -153) ➖ `scripts/regressions/noodle-fan-activity.regression.ts` (+0 -298) ➖ `scripts/regressions/noodle-image-retry.regression.ts` (+0 -32) _...and 36 more files_ </details> ### 📄 Description ## Linked issue Closes #5132 ## Why this change The Engine regression surface had no trustworthy default owner: useful scripts depended on manually maintained aliases, stale checks failed after valid product changes, and historical mixed-owner files obscured which subsystem should maintain each assertion. This change establishes one complete filesystem-discovered Node lane and repairs enough existing coverage for that lane to be actionable. ## What changed - Added a recursive, sorted, serial Node regression runner with filtering, timeout, aggregate reporting, and interruption cleanup. - Made the Node and Playwright command boundaries explicit and reduced the local regression/smoke surface to 13 maintained keys. - Repaired stale Engine regressions, removed obsolete package-owned duplicates, and preserved MLX lockfile LF bytes. - Moved 31 clear-owner regressions into Launcher, Mari, Professor Mari, and Noodle directories while retaining complete discovery. - Extracted persisted-message cache reconciliation into a production helper and replaced brittle algorithm-shape checking with behavioral proof. - Repaired current-product fixtures exposed by the complete lane, including an honest Windows/POSIX boundary for the Termux writer-lock scenario. ## Validation ### Automated checks | Check | Result | | --- | --- | | `pnpm check` | Passed — Impeccable, localization, workspace lint/type checks, and production builds; stderr empty | | `pnpm regression` | Passed — 121 unique starts, 121 passes, 0 failures | | Filesystem discovery | 121 tracked / 121 discovered | | `git diff --check origin/staging..HEAD` | Passed | The regression run's only stderr was the expected diagnostic from the deliberately exercised TTS progressive-failure path. ### Repository checklist - [x] `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 (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - No UI behavior is changed by the runner, command, organization, or fixture-repair slices. - No browser/UI, container, installer execution, or manual app walkthrough was performed. - Live Android/Termux execution of the retained POSIX writer-lock subcase remains unverified; Windows authoritatively covers only the ordinary writer-lock path. - The inherited assigned-issue hook proof remains a static source-contract check rather than behavioral component/UI proof. ## Docs and release impact - `CONTRIBUTING.md` and the `[Unreleased]` changelog are updated for the Node/UI command boundary and issue #5132. - No translated `docs/` pack path changed. - No version or release metadata changed. - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence Not applicable; this PR does not change UI behavior. --- <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved chat message synchronization to prevent duplicates, preserve optimistic updates, and maintain correct ordering. - Preserved generated-message metadata and server-provided content during updates. - **Documentation** - Clarified separate Node, prompt, and UI regression workflows, including the retained UI smoke-test alias. - **Tests** - Added recursive regression discovery with filtering, timeouts, and clearer results. - Expanded coverage for storage cleanup, security, file-backed workflows, and cross-platform reliability. - Consolidated regression commands and reorganized test coverage by domain. <!-- 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-23 04:12:22 +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#6645
No description provided.