Уточнены правила в AGENT*.md и AGENTS.md для устранения дублирования и противоречий.
Сделана синхронизация структуры проекта и формулировок, чтобы правила были короче, однозначнее и соответствовали текущему состоянию репозитория.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
18
AGENTS.md
18
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]`
|
||||||
@@ -69,11 +72,6 @@ dotnet build
|
|||||||
3. Код в Git только после проверки сборки
|
3. Код в Git только после проверки сборки
|
||||||
4. Комментарии, документация и коммиты — только на русском
|
4. Комментарии, документация и коммиты — только на русском
|
||||||
|
|
||||||
### Build & Deploy
|
|
||||||
- Локальная сборка обязана проходить
|
|
||||||
- Без ломающих изменений в MCP
|
|
||||||
- Коммиты с проверкой сборки
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Модель выполнения (MUST)
|
## Модель выполнения (MUST)
|
||||||
@@ -90,6 +88,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