Files
mnemazine/config/rules-enforcement.json
T
Зарубин Филипп 4c8213eacd release: Mnemazine
Local-first memory system: raw material in, finished notes out. Synthesis on write.

This release brings a guided install that explains itself and ends with a live demo
pass, eleven fixes to the knowledge pipeline found by running it against a real
archive of 216 sources, and a documentation pass in the project's own voice.
2026-08-25 00:38:03 +03:00

95 lines
5.9 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"_doc": "Правило текстом → живой прибор. Каждое императивное предложение CLAUDE.md/AGENTS.md имеет запись; enforced_by = <файл>:<строка> живого прибора. Форма 'утверждение → якорь в json' держит бюджет конституции. Проверяет scripts/mnemazine-rules-inventory.mjs. pending_until: правило заведено до своего прибора — краснит только когда маркер плана на диске.",
"rules": [
{
"id": "no-npm-run-run-live",
"file": "AGENTS.md",
"line": 13,
"quote": "Do not use `npm run run` for live inbox work",
"enforced_by": "scripts/mnemazine-run.mjs:48",
"note": "STRICT_ARCHIVE_KNOWLEDGE: даже npm run run fail-closed на архивации без строгого знания — вход strictKnowledgeReady."
},
{
"id": "start-fails-before-archive",
"file": "AGENTS.md",
"line": 13,
"quote": "it must fail before archive if atomization/enrichment did not happen",
"enforced_by": "scripts/mnemazine-run.mjs:375",
"note": "Ворота архивации: без strictKnowledgeReady нота не считается покрытием, исходник не архивируется."
},
{
"id": "maintenance-does-not-process-inbox",
"file": "AGENTS.md",
"line": 33,
"quote": "It must not process inbox files",
"enforced_by": "scripts/mnemazine-doctor.mjs:10",
"note": "doctor и update — только чтение состояния; INBOX читается счётчиком, не обрабатывается (тот же инвариант у scripts/mnemazine-update.sh)."
},
{
"id": "failure-does-not-destroy",
"file": "AGENTS.md",
"line": 37,
"quote": "Do not archive, delete, reset, or rewrite user files",
"enforced_by": "scripts/mnemazine-run.mjs:338",
"note": "archiveFile — единственный путь переноса исходника, и он гейтован ворота́ми покрытия; при провале run пишет ok:false и ничего не двигает."
},
{
"id": "skill-candidate-not-passive",
"file": "AGENTS.md",
"line": 41,
"quote": "Do not leave it as a passive note",
"enforced_by": "scripts/mnemazine-tool-decision-queue.mjs:167",
"note": "Очередь разбора инструментов выносит кандидата в активное решение (берём/откладываем/забываем), а не пассивную заметку."
},
{
"id": "never-pipe-remote-install",
"file": "AGENTS.md",
"line": 43,
"quote": "Never pipe remote install scripts directly",
"enforced_by": "scripts/mnemazine-audit-local.sh:32",
"note": "DANGEROUS_PATTERN — security-скан локального аудита; сканер обязан hard-fail при отсутствии (образец из check-public-release.sh)."
},
{
"id": "vetting-fail-do-not-install",
"file": "AGENTS.md",
"line": 43,
"quote": "report the reason and do not install",
"enforced_by": "scripts/mnemazine-tool-decision-queue.mjs:265",
"note": "Очередь фиксирует решение с причиной, включая отклонение — установка не автоматическая."
},
{
"id": "no-synthesis-only-record",
"file": "AGENTS.md",
"line": 48,
"quote": "Do not leave synthesis-* as the only record",
"enforced_by": "scripts/mnemazine-tool-decision-queue.mjs:167",
"note": "synthesis-нота инструмента выносится в очередь как отдельная запись, а не остаётся единственным следом."
},
{
"id": "subject-required",
"file": "docs/PLAN-ночь-2026-08-22-00-МАСТЕР.md",
"line": 878,
"quote": "subject обязателен, закрытый список self | world | mixed",
"enforced_by": "scripts/mnemazine-vault-quality-gate.mjs:263",
"pending_until": "П06",
"note": "Мастер §18. Гейт спеки требует subject у новой/изменённой ноты и режет значение вне self|world|mixed; self при source_type video|article|repo — провал (§18.4). Маркер П06 на диске — прибор обязан быть живым."
},
{
"id": "data-class-max-order-no-pd-to-vps",
"file": "docs/PLAN-ночь-2026-08-22-00-МАСТЕР.md",
"line": 810,
"quote": "класс данных = максимум по order; явное поле поднимает и не опускает; партия с pd или personal не уходит на VPS",
"enforced_by": "scripts/mnemazine-machine-class-gate.mjs:1",
"pending_until": "П24",
"note": "Мастер §17.8. Прибор строит П24 (классовый барьер машин). Пока П24.done.json нет — запись дормантна, мёртвый enforced_by не краснит; с маркером — краснит."
},
{
"id": "pipeline-stepwise-attestation",
"file": "docs/PLAN-ночь-2026-08-22-03-волна2-правила.md",
"line": 605,
"quote": "пошаговая аттестация конвейера остаётся за П03",
"enforced_by": "scripts/mnemazine-complete-check.mjs:231",
"note": "Приём 15 стека §2.1. Аттестацию конвейера держит П03 (уже закрыт): fail-closed завершение прогона — complete-check роняет процесс при !ok. Здесь только якорь на его гейт (план П11 шаг 9)."
}
]
}