[PR #411] [MERGED] Hide packages that are not ready for everyone: incomplete + staging-only tiers (#410) #956

Closed
opened 2026-10-20 17:32:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/411
Author: @kolacheee
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @kolacheee

Base: staging ← Head: feat/catalog-incomplete-packages


📝 Commits (2)

  • 9882a0c feat(catalog): exclude incomplete packages from the user-facing catalog
  • eceec5b feat(catalog): add a staging-only tier via a preview overlay

📊 Changes

8 files changed (+284 additions, -386 deletions)

View changed files

📝 CONTRIBUTING.md (+21 -0)
📝 README.md (+9 -2)
📝 catalog/catalog.json (+0 -120)
📝 catalog/v2/catalog.json (+0 -120)
📝 catalog/v3/catalog.json (+0 -120)
➕ scripts/catalog-incomplete.mjs (+53 -0)
📝 scripts/catalog-lanes.mjs (+111 -16)
📝 scripts/validate-catalog.mjs (+90 -8)

📄 Description

Linked issue

Closes #410

Why this change

In-development packages are listed to users as soon as their entry lands in a committed catalog, and there was no visibility concept anywhere in the pipeline: every catalog entry is browseable, offered as an update, and auto-installed by the Engine's legacy-migration path.

Two different needs, so two tiers:

  • Not finished at all. Staging-channel Engines were showing Pixelforge in Agents → Download Agents mid-development — visible, installable-looking, and (before promotion) pointing at an artifact URL that did not exist yet.
  • Ready for testers, not for stable. Promotion is a wholesale staging → main merge, so everything on staging becomes visible to stable users the moment the Engine updates — even a package its author still considers in testing. Package authors need a way to say "staging users may have this; stable users may not."

Why exclusion instead of a hidden flag on entries: released Engines parse the catalog with .strict() Zod schemas at the manifest, entry, and envelope levels (the tolerant per-entry compat parser is newer than the installed base), so a new field would break catalog parsing for existing users until a coordinated Engine change shipped. Excluding at generation needs zero Engine changes and cannot crash a consumer.

What changed

scripts/catalog-incomplete.mjs (new) — two mutually exclusive sets. A package graduates INCOMPLETE_PACKAGE_IDS → STAGING_ONLY_PACKAGE_IDS → neither.

Set Stable (main) users Staging users
INCOMPLETE_PACKAGE_IDS hidden hidden
STAGING_ONLY_PACKAGE_IDS hidden visible and installable

Marked packages keep building normally — payload, manifest, artifact, and locales stay committed so development continues; only the listing is affected.

scripts/catalog-lanes.mjs — writeCatalogFamily (the single chokepoint all three builders write through) splits on every write: incomplete packages are dropped entirely, staging-only packages are routed to a preview overlay under catalog/preview/ mirroring the normal lane layout. Every move is logged, never silent. readCatalogFamily reads the overlay back into the unified list, so a builder that rewrites only its own package cannot drop another package's staging-only entry, and a stale committed entry for a newly-marked id is relocated or dropped by whichever builder runs next. Unmarking a package restores it to the published lanes and removes the overlay automatically. MARINARA_CATALOG_INCLUDE_INCOMPLETE=1 publishes everything into the normal lanes for a local dev catalog.

Why an overlay rather than differing branch catalogs: because promotion copies bytes, both branches end up with identical catalogs — a package cannot be hidden on one branch and shown on the other by catalog content. Only the Engine knows its channel. The overlay rides along on main inertly (a stable Engine never requests it) and a staging Engine merges it over the published lanes. This is fail-hidden, never fail-leak: an Engine predating preview-overlay support simply never sees a staging-only package, so no out-of-date Engine can reveal one to stable users.

scripts/validate-catalog.mjs — enforces that each tier lands in exactly one place: an incomplete id in no catalog, a staging-only id in the overlay and never in the published lanes, no orphaned overlay entry, no empty overlay directory, and preview lanes derived correctly from their own packages. Package counts are asserted over the published lanes specifically (what a stable user receives): 35 packages / 24 agents / 11 features. Guidance and README coverage may exist ahead of a listing.

Catalogs — regenerated through the filter; the only diff is Pixelforge dropping from each lane (generatedAt preserved). STAGING_ONLY_PACKAGE_IDS ships empty, so no preview directory is written yet and the staging tier is inert until a package opts in.

Docs — README gains an "In development" section with an Availability column; CONTRIBUTING gains "Packages that are not ready for everyone" covering both tiers, the overlay rationale, the graduation path, and the dev escape hatch.

Follow-up required for the staging tier to do anything

The Engine half is a separate PR against Marinara-Engine staging: staging-channel Engines must fetch catalog/preview/v{major}/catalog.json and merge it over the published catalog, and stable Engines must never request it. Until that ships, a staging-only package behaves exactly like an incomplete one — hidden everywhere, which is the safe direction. Nothing in this PR depends on it.

Package and security impact

  • Affected package IDs: pixelforge (delisted from the user catalog; its files, artifact, and locales remain in the tree). No other package's entry changes.
  • Engine compatibility impact: none — no schema or field changes; the served catalog simply contains one fewer entry, which every Engine version already handles. The preview overlay is a new file that no current Engine requests.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none for any listed package. Users who already installed Pixelforge from staging keep a working install and can still uninstall it; it stops appearing in browse/install/update surfaces until it ships.

Validation

  • node scripts/validate-catalog.mjs passes locally — Catalog valid: 35 packages (24 agents, 11 features), lanes valid: v2=35, v3=35; legacy=v2
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry — only the catalog family is affected (regenerated through writeCatalogFamily; no manifest/payload/artifact changed, generatedAt preserved)
  • 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

Both tiers were exercised end to end, positive and negative:

  • Incomplete tier: restoring a catalog that still contains the marked entry makes validate-catalog.mjs fail with pixelforge is marked incomplete … must not appear in any catalog — a stale entry cannot slip through CI.
  • Staging-only tier: temporarily marking a real package produced a 34-package published catalog plus a 1-package catalog/preview/ overlay with a matching generatedAt, and validation passed with Preview overlay valid: 1 staging-only package(s) — hidden from stable users.
  • Leak guard: injecting the staging-only entry back into the published lanes fails with … must not appear in the published lanes — rebuild the catalog to move it to the preview overlay.
  • Orphan guard: unmarking the package while the overlay still exists fails with … is in the preview overlay but is not marked staging-only.
  • Graduation path: rebuilding after unmarking restored the package to the published lanes (back to 35) and removed the overlay directory automatically.
  • Dev escape hatch: MARINARA_CATALOG_INCLUDE_INCOMPLETE=1 regeneration publishes every held-back package (loudly logged as do-not-commit); a normal regeneration afterwards restores the filtered family.
  • node scripts/test-catalog-lanes.mjs passes. Note: npm run check reports three pre-existing Prettier failures in Pixelforge files on a Windows checkout; they are identical before (671a7dd) and after this branch's base, are a CRLF working-tree artifact, and are untouched by this PR.
  • Manually verify in a staging Engine once merged: Agents → Download Agents no longer lists Pixelforge; an Engine with Pixelforge already installed keeps it working and uninstallable.

Documentation impact

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

UI evidence (if applicable)

No package UI changes — the user-visible effect is Pixelforge's absence from the Download Agents browser; a before/after screenshot can be added after the post-merge staging check if wanted.

Summary by CodeRabbit

  • Catalog Updates

    • Removed Pixelforge from the published catalog and Engine channels.
    • Added Pixelforge to an “In development” section as an unfinished package.
    • Updated catalog totals to 35 packages, 24 agents, and 11 features.
  • Documentation

    • Added guidance for marking packages incomplete, validating catalogs, releasing changes, and testing locally.

🔄 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/411 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 8/17/2026 **Status:** ✅ Merged **Merged:** 8/17/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `feat/catalog-incomplete-packages` --- ### 📝 Commits (2) - [`9882a0c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9882a0c5cb4c5ea17d7b71fdd32026540d4e5e40) feat(catalog): exclude incomplete packages from the user-facing catalog - [`eceec5b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eceec5ba1d12675b4c3f0f1d81a785baeb6de58c) feat(catalog): add a staging-only tier via a preview overlay ### 📊 Changes **8 files changed** (+284 additions, -386 deletions) <details> <summary>View changed files</summary> 📝 `CONTRIBUTING.md` (+21 -0) 📝 `README.md` (+9 -2) 📝 `catalog/catalog.json` (+0 -120) 📝 `catalog/v2/catalog.json` (+0 -120) 📝 `catalog/v3/catalog.json` (+0 -120) ➕ `scripts/catalog-incomplete.mjs` (+53 -0) 📝 `scripts/catalog-lanes.mjs` (+111 -16) 📝 `scripts/validate-catalog.mjs` (+90 -8) </details> ### 📄 Description ## Linked issue Closes #410 ## Why this change In-development packages are listed to users as soon as their entry lands in a committed catalog, and there was no visibility concept anywhere in the pipeline: every catalog entry is browseable, offered as an update, and auto-installed by the Engine's legacy-migration path. Two different needs, so two tiers: - **Not finished at all.** Staging-channel Engines were showing Pixelforge in **Agents → Download Agents** mid-development — visible, installable-looking, and (before promotion) pointing at an artifact URL that did not exist yet. - **Ready for testers, not for stable.** Promotion is a wholesale `staging` → `main` merge, so everything on `staging` becomes visible to stable users the moment the Engine updates — even a package its author still considers in testing. Package authors need a way to say "staging users may have this; stable users may not." **Why exclusion instead of a `hidden` flag on entries:** released Engines parse the catalog with `.strict()` Zod schemas at the manifest, entry, and envelope levels (the tolerant per-entry compat parser is newer than the installed base), so a new field would break catalog parsing for existing users until a coordinated Engine change shipped. Excluding at generation needs zero Engine changes and cannot crash a consumer. ## What changed **`scripts/catalog-incomplete.mjs` (new)** — two mutually exclusive sets. A package graduates `INCOMPLETE_PACKAGE_IDS` → `STAGING_ONLY_PACKAGE_IDS` → neither. | Set | Stable (`main`) users | Staging users | | --- | --- | --- | | `INCOMPLETE_PACKAGE_IDS` | hidden | hidden | | `STAGING_ONLY_PACKAGE_IDS` | hidden | visible and installable | Marked packages keep building normally — payload, manifest, artifact, and locales stay committed so development continues; only the listing is affected. **`scripts/catalog-lanes.mjs`** — `writeCatalogFamily` (the single chokepoint all three builders write through) splits on every write: incomplete packages are dropped entirely, staging-only packages are routed to a **preview overlay** under `catalog/preview/` mirroring the normal lane layout. Every move is logged, never silent. `readCatalogFamily` reads the overlay back into the unified list, so a builder that rewrites only its own package cannot drop another package's staging-only entry, and a stale committed entry for a newly-marked id is relocated or dropped by whichever builder runs next. Unmarking a package restores it to the published lanes and removes the overlay automatically. `MARINARA_CATALOG_INCLUDE_INCOMPLETE=1` publishes everything into the normal lanes for a local dev catalog. **Why an overlay rather than differing branch catalogs:** because promotion copies bytes, both branches end up with identical catalogs — a package cannot be hidden on one branch and shown on the other by catalog content. Only the Engine knows its channel. The overlay rides along on `main` inertly (a stable Engine never requests it) and a staging Engine merges it over the published lanes. This is **fail-hidden, never fail-leak**: an Engine predating preview-overlay support simply never sees a staging-only package, so no out-of-date Engine can reveal one to stable users. **`scripts/validate-catalog.mjs`** — enforces that each tier lands in exactly one place: an incomplete id in no catalog, a staging-only id in the overlay and never in the published lanes, no orphaned overlay entry, no empty overlay directory, and preview lanes derived correctly from their own packages. Package counts are asserted over the **published** lanes specifically (what a stable user receives): 35 packages / 24 agents / 11 features. Guidance and README coverage may exist ahead of a listing. **Catalogs** — regenerated through the filter; the only diff is Pixelforge dropping from each lane (`generatedAt` preserved). `STAGING_ONLY_PACKAGE_IDS` ships **empty**, so no preview directory is written yet and the staging tier is inert until a package opts in. **Docs** — README gains an "In development" section with an Availability column; CONTRIBUTING gains "Packages that are not ready for everyone" covering both tiers, the overlay rationale, the graduation path, and the dev escape hatch. ## Follow-up required for the staging tier to do anything The Engine half is a **separate PR against Marinara-Engine `staging`**: staging-channel Engines must fetch `catalog/preview/v{major}/catalog.json` and merge it over the published catalog, and stable Engines must never request it. Until that ships, a staging-only package behaves exactly like an incomplete one — hidden everywhere, which is the safe direction. Nothing in this PR depends on it. ## Package and security impact - Affected package IDs: `pixelforge` (delisted from the user catalog; its files, artifact, and locales remain in the tree). No other package's entry changes. - Engine compatibility impact: none — no schema or field changes; the served catalog simply contains one fewer entry, which every Engine version already handles. The preview overlay is a new file that no current Engine requests. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none for any listed package. Users who already installed Pixelforge from staging keep a working install and can still uninstall it; it stops appearing in browse/install/update surfaces until it ships. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [x] `node scripts/validate-catalog.mjs` passes locally — `Catalog valid: 35 packages (24 agents, 11 features)`, `lanes valid: v2=35, v3=35; legacy=v2` - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry — only the catalog family is affected (regenerated through `writeCatalogFamily`; no manifest/payload/artifact changed, `generatedAt` preserved) - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes Both tiers were exercised end to end, positive and negative: - **Incomplete tier:** restoring a catalog that still contains the marked entry makes `validate-catalog.mjs` fail with `pixelforge is marked incomplete … must not appear in any catalog` — a stale entry cannot slip through CI. - **Staging-only tier:** temporarily marking a real package produced a 34-package published catalog plus a 1-package `catalog/preview/` overlay with a matching `generatedAt`, and validation passed with `Preview overlay valid: 1 staging-only package(s) — hidden from stable users`. - **Leak guard:** injecting the staging-only entry back into the published lanes fails with `… must not appear in the published lanes — rebuild the catalog to move it to the preview overlay`. - **Orphan guard:** unmarking the package while the overlay still exists fails with `… is in the preview overlay but is not marked staging-only`. - **Graduation path:** rebuilding after unmarking restored the package to the published lanes (back to 35) and removed the overlay directory automatically. - **Dev escape hatch:** `MARINARA_CATALOG_INCLUDE_INCOMPLETE=1` regeneration publishes every held-back package (loudly logged as do-not-commit); a normal regeneration afterwards restores the filtered family. - `node scripts/test-catalog-lanes.mjs` passes. Note: `npm run check` reports three pre-existing Prettier failures in Pixelforge files on a Windows checkout; they are identical before (`671a7dd`) and after this branch's base, are a CRLF working-tree artifact, and are untouched by this PR. - Manually verify in a staging Engine once merged: **Agents → Download Agents** no longer lists Pixelforge; an Engine with Pixelforge already installed keeps it working and uninstallable. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No package UI changes — the user-visible effect is Pixelforge's absence from the Download Agents browser; a before/after screenshot can be added after the post-merge staging check if wanted. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Catalog Updates** * Removed Pixelforge from the published catalog and Engine channels. * Added Pixelforge to an “In development” section as an unfinished package. * Updated catalog totals to 35 packages, 24 agents, and 11 features. * **Documentation** * Added guidance for marking packages incomplete, validating catalogs, releasing changes, and testing locally. <!-- 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-20 17:32:41 +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#956
No description provided.