[PR #1439] [MERGED] Feat/quartermaster - Equip slot layers/expansion #1461

Closed
opened 2026-10-21 05:11:45 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: feat/quartermaster


📝 Commits (5)

  • 24128c0 feat(quartermaster): 0.1.26 layered clothing, socks and extra wearable slots
  • f0817a7 feat(quartermaster): 0.1.27 show clothing layers as a stack of cards
  • 8e3218c feat(quartermaster): 0.1.28 layer Build Wardrobe outfits and add slot art
  • aae082c Merge remote-tracking branch 'upstream/staging' into feat/quartermaster
  • 1f66ad5 Merge branch 'staging' into feat/quartermaster

📊 Changes

29 files changed (+1132 additions, -175 deletions)

View changed files

➕ artifacts/quartermaster-0.1.26.zip (+0 -0)
➕ artifacts/quartermaster-0.1.27.zip (+0 -0)
➕ artifacts/quartermaster-0.1.28.zip (+0 -0)
📝 catalog/catalog.json (+44 -14)
📝 catalog/notes.json (+18 -18)
📝 catalog/v2/catalog.json (+44 -14)
📝 catalog/v2/notes.json (+18 -18)
📝 catalog/v3/catalog.json (+44 -14)
📝 catalog/v3/notes.json (+18 -18)
📝 eslint.config.mjs (+2 -0)
📝 packages/quartermaster/CHANGELOG.md (+19 -0)
📝 packages/quartermaster/README.md (+41 -4)
📝 packages/quartermaster/agents.json (+1 -1)
📝 packages/quartermaster/client.js (+261 -26)
📝 packages/quartermaster/icons/clothing_legs.webp (+0 -0)
📝 packages/quartermaster/icons/clothing_torso.webp (+0 -0)
➕ packages/quartermaster/icons/extra_wearable.webp (+0 -0)
➕ packages/quartermaster/icons/midlayer_legs.webp (+0 -0)
➕ packages/quartermaster/icons/midlayer_torso.webp (+0 -0)
➕ packages/quartermaster/icons/outerwear_legs.webp (+0 -0)

...and 9 more files

📄 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 #1339

Why this change

  • Torso and legs had one clothing slot each, so layered outfits couldn't be worn: a dress shirt, waistcoat and suit jacket, or shorts over stockings (#1339).
  • I compared allowing several items per slot against adding layer slots. Stacking would have changed the saved-outfit format (migrating everyone's data on stable), outfit matching and the outfit editor. It would also reverse the tracker agent's core "equipping replaces what's there" rule, so weaker models would pile up layers. Additive slots keep one item per slot, need no data migration, and keep the agent predictable.
  • Quartermaster was originally built with expanding slots in mind so adding additional slots was less invasive and now with the stacked card design properly implemented, should prove for even easier slot expansion in the future if needed.

What changed

  • Slots (16 → 24): outerwear_torso/midlayer_torso and outerwear_legs/midlayer_legs over the existing clothing_* slots (now labelled Inner), plus socks (feet stays footwear) and extra_wearable_1-3 for worn items no slot fits. Existing ids are unchanged; only display labels say Inner/Mid/Outer.
  • Order: EQUIP_SLOTS runs outer → inner, so the appearance macro and image prompts describe layers naturally ("a jacket, a waistcoat, a shirt").
  • Tracker agent prompt: new slot list, a short layering guide, and one exception to "equipping replaces": when something goes under a worn layer, move the outer item up a layer.
  • Build Wardrobe: the model gives each garment its usual slot and lists outfits innermost to outermost. When two pieces of one outfit share a clothing slot, the server moves the later one up a layer instead of dropping it as a collision (e.g. tights in Inner, pencil skirt in Mid). Each item's own default slot is unchanged.
  • Portrait ring: each region's three layers are one stack of cards. The front layer is a full slot box; the others are narrow tabs, outlined like any slot when something's worn there. Arrows on the card or a tap on a tab switch layers. The outermost worn layer is in front by default. Order is fixed inside out, so the stack's footprint and connector never move, and the ring stays close to its original width. Only the front card can be selected or unequipped; switching clears a selection inside that stack. The connector highlights for any of the stack's layers.
  • Art: gender-neutral icons in the original style. Torso is shirt → waistcoat → coat, legs are leggings → shorts → chaps, plus socks and a ring shared by the extras. They replace the old tunic/trousers on the inner slots and were converted the same way as the originals (168px, WebP q80). Drawn SVG icons remain as a fallback.
  • Tests (tests/quartermaster-modal-lifecycle.regression.mjs, already in CI):
    • The server, client and tracker-prompt slot lists stay identical and ordered.
    • Every slot is on the ring once, with labels, a drawn icon, a distinct search label, and an icon file that exists.
    • Card-stack behaviour: default front, arrows, tabs, selection and the connector anchor.
    • Build Wardrobe layering, including a 4th layer being skipped and non-clothing collisions unchanged.
  • Version and docs: 0.1.25 → 0.1.28, with CHANGELOG.md and the package README updated. eslint.config.mjs gets two new shared globals.
  • Generated outputs: packages/quartermaster/client.js, manifest.json, artifacts/quartermaster-0.1.26.zip – 0.1.28.zip, and the catalog entries and notes.

Package and security impact

  • Affected package IDs: quartermaster
  • Engine compatibility impact: none (still 2.4.6+)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none beyond a normal update. Slot ids are additive, so saved inventories and outfits load unchanged. Anyone who customized the tracker prompt keeps their version, and needs to reset it to the default to pick up the new slots (noted in the changelog and README).

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

  • Updated through Download Agents on a local Engine (dev catalog).
  • Portrait ring: width stays close to before. The default front card is the outermost worn layer, checked with all three layers, outer+inner, mid+inner, inner only and none. Worn back layers keep the accent outline. Arrows only point toward existing layers and slide the card; tapping a tab jumps to that layer. Selecting the front card filters the Bag as before, and unequip works. The connector highlights for every card in a stack. Reopening the dock shows the outermost worn layer again.
  • Tracker agent: putting tights on under a skirt put the tights in Inner and the skirt in Mid.
  • Build Wardrobe: a three-piece suit filled shirt/waistcoat/blazer across the three torso layers, and a pencil skirt with tights now gives tights in Inner and the skirt in Mid (previously the tights were dropped). Tested variations beyond the posted issue example scenarios; full winter snow suits, cosplay outfits, sporting gear, etc.
  • New icons show on empty slots.
  • Verified new slots show in Tracker Panel Equipped list, default-slot dropdown
  • Verified outfits saved before this change equip/manage properly and are not affected
  • export/imported from old version to new version
  • Not tested on a mobile device. Equip slots with stacked cards switch using tap targets (arrows and tabs), intended to be mobile user friendly. Clickking/tapping the arrow or the tab of a hidden card switches.

Agent-run checks: npm run check (0 errors; no warnings in changed files), 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 (20/20), git diff --check.

Also ran manual verification of validation requirements with git bash.

Documentation impact

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

Package README (slot docs, layering, changelog) and CHANGELOG.md updated; no catalog README changes.

UI evidence (if applicable)

image

Summary by CodeRabbit

  • New Features

    • Added layered clothing slots for the torso and legs, plus socks and three extra wearable slots.
    • Added portrait-ring controls for browsing clothing layers, and improved wardrobe placement when garments share a layer.
    • Updated slot artwork to reflect the new equipment options.
  • Documentation

    • Updated Quartermaster documentation and release notes with the new slots and layer behavior.

🔄 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/1439 **Author:** [@newfiesledneck](https://github.com/newfiesledneck) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/quartermaster` --- ### 📝 Commits (5) - [`24128c0`](https://github.com/Pasta-Devs/Marinara-Agents/commit/24128c09ab5a0bed9306d2ce93b8f41185dbbf7f) feat(quartermaster): 0.1.26 layered clothing, socks and extra wearable slots - [`f0817a7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f0817a7225ce39dd6fd56920f2180b0d7828c700) feat(quartermaster): 0.1.27 show clothing layers as a stack of cards - [`8e3218c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8e3218ce397507abca754412b1275bdfd7ccf1be) feat(quartermaster): 0.1.28 layer Build Wardrobe outfits and add slot art - [`aae082c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/aae082c46e63e27750431a779c51fb83c3b6a0ff) Merge remote-tracking branch 'upstream/staging' into feat/quartermaster - [`1f66ad5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1f66ad5cae6918a033271cca5824a8d544e97522) Merge branch 'staging' into feat/quartermaster ### 📊 Changes **29 files changed** (+1132 additions, -175 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/quartermaster-0.1.26.zip` (+0 -0) ➕ `artifacts/quartermaster-0.1.27.zip` (+0 -0) ➕ `artifacts/quartermaster-0.1.28.zip` (+0 -0) 📝 `catalog/catalog.json` (+44 -14) 📝 `catalog/notes.json` (+18 -18) 📝 `catalog/v2/catalog.json` (+44 -14) 📝 `catalog/v2/notes.json` (+18 -18) 📝 `catalog/v3/catalog.json` (+44 -14) 📝 `catalog/v3/notes.json` (+18 -18) 📝 `eslint.config.mjs` (+2 -0) 📝 `packages/quartermaster/CHANGELOG.md` (+19 -0) 📝 `packages/quartermaster/README.md` (+41 -4) 📝 `packages/quartermaster/agents.json` (+1 -1) 📝 `packages/quartermaster/client.js` (+261 -26) 📝 `packages/quartermaster/icons/clothing_legs.webp` (+0 -0) 📝 `packages/quartermaster/icons/clothing_torso.webp` (+0 -0) ➕ `packages/quartermaster/icons/extra_wearable.webp` (+0 -0) ➕ `packages/quartermaster/icons/midlayer_legs.webp` (+0 -0) ➕ `packages/quartermaster/icons/midlayer_torso.webp` (+0 -0) ➕ `packages/quartermaster/icons/outerwear_legs.webp` (+0 -0) _...and 9 more files_ </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 #1339 ## Why this change - Torso and legs had one clothing slot each, so layered outfits couldn't be worn: a dress shirt, waistcoat and suit jacket, or shorts over stockings (#1339). - I compared allowing several items per slot against adding layer slots. Stacking would have changed the saved-outfit format (migrating everyone's data on stable), outfit matching and the outfit editor. It would also reverse the tracker agent's core "equipping replaces what's there" rule, so weaker models would pile up layers. Additive slots keep one item per slot, need no data migration, and keep the agent predictable. - Quartermaster was originally built with expanding slots in mind so adding additional slots was less invasive and now with the stacked card design properly implemented, should prove for even easier slot expansion in the future if needed. ## What changed - **Slots (16 → 24):** `outerwear_torso`/`midlayer_torso` and `outerwear_legs`/`midlayer_legs` over the existing `clothing_*` slots (now labelled *Inner*), plus `socks` (`feet` stays footwear) and `extra_wearable_1-3` for worn items no slot fits. Existing ids are unchanged; only display labels say Inner/Mid/Outer. - **Order:** `EQUIP_SLOTS` runs outer → inner, so the appearance macro and image prompts describe layers naturally ("a jacket, a waistcoat, a shirt"). - **Tracker agent prompt:** new slot list, a short layering guide, and one exception to "equipping replaces": when something goes *under* a worn layer, move the outer item up a layer. - **Build Wardrobe:** the model gives each garment its usual slot and lists outfits innermost to outermost. When two pieces of one outfit share a clothing slot, the server moves the later one up a layer instead of dropping it as a collision (e.g. tights in Inner, pencil skirt in Mid). Each item's own default slot is unchanged. - **Portrait ring:** each region's three layers are one stack of cards. The front layer is a full slot box; the others are narrow tabs, outlined like any slot when something's worn there. Arrows on the card or a tap on a tab switch layers. The outermost worn layer is in front by default. Order is fixed inside out, so the stack's footprint and connector never move, and the ring stays close to its original width. Only the front card can be selected or unequipped; switching clears a selection inside that stack. The connector highlights for any of the stack's layers. - **Art:** gender-neutral icons in the original style. Torso is shirt → waistcoat → coat, legs are leggings → shorts → chaps, plus socks and a ring shared by the extras. They replace the old tunic/trousers on the inner slots and were converted the same way as the originals (168px, WebP q80). Drawn SVG icons remain as a fallback. - **Tests** (`tests/quartermaster-modal-lifecycle.regression.mjs`, already in CI): - The server, client and tracker-prompt slot lists stay identical and ordered. - Every slot is on the ring once, with labels, a drawn icon, a distinct search label, and an icon file that exists. - Card-stack behaviour: default front, arrows, tabs, selection and the connector anchor. - Build Wardrobe layering, including a 4th layer being skipped and non-clothing collisions unchanged. - **Version and docs:** 0.1.25 → 0.1.28, with `CHANGELOG.md` and the package README updated. `eslint.config.mjs` gets two new shared globals. - Generated outputs: `packages/quartermaster/client.js`, `manifest.json`, `artifacts/quartermaster-0.1.26.zip` – `0.1.28.zip`, and the catalog entries and notes. ## Package and security impact - Affected package IDs: `quartermaster` - Engine compatibility impact: none (still 2.4.6+) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none beyond a normal update. Slot ids are additive, so saved inventories and outfits load unchanged. Anyone who customized the tracker prompt keeps their version, and needs to reset it to the default to pick up the new slots (noted in the changelog and README). ## Validation - [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 - Updated through Download Agents on a local Engine (dev catalog). - Portrait ring: width stays close to before. The default front card is the outermost worn layer, checked with all three layers, outer+inner, mid+inner, inner only and none. Worn back layers keep the accent outline. Arrows only point toward existing layers and slide the card; tapping a tab jumps to that layer. Selecting the front card filters the Bag as before, and unequip works. The connector highlights for every card in a stack. Reopening the dock shows the outermost worn layer again. - Tracker agent: putting tights on under a skirt put the tights in Inner and the skirt in Mid. - Build Wardrobe: a three-piece suit filled shirt/waistcoat/blazer across the three torso layers, and a pencil skirt with tights now gives tights in Inner and the skirt in Mid (previously the tights were dropped). Tested variations beyond the posted issue example scenarios; full winter snow suits, cosplay outfits, sporting gear, etc. - New icons show on empty slots. - Verified new slots show in Tracker Panel Equipped list, default-slot dropdown - Verified outfits saved before this change equip/manage properly and are not affected - export/imported from old version to new version - Not tested on a mobile device. Equip slots with stacked cards switch using tap targets (arrows and tabs), intended to be mobile user friendly. Clickking/tapping the arrow or the tab of a hidden card switches. Agent-run checks: `npm run check` (0 errors; no warnings in changed files), `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` (20/20), `git diff --check`. Also ran manual verification of validation requirements with git bash. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation Package README (slot docs, layering, changelog) and `CHANGELOG.md` updated; no catalog README changes. ## UI evidence (if applicable) <img width="921" height="967" alt="image" src="https://github.com/user-attachments/assets/26c2d05d-bc36-408a-9469-385c7e7cf790" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added layered clothing slots for the torso and legs, plus socks and three extra wearable slots. * Added portrait-ring controls for browsing clothing layers, and improved wardrobe placement when garments share a layer. * Updated slot artwork to reflect the new equipment options. * **Documentation** * Updated Quartermaster documentation and release notes with the new slots and layer behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:11:45 +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#1461
No description provided.