mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #2077] [Issue]: Inventory Tracker silently drops valid agent results (bare root envelope not applied) #1903
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1903
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 @fishy1boy13 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2077
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Inventory Tracker agent often returns its changes as a bare root-level envelope,
{"updates":[...],"removed":[...]}, with no group name. The host only readscurrencies,equippedandinventory, so a bare envelope is treated as "no change": nothing is applied, nothing is logged, and the run is still recorded as a success. In one long chat, 31 of 54 Inventory runs returned only a bare envelope (28 of them with real changes), and 2 more mixed a group-shaped part with a stray bare part. In total 30 runs carried real changes that were silently discarded. The agent's values were correct; the tracker never received them.Affected package
inventory-tracker (package version 1.2.1)
Expected behavior
Every change the agent returns for currencies, equipped or inventory is applied to the tracker. If a result contains none of the recognised groups, it is treated as unusable (retried, or shown as a failed run) rather than recorded as a successful no-change.
Actual behavior
{"updates":[{"name":"Coins","qty":5}]}changes nothing. The run is saved as successful and no log line is written.success: true, none with an error):updateswith real changesremoved), and partial application (in a mixed response I checked, the group-shapedinventoryarray was applied while the bare cash update in the same response was dropped).buildLockedInventoryTrackerPatchinpackages/server/src/routes/generate/generate-route-utils.tsreads onlydata.currencies,data.equippedanddata.inventory; with none of them present it returns{ changed: false }. Inpackages/server/src/services/agents/agent-executor.ts, a bare envelope is tolerated only for single-group trackers (SINGLE_GROUP_TRACKER_KEYS: custom tracker and character tracker). The three-group Inventory tracker has no such tolerance.Steps to reproduce
Intermittent, since it depends on the shape the model chooses:
resultDatawith the tracker snapshot.resultDatahas top-levelupdates/removedand none ofcurrencies/equipped/inventory.Environment
post_processing,contextSize5, same connection as the chat (deepseek-v4.1-flash). This instance appends four extra currency rules (numbered 9-12) to the package prompt. They do not concern the output shape, but the unmodified package prompt has not been tested.Logs, screenshots, or video
Generic example of a dropped result (values changed):
Tracker change: none. Run status: success. The saved runs are in the agent run store; I found no route that returns a built-in tracker agent's runs, so they can only be read from the data files.
Additional context
Likely cause (my inference): the package prompt introduces the incremental format as
{"updates": [rows], "removed": ["existing identity"]}without naming the group, while its legacy schema example nests rows undercurrencies/equipped/inventory. A model can reasonably emit the bare form, and the host does not accept it for the three-group tracker.Suggested:
{"currencies": {"updates": [...], "removed": [...]}, "inventory": {"updates": [...]}}.Closed issues I found that do not cover this: Pasta-Devs/Marinara-Agents#976, Pasta-Devs/Marinara-Engine#6387 and Pasta-Devs/Marinara-Engine#5125. The Engine-side issue will be linked here once it is filed.
Template check
@SpicyMarinara commented on GitHub (Nov 3, 2026):
The host half is filed as Pasta-Devs/Marinara-Engine#8714: the Engine applies a bare envelope's rows when their group is unambiguous, and treats one with no usable group as an invalid result rather than a successful no-change. The package prompt fix stays here.