[GH-ISSUE #6185] [Issue]: Support incremental tracker item operations #3449

Closed
opened 2026-10-21 06:03:13 +07:00 by bsakaguchi · 4 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Add incremental tracker operations for adding, updating, and removing individual items without requiring the entire tracker contents to be regenerated. The system should continue supporting full tracker replacement for models that output the complete structure.

Expected behavior

Agents and users should be able to add, update, or remove individual tracker items through explicit operations, while existing full-output tracker updates remain supported.

Actual behavior

Updating a tracker currently requires or may result in outputting and replacing the entire tracker, increasing token usage and making item-level deletion or modification less efficient.

Steps to reproduce

  1. Create or use a tracker containing multiple items.
  2. Attempt to change one item's fields, add an item, or remove an item.
  3. Observe that the tracker may need to be regenerated or returned in full instead of applying an incremental operation.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Not provided in the Discord context.

Additional context

The requested operations include add, update, and remove, with update changes scoped to a specific item, such as an item ID. The report is intentionally limited to incremental tracker operations and does not request a new structured collection tracker. The maintainer indicated that both incremental and full tracker formats should be supported because some models may still output the entire JSON.

Discord thread: [Feature Request] Could Trackers Support Structured Lists and Add/Update/Remove Operations?
Discord thread link: https://discord.com/channels/1417099416812392641/1548866884600864850
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-09-14T01:24:01.844Z] Mirai: I really like Marinara overall, but I’m struggling with the current tracker system.

My use case is an inventory where each item needs multiple fields, e.g. name, quantity, location, and description. The current Custom Tracker seems best suited for fixed key/value state, not dynamic structured lists.

I’d also prefer incremental updates instead of replacing the whole tracker every time, like Add, Update, Remove item.

This would reduce token usage and enable agents to delete item from tracker.

A generic “Structured / Collection Tracker” with user-defined fields and CRUD operations could also be useful for quests, clues, injuries, contacts, assets, etc.

Is there already a good way to do this that I’ve missed? If not, I think this could make the tracker system much more flexible without turning Marinara into a full RPG engine.
[Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548866884600864850]

[2026-09-14T01:24:02.714Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548866888249901118]

[2026-09-14T01:27:49.184Z] Mirai: So conceptually, I want something like:

` ` `json
[
  {
    "name": "Painkillers",
    "quantity": 3,
    "location": "Backpack side pocket",
    "description": "Small white tablets"
  },
  {
    "name": "Brass key",
    "quantity": 1,
    "location": "Coat pocket",
    "description": "Marked with the number 17"
  }
]
` ` `

And  for example, the agent could edit items via:

` ` `json
{
  "operation": "update",
  "id": "item_42",
  "changes": {
    "quantity": 2,
    "location": "Bedside table"
  }
}
` ` `

instead of asking the model to regenerate the entire inventory every time something changes.

I think a more general solution could be some kind of Structured / Collection Tracker, where users can define a schema for each entry.

For example:

` ` `yaml
Tracker: Inventory

Fields:
  - name: string
  - quantity: number
  - location: string
  - description: text
` ` `

The tracker would then contain a variable number of rows/entries, with the ability for both the user and agents to create, update, and delete individual entries.

I don't think this would only be useful for inventories. The same system could be used for things like:

- Quests
- Clues
- Injuries
- NPC relationships
- Assets
- Vehicles
- Contacts
- Equipment
- Ongoing conditions

So rather than adding more special-purpose trackers one by one, a generic structured collection tracker might cover a lot of different roleplay use cases.
[Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548867838134194210]

[2026-09-14T05:25:28.609Z] Marinara: There is an Inventory Tracker, why not use it?
[Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548927646497505341]

[2026-09-14T05:27:55.462Z] Marinara: I like the incremental suggestion, though. The reason I haven’t introduced it earlier is because some models dumped the entire JSON anyway. But we can support both formats.
[Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548928262443638805]

[2026-09-14T05:28:50.823Z] Marinara: Professor Mari, make issue only about incremental system of adding/removing/changing things in trackers without outputting them whole again.
[Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548928494644236320]

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 (Sep 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6185 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Add incremental tracker operations for adding, updating, and removing individual items without requiring the entire tracker contents to be regenerated. The system should continue supporting full tracker replacement for models that output the complete structure. ## Expected behavior Agents and users should be able to add, update, or remove individual tracker items through explicit operations, while existing full-output tracker updates remain supported. ## Actual behavior Updating a tracker currently requires or may result in outputting and replacing the entire tracker, increasing token usage and making item-level deletion or modification less efficient. ## Steps to reproduce 1. Create or use a tracker containing multiple items. 2. Attempt to change one item's fields, add an item, or remove an item. 3. Observe that the tracker may need to be regenerated or returned in full instead of applying an incremental operation. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Not provided in the Discord context. ## Additional context The requested operations include add, update, and remove, with update changes scoped to a specific item, such as an item ID. The report is intentionally limited to incremental tracker operations and does not request a new structured collection tracker. The maintainer indicated that both incremental and full tracker formats should be supported because some models may still output the entire JSON. Discord thread: [Feature Request] Could Trackers Support Structured Lists and Add/Update/Remove Operations? Discord thread link: https://discord.com/channels/1417099416812392641/1548866884600864850 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-09-14T01:24:01.844Z] Mirai: I really like Marinara overall, but I’m struggling with the current tracker system. My use case is an inventory where each item needs multiple fields, e.g. name, quantity, location, and description. The current Custom Tracker seems best suited for fixed key/value state, not dynamic structured lists. I’d also prefer incremental updates instead of replacing the whole tracker every time, like Add, Update, Remove item. This would reduce token usage and enable agents to delete item from tracker. A generic “Structured / Collection Tracker” with user-defined fields and CRUD operations could also be useful for quests, clues, injuries, contacts, assets, etc. Is there already a good way to do this that I’ve missed? If not, I think this could make the tracker system much more flexible without turning Marinara into a full RPG engine. [Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548866884600864850] [2026-09-14T01:24:02.714Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548866888249901118] [2026-09-14T01:27:49.184Z] Mirai: So conceptually, I want something like: ` ` `json [ { "name": "Painkillers", "quantity": 3, "location": "Backpack side pocket", "description": "Small white tablets" }, { "name": "Brass key", "quantity": 1, "location": "Coat pocket", "description": "Marked with the number 17" } ] ` ` ` And for example, the agent could edit items via: ` ` `json { "operation": "update", "id": "item_42", "changes": { "quantity": 2, "location": "Bedside table" } } ` ` ` instead of asking the model to regenerate the entire inventory every time something changes. I think a more general solution could be some kind of Structured / Collection Tracker, where users can define a schema for each entry. For example: ` ` `yaml Tracker: Inventory Fields: - name: string - quantity: number - location: string - description: text ` ` ` The tracker would then contain a variable number of rows/entries, with the ability for both the user and agents to create, update, and delete individual entries. I don't think this would only be useful for inventories. The same system could be used for things like: - Quests - Clues - Injuries - NPC relationships - Assets - Vehicles - Contacts - Equipment - Ongoing conditions So rather than adding more special-purpose trackers one by one, a generic structured collection tracker might cover a lot of different roleplay use cases. [Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548867838134194210] [2026-09-14T05:25:28.609Z] Marinara: There is an Inventory Tracker, why not use it? [Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548927646497505341] [2026-09-14T05:27:55.462Z] Marinara: I like the incremental suggestion, though. The reason I haven’t introduced it earlier is because some models dumped the entire JSON anyway. But we can support both formats. [Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548928262443638805] [2026-09-14T05:28:50.823Z] Marinara: Professor Mari, make issue only about incremental system of adding/removing/changing things in trackers without outputting them whole again. [Discord message: https://discord.com/channels/1417099416812392641/1548866884600864850/1548928494644236320] ``` </details> ## 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-21 06:03:13 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Basically, replace the prompt with an instruction that the model should return only the values that are actually updated/removed; leaving the ones that don't get updated alone.

<!-- gh-comment-id:5661006741 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Basically, replace the prompt with an instruction that the model should return only the values that are actually updated/removed; leaving the ones that don't get updated alone.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Codex is handling this assigned issue on behalf of @SpicyMarinara in the staging sweep branch fix/assigned-sweep-6180-6186. No existing issue-linked branch, open PR, or project item was found. I will verify the affected flow and reuse the existing implementation where possible.

<!-- gh-comment-id:5661077840 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Codex is handling this assigned issue on behalf of @SpicyMarinara in the staging sweep branch fix/assigned-sweep-6180-6186. No existing issue-linked branch, open PR, or project item was found. I will verify the affected flow and reuse the existing implementation where possible.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Confirmed that changing only the instruction would be unsafe: the current handlers replace emitted lists, so a shorter list would remove untouched rows. #6188 keeps that legacy full-list format and adds one explicit per-list form: {"updates":[changed rows],"removed":[existing names or character IDs]}. It reuses the existing row shapes, field locks, and persistence paths. The companion Agents PR Pasta-Devs/Marinara-Agents#849 updates the four tracker prompts to prefer this only when the host advertises support; older hosts retain full-list output. No new tracker type or generic collection UI.

<!-- gh-comment-id:5661283689 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Confirmed that changing only the instruction would be unsafe: the current handlers replace emitted lists, so a shorter list would remove untouched rows. #6188 keeps that legacy full-list format and adds one explicit per-list form: {"updates":[changed rows],"removed":[existing names or character IDs]}. It reuses the existing row shapes, field locks, and persistence paths. The companion Agents PR Pasta-Devs/Marinara-Agents#849 updates the four tracker prompts to prefer this only when the host advertises support; older hosts retain full-list output. No new tracker type or generic collection UI.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 14, 2026):

Fixed on staging by #6188 and Pasta-Devs/Marinara-Agents#849. Explicit updates/removals preserve untouched rows and locked values while legacy full-list output remains supported. World State, Character Tracker, Custom Tracker, and Inventory Tracker 1.1.0 prefer incremental output when the host supports it.

<!-- gh-comment-id:5662433464 --> @SpicyMarinara commented on GitHub (Sep 14, 2026): Fixed on staging by #6188 and Pasta-Devs/Marinara-Agents#849. Explicit updates/removals preserve untouched rows and locked values while legacy full-list output remains supported. World State, Character Tracker, Custom Tracker, and Inventory Tracker 1.1.0 prefer incremental output when the host supports it.
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#3449
No description provided.