mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3848] [Issue]: Remove obsolete shared registries and redundant public surface #2079
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2079
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Xelvanis on GitHub (Jul 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3848
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The shared package retains three groups of unnecessary surface: obsolete package-extraction registries, unused public exports, and duplicate representations. The live registries and tool definitions still affect Engine behavior, but the extra generators, branches, modules, aliases, and array copy do not.
Expected behavior
The base Engine should generate and publicly export only live shared contracts. Package-owned agents and turn games should be represented through the active runtime registries, without empty bundled registries suggesting that the base Engine can still ship implementations. Generated built-in tools should have one canonical array without changing the existing mutable public type or tool order, and presence status should use one canonical type name.
Actual behavior
Package-extraction fossils
packages/shared/scripts/generate-feature-registries.mjsstill scans for bundled agents and turn games even though package extraction removed every corresponding manifest from the Engine repository.agent-registry.generated.tsandregistry.generated.tsfiles on every shared build.BUNDLED_AGENT_MANIFESTSis permanently empty, andisBuiltInAgentHiddenFromLibrary()has no consumer.BUNDLED_TURN_GAME_ENGINESis permanently empty. The only reset caller passesfalse, so theincludeBundledbranch can never repopulate the registry.listTurnGameTypes()also has no consumer.Unused public exports
types/vnandconstants/chat-modesare exported from the shared root without a client, server, script, or Marinara-Agents source consumer.export *declarations also expose agent and turn-game registry implementation helpers that have no client, server, or official package consumer.Duplicate representations
BUILT_IN_TOOL_MANIFESTSarray is immediately shallow-copied into publicBUILT_IN_TOOLS. Client and server consumers are non-mutating: they only iterate, filter, find, or test membership.ConversationManualPresenceStatusis an exact alias ofConversationPresenceStatusand is used only byConversationStatusOverride.status.Steps to reproduce
packages/shared/scripts/generate-feature-registries.mjsin the current Engine tree.BUNDLED_AGENT_MANIFESTS,isBuiltInAgentHiddenFromLibrary,BUNDLED_TURN_GAME_ENGINES, theincludeBundledreset path, andlistTurnGameTypes; none has a live behavior consumer.types/vnandconstants/chat-modes; none is imported by Engine or Marinara-Agents source.BUILT_IN_TOOL_MANIFESTSintoBUILT_IN_TOOLSand observe that the latter is only a shallow copy with non-mutating consumers.ConversationManualPresenceStatusand observe that it only renamesConversationPresenceStatusfor one interface property.Environment
Logs, screenshots, or video
Not applicable; this is a static shared-contract and package-boundary trace.
Additional context
For the package-extraction portion, commit
5610c23fmoved the concrete agents and turn games into downloadable packages. It intentionally changed both bundled registries to permanent empty arrays, but left their generators, reset branches, and root-public helpers in place.Proposed scope:
Package-extraction fossils
BUNDLED_AGENT_MANIFESTSandisBuiltInAgentHiddenFromLibrary().BUNDLED_TURN_GAME_ENGINESandlistTurnGameTypes(), simplifyresetTurnGameRegistry()to clear only the active registry, and update its sole caller fromresetTurnGameRegistry(false)toresetTurnGameRegistry().Unused public exports
types/vnandconstants/chat-modesmodules and their root-barrel exports. Update documentation and comments that still presentCHAT_MODESas a source of truth.BUILT_IN_AGENT_MANIFESTS,getBuiltInAgentDefaultPrompt, andisBuiltInAgentRuntimeDisabled.registerTurnGameEngine,resetTurnGameRegistry,getTurnGameEngine,listTurnGames, and, if retained as a named public return type,TurnGameSummary.getBuiltInAgentManifestandreplaceBuiltInAgentManifestRegistryavailable to shared internals through direct imports, but stop exposing them from the package root.Duplicate representations
BUILT_IN_TOOLS: ToolDefinition[]and re-export it fromtool-definitions.ts. PreserveTOOL_ORDERand the existing mutable public type; do not retain a second array or cast awayreadonly.ConversationManualPresenceStatusand typeConversationStatusOverride.statusdirectly asConversationPresenceStatus.Acceptance criteria:
ToolDefinition[], with unchanged ordering and contents.ConversationStatusOverride.statususesConversationPresenceStatusdirectly, with no duplicate alias.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 20, 2026):
@SpicyMarinara is taking this. I’ll remove only the package-extraction fossils and redundant shared exports/representations listed here, keeping active package registration and catalog behavior unchanged.
@SpicyMarinara commented on GitHub (Jul 20, 2026):
Addressed in #3853 and merged into staging.