[GH-ISSUE #410] Hide incomplete packages from the user-facing catalog (main + staging) #206

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

Originally created by @kolacheee on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/410

Originally assigned to: @kolacheee on GitHub.

Problem

An in-development package is listed to users the moment its catalog entry lands on a branch. Concretely today: staging-channel Engines show Pixelforge 0.5.1 in Agents → Download Agents, even though it is mid-development — and because artifact URLs are pinned to main (where Pixelforge has never merged), the entry's download URL does not even exist. Users see a package that is visible, installable-looking, and broken. The same will be true for any future package developed in-tree across multiple releases.

There is no visibility concept in the catalog pipeline: every entry in catalog/*.json is shown by the Engine's package browser, offered by its update discovery, and auto-installed by its legacy-migration path.

Goal

A per-package "incomplete" marker that keeps a package out of the user-facing catalog on both the main and staging Engine channels while its source, payload, artifact, and locales keep building in the repo so development continues.

Design constraint that picks the mechanism

The Engine parses the catalog with .strict() Zod schemas at the manifest, catalog-entry, and envelope levels. Any new field (hidden, status, …) in a published catalog would therefore hard-fail catalog parsing for every existing user until a coordinated Engine schema change shipped. So: exclude at generation rather than include-with-a-flag. Exclusion needs zero Engine changes and cannot crash a consumer.

Mechanism

  • scripts/catalog-incomplete.mjs — INCOMPLETE_PACKAGE_IDS, the one place a package is marked (currently: pixelforge).
  • writeCatalogFamily (the single chokepoint all three builders write through) drops marked ids from every generated lane, logged, and scrubs a stale committed entry on the next rebuild of anything.
  • validate-catalog.mjs fails if a marked id appears in a committed catalog, exempts marked ids from the guidance-exactness check, and carries the adjusted package-count assertion.
  • Docs: README "In development" section; CONTRIBUTING § Incomplete packages (mechanism, ship-path, and the MARINARA_CATALOG_INCLUDE_INCOMPLETE=1 dev escape hatch for local testing via MARINARA_AGENT_CATALOG_URL).

Already-installed copies are unaffected (installed packages, uninstall, and runtime never read the catalog entry); the package just stops being browseable, installable, and update-offered until it ships.

Originally created by @kolacheee on GitHub (Aug 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/410 Originally assigned to: @kolacheee on GitHub. ## Problem An in-development package is listed to users the moment its catalog entry lands on a branch. Concretely today: **staging-channel Engines show Pixelforge 0.5.1 in Agents → Download Agents**, even though it is mid-development — and because artifact URLs are pinned to `main` (where Pixelforge has never merged), the entry's download URL does not even exist. Users see a package that is visible, installable-looking, and broken. The same will be true for any future package developed in-tree across multiple releases. There is no visibility concept in the catalog pipeline: every entry in `catalog/*.json` is shown by the Engine's package browser, offered by its update discovery, and auto-installed by its legacy-migration path. ## Goal A per-package "incomplete" marker that keeps a package **out of the user-facing catalog on both the `main` and `staging` Engine channels** while its source, payload, artifact, and locales keep building in the repo so development continues. ## Design constraint that picks the mechanism The Engine parses the catalog with `.strict()` Zod schemas at the manifest, catalog-entry, and envelope levels. Any *new field* (`hidden`, `status`, …) in a published catalog would therefore hard-fail catalog parsing for **every existing user** until a coordinated Engine schema change shipped. So: **exclude at generation** rather than include-with-a-flag. Exclusion needs zero Engine changes and cannot crash a consumer. ## Mechanism - `scripts/catalog-incomplete.mjs` — `INCOMPLETE_PACKAGE_IDS`, the one place a package is marked (currently: `pixelforge`). - `writeCatalogFamily` (the single chokepoint all three builders write through) drops marked ids from every generated lane, logged, and scrubs a stale committed entry on the next rebuild of anything. - `validate-catalog.mjs` fails if a marked id appears in a committed catalog, exempts marked ids from the guidance-exactness check, and carries the adjusted package-count assertion. - Docs: README "In development" section; CONTRIBUTING § Incomplete packages (mechanism, ship-path, and the `MARINARA_CATALOG_INCLUDE_INCOMPLETE=1` dev escape hatch for local testing via `MARINARA_AGENT_CATALOG_URL`). Already-installed copies are unaffected (installed packages, uninstall, and runtime never read the catalog entry); the package just stops being browseable, installable, and update-offered until it ships.
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#206
No description provided.