mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8717] [MERGED] fix(agents): apply or retry ungrouped Inventory Tracker results #8761
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#8761
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8717
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/inventory-tracker-bare-envelope📝 Commits (3)
9362654fix(agents): apply or retry ungrouped Inventory Tracker results5fe67d9fix(agents): drop root inventory removals that no group trackseba6d70Merge branch 'staging' into fix/inventory-tracker-bare-envelope📊 Changes
2 files changed (+179 additions, -18 deletions)
View changed files
📝
packages/server/src/services/agents/agent-executor.ts(+103 -18)📝
scripts/regressions/agent-runtime.regression.ts(+76 -0)📄 Description
Linked issue
Closes #8714 (the Engine half of Pasta-Devs/Marinara-Agents#2077; the package prompt is fixed in Pasta-Devs/Marinara-Agents#2084)
Why this change
The Inventory Tracker agent often returns a bare root envelope,
{"updates":[...],"removed":[...]}, with no group.buildLockedInventoryTrackerPatchreads onlycurrencies,equippedandinventory, so it applied nothing, logged nothing, and recorded the run as a success. The executor tolerated a bare envelope only for single-group trackers. In the reporter's chat, 30 of 54 runs lost real purchases, drops and removals this way.What changed
packages/server/src/services/agents/agent-executor.ts:removedname that no group tracks is dropped with a log line, since it is a no-op everywhere. A removal tracked by more than one group is ambiguous.logger.warnis written either way.Validation
pnpm checkpasses locallyCONTRIBUTING.mdWhat the agent ran:
pnpm checkpasses (exit 0).scripts/regressions/agent-runtime.regression.tsgained cases for a bare currency update, a bare removal, a mixed response, an unplaceable bare row (retried, then failed rather than a successful no-change) and a bare removal of an untracked name (dropped, so the placed update still applies). It fails onstagingand passes with the change.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.