Kanshō/Memory cleanup panel

Memory cleanup panel

Surfaces facts that should probably go — dormant, low-confidence, expired, or duplicated. Keeps the store honest and the retrieval cheap.

Included in the single kansho full pack. Components are not offered as separate installs.

Flagged for cleanup

Purge clears items
Cleanup4 flagged
  • Dormantunused 41d

    Avery was evaluating project trackers in Q1.

  • Low confidence32% conf

    Planner may time out above 4k chunk size.

  • Expiredexpired 3d ago

    Session lock on audit.logs from run R-1009.

  • Duplicatematches f-1

    Avery prefers short postmortems.

Tidy state

Cleanup0 flagged

Memory is tidy — nothing flagged.

Component documentation

Memory Cleanup Panel

components/memory/memory-cleanup-panel.tsx

Purpose

Lists memory facts flagged for cleanup and offers confirmed purge actions.

Appropriate use

Use for operator-reviewed cleanup queues where the host can remove one or all candidates.

Example

components/memory/memory-cleanup-panel.tsx has a representative live example in the "Flagged for cleanup" section on /components/memory-cleanup-panel.

States

Cleanup reasons are dormant, low-confidence, expired, and duplicate; the list supports populated and empty states.

API and props

MemoryCleanupPanel accepts candidates, optional onPurge and onPurgeAll callbacks, and className; each candidate supplies id, fact, reason, and detail.

Dependencies

Direct imports are React, Lucide icons, StatusPill, InlineConfirmButton, shared memory types, and cn.

Accessibility

Reasons are visible text rather than colour-only, and destructive actions use two-step confirmation controls.

Limitations

It does not delete storage itself, show pending or failed purge results, or paginate large candidate sets.

Source

Source: components/memory/memory-cleanup-panel.tsx.

Full pack

components/memory/memory-cleanup-panel.tsx is documented at /components/memory-cleanup-panel and installs only through the single Kansho full pack; no individual component install is offered.