[GH-ISSUE #1462] [vendored-engine] Re-vendor checkpoints.ts + chats.storage.ts after Marinara-Engine #7787 merges #742

Closed
opened 2026-10-20 17:30:17 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ylli-selmani on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1462

Originally assigned to: @ylli-selmani on GitHub.

Follow-up to Marinara-Engine PR #7787 (issue #7783): a checkpoint load now restores the Game Mode State Editor's World Edits.

Two Engine files that this repo vendors change, and both are pinned in scripts/vendored-engine-baseline.json as drifted:

Vendored path Change
packages/server/src/db/schema/checkpoints.ts new nullable column gameWorldEditsData (game_world_edits_data)
packages/server/src/services/storage/chats.storage.ts patchMetadataWithCharacterIds accepts metadataQueueHeld, the way patchMetadata already does

When #7787 lands on Engine staging, the host hashes the baseline pins for those two paths (…:901bf4b21… and …:3b6552e40…) stop matching, so the Noodle job's vendored-drift check would report Unbaselined drifted for both the next time it runs.

This is snapshot bookkeeping, not a behaviour change for agents: the schema only gains a nullable column, and the storage method only gains an opt-in flag.

Steps — after #7787 is merged to Engine staging

  1. Copy both files from an Engine staging checkout to the same paths under sources/engine/.
  2. Delete their two entries from scripts/vendored-engine-baseline.json. The baseline may only shrink: a resolved file must have its entry removed, and updating a fingerprint in place is rejected.
  3. Prove it: MARINARA_ENGINE_ROOT=<engine staging checkout> node scripts/validate-vendored-engine.mjs should print current for both paths and exit 0.

No other vendored path is affected.

Sequencing

Opening the re-vendor PR before #7787 merges would show Unbaselined drifted (the copy would carry the column while Engine staging does not yet), so this has to wait for the merge. Nothing is red in this repository until a PR touches sources/engine, the baseline or the validator, because that is when noodle-browser.yml runs the check.

Originally created by @ylli-selmani on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1462 Originally assigned to: @ylli-selmani on GitHub. Follow-up to Marinara-Engine PR #7787 (issue #7783): a checkpoint load now restores the Game Mode State Editor's World Edits. Two Engine files that this repo vendors change, and both are pinned in `scripts/vendored-engine-baseline.json` as `drifted`: | Vendored path | Change | | --- | --- | | `packages/server/src/db/schema/checkpoints.ts` | new nullable column `gameWorldEditsData` (`game_world_edits_data`) | | `packages/server/src/services/storage/chats.storage.ts` | `patchMetadataWithCharacterIds` accepts `metadataQueueHeld`, the way `patchMetadata` already does | When #7787 lands on Engine `staging`, the host hashes the baseline pins for those two paths (`…:901bf4b21…` and `…:3b6552e40…`) stop matching, so the Noodle job's vendored-drift check would report `Unbaselined drifted` for both the next time it runs. This is snapshot bookkeeping, not a behaviour change for agents: the schema only gains a nullable column, and the storage method only gains an opt-in flag. ## Steps — after #7787 is merged to Engine `staging` 1. Copy both files from an Engine `staging` checkout to the same paths under `sources/engine/`. 2. Delete their two entries from `scripts/vendored-engine-baseline.json`. The baseline may only shrink: a resolved file must have its entry **removed**, and updating a fingerprint in place is rejected. 3. Prove it: `MARINARA_ENGINE_ROOT=<engine staging checkout> node scripts/validate-vendored-engine.mjs` should print `current` for both paths and exit 0. No other vendored path is affected. ## Sequencing Opening the re-vendor PR before #7787 merges would show `Unbaselined drifted` (the copy would carry the column while Engine `staging` does not yet), so this has to wait for the merge. Nothing is red in this repository until a PR touches `sources/engine`, the baseline or the validator, because that is when `noodle-browser.yml` runs the check.
Author
Owner

@ylli-selmani commented on GitHub (Oct 18, 2026):

Correction to the message above, after reading the build script: sources/engine is not just a record. build-feature-packages.mjs builds the packages from it unless MARINARA_ENGINE_SOURCE_ROOT is set, so the copy is load-bearing.

Short version:

  • Nothing is broken. Packages build from the snapshot exactly as before; the drift only means the snapshot is older than Engine.
  • The record (vendored-engine-baseline.json) was last refreshed on 2026-09-20, and the check runs only when a PR touches sources/engine or the baseline — which is why ~143 stale fingerprints went unnoticed.
  • #7787 does not affect it: Game Mode checkpoints are not imported by Noodle, Slurp or Calls, so nothing any package ships changes.
  • The only cost: the next PR that touches the snapshot will fail the check for reasons unrelated to its own change.
  • It cannot be repaired inside the current rules. CI passes --baseline-ref origin/<base>, and the validator rejects any changed fingerprint (Baseline may only shrink), so re-recording fails by construction. Either give the validator an explicit re-record mode (or skip the shrink rule for a labelled PR), or drop the staging comparison and keep vendored-engine.regression.mjs.

Until then the two entries for checkpoints.ts and chats.storage.ts are just stale in a record nobody reads. No Engine-side action needed.

<!-- gh-comment-id:6251672454 --> @ylli-selmani commented on GitHub (Oct 18, 2026): Correction to the message above, after reading the build script: `sources/engine` is not just a record. `build-feature-packages.mjs` builds the packages from it unless `MARINARA_ENGINE_SOURCE_ROOT` is set, so the copy is load-bearing. Short version: - **Nothing is broken.** Packages build from the snapshot exactly as before; the drift only means the snapshot is older than Engine. - The record (`vendored-engine-baseline.json`) was last refreshed on 2026-09-20, and the check runs only when a PR touches `sources/engine` or the baseline — which is why ~143 stale fingerprints went unnoticed. - **#7787 does not affect it:** Game Mode checkpoints are not imported by Noodle, Slurp or Calls, so nothing any package ships changes. - The only cost: the next PR that touches the snapshot will fail the check for reasons unrelated to its own change. - It cannot be repaired inside the current rules. CI passes `--baseline-ref origin/<base>`, and the validator rejects any changed fingerprint (`Baseline may only shrink`), so re-recording fails by construction. Either give the validator an explicit re-record mode (or skip the shrink rule for a labelled PR), or drop the staging comparison and keep `vendored-engine.regression.mjs`. Until then the two entries for `checkpoints.ts` and `chats.storage.ts` are just stale in a record nobody reads. No Engine-side action needed.
Author
Owner

@ylli-selmani commented on GitHub (Oct 18, 2026):

Closing as not planned: there is nothing to fix here right now.

The two stale entries are a symptom, not a defect. The vendored snapshot is only re-recorded by hand, and the check that notices drift only runs when a PR touches \sources/engine\ — so nothing has been keeping the record fresh, and nothing has been harmed by that: packages keep building from the same snapshot, and neither \checkpoints.ts\ nor \chats.storage.ts\ is imported by Noodle, Slurp or Calls (so Marinara-Engine #7787 changes nothing they ship).

The one real issue is that the check cannot currently be repaired: CI compares against the base branch and rejects any changed fingerprint ('Baseline may only shrink'), so re-recording it fails by construction. If that check should earn its keep, the fix is an explicit re-record mode (or dropping the staging comparison and keeping \ endored-engine.regression.mjs) — a maintainer decision, not a follow-up to #7787.

I have the minimal patch ready (re-vendor both files from Engine \staging\ and remove both entries, both then \current) if a rebaseline ever happens and you want it.

<!-- gh-comment-id:6251914338 --> @ylli-selmani commented on GitHub (Oct 18, 2026): Closing as not planned: there is nothing to fix here right now. The two stale entries are a symptom, not a defect. The vendored snapshot is only re-recorded by hand, and the check that notices drift only runs when a PR touches \sources/engine\ — so nothing has been keeping the record fresh, and nothing has been harmed by that: packages keep building from the same snapshot, and neither \checkpoints.ts\ nor \chats.storage.ts\ is imported by Noodle, Slurp or Calls (so Marinara-Engine #7787 changes nothing they ship). The one real issue is that the check cannot currently be repaired: CI compares against the base branch and rejects any changed fingerprint ('Baseline may only shrink'), so re-recording it fails by construction. If that check should earn its keep, the fix is an explicit re-record mode (or dropping the staging comparison and keeping \ endored-engine.regression.mjs\) — a maintainer decision, not a follow-up to #7787. I have the minimal patch ready (re-vendor both files from Engine \staging\ and remove both entries, both then \current\) if a rebaseline ever happens and you want it.
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#742
No description provided.