iia-arg/dsh-plugins--packages-dsh-pamyat-restore ↗★ 2

dsh-pamyat-restore

Восстановление после сжатия и приветствие памяти с доверием · Post-compaction restoration and trust-aware memory welcome

Package
dsh-pamyat-restore
Compatibility
Unverified
Harness peer range
^0.1.1-rc.2 || ^0.2.0-rc.2
Version
3.1.4
License
MIT
Last updated
Oct 22, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

Настройка · Configuration

Ключи config (Schema Config в src/index.js):

config keys (Schema Config in src/index.js):

Ключ · KeyТип · TypeУмолчание · DefaultЧто делает · Effect
restoreEnabledbooleantrueСлой B: восстановление после успешного compaction/end. · Layer B: restoration after a successful compaction/end.
welcomeEnabledbooleantrueСлой C: welcome-брифинг. · Layer C: welcome briefing.
welcomeBudgetnumber800Мягкий предел длины строк знаний брифинга (в единицах длины строки JS). Первая строка входит всегда; рамка, строки отмен и сводка компакта идут вне предела. · Soft length limit for briefing knowledge lines (JS string length units). The first line always fits; the frame, cancellation lines and the compaction summary are outside the limit.
welcomeIntervalnumber86400000Минимальный промежуток между брифингами одной и той же сессии, мс (по файлу welcomeOtmetki). · Minimum interval between briefings of the same session, ms (tracked in welcomeOtmetki).
welcomeOtmetkistringjoin(homedir(), '.dsh-pamyat-welcome-otmetki.json')Файл отметок брифинга; от него же строится путь .compaction-ok.json. При общем доме нескольких агентов задавать свой путь каждому. · Briefing marker file; the .compaction-ok.json path is derived from it. When several agents share a home, give each its own path.
ignoreAfterMsnumber604800000 (7 суток) · 604800000 (7 days)Запись старше — ignore. · Older records get ignore.
useVeraThresholdnumber0.7Вера не ниже порога — use (с оговорками ниже). · Trust at or above it gets use (with the caveats below).
ignoreVeraThresholdnumber0.3Вера ниже порога — ignore; между порогами — verify. Должен быть ниже useVeraThreshold, иначе при подъёме в stderr строка «пороги веры несовместимы» (загрузка не останавливается). · Trust below it gets ignore; between the thresholds — verify. Must be below useVeraThreshold; otherwise startup logs "пороги веры несовместимы" to stderr (loading continues).
klassSvodkistringsvodka-kompakciiКласс записи-сводки компакта. Обязан совпадать с klass секретаря (dsh-pamyat-secretary), иначе сводки «не найдутся». · Record class of the compaction summary. Must match the secretary klass (dsh-pamyat-secretary), otherwise summaries are "not found".

Порядок решения decide для записи знания: время неизвестно — verify; старше ignoreAfterMs — ignore; состояние доверия от ядра (otmenena — ignore с видимой строкой ⛔ без содержимого; oprovergnuta/otmetka-negodna/utochnena — verify; podtverzhdena — use); вера не измерена — verify; ниже ignoreVeraThreshold — ignore; ниже useVeraThreshold — verify; если все оценки от модели (kem начинается с model:) — use только при «helped» от двух разных kem.

decide order for a knowledge record: unknown time — verify; older than ignoreAfterMs — ignore; core trust state (otmenena — ignore with a visible ⛔ line without content; oprovergnuta/otmetka-negodna/utochnena — verify; podtverzhdena — use); trust not measured — verify; below ignoreVeraThreshold — ignore; below useVeraThreshold — verify; if all ratings are model-authored (kem starts with model:) — use only with "helped" from two distinct kem values.

Переменных окружения код плагина не читает (путь по умолчанию зависит от homedir()). Стенды читают: DSH_SESSION, DSH_TEST_APP, STEND_APP (test/stend-restore.mjs), PREDMET (test/stend-krik-zvuchit.mjs), STEND_RESTORE (test/stend-welcome-v2.mjs).

The plugin code reads no environment variables (the default path depends on homedir()). The stands read: DSH_SESSION, DSH_TEST_APP, STEND_APP (test/stend-restore.mjs), PREDMET (test/stend-krik-zvuchit.mjs), STEND_RESTORE (test/stend-welcome-v2.mjs).

Файлы: пишет welcomeOtmetki и .compaction-ok.json (см. выше), читает их же и package.json пакета (версия для строк журнала).

Files: writes welcomeOtmetki and .compaction-ok.json (see above), reads them back, and reads the package package.json (version for log lines).