mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3829] [Issue]: Reject turn-game packages without a server entrypoint before installation #2069
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#2069
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 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3829
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The shared capability manifest contract accepts a package whose
kindincludesturn-gamewhileentrypoints.serveris absent. Installation persists that package as active/ready before the route attempts mandatory server activation, so activation fails after mutation and leaves an inconsistent installed record.Expected behavior
A turn-game package without a server entrypoint should be rejected before its files or installed-registry entry are mutated.
Actual behavior
capabilityPackageManifestSchemapermitskind: ["turn-game"]with noentrypoints.server.installCatalogPackage()persists it withstatus: "active"andreadiness: "ready"because there is no server entrypoint.capabilityModuleRuntime.activatePackage()for every turn-game package.runtimePackages()excludes the package because it has no server entrypoint, so activation throwsInstalled capability package <id> has no server runtimebefore status/error handling or rollback runs.finallyrefreshes the agent registry but does not remove or mark the installed record as failed.Relevant source at audited
stagingrevision:Steps to reproduce
kind: ["turn-game"], a client entrypoint/contribution, and no server entrypoint.capabilityPackageManifestSchema; validation succeeds.has no server runtime./api/capability-packages/installed; the package remains present as active/ready.Environment
stagingrevisione2aaec9bf327a686f4471deac96c1076632994d2)Logs, screenshots, or video
A direct schema/readiness check produced:
The complete catalog-download route was not executed during the audit; the persistence and activation sequence above was verified statically.
Additional context
The package documentation states that turn-game installation registers its server engine immediately, so a server entrypoint is a runtime invariant.
The smallest safe fix is an install-time/catalog invariant check before artifact or registry mutation. Adding the rule directly to the base manifest schema needs compatibility consideration because the same schema parses existing installed-registry records; an already persisted malformed record should not prevent startup without a migration path.
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 19, 2026):
Claimed by @SpicyMarinara in draft PR #3835 for this assigned issue sweep.
@SpicyMarinara commented on GitHub (Jul 19, 2026):
Addressed in #3835: turn-game packages without a server entrypoint are rejected before install state or package artifacts are mutated, with lifecycle regression coverage.