[PR #1712] [MERGED] feat(quartermaster): hidden items, description lock, feed options (0.1.29) #1705

Closed
opened 2026-10-27 06:06:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1712
Author: @newfiesledneck
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/quartermaster


📝 Commits (6)

  • 7265323 feat(quartermaster): hidden items, description lock, feed options (0.1.29)
  • 63f3b34 Merge remote-tracking branch 'upstream/staging' into feat/quartermaster
  • d1bffff Merge branch 'staging' into feat/quartermaster
  • 1c8fc55 fix(quartermaster): keep pending-change answers in their own chat (0.1.30)
  • 915c2d3 docs(quartermaster): correct the resolvePending comment (0.1.31)
  • a7c5dc1 Merge branch 'staging' into feat/quartermaster

📊 Changes

23 files changed (+3563 additions, -383 deletions)

View changed files

➕ artifacts/quartermaster-0.1.29.zip (+0 -0)
➕ artifacts/quartermaster-0.1.30.zip (+0 -0)
➕ artifacts/quartermaster-0.1.31.zip (+0 -0)
📝 catalog/catalog.json (+8 -8)
📝 catalog/notes.json (+18 -18)
📝 catalog/v2/catalog.json (+8 -8)
📝 catalog/v2/notes.json (+18 -18)
📝 catalog/v3/catalog.json (+8 -8)
📝 catalog/v3/notes.json (+18 -18)
📝 eslint.config.mjs (+5 -0)
📝 packages/quartermaster/CHANGELOG.md (+20 -0)
📝 packages/quartermaster/README.md (+94 -10)
📝 packages/quartermaster/client.js (+1004 -77)
📝 packages/quartermaster/manifest.json (+5 -5)
📝 packages/quartermaster/server.mjs (+586 -85)
📝 packages/quartermaster/src/00-api.js (+29 -3)
📝 packages/quartermaster/src/05-state.js (+142 -5)
📝 packages/quartermaster/src/10-dock.js (+345 -57)
📝 packages/quartermaster/src/11-wardrobe.js (+165 -7)
➕ packages/quartermaster/src/13-pending.js (+303 -0)

...and 3 more files

📄 Description

Pull request

Linked issue

Closes #1667 Closes #1668

Why this change

  • #1667: players want to keep some items and outfits secret from the agent, such as a surprise gift, a disguise or a hidden stash. Until now, every item went into the agent's context, and the agent could rewrite or remove any of them. And metagame its existence. This provides a way(with supporting features) for users to hide items/outfits as they see fit, which also as a bonus reduces tokens sent in the prompt when an item is hidden.

  • #1668: the appearance feed could only send outfit descriptions or a list of equipped item names. Image prompts (Illustrator, outfit portraits) often need the items' descriptions too. This provides more options for users to choose from for what details are sent and resolved in the macro.

  • Quick delete: Provides a way for users to quickly delete multiple hidden items for management. That was the main intent, but it also works for other purposes outside of just hidden item management, deleting an item took three clicks (⋯ → Delete → confirm). An optional per-device quick-Delete button makes cleaning up a large inventory quicker.

-Supporting changes were made to build out the features from the issues, so they could work with various use cases rather than just the specific ones reported in the issue.

What changed

Hidden items and outfits

  • Items and outfits can be hidden or shown from their ⋯ menu. While hidden, they're dimmed, marked "Hidden", and listed in a new Bag tab, Hidden. The Tracker Panel labels them too. Hidden items remain visible to the user.
  • The agent doesn't see a hidden item unless it's being worn: it's left out of the agent's context, the narrator text and the appearance feed. Agent tags are numbered skipping hidden items, so the agent can't refer to one.
  • Hiding a worn item takes it off. Equipping an outfit still always puts on and takes off its hidden pieces, whoever equips it. The agent can always take off a hidden item that's being worn.

Hidden Items settings (per chat)

  1. Ask before agent changes to hidden items (on by default):
    -Changes the agent tries to make to a hidden item wait for review in a popup that shows only the changed fields, old next to new. Closing the popup moves the change to a Pending Item Changes section in the dock.
  • If the item has changed since the agent suggested the change, the review shows three columns (when suggested, now, and with the agent's change). If the item was deleted, the review offers only Dismiss.
  • Accepted changes show up in Recent Item Updates and can be reverted.
  1. Hidden item access controls what happens when Ask is off. There are four modes: only the user can change the item or the agent can, and either way the item stays hidden or becomes shown. When Ask is on, the mode only sets whether the popup's Show box starts checked.
  2. Build Wardrobe can use hidden items (off by default). When it's on, a proposal that uses a hidden item adds a step that asks Overwrite / Keep / Skip for each such item, plus whether to show it.
  3. Hidden items only in the Hidden tab (on by default).

Description lock

  • Lock an item's description from its editor. The agent then can't change that description by any route. Changes the user makes still go through, including their own edits, accepting a pending change, Revert, Restore Inventory and Build Wardrobe overwrites, since those are user accepted changes.

Feed appearance

  • The feed now has seven modes: Off, Outfit Name, Outfit Description, Outfit Name + Description, Equipped Item Names, Equipped Item Descriptions, and Equipped Item Names + Descriptions.
  • If no outfit matches, or the matching outfit is hidden, the outfit modes use the matching equipped-item mode instead.
  • Outfit portrait prompts follow the same setting.

Other

  • Optional Quick delete button on item and outfit cards (Settings → Display). It's saved per device and still asks before deleting.
  • Settings are now grouped as Appearance / Hidden Items / Display / Image Generation / Data, and the tooltips list every option.
  • "Recent Agent Update" is renamed Recent Item Updates.
  • Bug fix: While adding hidden state to saved snapshots, I noticed other areas that were not yet included. Snapshots now keep each item's default slot, hidden state and lock, so re-equipping an outfit or reverting an agent's removal brings a deleted item back with all three.

Generated outputs: packages/quartermaster/client.js, server.mjs and manifest.json; artifacts/quartermaster-0.1.29.zip; and the Quartermaster entries in catalog/. All of these were rebuilt with scripts/build-quartermaster-package.mjs. Both changelogs and the README are updated.

Package and security impact

  • Affected package IDs: quartermaster (0.1.28 → 0.1.29).
  • Engine compatibility impact: none. engine.min stays at 2.4.6.
  • New or changed permissions/entrypoints: no permission changes.
    The executable code changed in both client.js and server.mjs.
    New and changed routes, all under the existing /api/quartermaster prefix:
    hide/show for items and outfits
    description lock
    pending-change review (resolve and mark seen)
    the Build Wardrobe hidden-item choices
    The routes check their input the same way the existing ones do.
    The settings route rejects an unknown access mode, and Import replaces one with the default.
    The pending review route rejects any decision other than accept or keep.
    An unknown Build Wardrobe choice counts as Skip.
  • Restart, storage, update, or uninstall impact: New optional fields: hidden and descriptionLocked on items, hidden on outfits.
    New per-chat settings, plus a per-chat list of pending changes.
    Data saved by earlier versions loads with the defaults.
    Export/Import carries the new fields and settings, but leaves pending changes out.
    Quick delete is stored in the browser's localStorage under marinara.quartermaster.quickDelete.
    The usual update/install + restart for quartermaster.

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

Manual verification notes

In addition to manually running the validation steps, Automated checks were performed as part of my usual update process, These passed locally before the commit:
npm run check
node scripts/test-catalog-lanes.mjs
node scripts/validate-package-locales.mjs
node scripts/validate-catalog.mjs
node scripts/tests/catalog-release-notes.regression.mjs
node scripts/tests/vendored-engine.regression.mjs
node tests/quartermaster-modal-lifecycle.regression.mjs (31 tests)
git diff --check

New regression tests. They cover:
the agent's view of hidden items, and the rule that worn items are visible
all four access modes
the agent taking off worn hidden items
outfits equipping and removing their hidden pieces
the description lock on every agent route
asking first, then settling, including stale and deleted items
the Build Wardrobe hidden choices
all seven feed modes
snapshot rebuilds with default slot, hidden state and lock
Export/Import
Bag Hidden tab filtering
pending popup behavior: opening, deferring, and stale accept → override
Six deliberate breakages of the new logic were each caught by these tests.

Manual testing in Marinara Engine. Quartermaster 0.1.29 was installed from the dev catalog and tested in Roleplay chats:
Hiding and showing items and outfits. The Hidden tab, and the setting that also shows hidden items in their usual tab. Hidden labels in the Tracker Panel. A narrow dock.
Agent context: hidden items are left out; worn hidden items are included, whether equipped by hand or through an outfit; taking them off hides them again.
Over several turns:
each access mode
the ask popup, with accept and keep
locked and unlocked descriptions
Pending changes: the stale-item and deleted-item reviews. Pending changes stay with their own chat when switching chats.
The Build Wardrobe hidden-item step (overwrite / keep / skip).
Quick delete. Each feed appearance mode. The new settings layout and tooltips.
Not tested by hand: hiding a worn item. The dock doesn't allow it, since worn items can't be edited. The server rule (hiding takes the item off) is covered by a regression test.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation
    The Quartermaster README now has a "Hidden Items & Locked Descriptions" section. Its Bag tabs, Settings, Build Wardrobe, Appearance Macro and Tracker Panel sections are updated, and both changelogs have 0.1.29 entries.

UI evidence (if applicable)


🔄 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/1712 **Author:** [@newfiesledneck](https://github.com/newfiesledneck) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/quartermaster` --- ### 📝 Commits (6) - [`7265323`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7265323f0b595a22599a79252eeab1d0097b9065) feat(quartermaster): hidden items, description lock, feed options (0.1.29) - [`63f3b34`](https://github.com/Pasta-Devs/Marinara-Agents/commit/63f3b3484730ca532f46b7682baa750e7b0eb5e3) Merge remote-tracking branch 'upstream/staging' into feat/quartermaster - [`d1bffff`](https://github.com/Pasta-Devs/Marinara-Agents/commit/d1bffff1f2de54ec52db149bde3d951a9bfaa1b1) Merge branch 'staging' into feat/quartermaster - [`1c8fc55`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1c8fc55c11b2a4df9d79ea41f18a0c5dee698fa4) fix(quartermaster): keep pending-change answers in their own chat (0.1.30) - [`915c2d3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/915c2d31d8de4e6086c433d5d1dc1d966c830f45) docs(quartermaster): correct the resolvePending comment (0.1.31) - [`a7c5dc1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a7c5dc1faf9e7f84221343cf9505bce10111ea84) Merge branch 'staging' into feat/quartermaster ### 📊 Changes **23 files changed** (+3563 additions, -383 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/quartermaster-0.1.29.zip` (+0 -0) ➕ `artifacts/quartermaster-0.1.30.zip` (+0 -0) ➕ `artifacts/quartermaster-0.1.31.zip` (+0 -0) 📝 `catalog/catalog.json` (+8 -8) 📝 `catalog/notes.json` (+18 -18) 📝 `catalog/v2/catalog.json` (+8 -8) 📝 `catalog/v2/notes.json` (+18 -18) 📝 `catalog/v3/catalog.json` (+8 -8) 📝 `catalog/v3/notes.json` (+18 -18) 📝 `eslint.config.mjs` (+5 -0) 📝 `packages/quartermaster/CHANGELOG.md` (+20 -0) 📝 `packages/quartermaster/README.md` (+94 -10) 📝 `packages/quartermaster/client.js` (+1004 -77) 📝 `packages/quartermaster/manifest.json` (+5 -5) 📝 `packages/quartermaster/server.mjs` (+586 -85) 📝 `packages/quartermaster/src/00-api.js` (+29 -3) 📝 `packages/quartermaster/src/05-state.js` (+142 -5) 📝 `packages/quartermaster/src/10-dock.js` (+345 -57) 📝 `packages/quartermaster/src/11-wardrobe.js` (+165 -7) ➕ `packages/quartermaster/src/13-pending.js` (+303 -0) _...and 3 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1667 Closes #1668 ## Why this change - #1667: players want to keep some items and outfits secret from the agent, such as a surprise gift, a disguise or a hidden stash. Until now, every item went into the agent's context, and the agent could rewrite or remove any of them. And metagame its existence. This provides a way(with supporting features) for users to hide items/outfits as they see fit, which also as a bonus reduces tokens sent in the prompt when an item is hidden. - #1668: the appearance feed could only send outfit descriptions or a list of equipped item names. Image prompts (Illustrator, outfit portraits) often need the items' descriptions too. This provides more options for users to choose from for what details are sent and resolved in the macro. - Quick delete: Provides a way for users to quickly delete multiple hidden items for management. That was the main intent, but it also works for other purposes outside of just hidden item management, deleting an item took three clicks (⋯ → Delete → confirm). An optional per-device quick-Delete button makes cleaning up a large inventory quicker. -Supporting changes were made to build out the features from the issues, so they could work with various use cases rather than just the specific ones reported in the issue. ## What changed Hidden items and outfits - Items and outfits can be hidden or shown from their ⋯ menu. While hidden, they're dimmed, marked "Hidden", and listed in a new Bag tab, Hidden. The Tracker Panel labels them too. Hidden items remain visible to the user. - The agent doesn't see a hidden item unless it's being worn: it's left out of the agent's context, the narrator text and the appearance feed. Agent tags are numbered skipping hidden items, so the agent can't refer to one. - Hiding a worn item takes it off. Equipping an outfit still always puts on and takes off its hidden pieces, whoever equips it. The agent can always take off a hidden item that's being worn. Hidden Items settings (per chat) 1. Ask before agent changes to hidden items (on by default): -Changes the agent tries to make to a hidden item wait for review in a popup that shows only the changed fields, old next to new. Closing the popup moves the change to a Pending Item Changes section in the dock. - If the item has changed since the agent suggested the change, the review shows three columns (when suggested, now, and with the agent's change). If the item was deleted, the review offers only Dismiss. - Accepted changes show up in Recent Item Updates and can be reverted. 2. Hidden item access controls what happens when Ask is off. There are four modes: only the user can change the item or the agent can, and either way the item stays hidden or becomes shown. When Ask is on, the mode only sets whether the popup's Show box starts checked. 3. Build Wardrobe can use hidden items (off by default). When it's on, a proposal that uses a hidden item adds a step that asks Overwrite / Keep / Skip for each such item, plus whether to show it. 4. Hidden items only in the Hidden tab (on by default). Description lock - Lock an item's description from its editor. The agent then can't change that description by any route. Changes the user makes still go through, including their own edits, accepting a pending change, Revert, Restore Inventory and Build Wardrobe overwrites, since those are user accepted changes. Feed appearance - The feed now has seven modes: Off, Outfit Name, Outfit Description, Outfit Name + Description, Equipped Item Names, Equipped Item Descriptions, and Equipped Item Names + Descriptions. - If no outfit matches, or the matching outfit is hidden, the outfit modes use the matching equipped-item mode instead. - Outfit portrait prompts follow the same setting. Other - Optional Quick delete button on item and outfit cards (Settings → Display). It's saved per device and still asks before deleting. - Settings are now grouped as Appearance / Hidden Items / Display / Image Generation / Data, and the tooltips list every option. - "Recent Agent Update" is renamed Recent Item Updates. - Bug fix: While adding hidden state to saved snapshots, I noticed other areas that were not yet included. Snapshots now keep each item's default slot, **hidden state** and lock, so re-equipping an outfit or reverting an agent's removal brings a deleted item back with all three. Generated outputs: packages/quartermaster/client.js, server.mjs and manifest.json; artifacts/quartermaster-0.1.29.zip; and the Quartermaster entries in catalog/. All of these were rebuilt with scripts/build-quartermaster-package.mjs. Both changelogs and the README are updated. ## Package and security impact - Affected package IDs: quartermaster (0.1.28 → 0.1.29). - Engine compatibility impact: none. engine.min stays at 2.4.6. - New or changed permissions/entrypoints: no permission changes. The executable code changed in both client.js and server.mjs. New and changed routes, all under the existing /api/quartermaster prefix: hide/show for items and outfits description lock pending-change review (resolve and mark seen) the Build Wardrobe hidden-item choices The routes check their input the same way the existing ones do. The settings route rejects an unknown access mode, and Import replaces one with the default. The pending review route rejects any decision other than accept or keep. An unknown Build Wardrobe choice counts as Skip. - Restart, storage, update, or uninstall impact: New optional fields: hidden and descriptionLocked on items, hidden on outfits. New per-chat settings, plus a per-chat list of pending changes. Data saved by earlier versions loads with the defaults. Export/Import carries the new fields and settings, but leaves pending changes out. Quick delete is stored in the browser's localStorage under marinara.quartermaster.quickDelete. The usual update/install + restart for quartermaster. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes In addition to manually running the validation steps, Automated checks were performed as part of my usual update process, These passed locally before the commit: npm run check node scripts/test-catalog-lanes.mjs node scripts/validate-package-locales.mjs node scripts/validate-catalog.mjs node scripts/tests/catalog-release-notes.regression.mjs node scripts/tests/vendored-engine.regression.mjs node tests/quartermaster-modal-lifecycle.regression.mjs (31 tests) git diff --check New regression tests. They cover: the agent's view of hidden items, and the rule that worn items are visible all four access modes the agent taking off worn hidden items outfits equipping and removing their hidden pieces the description lock on every agent route asking first, then settling, including stale and deleted items the Build Wardrobe hidden choices all seven feed modes snapshot rebuilds with default slot, hidden state and lock Export/Import Bag Hidden tab filtering pending popup behavior: opening, deferring, and stale accept → override Six deliberate breakages of the new logic were each caught by these tests. Manual testing in Marinara Engine. Quartermaster 0.1.29 was installed from the dev catalog and tested in Roleplay chats: Hiding and showing items and outfits. The Hidden tab, and the setting that also shows hidden items in their usual tab. Hidden labels in the Tracker Panel. A narrow dock. Agent context: hidden items are left out; worn hidden items are included, whether equipped by hand or through an outfit; taking them off hides them again. Over several turns: each access mode the ask popup, with accept and keep locked and unlocked descriptions Pending changes: the stale-item and deleted-item reviews. Pending changes stay with their own chat when switching chats. The Build Wardrobe hidden-item step (overwrite / keep / skip). Quick delete. Each feed appearance mode. The new settings layout and tooltips. Not tested by hand: hiding a worn item. The dock doesn't allow it, since worn items can't be edited. The server rule (hiding takes the item off) is covered by a regression test. ## Documentation impact - [ ] No documentation changes needed - [x] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation The Quartermaster README now has a "Hidden Items & Locked Descriptions" section. Its Bag tabs, Settings, Build Wardrobe, Appearance Macro and Tracker Panel sections are updated, and both changelogs have 0.1.29 entries. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for package UI changes. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-27 06:06:00 +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#1705
No description provided.