[GH-ISSUE #361] [Feature]: Add structured Inventory Tracker package for Roleplay #181

Closed
opened 2026-10-20 17:25:09 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/361

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Roleplay Mode has no structured inventory tracker. The generic Custom Tracker stores every value as one string, so currencies, equipped items, and carried items collapse into long prose that is truncated in the tracker panel. It also cannot enforce that equipping an item moves it out of carried inventory.

The Engine-side structured state and tracker-panel support is tracked in Pasta-Devs/Marinara-Engine#5105. The downloadable Agent definition and prompt belong in this repository.

Proposed package or change

Add an inventory-tracker package for Roleplay Mode. Its Agent should return the Engine result type introduced by Pasta-Devs/Marinara-Engine#5105 with three structured groups:

{
  "currencies": [{ "name": "Silver coin", "qty": 6 }],
  "equipped": [{ "name": "Family heirloom longsword" }],
  "inventory": [{ "name": "Billhook" }, { "name": "Scavenged axe", "qty": 2 }],
  "reasoning": "Equipped the longsword; picked up a second axe."
}

The package prompt should remain concise and enforce:

  1. Return all three arrays every turn.
  2. Equipped items appear only in equipped; equipping and unequipping move rows between groups.
  3. currencies contains money only.
  4. Item names are short noun phrases rather than descriptive prose.
  5. Duplicate names are merged with summed integer quantities.
  6. Locked rows and unchanged state remain unchanged.

The package should include its manifest, Agent definition, canonical English metadata, cover artwork, generated artifact, and generated catalog entries. It should declare the Engine version that introduces the new result type as its minimum compatible version.

Why should this be optional?

Inventory tracking requires an additional model call and is useful only for roleplays that need explicit equipment and carried-item state. Keeping it downloadable lets users opt into that cost and behavior while the Engine merely provides the generic result/state/UI integration.

Alternatives considered

  • Continue using Custom Tracker: its string-only contract cannot render or enforce structured item groups.
  • Reuse Persona Stats inventory: that field has a different owner and existing behavior; the new Agent should use its own state so existing chats remain unaffected.
  • Put the default Agent definition in Engine: downloadable Agent definitions and package metadata belong in Marinara-Agents.

Additional context

Cross-repository parent issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5105

The Engine integration should land first. Until then, this package must remain outside catalog lanes consumed by incompatible Engine versions through an accurate engine.min declaration.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/361 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Roleplay Mode has no structured inventory tracker. The generic Custom Tracker stores every value as one string, so currencies, equipped items, and carried items collapse into long prose that is truncated in the tracker panel. It also cannot enforce that equipping an item moves it out of carried inventory. The Engine-side structured state and tracker-panel support is tracked in Pasta-Devs/Marinara-Engine#5105. The downloadable Agent definition and prompt belong in this repository. ## Proposed package or change Add an `inventory-tracker` package for Roleplay Mode. Its Agent should return the Engine result type introduced by Pasta-Devs/Marinara-Engine#5105 with three structured groups: ```json { "currencies": [{ "name": "Silver coin", "qty": 6 }], "equipped": [{ "name": "Family heirloom longsword" }], "inventory": [{ "name": "Billhook" }, { "name": "Scavenged axe", "qty": 2 }], "reasoning": "Equipped the longsword; picked up a second axe." } ``` The package prompt should remain concise and enforce: 1. Return all three arrays every turn. 2. Equipped items appear only in `equipped`; equipping and unequipping move rows between groups. 3. `currencies` contains money only. 4. Item names are short noun phrases rather than descriptive prose. 5. Duplicate names are merged with summed integer quantities. 6. Locked rows and unchanged state remain unchanged. The package should include its manifest, Agent definition, canonical English metadata, cover artwork, generated artifact, and generated catalog entries. It should declare the Engine version that introduces the new result type as its minimum compatible version. ## Why should this be optional? Inventory tracking requires an additional model call and is useful only for roleplays that need explicit equipment and carried-item state. Keeping it downloadable lets users opt into that cost and behavior while the Engine merely provides the generic result/state/UI integration. ## Alternatives considered - Continue using Custom Tracker: its string-only contract cannot render or enforce structured item groups. - Reuse Persona Stats inventory: that field has a different owner and existing behavior; the new Agent should use its own state so existing chats remain unaffected. - Put the default Agent definition in Engine: downloadable Agent definitions and package metadata belong in Marinara-Agents. ## Additional context Cross-repository parent issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5105 The Engine integration should land first. Until then, this package must remain outside catalog lanes consumed by incompatible Engine versions through an accurate `engine.min` declaration. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:09 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 15, 2026):

SpicyMarinara is taking this in feature/361-inventory-tracker; it will follow the Engine integration from Pasta-Devs/Marinara-Engine#5105 and target staging.

<!-- gh-comment-id:5304588076 --> @SpicyMarinara commented on GitHub (Aug 15, 2026): SpicyMarinara is taking this in `feature/361-inventory-tracker`; it will follow the Engine integration from Pasta-Devs/Marinara-Engine#5105 and target `staging`.
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#181
No description provided.