mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4358] [Issue]: Tool arguments execute without schema validation and failures can look successful #2361
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#2361
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 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4358
Summary
Tool calls can execute provider-supplied arguments without validating them against the JSON schema Marinara advertised to the provider. Malformed input can be replaced with an empty object, while semantic and HTTP failures can be returned to the model without an explicit failure signal.
Expected behavior
Marinara should require valid JSON objects, validate arguments against the advertised built-in or custom-tool schema before any side effect, and give the model an explicit failure result when execution fails.
Actual behavior
The executor previously treated malformed JSON as
{}, did not enforce advertised parameter schemas at execution time, and marked returned error objects or non-2xx webhook responses as successful tool executions.Steps to reproduce
actionstring and an email-formattedtarget.Environment
stagingbefore commit32495d36f)Logs, screenshots, or video
A deterministic local provider/webhook fixture was used during fix verification. It covered malformed JSON, missing required fields, invalid email format, HTTP 409, and successful execution without contacting an external provider.
Additional context
Implementation owner: @Xelvanis
The smallest fix is to enforce the same schemas at the centralized executor boundary and preserve structured failure state for every model-facing tool path.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: