mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3847] [Issue]: Capability contracts expose resultType and interruptibleSeats without host behavior #2077
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#2077
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/3847
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Two exported capability contracts advertise behavior that the Engine host never consumes:
BuiltInAgentManifest.resultTypeis accepted and transmitted, but built-in runtime defaults only readdefaultSettings.resultType.TurnGameEngine.interruptibleSeats()is required and implemented by turn-game packages, but neither host turn-game runner calls it.This makes the package API misleading: package authors can provide valid contract fields that have no effect.
Expected behavior
Every advertised capability-contract member should either influence host behavior or be removed from the active authoring contract. Legacy package data should remain installable where compatibility requires it.
Actual behavior
packages/shared/src/features/agents/agent-manifest.types.tsexposes optionalresultType.packages/shared/src/schemas/capability-package.schema.tsaccepts the same top-level field.getDefaultBuiltInAgentSettings()inpackages/shared/src/types/agent.tsreadsdefaultSettings,promptTemplates,defaultInjectAsSection, andrunInterval, but never reads the manifest's top-levelresultType.text_rewriteboth at the top level and underdefaultSettings.resultType; only the latter affects runtime behavior.packages/shared/src/features/turn-games/engine.types.tsrequiresinterruptibleSeats().currentSeat,legalMoves,applyMove,describeForModel, andpublicView, but never callinterruptibleSeats. UNO computes a non-empty interruptible-seat list for jump-in/call-out situations, but that contract member does not drive host scheduling.Steps to reproduce
BuiltInAgentManifest.resultTypefrom package parsing throughreplaceBuiltInAgentDefinitions()andgetDefaultBuiltInAgentSettings().defaultSettings.resultTypereaches resolved agent settings.interruptibleSeats.Environment
Logs, screenshots, or video
Not applicable; this is a static package-contract trace.
Additional context
Suggested compatibility-safe cleanup:
resultTypefromBuiltInAgentManifestso new code does not advertise it. Continue accepting the top-level field in the strict package schema as deprecated compatibility data for already-installed or older packages. KeepdefaultSettings.resultTypeas the canonical runtime setting.interruptibleSeats()into runner behavior with explicit turn-order/concurrency handling. If no, remove it fromTurnGameEngineand update the package source contracts; existing bundled package objects may retain the extra method without runtime breakage.The two members are grouped because they share the same root problem: the exported host contract promises package behavior that the host does not provide.
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 make the authoring contracts match host behavior while preserving legacy package parsing for top-level resultType data.
@SpicyMarinara commented on GitHub (Jul 20, 2026):
Addressed in #3853 and merged into staging.