[GH-ISSUE #8714] [Issue]: Inventory Tracker results with a bare updates/removed envelope are dropped as a successful no-change #8471

Closed
opened 2026-11-07 16:43:10 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8714

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The Inventory Tracker agent often returns its changes as a bare root envelope, {"updates":[...],"removed":[...]}, with no group. The host reads only currencies, equipped and inventory, so it applies nothing, logs nothing, and records the run as a success. This is the Engine half of Pasta-Devs/Marinara-Agents#2077, which found 30 of 54 runs in one chat carrying real changes that were dropped this way.

Expected behavior

  • A bare-envelope result is never dropped silently.
  • A row is applied when its group is unambiguous.
  • A result with no usable group is treated as an invalid result, not a successful no-change, with a warning in the log.
  • A mixed result (group-shaped parts plus a stray bare part) applies both.

Actual behavior

  • buildLockedInventoryTrackerPatch (packages/server/src/routes/generate/generate-route-utils.ts) returns { changed: false } when none of the three groups is present.
  • agent-executor.ts tolerates a bare envelope only for single-group trackers (SINGLE_GROUP_TRACKER_KEYS).

Steps to reproduce

  1. Play a roleplay chat with the Inventory Tracker active and a small, fast model on its connection.
  2. Make purchases and pick up or drop items over several turns.
  3. Compare the saved agent runs with the tracker. Runs whose resultData has a top-level updates or removed changed nothing, and are recorded as successes.

Environment

  • Marinara Engine: staging
  • Package: inventory-tracker 1.2.1

Additional context

The package prompt is being fixed in Marinara-Agents to show the grouped shape (#2077). This issue is the host's handling, which must hold even when a model returns the bare form anyway.

Originally created by @SpicyMarinara on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8714 Originally assigned to: @SpicyMarinara on GitHub. ### Summary The Inventory Tracker agent often returns its changes as a bare root envelope, `{"updates":[...],"removed":[...]}`, with no group. The host reads only `currencies`, `equipped` and `inventory`, so it applies nothing, logs nothing, and records the run as a success. This is the Engine half of Pasta-Devs/Marinara-Agents#2077, which found 30 of 54 runs in one chat carrying real changes that were dropped this way. ### Expected behavior - A bare-envelope result is never dropped silently. - A row is applied when its group is unambiguous. - A result with no usable group is treated as an invalid result, not a successful no-change, with a warning in the log. - A mixed result (group-shaped parts plus a stray bare part) applies both. ### Actual behavior - `buildLockedInventoryTrackerPatch` (`packages/server/src/routes/generate/generate-route-utils.ts`) returns `{ changed: false }` when none of the three groups is present. - `agent-executor.ts` tolerates a bare envelope only for single-group trackers (`SINGLE_GROUP_TRACKER_KEYS`). ### Steps to reproduce 1. Play a roleplay chat with the Inventory Tracker active and a small, fast model on its connection. 2. Make purchases and pick up or drop items over several turns. 3. Compare the saved agent runs with the tracker. Runs whose `resultData` has a top-level `updates` or `removed` changed nothing, and are recorded as successes. ### Environment - Marinara Engine: staging - Package: inventory-tracker 1.2.1 ### Additional context The package prompt is being fixed in Marinara-Agents to show the grouped shape (#2077). This issue is the host's handling, which must hold even when a model returns the bare form anyway.
bsakaguchi 2026-11-07 16:43:10 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#8471
No description provided.