Compare commits
2 Commits
4be7359bff
...
cdbb2110c9
| Author | SHA1 | Date | |
|---|---|---|---|
| cdbb2110c9 | |||
| 366f044229 |
@@ -6,7 +6,7 @@ Reusable baseline rules that are not tied to this repository.
|
|||||||
- Answer first, then request approval if needed.
|
- Answer first, then request approval if needed.
|
||||||
- Concise, meaningful, no filler.
|
- Concise, meaningful, no filler.
|
||||||
- Do not end response with only procedural choice.
|
- Do not end response with only procedural choice.
|
||||||
- In scenarios where local configuration, secrets, or notification settings may be needed, automatically check and use `.env.local` when it exists and is relevant; if it is missing but clearly required, state that once, use `.env.example` as the schema when available, and name the required keys without inventing values; never commit `.env.local` or print secret values.
|
- Secrets/config: use `.env.local` if present; if missing but required — state once, reference `.env.example` for keys; never commit `.env.local` or print secret values.
|
||||||
|
|
||||||
Approval/clarification:
|
Approval/clarification:
|
||||||
- ask once, no repetition
|
- ask once, no repetition
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ step_1 → step_2 → ... → CONFIRMATION
|
|||||||
- One question per step
|
- One question per step
|
||||||
- Do not proceed until current step receives valid input
|
- Do not proceed until current step receives valid input
|
||||||
- Do not skip steps
|
- Do not skip steps
|
||||||
- Do not track state — state is injected by system per request
|
- Do not persist state between sessions — state is injected by system per request
|
||||||
- Do not reorder steps
|
- Do not reorder steps
|
||||||
|
|
||||||
### Step completion
|
### Step completion
|
||||||
@@ -93,7 +93,7 @@ Summary:
|
|||||||
|
|
||||||
### Compact mode
|
### Compact mode
|
||||||
|
|
||||||
Input format: `key=N key=N ...`
|
Input format: `key=N key=N ...` where `key` is the step identifier (e.g. `branch=2 env=1`).
|
||||||
|
|
||||||
- N must be an exact option number
|
- N must be an exact option number
|
||||||
- Valid fields: apply, skip their steps
|
- Valid fields: apply, skip their steps
|
||||||
@@ -104,7 +104,7 @@ Input format: `key=N key=N ...`
|
|||||||
|
|
||||||
## EXECUTION SILENCE
|
## EXECUTION SILENCE
|
||||||
|
|
||||||
After receiving valid input, the model MUST execute silently.
|
After receiving valid input, the model MUST execute silently (see also: OUTPUT PURITY).
|
||||||
|
|
||||||
PROHIBITED after valid input:
|
PROHIBITED after valid input:
|
||||||
- announcing the plan before acting ("Перехожу на ветку X, затем...")
|
- announcing the plan before acting ("Перехожу на ветку X, затем...")
|
||||||
@@ -116,15 +116,9 @@ The next user-visible output after valid input MUST be either:
|
|||||||
- the result of the action (tool output, file content, etc.), OR
|
- the result of the action (tool output, file content, etc.), OR
|
||||||
- the next question block in the flow
|
- the next question block in the flow
|
||||||
|
|
||||||
PROHIBITED pattern:
|
|
||||||
```
|
```
|
||||||
✗ "Перехожу на релизную ветку feat/release-v0.2.9, затем подготовлю версию 0.2.9..."
|
✗ "Перехожу на релизную ветку feat/release-v0.2.9, затем подготовлю версию 0.2.9..."
|
||||||
```
|
✓ [executes silently] → next question block or action result
|
||||||
|
|
||||||
REQUIRED pattern:
|
|
||||||
```
|
|
||||||
[executes silently]
|
|
||||||
→ next question block or action result
|
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -195,12 +189,11 @@ When an action is available — even one — present a choice block:
|
|||||||
|
|
||||||
## OUTPUT PURITY
|
## OUTPUT PURITY
|
||||||
|
|
||||||
|
Extends EXECUTION SILENCE to all responses within scope, not only post-input.
|
||||||
|
|
||||||
PROHIBITED in any response within scope:
|
PROHIBITED in any response within scope:
|
||||||
- Reasoning
|
- Reasoning, planning, analysis
|
||||||
- Planning
|
- Status updates, progress logs
|
||||||
- Analysis
|
|
||||||
- Status updates
|
|
||||||
- Progress logs
|
|
||||||
- Action explanations
|
- Action explanations
|
||||||
|
|
||||||
Internal reasoning MUST NOT appear in output.
|
Internal reasoning MUST NOT appear in output.
|
||||||
|
|||||||
35
AGENTS.md
35
AGENTS.md
@@ -10,15 +10,18 @@
|
|||||||
LazyBearWorks/
|
LazyBearWorks/
|
||||||
├── LazyBear.MCP/
|
├── LazyBear.MCP/
|
||||||
│ ├── Program.cs # Главный файл с хостингом MCP сервера
|
│ ├── Program.cs # Главный файл с хостингом MCP сервера
|
||||||
│ └── Services/
|
│ ├── Pages/ # Razor Pages (UI)
|
||||||
│ └── TradingTools.cs # Реализация инструментов MCP
|
│ ├── Services/
|
||||||
|
│ │ └── TradingTools.cs # Реализация инструментов MCP
|
||||||
|
│ ├── appsettings.json # Конфигурация
|
||||||
|
│ └── LazyBear.MCP.csproj # Проектный файл
|
||||||
├── AGENTS.md # Этот файл, правила для агентов
|
├── AGENTS.md # Этот файл, правила для агентов
|
||||||
└── README.md # Документация для пользователей
|
└── README.md # Документация для пользователей
|
||||||
```
|
```
|
||||||
|
|
||||||
### Основные концепты
|
### Основные концепты
|
||||||
|
|
||||||
**Масштабирование (Hosting):**
|
**Хостинг (Hosting):**
|
||||||
- ASP.NET Core веб-приложение (.NET 10.0)
|
- ASP.NET Core веб-приложение (.NET 10.0)
|
||||||
- HTTP transport для удалённой MCP коммуникации
|
- HTTP transport для удалённой MCP коммуникации
|
||||||
- Авто-обнаружение `[McpServerToolType]` и `[McpServerResourceType]`
|
- Авто-обнаружение `[McpServerToolType]` и `[McpServerResourceType]`
|
||||||
@@ -53,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)
|
||||||
@@ -69,11 +89,6 @@ dotnet build
|
|||||||
3. Код в Git только после проверки сборки
|
3. Код в Git только после проверки сборки
|
||||||
4. Комментарии, документация и коммиты — только на русском
|
4. Комментарии, документация и коммиты — только на русском
|
||||||
|
|
||||||
### Build & Deploy
|
|
||||||
- Локальная сборка обязана проходить
|
|
||||||
- Без ломающих изменений в MCP
|
|
||||||
- Коммиты с проверкой сборки
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Модель выполнения (MUST)
|
## Модель выполнения (MUST)
|
||||||
@@ -90,6 +105,4 @@ dotnet build
|
|||||||
- [AGENT.interaction.md](AGENT.interaction.md) - правила взаимодействия
|
- [AGENT.interaction.md](AGENT.interaction.md) - правила взаимодействия
|
||||||
|
|
||||||
### Поддержание правил (MUST)
|
### Поддержание правил (MUST)
|
||||||
- Минимальные обновления
|
- см. [AGENT.common.md](AGENT.common.md) → Rules Maintenance
|
||||||
- Объединение дубликатов
|
|
||||||
- Сохранение смысла
|
|
||||||
|
|||||||
Reference in New Issue
Block a user