mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1907] Document custom tool script contract divergence #924
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#924
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 (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1907
Originally assigned to: @SpicyMarinara on GitHub.
What problem does this solve?
Legacy custom tools exposed a
scriptexecution type with ascriptBodycontract. The refactor runtime intentionally disables script custom tools, but the parity boundary is not tracked publicly outside code comments/tests. This should be explicit so legacy imports, profile data, and future custom-tool UI work know whether script tools are unsupported by design or waiting for a safer replacement.Static evidence:
packages/shared/src/schemas/custom-tool.schema.tsallowedexecutionType: "script"and persistedscriptBody.src/engine/contracts/schemas/custom-tool.schema.tsonly allows"webhook" | "static"and omitsscriptBodyfrom the create/update contract.src/engine/contracts/types/agent.tsnarrowsCustomTool.executionTypeto"webhook" | "static".src/features/catalog/agents/components/ToolEditor.tsxintentionally excludes script tools and treats existingexecutionType === "script"rows as unsupported.src-tauri/src/commands/storage/custom_tools.rsreportsscriptExecutionEnabled: falseand returnscustom_tool_script_unsupportedwith a convert-to-webhook-or-static migration hint when a legacy script tool is invoked.Proposed behavior
Document the compatibility decision and expected handling for legacy script tools:
script/scriptBodyas a preserved-but-disabled contract shape and gate execution separately from storage/import/editing.Expected owner or impact area
Refactor branch considerations
This does not need to restore script execution. The safer current behavior is defensible, but the compatibility contract should be explicit because legacy data can still contain
executionType: "script"andscriptBody.Related tracker: #1904, target 1 "Contracts and schemas".
Template check
@SpicyMarinara commented on GitHub (Jun 2, 2026):
Resolved on refactor in
a4ba3c90: REFACTOR_PARITY_PIPELINE now documents script custom tools as an unsupported compatibility boundary and points legacy data toward webhook/static conversion instead of local script execution. Verification passed: docs check plus the full code verification set.