Добавлены правила ведения Memory Log в AGENTS.md и AGENT.common.md с machine-first оптимизацией

This commit is contained in:
2026-04-12 22:48:50 +03:00
parent 366f044229
commit cdbb2110c9
2 changed files with 25 additions and 0 deletions

View File

@@ -24,3 +24,11 @@ Formatting:
## Rules Maintenance (MUST) ## Rules Maintenance (MUST)
- Changes to agent rule files: prefer compressed, machine-readable edits. - Changes to agent rule files: prefer compressed, machine-readable edits.
- Keep updates minimal and non-duplicative: merge overlapping points, remove redundancy, preserve intent. - Keep updates minimal and non-duplicative: merge overlapping points, remove redundancy, preserve intent.
## Memory Log (MUST)
TRIGGER_READ: session_start → call `read_graph` OR `search_nodes(<topic>)`
TRIGGER_WRITE: significant_change_complete → call `create_entities` OR `add_observations`
KEY_FORMAT: `<project-prefix>/<entityType-short>/<name>`; prefix defined in project AGENTS.md
TOPIC_ISOLATION: one entityType per entity; never mix topics in one entity
ALLOWED_TYPES: architecture | mcp_tool | decision | bug | config | task_log

View File

@@ -56,6 +56,23 @@ dotnet build
--- ---
## Memory Log (MUST)
PREFIX: `lazybear/`
| entityType | scope | key example |
|----------------|--------------------------|-------------------------------|
| `architecture` | структура, хостинг, SDK | `lazybear/arch/mcp-transport` |
| `mcp_tool` | инструменты MCP | `lazybear/tool/get-price` |
| `decision` | решения, ADR | `lazybear/decision/transport` |
| `bug` | ошибки, баги | `lazybear/bug/auth-fail` |
| `config` | конфигурация | `lazybear/config/appsettings` |
| `task_log` | прогресс задач | `lazybear/task/refactor-tools`|
REF: [AGENT.common.md](AGENT.common.md) → Memory Log
---
## Правила для машин (MACHINE-FIRST) ## Правила для машин (MACHINE-FIRST)
### Обязательные правила (MUST) ### Обязательные правила (MUST)