[GH-ISSUE #1714] [Issue]: Long-Term Memory UI third-audit harden: run-time locks keep focus, announced results, container and motion leftovers #1689

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

Originally created by @Promansis on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1714

Originally assigned to: @Promansis on GitHub.

Summary

This follows the third Long-Term Memory UI audit (2026-10-26, 17/20). Its main remaining problem is one pattern: controls use native disabled while their own work runs, so a keyboard user loses focus and cannot reach the reason. The six fixes below stay in one pull request because the first item adds a shared lock helper that items 2 and 3 reuse. The rest touch the same client surfaces and contracts, and together they ship as one package patch instead of six conflicting releases. Each item is implemented, validated, reviewed and committed separately before the bundle is finished.

One branch and one pull request for these related changes. Each item is implemented, tested and reviewed on its own before it is committed.

  1. One shared lock helper; Settings and shell controls keep focus while they run
  2. Vault and Review locks stay reachable, with a reason
  3. Sources re-extract and workbench locks say why
  4. Results are announced, and Add section and Maintenance say what happened
  5. Container and target leftovers
  6. Reduced-motion spinners and a calmer Debug search

Affected package

  • Package: long-term-memory
  • Surface: client UI under packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory
  • Base: upstream/staging (Long-Term Memory 1.4.94)

Expected behavior

  • A control that starts work keeps keyboard focus while the work runs (aria-disabled plus a guarded handler), as docs/UI.md requires. Native disabled is kept only for permanent unavailability or invalid input.
  • A locked control that is not self-explanatory is linked to a visible reason (unsaved identity edits in Review, ineligible or blocked rows, re-extract or import running in Sources).
  • Result messages are announced by assistive technology, Add section explains a rejected name, and Maintenance counts and lists are built without hand-made English plurals.
  • Layout leftovers follow the workspace container. Tab and list sizes are measured and meet the package floor, or are recorded as named exceptions.
  • Spinners respect reduced motion, and Debug search does not refilter on every keystroke.

Actual behavior

Maintenance, the Vault edit dialogs, Review, Sources re-extract and the Sources workbench use native disabled during running work or while edits are unsaved. When pressed with the keyboard, focus falls to the page body, and the lock gives no reason. Re-import looks available during a re-extract but does nothing. Some status regions mount together with their text and may not be announced. Add section silently ignores a duplicate or all-non-ASCII name. The onboarding sprite and two detail utilities still use viewport breakpoints. Three spinners ignore reduced motion, and Debug search filters up to 1,000 events per keystroke.

Steps to reproduce

  1. Open Memory Settings > Maintenance and activate Run maintenance or Export with the keyboard; observe focus after the button disables itself.
  2. In Review, edit a subject identity without saving and Tab toward the source list; in Sources, start a re-extract and try Re-import.
  3. In the Vault, choose Add section with an existing section name.
  4. Turn on reduced motion and open a loading Long-Term Memory panel; type quickly in Debug search with a long event log.

Environment

  • Marinara Engine version: 2.5.0 line
  • Package version: 1.4.94
  • Install type: source (code audit)
  • OS + version: not platform-specific
  • Browser or app shell: any supported host

Logs, screenshots, or video

None. Findings are from the code audit; browser-dependent claims will be measured in each item before changing them.

Additional context

The six findings from the 2026-10-25 audit are verified fixed (#1673, LTM 1.4.93) and are not revisited. Out of scope: the dialog backdrop class (the Engine's own convention), the documented host-matched Chat Settings type size, Engine changes, extraction or import concurrency, and the transcript release. The package's DESIGN.md, PRODUCT.md and docs/UI.md remain part of the contract.

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 @Promansis on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1714 Originally assigned to: @Promansis on GitHub. ## Summary This follows the third Long-Term Memory UI audit (2026-10-26, 17/20). Its main remaining problem is one pattern: controls use native `disabled` while their own work runs, so a keyboard user loses focus and cannot reach the reason. The six fixes below stay in one pull request because the first item adds a shared lock helper that items 2 and 3 reuse. The rest touch the same client surfaces and contracts, and together they ship as one package patch instead of six conflicting releases. Each item is implemented, validated, reviewed and committed separately before the bundle is finished. One branch and one pull request for these related changes. Each item is implemented, tested and reviewed on its own before it is committed. 1. One shared lock helper; Settings and shell controls keep focus while they run 2. Vault and Review locks stay reachable, with a reason 3. Sources re-extract and workbench locks say why 4. Results are announced, and Add section and Maintenance say what happened 5. Container and target leftovers 6. Reduced-motion spinners and a calmer Debug search ## Affected package - Package: `long-term-memory` - Surface: client UI under `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory` - Base: `upstream/staging` (Long-Term Memory 1.4.94) ## Expected behavior - A control that starts work keeps keyboard focus while the work runs (`aria-disabled` plus a guarded handler), as `docs/UI.md` requires. Native `disabled` is kept only for permanent unavailability or invalid input. - A locked control that is not self-explanatory is linked to a visible reason (unsaved identity edits in Review, ineligible or blocked rows, re-extract or import running in Sources). - Result messages are announced by assistive technology, Add section explains a rejected name, and Maintenance counts and lists are built without hand-made English plurals. - Layout leftovers follow the workspace container. Tab and list sizes are measured and meet the package floor, or are recorded as named exceptions. - Spinners respect reduced motion, and Debug search does not refilter on every keystroke. ## Actual behavior Maintenance, the Vault edit dialogs, Review, Sources re-extract and the Sources workbench use native `disabled` during running work or while edits are unsaved. When pressed with the keyboard, focus falls to the page body, and the lock gives no reason. Re-import looks available during a re-extract but does nothing. Some status regions mount together with their text and may not be announced. Add section silently ignores a duplicate or all-non-ASCII name. The onboarding sprite and two detail utilities still use viewport breakpoints. Three spinners ignore reduced motion, and Debug search filters up to 1,000 events per keystroke. ## Steps to reproduce 1. Open Memory Settings > Maintenance and activate Run maintenance or Export with the keyboard; observe focus after the button disables itself. 2. In Review, edit a subject identity without saving and Tab toward the source list; in Sources, start a re-extract and try Re-import. 3. In the Vault, choose Add section with an existing section name. 4. Turn on reduced motion and open a loading Long-Term Memory panel; type quickly in Debug search with a long event log. ## Environment - Marinara Engine version: 2.5.0 line - Package version: 1.4.94 - Install type: source (code audit) - OS + version: not platform-specific - Browser or app shell: any supported host ## Logs, screenshots, or video None. Findings are from the code audit; browser-dependent claims will be measured in each item before changing them. ## Additional context The six findings from the 2026-10-25 audit are verified fixed (#1673, LTM 1.4.93) and are not revisited. Out of scope: the dialog backdrop class (the Engine's own convention), the documented host-matched Chat Settings type size, Engine changes, extraction or import concurrency, and the transcript release. The package's `DESIGN.md`, `PRODUCT.md` and `docs/UI.md` remain part of the contract. ## 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-27 06:05: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#1689
No description provided.