[PR #1715] [MERGED] fix(long-term-memory): third-audit harden, locks keep focus and results are announced (1.4.95) #1706

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/ltm-audit-harden


📝 Commits (8)

  • 1ef416a fix(long-term-memory): one shared lock helper; Settings and shell controls keep focus while they run (#1714)
  • 8d04104 fix(long-term-memory): Vault and Review locks stay reachable, with a reason (#1714)
  • 3001471 fix(long-term-memory): Sources re-extract and workbench locks say why (#1714)
  • 23faeba fix(long-term-memory): results are announced; Add section and Maintenance say what happened (#1714)
  • 35586c1 fix(long-term-memory): setup guide and detail header follow the panel width; navigation and availability tabs reach 2.75rem (#1714)
  • ebe89ca fix(long-term-memory): loading spinners stop under reduced motion; Debug search filters on a deferred query (#1714)
  • 4517bcc chore(long-term-memory): changelog for #1714
  • 499f6f7 Merge upstream/staging into fix(long-term-memory)/ltm-audit-harden; release long-term-memory 1.4.95

📊 Changes

34 files changed (+991 additions, -288 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.95.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+9 -0)
📝 packages/long-term-memory/client.js (+55 -27)
📝 packages/long-term-memory/docs/UI.md (+32 -6)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/AvailabilityTabRail.tsx (+5 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/DESIGN.md (+1 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LastInjectionSummary.tsx (+6 -4)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+22 -4)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx (+2 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/Onboarding.tsx (+32 -13)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourceScopeCombobox.tsx (+3 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts (+8 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+17 -2)

...and 14 more files

📄 Description

Pull request

Linked issue

Closes #1714

Why this change

  • The third Impeccable audit of Long-Term Memory scored 17/20. This bundle clears its remaining P2/P3 findings (audited at LTM 1.4.94).
  • Controls that start work used native disabled, so keyboard focus fell off the button while the work ran and the result appeared somewhere else. Results were also not announced, and a few layout and motion rules followed the window instead of the panel.

What changed

Summary:

shared-controls.tsx
  lockedActionProps(locked, reasonId?)      # one helper replaces 3 hand-rolled copies
    -> aria-disabled (+ aria-describedby to a reason)
Settings / Maintenance / Debug / Onboarding / Chat Settings   (item 1)
Vault / Review / identity-edit lock + reason                  (item 2)
Sources re-extract / re-import / workbench + reason           (item 3)
LiveResult (always-mounted role=status)  Add section errors   (item 4)
sprite + detail header follow @container; tab rails >= 2.75rem (item 5)
motion-reduce on every spinner; Debug search useDeferredValue  (item 6)
  • Affected package: long-term-memory 1.4.94 -> 1.4.95 (patch). Rebuilt client.js, manifest.json, artifacts/long-term-memory-1.4.95.zip and the catalog entries (catalog/, v2, v3) through build-feature-packages.mjs.
  • One new en.json string set (lock reasons, plural and match-basis labels, "no letters" name error). packages/long-term-memory/docs/UI.md and DESIGN.md updated to match.
  • Per item, Changelog lines are in packages/long-term-memory/CHANGELOG.md under 1.4.95.
  • Not changed on purpose: the list offset (P3-4). Capture at 1280x420 and 844x390 showed the page and list never both scroll, so there was nothing to fix.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min / engine.maxExclusive unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none beyond the normal package update; client UI only, no stored data or migration changes

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

Local Push checks on 499f6f7a2 (Engine host 81f0896d3, node 24.15.0), all exit 0 unless noted:

  • npm run check (0 ESLint errors), test-catalog-lanes, validate-package-locales, validate-catalog, catalog-release-notes regression, git diff --cached --check
  • Each CI-listed LTM suite run on its own, including browser, feedback-clarity-ui, host-styles, debug-activity
  • installation fails locally: @marinara-engine/shared does not provide an export named rulesetCombatStyle. That is the shared read-only Engine host being stale; the failing import is in Engine's game-gm-prompt-runtime.ts, not in this diff. It passed earlier on this branch (item 6) and is unverified locally until the host is updated; hosted CI is the check for it.
  • Rebuilding the package from the committed tree leaves the working tree unchanged.
  • Not done: install through a live Engine, uninstall cleanup, and a real-panel capture of the list offset.

Behaviour proof added per item, in tests/long-term-memory-browser.regression.ts and tests/long-term-memory-feedback-clarity-ui.regression.mjs: held-request keyboard cases (focus stays, aria-disabled, a second Enter sends no request), a locked <select> that keeps its value, a narrow-container sprite and icon flip, and a measured tab height of at least 2.75rem.

Review notes carried from the items: a duplicate check with Object.hasOwn stops names like constructor being rejected; danger results now announce politely rather than as alerts (documented in docs/UI.md); the identity lock reason is sr-only.

Documentation impact

  • No documentation changes needed (the package's own docs/UI.md and DESIGN.md were updated)
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

Merge Danger

Door: two-way. Client UI only; reverting the squash and republishing the next patch version restores the old behaviour.

Blast Radius: LTM interface only. Buttons that were natively disabled now stay focusable, so any tooling that reads the disabled attribute during a run will see aria-disabled instead. Tab rows get taller (2.75rem), which can shift layout slightly.

Bundle items

Each item was reviewed and committed on its own. The squash merge flattens them, so to undo one item, revert the changes of the commits listed for it.

  1. One shared lock helper; Settings and shell controls keep focus while they run: 1ef416a8e fix(long-term-memory): one shared lock helper; Settings and shell controls keep focus while they run (#1714)
  2. Vault and Review locks stay reachable, with a reason: 8d0410433 fix(long-term-memory): Vault and Review locks stay reachable, with a reason (#1714)
  3. Sources re-extract and workbench locks say why: 3001471ad fix(long-term-memory): Sources re-extract and workbench locks say why (#1714)
  4. Results are announced, and Add section and Maintenance say what happened: 23faebae5 fix(long-term-memory): results are announced; Add section and Maintenance say what happened (#1714)
  5. Container and target leftovers: 35586c189 fix(long-term-memory): setup guide and detail header follow the panel width; navigation and availability tabs reach 2.75rem (#1714)
  6. Reduced-motion spinners and a calmer Debug search: ebe89ca04 fix(long-term-memory): loading spinners stop under reduced motion; Debug search filters on a deferred query (#1714)

🤖 Generated with Claude Code


🔄 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/1715 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/ltm-audit-harden` --- ### 📝 Commits (8) - [`1ef416a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1ef416a8eedacccfa46edfe823f7caf5ec57fa52) fix(long-term-memory): one shared lock helper; Settings and shell controls keep focus while they run (#1714) - [`8d04104`](https://github.com/Pasta-Devs/Marinara-Agents/commit/8d04104336e36e39065518639fcf654da6d89576) fix(long-term-memory): Vault and Review locks stay reachable, with a reason (#1714) - [`3001471`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3001471ada4f9a6e37893e0306d938abb743fe54) fix(long-term-memory): Sources re-extract and workbench locks say why (#1714) - [`23faeba`](https://github.com/Pasta-Devs/Marinara-Agents/commit/23faebae5d68b37a6b54d8726b91805ad8f6239e) fix(long-term-memory): results are announced; Add section and Maintenance say what happened (#1714) - [`35586c1`](https://github.com/Pasta-Devs/Marinara-Agents/commit/35586c1891db7a569503c0dfcb40938778dc64a6) fix(long-term-memory): setup guide and detail header follow the panel width; navigation and availability tabs reach 2.75rem (#1714) - [`ebe89ca`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ebe89ca04400f5f4abaf86da377cab805924901a) fix(long-term-memory): loading spinners stop under reduced motion; Debug search filters on a deferred query (#1714) - [`4517bcc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4517bcc9e0f4251702704fa2b5bd95e6f9b0bcaf) chore(long-term-memory): changelog for #1714 - [`499f6f7`](https://github.com/Pasta-Devs/Marinara-Agents/commit/499f6f7a270bcf1ec7d6f89c0fa8e9929acfbbf4) Merge upstream/staging into fix(long-term-memory)/ltm-audit-harden; release long-term-memory 1.4.95 ### 📊 Changes **34 files changed** (+991 additions, -288 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.95.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+9 -0) 📝 `packages/long-term-memory/client.js` (+55 -27) 📝 `packages/long-term-memory/docs/UI.md` (+32 -6) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/AvailabilityTabRail.tsx` (+5 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/DESIGN.md` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LastInjectionSummary.tsx` (+6 -4) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+22 -4) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx` (+2 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/Onboarding.tsx` (+32 -13) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourceScopeCombobox.tsx` (+3 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts` (+8 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+17 -2) _...and 14 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1714 ## Why this change - The third Impeccable audit of Long-Term Memory scored 17/20. This bundle clears its remaining P2/P3 findings (audited at LTM 1.4.94). - Controls that start work used native `disabled`, so keyboard focus fell off the button while the work ran and the result appeared somewhere else. Results were also not announced, and a few layout and motion rules followed the window instead of the panel. ## What changed Summary: ```text shared-controls.tsx lockedActionProps(locked, reasonId?) # one helper replaces 3 hand-rolled copies -> aria-disabled (+ aria-describedby to a reason) Settings / Maintenance / Debug / Onboarding / Chat Settings (item 1) Vault / Review / identity-edit lock + reason (item 2) Sources re-extract / re-import / workbench + reason (item 3) LiveResult (always-mounted role=status) Add section errors (item 4) sprite + detail header follow @container; tab rails >= 2.75rem (item 5) motion-reduce on every spinner; Debug search useDeferredValue (item 6) ``` - Affected package: `long-term-memory` 1.4.94 -> 1.4.95 (patch). Rebuilt `client.js`, `manifest.json`, `artifacts/long-term-memory-1.4.95.zip` and the catalog entries (`catalog/`, `v2`, `v3`) through `build-feature-packages.mjs`. - One new `en.json` string set (lock reasons, plural and match-basis labels, "no letters" name error). `packages/long-term-memory/docs/UI.md` and `DESIGN.md` updated to match. - Per item, Changelog lines are in `packages/long-term-memory/CHANGELOG.md` under 1.4.95. - Not changed on purpose: the list offset (P3-4). Capture at 1280x420 and 844x390 showed the page and list never both scroll, so there was nothing to fix. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min` / `engine.maxExclusive` unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none beyond the normal package update; client UI only, no stored data or migration changes ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 Local Push checks on `499f6f7a2` (Engine host `81f0896d3`, node 24.15.0), all exit 0 unless noted: - `npm run check` (0 ESLint errors), `test-catalog-lanes`, `validate-package-locales`, `validate-catalog`, `catalog-release-notes` regression, `git diff --cached --check` - Each CI-listed LTM suite run on its own, including `browser`, `feedback-clarity-ui`, `host-styles`, `debug-activity` - **`installation` fails locally**: `@marinara-engine/shared` does not provide an export named `rulesetCombatStyle`. That is the shared read-only Engine host being stale; the failing import is in Engine's `game-gm-prompt-runtime.ts`, not in this diff. It passed earlier on this branch (item 6) and is unverified locally until the host is updated; hosted CI is the check for it. - Rebuilding the package from the committed tree leaves the working tree unchanged. - Not done: install through a live Engine, uninstall cleanup, and a real-panel capture of the list offset. Behaviour proof added per item, in `tests/long-term-memory-browser.regression.ts` and `tests/long-term-memory-feedback-clarity-ui.regression.mjs`: held-request keyboard cases (focus stays, `aria-disabled`, a second Enter sends no request), a locked `<select>` that keeps its value, a narrow-container sprite and icon flip, and a measured tab height of at least 2.75rem. Review notes carried from the items: a duplicate check with `Object.hasOwn` stops names like `constructor` being rejected; danger results now announce politely rather than as alerts (documented in `docs/UI.md`); the identity lock reason is `sr-only`. ## Documentation impact - [ ] No documentation changes needed (the package's own `docs/UI.md` and `DESIGN.md` were updated) - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## Merge Danger **Door:** two-way. Client UI only; reverting the squash and republishing the next patch version restores the old behaviour. **Blast Radius:** LTM interface only. Buttons that were natively disabled now stay focusable, so any tooling that reads the `disabled` attribute during a run will see `aria-disabled` instead. Tab rows get taller (2.75rem), which can shift layout slightly. ## Bundle items Each item was reviewed and committed on its own. The squash merge flattens them, so to undo one item, revert the changes of the commits listed for it. 1. One shared lock helper; Settings and shell controls keep focus while they run: 1ef416a8e fix(long-term-memory): one shared lock helper; Settings and shell controls keep focus while they run (#1714) 2. Vault and Review locks stay reachable, with a reason: 8d0410433 fix(long-term-memory): Vault and Review locks stay reachable, with a reason (#1714) 3. Sources re-extract and workbench locks say why: 3001471ad fix(long-term-memory): Sources re-extract and workbench locks say why (#1714) 4. Results are announced, and Add section and Maintenance say what happened: 23faebae5 fix(long-term-memory): results are announced; Add section and Maintenance say what happened (#1714) 5. Container and target leftovers: 35586c189 fix(long-term-memory): setup guide and detail header follow the panel width; navigation and availability tabs reach 2.75rem (#1714) 6. Reduced-motion spinners and a calmer Debug search: ebe89ca04 fix(long-term-memory): loading spinners stop under reduced motion; Debug search filters on a deferred query (#1714) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:01 +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#1706
No description provided.