[GH-ISSUE #955] sources/engine drifts from Engine staging with no check: 187 of 363 files stale, 72 orphaned #501

Closed
opened 2026-10-20 17:28:05 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Gunterlie on GitHub (Sep 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/955

Originally assigned to: @Gunterlie on GitHub.

Problem

sources/engine/ is a vendored snapshot of Marinara-Engine sources. The package builder bundles from it, and slurp2, noodle and legacy slurp all ship code that comes out of it.

Nothing checks that the snapshot still matches Engine staging. It only refreshes when a build happens to re-capture a file, so it drifts silently and the packages ship stale forks.

Measured today

Vendored Engine files 363 (6.6 MB)
Differing from Engine staging 187 of 363
Present here but deleted from staging 72
Engine commits since 2026-09-01 touching vendored service paths 89

What this costs, concretely

A user reported that Slurp images were missing the SwarmUI fixes from Marinara-Engine#6359. The vendored services/image/image-generation.ts predated it, so buildSwarmUiGenerationBody returned the request body before attaching LoRAs or reference images whenever no custom ComfyUI workflow was set. Both were silently dropped for every Slurp user.

A user found it. CI did not. Fixed by hand-backporting two hunks in #954.

The 72 files that Engine staging has already deleted are still shipping to users as dead code.

Proposal

Add a validation script and regression that, given an Engine checkout, reports for every file under sources/engine/:

  • drifted — differs from Engine staging;
  • orphaned — no longer exists in Engine staging;
  • current — identical.

Wire it into the existing validation set beside validate-catalog.mjs and friends.

Open questions for whoever picks this up:

  • Gate or report? Failing on any drift would be red constantly at 187 of 363. A baseline file with an allowlist that may only shrink is probably the workable shape, the way other baselines in this repo work.
  • Where does the Engine checkout come from? The browser suite already takes MARINARA_ENGINE_ROOT. The check should skip with a clear notice when it is absent, the way slurp2-vocabulary-shape does, and run in the CI job that already has an Engine.
  • Orphans first. The 72 orphaned files are unambiguous dead code and could be pruned independently of the drift question.

This is the detection half. The root cause is tracked in Marinara-Engine#6385: exposing image generation, LLM providers and video on the package host API so packages call them instead of copying them.

Originally created by @Gunterlie on GitHub (Sep 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/955 Originally assigned to: @Gunterlie on GitHub. ## Problem `sources/engine/` is a vendored snapshot of Marinara-Engine sources. The package builder bundles from it, and `slurp2`, `noodle` and legacy `slurp` all ship code that comes out of it. Nothing checks that the snapshot still matches Engine `staging`. It only refreshes when a build happens to re-capture a file, so it drifts silently and the packages ship stale forks. ## Measured today | | | | --- | --- | | Vendored Engine files | 363 (6.6 MB) | | Differing from Engine `staging` | 187 of 363 | | Present here but deleted from `staging` | 72 | | Engine commits since 2026-09-01 touching vendored service paths | 89 | ## What this costs, concretely A user reported that Slurp images were missing the SwarmUI fixes from Marinara-Engine#6359. The vendored `services/image/image-generation.ts` predated it, so `buildSwarmUiGenerationBody` returned the request body before attaching LoRAs or reference images whenever no custom ComfyUI workflow was set. Both were silently dropped for every Slurp user. A user found it. CI did not. Fixed by hand-backporting two hunks in #954. The 72 files that Engine `staging` has already deleted are still shipping to users as dead code. ## Proposal Add a validation script and regression that, given an Engine checkout, reports for every file under `sources/engine/`: - **drifted** — differs from Engine `staging`; - **orphaned** — no longer exists in Engine `staging`; - **current** — identical. Wire it into the existing validation set beside `validate-catalog.mjs` and friends. Open questions for whoever picks this up: - **Gate or report?** Failing on any drift would be red constantly at 187 of 363. A baseline file with an allowlist that may only shrink is probably the workable shape, the way other baselines in this repo work. - **Where does the Engine checkout come from?** The browser suite already takes `MARINARA_ENGINE_ROOT`. The check should skip with a clear notice when it is absent, the way `slurp2-vocabulary-shape` does, and run in the CI job that already has an Engine. - **Orphans first.** The 72 orphaned files are unambiguous dead code and could be pruned independently of the drift question. This is the detection half. The root cause is tracked in Marinara-Engine#6385: exposing image generation, LLM providers and video on the package host API so packages call them instead of copying them.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 20, 2026):

Codex is handling the detection half for @SpicyMarinara as part of the issue sweep. I found no existing linked PR or branch. I will add the drift/orphan report and a shrinking baseline gate; files missing from Engine will be checked for package ownership before deletion, since removal from the host alone does not prove they are dead in a package. Host service migration remains tracked separately in Pasta-Devs/Marinara-Engine#6385.

<!-- gh-comment-id:5749350816 --> @SpicyMarinara commented on GitHub (Sep 20, 2026): Codex is handling the detection half for @SpicyMarinara as part of the issue sweep. I found no existing linked PR or branch. I will add the drift/orphan report and a shrinking baseline gate; files missing from Engine will be checked for package ownership before deletion, since removal from the host alone does not prove they are dead in a package. Host service migration remains tracked separately in Pasta-Devs/Marinara-Engine#6385.
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#501
No description provided.