[PR #2084] [MERGED] fix(inventory-tracker): show incremental updates nested under each group (1.2.2) #2108

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/2084
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/2077-inventory-nested-updates


📝 Commits (1)

  • 48e74d5 fix(inventory-tracker): show incremental updates nested under each group (1.2.2)

📊 Changes

11 files changed (+51 additions, -22 deletions)

View changed files

➕ artifacts/inventory-tracker-1.2.2.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -0)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -0)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -0)
📝 packages/inventory-tracker/CHANGELOG.md (+3 -0)
📝 packages/inventory-tracker/agents.json (+1 -1)
📝 packages/inventory-tracker/manifest.json (+3 -3)
📝 tests/inventory-tracker-contract.regression.mjs (+8 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #2077 (the package prompt). The Engine's handling of the bare form is Pasta-Devs/Marinara-Engine#8714.

Why this change

The Inventory Tracker prompt introduced its incremental format as a bare {"updates": [rows], "removed": [...]} envelope without naming a group. Its older full-snapshot example, meanwhile, nests rows under currencies, equipped and inventory. Models often returned the bare envelope at the root. The Engine reads only the three group keys, so those results counted as "no change". In the reporter's chat, 30 of 54 runs carried real purchases, drops and removals that were silently lost.

What changed

Package: inventory-tracker 1.2.2 (rebuilt artifact and catalog entries).

  • The incremental section says every changed group goes under its own key. Its single example touches all three groups: a currency spend, an equip move, and an inventory add and remove. It states that no updates or removed may appear at the top level.
  • The full-snapshot (legacy) instructions are unchanged.
  • tests/inventory-tracker-contract.regression.mjs parses that example and checks the nested shape and the no-top-level rule. It fails on 1.2.1.
  • Package CHANGELOG 1.2.2, marked [highlight] because more than half the runs in the report lost real changes.

Package and security impact

  • Affected package IDs: inventory-tracker
  • Engine compatibility impact: none (the grouped shape is what the Engine already reads)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

What the agent ran:

  • node tests/inventory-tracker-contract.regression.mjs passes, and fails against the 1.2.1 prompt.
  • build-agent-catalog.mjs inventory-tracker rebuilds byte-identically.
  • These pass: test-catalog-lanes.mjs, validate-package-locales.mjs, the catalog release-notes and generatedAt-determinism regressions, and npm run check (0 errors).
  • validate-catalog.mjs passes with the referenced artifacts restored. The sparse worktree leaves them out.
  • CodeRabbit: 0 findings.
  • An independent review raised two findings, and adversarial verification refuted both: one was existing Engine behaviour for moved rows, the other was CI coverage of an existing test.

Manual verification notes

  • Manually verify with the Inventory Tracker on a small, fast model: over several turns of purchases, drops and pickups, each change shows up in the tracker. In the saved runs, results should nest changes under currencies, equipped or inventory.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/2084 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/2077-inventory-nested-updates` --- ### 📝 Commits (1) - [`48e74d5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/48e74d51ae64495a652797fb232b48351cb5d9f7) fix(inventory-tracker): show incremental updates nested under each group (1.2.2) ### 📊 Changes **11 files changed** (+51 additions, -22 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/inventory-tracker-1.2.2.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -0) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -0) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -0) 📝 `packages/inventory-tracker/CHANGELOG.md` (+3 -0) 📝 `packages/inventory-tracker/agents.json` (+1 -1) 📝 `packages/inventory-tracker/manifest.json` (+3 -3) 📝 `tests/inventory-tracker-contract.regression.mjs` (+8 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #2077 (the package prompt). The Engine's handling of the bare form is Pasta-Devs/Marinara-Engine#8714. ## Why this change The Inventory Tracker prompt introduced its incremental format as a bare `{"updates": [rows], "removed": [...]}` envelope without naming a group. Its older full-snapshot example, meanwhile, nests rows under `currencies`, `equipped` and `inventory`. Models often returned the bare envelope at the root. The Engine reads only the three group keys, so those results counted as "no change". In the reporter's chat, 30 of 54 runs carried real purchases, drops and removals that were silently lost. ## What changed Package: `inventory-tracker` 1.2.2 (rebuilt artifact and catalog entries). - The incremental section says every changed group goes under its own key. Its single example touches all three groups: a currency spend, an equip move, and an inventory add and remove. It states that no `updates` or `removed` may appear at the top level. - The full-snapshot (legacy) instructions are unchanged. - `tests/inventory-tracker-contract.regression.mjs` parses that example and checks the nested shape and the no-top-level rule. It fails on 1.2.1. - Package CHANGELOG 1.2.2, marked `[highlight]` because more than half the runs in the report lost real changes. ## Package and security impact - Affected package IDs: `inventory-tracker` - Engine compatibility impact: none (the grouped shape is what the Engine already reads) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` What the agent ran: - `node tests/inventory-tracker-contract.regression.mjs` passes, and fails against the 1.2.1 prompt. - `build-agent-catalog.mjs inventory-tracker` rebuilds byte-identically. - These pass: `test-catalog-lanes.mjs`, `validate-package-locales.mjs`, the catalog release-notes and generatedAt-determinism regressions, and `npm run check` (0 errors). - `validate-catalog.mjs` passes with the referenced artifacts restored. The sparse worktree leaves them out. - CodeRabbit: 0 findings. - An independent review raised two findings, and adversarial verification refuted both: one was existing Engine behaviour for moved rows, the other was CI coverage of an existing test. ### Manual verification notes - Manually verify with the Inventory Tracker on a small, fast model: over several turns of purchases, drops and pickups, each change shows up in the tracker. In the saved runs, results should nest changes under `currencies`, `equipped` or `inventory`. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:39:33 +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-Agents#2108
No description provided.