[PR #5112] [MERGED] feat: add structured Roleplay Inventory Tracker #6634

Closed
opened 2026-10-23 04:12:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5112
Author: @SpicyMarinara
Created: 8/15/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature/5105-inventory-tracker


📝 Commits (1)

  • 3592358 feat: add structured roleplay inventory tracker

📊 Changes

29 files changed (+764 additions, -24 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 README.md (+3 -3)
📝 docs/agents/agents-overview.md (+1 -1)
📝 docs/agents/built-in-agents.md (+9 -1)
📝 docs/development/frontend.md (+2 -1)
📝 docs/home/professor-mari.md (+1 -1)
📝 docs/roleplay/hud-and-trackers.md (+5 -1)
📝 packages/client/src/components/agents/AgentCatalogView.tsx (+1 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+7 -0)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+95 -0)
📝 packages/client/src/components/chat/RoleplayHUDPanels.tsx (+47 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+10 -6)
📝 packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx (+27 -0)
➕ packages/client/src/features/tracker-panel/components/sections/InventoryTrackerPanel.tsx (+187 -0)
📝 packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts (+2 -0)
📝 packages/client/src/lib/agent-suite-tracker-slices.ts (+26 -0)
📝 packages/client/src/localization/locales/en.json (+17 -0)
📝 packages/client/src/stores/ui.store.ts (+2 -1)
📝 packages/server/src/routes/generate.routes.ts (+43 -0)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+72 -0)

...and 9 more files

📄 Description

Important

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

Linked issue

Closes #5105
Companion package PR: Pasta-Devs/Marinara-Agents#363

Why this change

Roleplay inventory currently shares Persona Stats or flattened Custom Tracker strings, which makes larger inventories easy to truncate and hard to edit. This adds a dedicated structured Inventory Tracker integration while keeping Persona Stats inventory untouched.

What changed

  • Add dedicated currencies, equipped, and carried-inventory state fields.
  • Normalize quantities, merge duplicate rows, and prevent equipped items from being duplicated in carried inventory.
  • Apply output through normal generation and manual retry paths.
  • Preserve per-cell locks and inject committed inventory context into later prompts.
  • Add editable localized HUD and Tracker Panel grids plus Agent Suite support.
  • Document the tracker and cover normalization, locking, and prompt context with regression assertions.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

Automated verification performed:

  • pnpm check
  • focused Inventory Tracker prompt/state regression assertions in pnpm regression:prompt
  • the full prompt suite, with one pre-existing unrelated ElevenLabs tone-tag assertion failure
  • the full browser smoke suite, which exposed pre-existing timeouts and a flaky fractional-width Tracker assertion; the Inventory Tracker did not introduce a new suite failure

Manual package installation, responsive grid inspection, and multi-turn lock verification remain maintainer verification items.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

English docs and CHANGELOG.md are updated. Translation follow-up: #5113.

UI evidence (if applicable)

The Inventory Tracker appears as a localized responsive three-column grid in the Roleplay HUD and Tracker Panel. Manual visual verification remains listed above.


🔄 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-Engine/pull/5112 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/15/2026 **Status:** ✅ Merged **Merged:** 8/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature/5105-inventory-tracker` --- ### 📝 Commits (1) - [`3592358`](https://github.com/Pasta-Devs/Marinara-Engine/commit/359235814bf450259c5f6bb87508faec89f0b6bd) feat: add structured roleplay inventory tracker ### 📊 Changes **29 files changed** (+764 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `README.md` (+3 -3) 📝 `docs/agents/agents-overview.md` (+1 -1) 📝 `docs/agents/built-in-agents.md` (+9 -1) 📝 `docs/development/frontend.md` (+2 -1) 📝 `docs/home/professor-mari.md` (+1 -1) 📝 `docs/roleplay/hud-and-trackers.md` (+5 -1) 📝 `packages/client/src/components/agents/AgentCatalogView.tsx` (+1 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+7 -0) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+95 -0) 📝 `packages/client/src/components/chat/RoleplayHUDPanels.tsx` (+47 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+10 -6) 📝 `packages/client/src/features/tracker-panel/components/TrackerSectionList.tsx` (+27 -0) ➕ `packages/client/src/features/tracker-panel/components/sections/InventoryTrackerPanel.tsx` (+187 -0) 📝 `packages/client/src/features/tracker-panel/lib/tracker-panel.constants.ts` (+2 -0) 📝 `packages/client/src/lib/agent-suite-tracker-slices.ts` (+26 -0) 📝 `packages/client/src/localization/locales/en.json` (+17 -0) 📝 `packages/client/src/stores/ui.store.ts` (+2 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+43 -0) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+72 -0) _...and 9 more files_ </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5105 Companion package PR: Pasta-Devs/Marinara-Agents#363 ## Why this change Roleplay inventory currently shares Persona Stats or flattened Custom Tracker strings, which makes larger inventories easy to truncate and hard to edit. This adds a dedicated structured Inventory Tracker integration while keeping Persona Stats inventory untouched. ## What changed - Add dedicated currencies, equipped, and carried-inventory state fields. - Normalize quantities, merge duplicate rows, and prevent equipped items from being duplicated in carried inventory. - Apply output through normal generation and manual retry paths. - Preserve per-cell locks and inject committed inventory context into later prompts. - Add editable localized HUD and Tracker Panel grids plus Agent Suite support. - Document the tracker and cover normalization, locking, and prompt context with regression assertions. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes Automated verification performed: - `pnpm check` - focused Inventory Tracker prompt/state regression assertions in `pnpm regression:prompt` - the full prompt suite, with one pre-existing unrelated ElevenLabs tone-tag assertion failure - the full browser smoke suite, which exposed pre-existing timeouts and a flaky fractional-width Tracker assertion; the Inventory Tracker did not introduce a new suite failure Manual package installation, responsive grid inspection, and multi-turn lock verification remain maintainer verification items. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) English docs and `CHANGELOG.md` are updated. Translation follow-up: #5113. ## UI evidence (if applicable) The Inventory Tracker appears as a localized responsive three-column grid in the Roleplay HUD and Tracker Panel. Manual visual verification remains listed above. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:16 +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#6634
No description provided.