[GH-ISSUE #4620] [Issue]: Package-backed agents are omitted by early registry snapshots #2525

Closed
opened 2026-10-21 05:49:31 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (Aug 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4620

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Some Engine consumers derive agent sets and display order while the package-backed compatibility registry is still empty. Those module-level snapshots never update after downloadable agent manifests hydrate the registry, so installed agents can be omitted or handled inconsistently for the rest of the process.

Expected behavior

Agent consumers should evaluate the hydrated registry at use time. Installed package-backed agents should participate in writer-output review, tracker reruns, and Roleplay settings ordering consistently.

Actual behavior

Several consumers derive constants from BUILT_IN_AGENTS during module initialization. When those modules load before package manifests replace the initially empty registry:

  • eligible downloadable writer agents are absent from the reviewable-agent set;
  • tracker reruns can reject package-backed tracker IDs;
  • Roleplay agent settings order is calculated from an empty list, causing menu and settings-card order to diverge.

The values remain stale even after the registry is populated.

Steps to reproduce

  1. Start Marinara Engine with official downloadable agent packages installed.
  2. Load the modules that derive writer-review eligibility, tracker IDs, or Roleplay settings order before package registry hydration completes.
  3. Hydrate the compatibility registry with the installed agent manifests.
  4. Exercise writer-output review, tracker retry, or Roleplay agent settings.
  5. Observe that the affected consumer still behaves as though the package-backed registry were empty or uses a different order from the hydrated manifest list.

Environment

  • Marinara Engine version: 2.4.1 development branch
  • Install type: source
  • OS + version: Not OS-specific
  • Browser or app shell: Server runtime and browser client

Logs, screenshots, or video

No runtime error is required. This was identified by static code tracing and reproduced with a regression that imports consumers before replacing the initially empty registry.

Additional context

Draft fix: https://github.com/Pasta-Devs/Marinara-Engine/pull/4619

The proposed regression verifies late-hydrated writer eligibility and shared Roleplay quick-link/settings-card ordering, including Storyboard directly after Illustrator.

This is separate from #4485, which concerns whether deleting an agent from the sidebar should uninstall its package.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Aug 5, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4620 Originally assigned to: @SpicyMarinara on GitHub. <!-- task-id: agent-registry-hydration-snapshots --> ## Summary Some Engine consumers derive agent sets and display order while the package-backed compatibility registry is still empty. Those module-level snapshots never update after downloadable agent manifests hydrate the registry, so installed agents can be omitted or handled inconsistently for the rest of the process. ## Expected behavior Agent consumers should evaluate the hydrated registry at use time. Installed package-backed agents should participate in writer-output review, tracker reruns, and Roleplay settings ordering consistently. ## Actual behavior Several consumers derive constants from `BUILT_IN_AGENTS` during module initialization. When those modules load before package manifests replace the initially empty registry: - eligible downloadable writer agents are absent from the reviewable-agent set; - tracker reruns can reject package-backed tracker IDs; - Roleplay agent settings order is calculated from an empty list, causing menu and settings-card order to diverge. The values remain stale even after the registry is populated. ## Steps to reproduce 1. Start Marinara Engine with official downloadable agent packages installed. 2. Load the modules that derive writer-review eligibility, tracker IDs, or Roleplay settings order before package registry hydration completes. 3. Hydrate the compatibility registry with the installed agent manifests. 4. Exercise writer-output review, tracker retry, or Roleplay agent settings. 5. Observe that the affected consumer still behaves as though the package-backed registry were empty or uses a different order from the hydrated manifest list. ## Environment - Marinara Engine version: 2.4.1 development branch - Install type: source - OS + version: Not OS-specific - Browser or app shell: Server runtime and browser client ## Logs, screenshots, or video No runtime error is required. This was identified by static code tracing and reproduced with a regression that imports consumers before replacing the initially empty registry. ## Additional context Draft fix: https://github.com/Pasta-Devs/Marinara-Engine/pull/4619 The proposed regression verifies late-hydrated writer eligibility and shared Roleplay quick-link/settings-card ordering, including Storyboard directly after Illustrator. This is separate from #4485, which concerns whether deleting an agent from the sidebar should uninstall its package. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:49:31 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 5, 2026):

Thank you!

<!-- gh-comment-id:5189487356 --> @SpicyMarinara commented on GitHub (Aug 5, 2026): Thank you!
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-Engine#2525
No description provided.