Уточнены правила в 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.
|
||||
- Concise, meaningful, no filler.
|
||||
- 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:
|
||||
- ask once, no repetition
|
||||
|
||||
@@ -71,7 +71,7 @@ step_1 → step_2 → ... → CONFIRMATION
|
||||
- One question per step
|
||||
- Do not proceed until current step receives valid input
|
||||
- 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
|
||||
|
||||
### Step completion
|
||||
@@ -93,7 +93,7 @@ Summary:
|
||||
|
||||
### 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
|
||||
- Valid fields: apply, skip their steps
|
||||
@@ -104,7 +104,7 @@ Input format: `key=N key=N ...`
|
||||
|
||||
## 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:
|
||||
- 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 next question block in the flow
|
||||
|
||||
PROHIBITED pattern:
|
||||
```
|
||||
✗ "Перехожу на релизную ветку feat/release-v0.2.9, затем подготовлю версию 0.2.9..."
|
||||
```
|
||||
|
||||
REQUIRED pattern:
|
||||
```
|
||||
[executes silently]
|
||||
→ next question block or action result
|
||||
✓ [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
|
||||
|
||||
Extends EXECUTION SILENCE to all responses within scope, not only post-input.
|
||||
|
||||
PROHIBITED in any response within scope:
|
||||
- Reasoning
|
||||
- Planning
|
||||
- Analysis
|
||||
- Status updates
|
||||
- Progress logs
|
||||
- Reasoning, planning, analysis
|
||||
- Status updates, progress logs
|
||||
- Action explanations
|
||||
|
||||
Internal reasoning MUST NOT appear in output.
|
||||
|
||||
18
AGENTS.md
18
AGENTS.md
@@ -10,15 +10,18 @@
|
||||
LazyBearWorks/
|
||||
├── LazyBear.MCP/
|
||||
│ ├── Program.cs # Главный файл с хостингом MCP сервера
|
||||
│ └── Services/
|
||||
│ └── TradingTools.cs # Реализация инструментов MCP
|
||||
│ ├── Pages/ # Razor Pages (UI)
|
||||
│ ├── Services/
|
||||
│ │ └── TradingTools.cs # Реализация инструментов MCP
|
||||
│ ├── appsettings.json # Конфигурация
|
||||
│ └── LazyBear.MCP.csproj # Проектный файл
|
||||
├── AGENTS.md # Этот файл, правила для агентов
|
||||
└── README.md # Документация для пользователей
|
||||
```
|
||||
|
||||
### Основные концепты
|
||||
|
||||
**Масштабирование (Hosting):**
|
||||
**Хостинг (Hosting):**
|
||||
- ASP.NET Core веб-приложение (.NET 10.0)
|
||||
- HTTP transport для удалённой MCP коммуникации
|
||||
- Авто-обнаружение `[McpServerToolType]` и `[McpServerResourceType]`
|
||||
@@ -69,11 +72,6 @@ dotnet build
|
||||
3. Код в Git только после проверки сборки
|
||||
4. Комментарии, документация и коммиты — только на русском
|
||||
|
||||
### Build & Deploy
|
||||
- Локальная сборка обязана проходить
|
||||
- Без ломающих изменений в MCP
|
||||
- Коммиты с проверкой сборки
|
||||
|
||||
---
|
||||
|
||||
## Модель выполнения (MUST)
|
||||
@@ -90,6 +88,4 @@ dotnet build
|
||||
- [AGENT.interaction.md](AGENT.interaction.md) - правила взаимодействия
|
||||
|
||||
### Поддержание правил (MUST)
|
||||
- Минимальные обновления
|
||||
- Объединение дубликатов
|
||||
- Сохранение смысла
|
||||
- см. [AGENT.common.md](AGENT.common.md) → Rules Maintenance
|
||||
|
||||
Reference in New Issue
Block a user