dsh-brain/vendor/dsh-mnemon/plugins/dsh-brain-mnemon-strategy-g...
newbie 1dfc7c7380 feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
..
locale feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
src feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
tests feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
LICENSE feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
README.md feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
cordis.patch.yml feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
package.json feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
tsconfig.json feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
tsdown.config.ts feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00
vitest.config.ts feat: complete local memory and Mnemon integration (0.10.1) 2026-11-24 20:27:22 +08:00

README.md

dsh-mnemon-strategy-general

A role-agnostic main Strategy for dsh-mnemon. It admits every available Source, whatever its role, shares one projection budget between them and offers their Routes and Actions round-robin, so each admitted Source is reachable before any Source receives a second operation. The model then decides whether and how to use each Source; the Strategy adds no retrieval policy of its own.

Compared with dsh-mnemon-strategy-default-three-tier:

Layered strategy General strategy
Source roles one working-context, narrative and durable-evidence Source any role, any number (up to 32)
Resident context Runtime Memory Sources listed in residentSourceKeys, else working-context Sources
Reads recall, search, inspect and related Routes with per-turn deduplication every offered Route, bounded by Core's call and result budgets
Automatic maintenance idle review and Runtime capacity archiving none; the model writes through offered Actions

Exactly one main Strategy composes a View. Select it on the dsh-mnemon page under Plugins; the Starter installs it disabled. The optional enhancements (scoped composition, light context and active capture) use Core's standard selection, projection and capture slots, so they work with either main Strategy.

Configuration

Field Default Meaning
residentSourceKeys working-context Sources Source instances projected into every turn; the others stay on demand
instruction none Extra guidance appended to the memory protocol

Run pnpm verify for standalone checks.