[PR #967] [MERGED] ci: detect drift in vendored Engine sources #1215

Closed
opened 2026-10-21 05:05:54 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/967
Author: @SpicyMarinara
Created: 9/20/2026
Status: ✅ Merged
Merged: 9/20/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/sept20-vendored-drift


📝 Commits (5)

  • efb5ccb chore: coordinate vendored Engine drift detection
  • 6dcbe89 ci: detect changes in vendored Engine snapshots
  • 7c078f5 chore: record drift against final host integrations
  • 955ca73 Merge remote-tracking branch 'origin/staging' into codex/sept20-vendored-drift
  • a3a9b39 docs: clarify vendored snapshot classification scope

📊 Changes

6 files changed (+663 additions, -0 deletions)

View changed files

📝 .github/workflows/noodle-browser.yml (+9 -0)
📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 CONTRIBUTING.md (+2 -0)
➕ scripts/tests/vendored-engine.regression.mjs (+70 -0)
➕ scripts/validate-vendored-engine.mjs (+102 -0)
➕ scripts/vendored-engine-baseline.json (+477 -0)

📄 Description

Linked issue

Closes #955
Refs Pasta-Devs/Marinara-Engine#6385

Why this change

Vendored Engine integrations can become stale without a CI signal, so package users miss fixes already shipped by the host.

What changed

Classify the common source snapshot as current, drifted or orphaned against tracked Engine source. CI rejects new or changed drift and requires resolved baseline entries to be removed. The initial baseline records existing debt; later PRs may only shrink it. Package-owned overlays are excluded, and untracked Engine build output cannot masquerade as source. The existing Engine-backed browser job runs the check.

The host-service migration in #970 removes the live provider copies separately. This check does not blindly delete files whose ownership has moved into a package.

Package and security impact

  • Affected package IDs: no payload change in this detection step.
  • Engine compatibility impact: none.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none.

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Completed locally: npm run check, vendored-source regression, baseline validation, catalog-lane tests, catalog validation and git diff --check. The regression covers current/drifted/orphaned files, changed host content, baseline growth, resolved entries and invalid host roots. Local CodeRabbit completed; its host-content fingerprint finding was addressed.

Core claim: future source drift becomes a failing CI signal instead of silently entering package builds. No payload, runtime, permission or storage behavior changes. The initial 475-entry baseline is measured against Engine staging 4398962ff6be03568615298d318bca8a546472fe (merged Engine #6426). The tracked compiled shared snapshot remains in scope because packages still build from it; untracked output in the host checkout is ignored.

Manual follow-up: contributors should inspect ownership before deleting an orphaned file; this detector does not decide package ownership.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

No UI change.


🔄 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-Agents/pull/967 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/20/2026 **Status:** ✅ Merged **Merged:** 9/20/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/sept20-vendored-drift` --- ### 📝 Commits (5) - [`efb5ccb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/efb5ccb6f86b19df7e37d538c7e1248578dc494e) chore: coordinate vendored Engine drift detection - [`6dcbe89`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6dcbe895ba03ae654790bd1e9b88c401b5bdbc64) ci: detect changes in vendored Engine snapshots - [`7c078f5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7c078f56b55fdc367f32eb620a613ffbe5bb7e9a) chore: record drift against final host integrations - [`955ca73`](https://github.com/Pasta-Devs/Marinara-Agents/commit/955ca730c75391b92d66341cd93407222ba95d0f) Merge remote-tracking branch 'origin/staging' into codex/sept20-vendored-drift - [`a3a9b39`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a3a9b39fb0eb431d90c638615f388a20619e13e1) docs: clarify vendored snapshot classification scope ### 📊 Changes **6 files changed** (+663 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/noodle-browser.yml` (+9 -0) 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `CONTRIBUTING.md` (+2 -0) ➕ `scripts/tests/vendored-engine.regression.mjs` (+70 -0) ➕ `scripts/validate-vendored-engine.mjs` (+102 -0) ➕ `scripts/vendored-engine-baseline.json` (+477 -0) </details> ### 📄 Description ## Linked issue Closes #955 Refs Pasta-Devs/Marinara-Engine#6385 ## Why this change Vendored Engine integrations can become stale without a CI signal, so package users miss fixes already shipped by the host. ## What changed Classify the common source snapshot as current, drifted or orphaned against tracked Engine source. CI rejects new or changed drift and requires resolved baseline entries to be removed. The initial baseline records existing debt; later PRs may only shrink it. Package-owned overlays are excluded, and untracked Engine build output cannot masquerade as source. The existing Engine-backed browser job runs the check. The host-service migration in #970 removes the live provider copies separately. This check does not blindly delete files whose ownership has moved into a package. ## Package and security impact - Affected package IDs: no payload change in this detection step. - Engine compatibility impact: none. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Completed locally: npm run check, vendored-source regression, baseline validation, catalog-lane tests, catalog validation and git diff --check. The regression covers current/drifted/orphaned files, changed host content, baseline growth, resolved entries and invalid host roots. Local CodeRabbit completed; its host-content fingerprint finding was addressed. Core claim: future source drift becomes a failing CI signal instead of silently entering package builds. No payload, runtime, permission or storage behavior changes. The initial 475-entry baseline is measured against Engine staging `4398962ff6be03568615298d318bca8a546472fe` (merged Engine #6426). The tracked compiled shared snapshot remains in scope because packages still build from it; untracked output in the host checkout is ignored. Manual follow-up: contributors should inspect ownership before deleting an orphaned file; this detector does not decide package ownership. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No UI change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:05:54 +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-Agents#1215
No description provided.