From 366f04422995ac5a7d781d2ad354b16d0d2d4f8f Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Sun, 12 Apr 2026 22:41:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D1=82=D0=BE=D1=87=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=8B=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=B0=20=D0=B2=20?= =?UTF-8?q?AGENT*.md=20=D0=B8=20AGENTS.md=20=D0=B4=D0=BB=D1=8F=20=D1=83?= =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B4?= =?UTF-8?q?=D1=83=D0=B1=D0=BB=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=B8=20=D0=BF=D1=80=D0=BE=D1=82=D0=B8=D0=B2=D0=BE?= =?UTF-8?q?=D1=80=D0=B5=D1=87=D0=B8=D0=B9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Сделана синхронизация структуры проекта и формулировок, чтобы правила были короче, однозначнее и соответствовали текущему состоянию репозитория. --- AGENT.common.md | 2 +- AGENT.interaction.md | 23 ++++++++--------------- AGENTS.md | 18 +++++++----------- 3 files changed, 16 insertions(+), 27 deletions(-) diff --git a/AGENT.common.md b/AGENT.common.md index 314ab5f..64fb93c 100644 --- a/AGENT.common.md +++ b/AGENT.common.md @@ -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 diff --git a/AGENT.interaction.md b/AGENT.interaction.md index 9ca9a96..0c8be20 100644 --- a/AGENT.interaction.md +++ b/AGENT.interaction.md @@ -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. diff --git a/AGENTS.md b/AGENTS.md index e977cac..4e60d9b 100644 --- a/AGENTS.md +++ b/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